//leo edit 2007-7-30 ff and ie//
var NS6 = (document.getElementById&&!document.all)
var IE = (document.all)
var NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
var tempBar='';barBuilt=0;ssmItems=new Array();
var moving=setTimeout('null',1)
var Yoffset=150;
var Xoffset=0;
var staticYOffset=30;
var slideSpeed=20
var waitTime=100;
var menuWidth=219;
var lastY=0;
var menulink=new Array();

function moveOut() { 
	if ((NS6||NS)&&parseInt(ssm.left)<0 || IE && ssm.pixelLeft<0) {

		clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed);slideMenu(10);

		}else {

		clearTimeout(moving);moving=setTimeout('null',1);

		}
};
function moveBack() {clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime)}


function moveBack1() {
	if ((NS6||NS) && parseInt(ssm.left)>(-menuWidth) || IE && ssm.pixelLeft>(-menuWidth)) {
	clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);slideMenu(-10)}
	else {clearTimeout(moving);moving=setTimeout('null',1)}
}
function slideMenu(num){
	if (IE) {ssm.pixelLeft += num;}
	if (NS||NS6) {ssm.left = parseInt(ssm.left)+num+"px";}
	if (NS) {bssm.clip.right+=num;bssm2.clip.right+=num+"px";}
}
function makeStatic() {
	if (NS||NS6) {winY = window.pageYOffset;}
	if (IE) {winY = document.documentElement.scrollTop;}
	if (NS6||IE||NS) {
	if (winY!=lastY&&winY>Yoffset-staticYOffset) {
	smooth = .2 * (winY - lastY - Yoffset + staticYOffset);}
	else if (Yoffset-staticYOffset+lastY>Yoffset-staticYOffset) {
	smooth = .2 * (winY - lastY - (Yoffset-(Yoffset-winY)));}
	else {smooth=0}
	if(smooth > 0) smooth = Math.ceil(smooth);
	else smooth = Math.floor(smooth);
	if (IE) bssm.pixelTop+=smooth;
	if (NS6||NS) bssm.top=parseInt(bssm.top)+smooth+"px"
	lastY = lastY+smooth;
	setTimeout('makeStatic()', 1)}
}

function initSlide() {
	if (NS6){
		ssm=document.getElementById("ssmenu").style;
		bssm=document.getElementById("smenu").style;
	    bssm.clip="rect(0px "+document.getElementById("ssmenu").offsetWidth+"px  "+document.getElementById("ssmenu").offsetHeight+"px  0px)";
		bssm.visibility="visible";
        	
	}else if (IE) {ssm=document.all("ssmenu").style;
		bssm=document.all("smenu").style;
		bssm.clip="rect(0 "+ssmenu.offsetWidth+" "+ssmenu.offsetHeight+" 0)";
		bssm.visibility = "visible";
	}else if (NS) {bssm=document.layers["smenu1"];
		bssm2=bssm.document.layers["smenu2"];
		ssm=bssm2.document.layers["ssmenu"];
		bssm2.clip.left=0;ssm.visibility = "show";
	}
makeStatic();
	
}

  
function buildMenu() {
    var mstr="<DIV id='smenu' style=\"\Z-INDEX: 100;  width:261px; 0px;width:261px;VISIBILITY: 1;POSITION: absolute; TOP: 150px\"\>";
	    mstr+="<div id='ssmenu' onmouseover=\"\moveOut()\"\ onmouseout=\"\moveBack()\"\ style=\"\Z-INDEX: 100; width:261px; LEFT: -219px; POSITION: absolute; TOP: 0pt\"\>";
	    mstr+="<div id=\"\smallmenu\"\>";
	    mstr+="<div class=\"\smallmenu_top\"\></div>";
	    mstr+="<div class=\"\smallmenu_mid\"\ >";
		for (var i=0;i<menulink.length;i++){
		mstr+="<div class=\"\sm_mid_bar\"\><a href="+menulink[i][1]+" target='"+menulink[i][2]+"'>"+menulink[i][0]+"</a></div>";
        }
		mstr+="</div>";
		mstr+="<div class=\"\smallmenu_bot\"\></div>";
		mstr+="</div>";
		mstr+="<div id=\"\smllmenu_ear\"\ onmouseover=\"\moveOut()\"\ onmouseout=\"\moveBack()\"\ style=\"\cursor:hand;\"\><img src=\"\http://www.mmoabc.com/hellgate/images/menu.gif\"\ alt=\"\"\ /></div>";
		mstr+="</div>";
		mstr+="</DIV>";
    document.write(mstr)
	var theleft=-menuWidth;
	setTimeout('initSlide();', 1)
}


   menulink[0]=["Age of Conan","http://www.mmoabc.com/aoc","_blank"]
   menulink[1]=["Eve Online","http://www.mmoabc.com/eve","_blank"]
   menulink[2]=["Gods & Heroes","http://www.mmoabc.com/godheros","_blank"]
   menulink[3]=["Guild Wars","http://www.mmoabc.com/guildwars","_blank"]
   menulink[4]=["Hellgate: London","http://www.mmoabc.com/hellgate","_blank"]
   menulink[5]=["Myth War","http://www.mmoabc.com/mythwar","_blank"]
   menulink[6]=["Pirates of the Caribbean Online","http://www.mmoabc.com/poco","_blank"]
   menulink[7]=["Ragnarok Online 2","http://www.mmoabc.com/ro2","_blank"]
   menulink[8]=["Silkroad Online","http://www.mmoabc.com/sro","_blank"]
   menulink[9]=["The Lord of the Rings Online","http://www.mmoabc.com/lotro","_blank"]
   menulink[10]=["With Your Destiny","http://www.mmoabc.com/wyd","_blank"]
   menulink[11]=["World of Warcraft","http://www.mmoabc.com/wow","_blank"]
   menulink[12]=["Zu Online","http://www.mmoabc.com/zuonline","_blank"]
   menulink[13]=["Maplestory","http://www.mmoabc.com/maple","_blank"]
   menulink[14]=["Rune Scape","http://www.mmoabc.com/rune","_blank"]



