$(function(){
//	setInterval(clearClipboard,3000);
});

function clearClipboard(){
	try{if(window.clipboardData) { clipboardData.setData('Text','');}}
	catch (e){}
}

function showhide(index){
	for(var i=0;i<=5;i++){
		if(i!=index)$("#submenu"+i).hide();
	}
	$("#submenu"+index).slideDown("slow");
}

function getList(classID,page){
	$("#container"+(classID-1)).html("<div style=\"width:170px;text-align:center;\">Loading...</div>").load("getList.asp?classID="+classID+'&page='+page);
//	$("#container"+(classID-1)).html("<div style=\"text-align:center;\">Loading...</div>");
//	$.get("getList.asp", {"classID":classID,"page":page}, function(data){
//		$("#container"+(classID-1)).html(data);
//	});
}

function showimg(sVal){
	var url=location.href.toLowerCase();
	if(url.indexOf("works.asp")==-1){
		top.location='./works.asp?'+sVal;
	}else{
		$("#bimg").hide();
		$("#loading").show();
		$("#bimg").attr("src",sVal);
	}
}

function chg(o){
	$("#loading").hide();
	$("#bimg").show();
	if(o.width>580){o.width=580};
}

//---
function high(which){
	if (jQuery.browser.msie){
		theobject=which
		highlighting=setInterval("highlightit(theobject)",60)
	}
}
function low(which){
	if (jQuery.browser.msie){
		clearInterval(highlighting)
		which.filters.alpha.opacity=60
	}
}
function highlightit(cur){
	if (cur.filters.alpha.opacity<100)
	cur.filters.alpha.opacity+=10
	else if (window.highlighting)
	clearInterval(highlighting)
}
//½ûÖ¹ÓÒ¼ü
document.oncontextmenu=function(){event.returnValue=false;};
document.ondragstart=function(){event.returnValue=false;};
document.onselectstart=function(){event.returnValue=false;};
document.onkeydown=function(){if (event.ctrlKey){event.returnValue=false;}};