//sideMenu

var menu_len=0;
function ch(c_id,mode){
	var obj=document.getElementById("menu"+c_id);
	if(obj.className=="on"&&mode==1)mode=0;
	obj.className=(mode==1?"on":"off");
	document.images["menu_img"+c_id].src="../images/"+(mode==1?"on":"off")+".gif";
}

function sw(pl){
	for(var i=0;i<menu_len;i++)ch(i,(pl==i?1:0));
}

function init(num){
	while(document.getElementById("menu"+menu_len)){
		ch(menu_len,0);
		menu_len++;
	}
	if(location.hash.length>1)sw(location.hash.slice(1),1);
	for(var i=0;i<document.links.length;i++)document.links[i].onfocus=function(){this.blur()};
	if(num >= 0){
		re(num);
	}

}
function re(n){
	location.hash=n;
	//if(location.hash.length>1)sw(n);
sw(n);
	return false;
}

//popup

function winOpen(src,w,h){
	subWin = window.open("../technology/sub.html","sub","width=600,height=400");
	str = "<div align='center'><img src='"+src+"' width='"+w+"' height='"+h+"'></div>";
	str = str + "<hr><div align='right'><input type='button' name='cls' value='•Â‚¶‚é' onclick='window.close()' /></div>";
	subWin.document.open();
	subWin.document.write(str);
	subWin.document.close();
}


//demo movie popup

<!--
function openFlWindow(ad,wd,hi){
	window.open(ad,"","width="+wd+",height="+hi);
}