/**
 * news popup window set 
 * author:Medivh
 */
 function homepop(){window.open ('news/news_popup.html', 'NewsWindow', 'height=600, width=750, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no'); }
 function newspop(){window.open ('news_popup.html', 'NewsWindow', 'height=600, width=750, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no'); }
 function picpop(){window.open ('pic_popup.html', 'PhotoWindow', 'height=600, width=750, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no'); }
 function popwindow(loc,winName){window.open (loc, winName, 'height=600, width=750, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no'); }
 
 
 
 
 
 /*nav list js add at 20090827*/
 sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
	this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
	this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);




/*tab js in service add at 20090908*/
function setTab(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var con=document.getElementById("con_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  con.style.display=i==cursel?"block":"none";
 }
}


/*top page*/
function scroll_bottom()	{
	for(var y = 0 ; y < 800 ; y += 5)	{
		window.scroll(0,y)
	}
}
function scroll_top()	{
	for(var y = 800 ; y > 0 ; y -= 5)	{
		window.scroll(0,y)
	}
}