//去掉虚线框框
//function bluring(){ 
//if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
//} 
//document.onfocusin=bluring;


function switchnav(nodeObject){
for(var i=1; i<=10; i++){
document.getElementById("nav_" + i).style.display = "none";
}
document.getElementById(nodeObject).style.display = "block";
}

function annotation(nodeObject){
for(var i=1; i<=8; i++){
document.getElementById("at_" + i).style.display = "none";
}
document.getElementById(nodeObject).style.display = "block";
}


function indexonClick(nodeObject){
for(var i=1; i<=3; i++){
document.getElementById("new_" + i).style.display = "none";
}
document.getElementById(nodeObject).style.display = "block";
}



if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); 
		if(el.style.display != "block"){ 
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") 
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

// FLASH调用代码
function playswf(sFile,sWidth,sHeight){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ sWidth +'" height="'+ sHeight +'"> ');
document.write(' <param name="movie" value="'+ sFile +'"> ');
document.write(' <param name="quality" value="high"> ');
document.write(' <param name="wmode" value="transparent"> ');
document.write(' <embed src="'+ sFile +'" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ sWidth +'" height="'+ sHeight +'"></embed> ');
document.write('</object> ');
}



