

function Flash(id,url,w,h,bg,t){

document.write("\
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width="+w+" height="+h+" id="+id+">\
<param name='movie' value="+url+" />\
<param name='wmode' value="+t+" />\
<param name='bgcolor' value="+bg+" />\
<param name='allowScriptAccess' value='sameDomain' />\
<param name='quality' value='high' />\
<param name='menu' value='false' />\
<embed src="+url+" wmode="+t+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" allowScriptAccess='sameDomain' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
</object>\
");
}



var stmnLEFT = 0; // 
var stmnGAP1 = 30; // 
var stmnGAP2 = 130; // 
var stmnBASE = 230; // 
var stmnActivateSpeed = 200; //
var stmnScrollSpeed = 10; // 
var mainScroll = document.getElementsByTagName('html')[0];
//var mainScroll = document.body.scrollTop;


function RefreshStaticMenu() { 
	var stmnStartPoint, stmnEndPoint, stmnRefreshTimer; 
	stmnStartPoint = parseInt(document.getElementById('quick_menu').style.top, 10); 
	stmnEndPoint = mainScroll.scrollTop + stmnGAP2 - 180; 
	if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1; 
	
	if ( stmnStartPoint != stmnEndPoint ) { 
	stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 20); 
	document.getElementById('quick_menu').style.top = parseInt(document.getElementById('quick_menu').style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount ); 
	stmnRefreshTimer = stmnScrollSpeed; 

	} 
	
	else { 
		stmnRefreshTimer = stmnActivateSpeed; 
	}
	setTimeout ("RefreshStaticMenu();", stmnRefreshTimer); 

	}

function InitializeStaticMenu() { 
	document.getElementById('quick_menu').style.top = mainScroll.scrollTop + stmnBASE; 
	RefreshStaticMenu(); 
	document.getElementById('quick_menu').style.left = stmnLEFT; 
} 

function menuFix() {
 var sfEls = document.getElementById("nav").getElementsByTagName("li");
 for (var i=0; i<sfEls.length; i++) {
  sfEls[i].onmouseover=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onMouseDown=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onMouseUp=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onmouseout=function() {
  this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),
"");
  }
 }
}
window.onload=menuFix;

/*×óµ¼º½¿ªÊ¼*/
startList = function() 
{
if (document.all&&document.getElementById) 
{
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) 
{
node = navRoot.childNodes[ i ];
if (node.nodeName=="LI") 
{
node.onmouseover=function() 
{this.className+=" over";}
node.onmouseout=function() 
{this.className=this.className.replace(" over", "");}
}
}
}
}
window.onload=startList;