function mmoAds_deliverActiveX(content)
{document.write(content);}
function ue_tab(tab_menu,tab_main,cur_tab,mouse,time){var pre_no;var timer,autoplay_timer;var tab;function $(id){return document.getElementById(id);}
function run(no){if(no!=null){if(timer!=null)clearInterval(timer);timer=setInterval(function(){doChange(no);},200);}}
function addEvent(){for(var i=0;i<tab.length;i++){tab[i].cur_no=i;if(mouse==null){tab[i].onclick=function(){run(this.cur_no);return false;}}else{tab[i].onmouseover=tab[i].onmouseout=function(){run(this.cur_no);return false;}}}}
function doChange(k){if(tab[pre_no]!=null&&$(tab_main+(pre_no+1))!=null){tab[pre_no].className="off";$(tab_main+(pre_no+1)).style.display="none";}
if(tab[k]!=null&&$(tab_main+(k+1))!=null){tab[k].className="on";$(tab_main+(k+1)).style.display="block";}
pre_no=k;if(timer!=null)clearInterval(timer);}
function autoplay(){if(pre_no<tab.length){doChange(pre_no+1);}else{pre_no=tab.length-1;doChange(0);}}
function init(){if(tab_menu==null||tab_main==null)return;var tabs=tab_menu.split(" ");if(tabs[0]==null||tabs[1]==null||$(tabs[0])==null)return;tab=$(tabs[0]).getElementsByTagName(tabs[1]);pre_no=(cur_tab==null)?0:(cur_tab-1);doChange(pre_no);addEvent();if(time!=null&&time>0)
autoplay_timer=setInterval(autoplay,time);}
init();}
function Bgad(){var o=this;var ladurl,radurl,bgpic,version;var ti=1;var adcontainer_style={"id":"newbgad","width":"1002px","margin":"0 auto","position":"relative"}
function getAdContainer(){var ad=document.createElement("div");ad.id=adcontainer_style.id;ad.style.width=adcontainer_style.width;ad.style.position=adcontainer_style.position;ad.style.margin=adcontainer_style.margin;return ad;}
function setAdContainer(adcontainer,ad1,ad2){adcontainer.appendChild(ad1);adcontainer.appendChild(ad2);document.body.style.overflowX="hidden";document.body.style.position="relative";document.body.insertBefore(adcontainer,document.body.childNodes[0]);}
function getAd(url,id){ad=document.createElement("div");ad.id=id;ad.style.position="absolute";ad.style.cursor="pointer";ad.style.backgroundImage="url("+bgpic+")";ad.style.backgroundRepeat="no-repeat";ad.style.backgroundAttachment="fixed";ad.onclick=function(){window.open(url);}
return ad;}
function resize(ad1,ad2){var adwidth,adheight,adScrollHeight,adScrollTop;if(document.all){adwidth=Math.abs(document.body.clientWidth-1002)/2-4;adheight=Math.min(document.body.clientHeight,document.documentElement.clientHeight);adScrollTop=Math.max(document.body.scrollTop,document.documentElement.scrollTop);}else{adwidth=Math.abs(document.documentElement.clientWidth-1002)/2-4;adheight=document.documentElement.clientHeight;adScrollTop=document.documentElement.scrollTop;}
if(document.compatMode!="CSS1Compat"){adheight=document.body.clientHeight;adScrollTop=document.body.scrollTop;}
adScrollHeight=document.body.scrollHeight;ad1.style.top="0px";ad1.style.width=adwidth+"px";if(adScrollHeight==(adScrollTop+adheight)){adScrollHeight=(document.all&&version==null)?(adScrollHeight-95):(adScrollHeight-80);}
ad1.style.height=adScrollHeight+"px";ad1.style.left="-"+adwidth+"px";ad2.style.width=ad1.style.width;ad2.style.height=ad1.style.height;ad2.style.right=ad1.style.left;ad2.style.top=ad1.style.top;ad1.style.backgroundPosition=Math.ceil(adwidth-219+4)+"px "+((adScrollTop<=30&&version==null)?"32px":"0");if(window.XMLHttpRequest)
ad2.style.backgroundPosition=ad1.style.backgroundPosition;else
ad2.style.backgroundPosition="-1222px "+((adScrollTop<=30&&version==null)?"32px":"0");}
function isWidthScreen(){return window.screen.width>1024?true:false;}
this.init=function(newadurl1,newadurl2,newbgpic,newversion){ladurl=newadurl1;radurl=newadurl2;bgpic=newbgpic;version=newversion;if(!isWidthScreen())return;var adcontainer=getAdContainer();var ad1=getAd(ladurl,"leftad");var ad2=getAd(radurl,"rightad");setAdContainer(adcontainer,ad1,ad2);if(document.all){window.attachEvent("onload",function(){resize(ad1,ad2);});if(window.XMLHttpRequest)
window.attachEvent("onscroll",function(){resize(ad1,ad2);});window.attachEvent("onresize",function(){resize(ad1,ad2);});}else{window.addEventListener("load",function(){resize(ad1,ad2);},false);window.addEventListener("scroll",function(){resize(ad1,ad2);},true);window.addEventListener("resize",function(){resize(ad1,ad2);},true);}}}
function win_open_bug(){var toUrl='http://report.help.mmosite.com/bug_report.htm?backurl='+escape(top.window.location.href);window.open(toUrl);}
function mmoFooter(){var cs=[];cs[0]="<style>#mmo_bottom{ width:1002px;margin:0 auto; font-size:12px; font-family:Arial; line-height:16px; text-align:left; }#mmo_bottom .copyright{ width:650px; float:left; padding-top:6px; text-align:left;}#mmo_bottom .footer_logo{ width:50px; height:41px; float:left; margin:10px 15px 0px 57px; display:inline-block;}html>body #mmo_bottom .footer_logo{background:url(\"http:\/\/images.mmosite.com\/www\/mmologo.png\") no-repeat;}* html #mmo_bottom .footer_logo {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src=\"http:\/\/images.mmosite.com\/www\/mmologo.png\");background:none;}#mmo_bottom .footerico{ float:right; width:160px;}#mmo_bottom .footerico a{ width:70px; height:16px; font-size:11px; display:block; padding:0 0 0 21px; background:url(http:\/\/images.mmosite.com\/www\/images0904\/footer_ico.gif) no-repeat; margin-bottom:7px;}#mmo_bottom .footerico a.footer_rss{ background-position:left bottom;}#mmo_bottom .clear:after { content:\".\"; display:block; height:0; clear:both; visibility:hidden; }#mmo_bottom .clear {+display:none; clear:both }<\/style>";cs[1]="<div id=\"mmo_bottom\"><div class=\"footer_logo\"><\/div><div class=\"copyright\">2005-2009 MMOsite.com All Rights Reserved <br \/><b><a href=\"http:\/\/www.mmosite.com\/about\/sitemap.shtml\" target=\"_blank\"><strong>Site   Map<\/strong><\/a> | <a href=\"http:\/\/www.mmosite.com\/about\/contact.shtml\" target=\"_blank\"><strong>Contact Us<\/strong><\/a> | <a href=\"http:\/\/www.mmosite.com\/about\/index.shtml\" target=\"_blank\"><strong>About Us<\/strong><\/a> | <a href=\"http:\/\/www.mmosite.com\/about\/useragreement.shtml\" target=\"_blank\"><strong>User Agreement<\/strong><\/a> | <a href=\"http:\/\/www.mmosite.com\/about\/adsolution.shtml\" target=\"_blank\"><strong>Advertise<\/strong><\/a> | <a href=\"http:\/\/www.mmosite.com\/service\" target=\"_blank\"><strong>Service<\/strong><\/a> | <a href=\"javascript:win_open_bug();\"><strong>Report & Suggestion<\/strong><\/a><\/b> <br/><strong>Sister Site: <\/strong><a href=\"http:\/\/www.bbgsite.com\" target=\"_blank\">BBGsite.com<\/a><\/strong> |  <\/strong><a href=\"http:\/\/www.arabmmo.com\" target=\"_blank\">Arabmmo.com<\/a><\/strong> |  <\/strong><a href=\"http:\/\/www.espmmo.com\" target=\"_blank\">Espmmo.com<\/a><\/strong>  |  <\/strong><a href=\"http:\/\/www.pandaapp.com\" target=\"_blank\">Pandaapp.com<\/a><\/strong><\/div><div class=\"footerico\"><a title=\"Help\" href=\"http:\/\/help.mmosite.com\/\" class=\"footer_help\">Get help<\/a><a title=\"MMOsite RSS Center\" href=\"http:\/\/news.mmosite.com\/rss\" class=\"footer_rss\">Rss feed<\/a><\/div><br class=\"clear\" \/><\/div>"
cs[2]="<div style=\"display:none\"><scr"+"ipt language='javascript' src='http://js.aiya.com.cn/stat.js'></scr"+"ipt><noscript><img src=\"http://logs.aiya.com.cn/a?ci=mmosite\" alt=\"\"><\/noscript><\/div>";return document.writeln(cs.join(""));}
function ue_time_scroll(Speed_1,Space_1,PageWidth_1,interval_1){var self=this;var fill_1=0;var movelock=false;var movetimeobj;var moveway="right";var comp=0;var timer1=null;function getID(objName){return document.getElementById(objName);}
function autoplay(){clearInterval(timer1);timer1=setInterval(function(){self.toRight();self.stopToRight();},interval_1)}
this.toLeft=function(){if(movelock)return;clearInterval(timer1);movelock=true;moveway="left";movetimeobj=setInterval(self.ISL_ScrUp_1,Speed_1);}
this.stopToLeft=function(){if(moveway=="right"){return};clearInterval(movetimeobj);if((getID('timescroll').scrollLeft-fill_1)%PageWidth_1!=0){comp=fill_1-(getID('timescroll').scrollLeft%PageWidth_1);compscr()}else{movelock=false}
autoplay()}
this.ISL_ScrUp_1=function(){if(getID('timescroll').scrollLeft<=0){getID('timescroll').scrollLeft=getID('timescroll').scrollLeft+getID('timescrllpage1').offsetWidth}
getID('timescroll').scrollLeft-=Space_1;}
this.toRight=function(){clearInterval(movetimeobj);if(movelock)return;clearInterval(timer1);movelock=true;moveway="right";self.ISL_ScrDown_1();movetimeobj=setInterval(self.ISL_ScrDown_1,Speed_1)}
this.stopToRight=function(){if(moveway=="left"){return};clearInterval(movetimeobj);if(getID('timescroll').scrollLeft%PageWidth_1-(fill_1>=0?fill_1:fill_1+1)!=0){comp=PageWidth_1-getID('timescroll').scrollLeft%PageWidth_1+fill_1;compscr()}else{movelock=false}
autoplay()}
this.ISL_ScrDown_1=function(){if(getID('timescroll').scrollLeft>=getID('timescrllpage1').scrollWidth){getID('timescroll').scrollLeft=getID('timescroll').scrollLeft-getID('timescrllpage1').scrollWidth}
getID('timescroll').scrollLeft+=Space_1;}
function compscr(){if(comp==0){movelock=false;return;}
var num,TempSpeed=Speed_1,TempSpace=Space_1;if(Math.abs(comp)<PageWidth_1/2){TempSpace=Math.round(Math.abs(comp/Space_1));if(TempSpace<1){TempSpace=1}}
if(comp<0){if(comp<-TempSpace){comp+=TempSpace;num=TempSpace}else{num=-comp;comp=0}
getID('timescroll').scrollLeft-=num;setTimeout(compscr,TempSpeed)}else{if(comp>TempSpace){comp-=TempSpace;num=TempSpace}else{num=comp;comp=0;}
getID('timescroll').scrollLeft+=num;setTimeout(compscr,TempSpeed)}}
function init(){getID("timescrllpage2").innerHTML=getID("timescrllpage1").innerHTML;getID('timescroll').scrollLeft=fill_1>=0?fill_1:getID('timescrllpage1').scrollWidth-Math.abs(fill_1);getID("timescroll").onmouseover=function(){clearInterval(timer1)}
getID("timescroll").onmouseout=function(){autoplay()}
autoplay();}
init();}
function submenu(menu_no){var $=function(id){return document.getElementById(id)};$("first_"+menu_no).className=($("first_"+menu_no).className=='')?'on':'';$("second_"+menu_no).style.display=($("second_"+menu_no).style.display=='none')?'':'none';}
var sb=0;var sba=0;function mychg(m){var $=function(id){return document.getElementById(id)};if(sba==1){sbb=$("lm"+m).style.display;$("lm"+m).style.display=sbb=="none"?"block":"none";$("father"+m).className=$("father"+m).className==""?"on":"";}
else{if(sb!=0){$("lm"+sb).style.display="none";$("father"+sb).className="";}
if(sb!=m){$("lm"+m).style.display="block";$("father"+m).className="on";sb=m;}
else sb=0;}}
function styleChange(box_id,tagname){var $=function(id){return document.getElementById(id)};var box=$(box_id);var tagname=tagname;var boxlist=box.getElementsByTagName(tagname);for(var i=0;i<boxlist.length;i++){boxlist[i].onmouseover=function(){this.className="on";}
boxlist[i].onmouseout=function(){this.className="";}}}
var gUcSiteUrl="http://accounts.mmosite.com/";var gSvcUrl="http://accounts.mmosite.com/port/js_svc.php?1";var gImagesUrl="http://image.91.com/zx.sj.91/wm/1201/";var gCurPageUrl=window.location.href;function showMmoUserInfo(){try{url=gSvcUrl+'&action=get_userinfo&s='+(new Date()).getTime();requestSvc('bookmarkJs',url,'callbackShowMmoUserInfo');}catch(err){alert("bookmark.js:addToBookmark"+" | "+err.description);}}
function callbackShowMmoUserInfo(s){var sJson=s.toString();eval("var oJson = "+sJson+";");var res=oJson.result.trim();if('not_logged'==res){showLogingUserPannel();return;}else if('success'==res){showLogedUserPannel(oJson.username,oJson.nickname,oJson.goldNum,oJson.newPmNum);}else{alert('error occured');}}
function showLogingUserPannel(){try{var inner='';var _oDiv=document.getElementById('mmouser__infoDiv');var _signInUrl=gUcSiteUrl+'port/login.php?url='+gCurPageUrl;var _signUpUrl=gUcSiteUrl+'port/reg.php?url='+gCurPageUrl;inner+='<a class="btn_signin" href="'+_signInUrl+'" onfocus="blur();">sign in</a> <a href="'+_signUpUrl+'" class="btn_signup" onfocus="blur();">sign up </a>';if(!_oDiv){_oDiv=document.createElement("div");_oDiv.id="mmouser__infoDiv";document.getElementById("signbox").appendChild(_oDiv);_oDiv.innerHTML=inner;}else{_oDiv.style.display='block';}}catch(err){alert("bookmark.js:showCatsDiv"+" | "+err.description);}}
function showLogedUserPannel(username,nickname,goldNum,newPmNum){try{var inner='';var _oDiv=document.getElementById('mmouser__infoDiv');inner+='<dl>';inner+='<dt><a href="http://my.mmosite.com/'+username+'">'+nickname+'</a></dt>';inner+='<dd><span><a class="user_1" href="http://accounts.mmosite.com/user/myprofile.php">My Profile</a> <a class="user_2" href="https://accounts.mmosite.com/gold/">'+goldNum+'</a> <a class="user_3" href="http://accounts.mmosite.com/user/index.php?m=pm_client&a=ls">'+newPmNum+'</a> <a class="user_4" href="http://my.mmosite.com/blog/'+username+'">My Blog</a> <a class="user_5" href="http://my.mmosite.com/'+username+'/Photo">My Album</a> <a class="user_6" href="http://answer.mmosite.com/member/user_info.php">My Answer</a> <a class="user_7" href="http://accounts.mmosite.com/port/logout.php">Sign Out</a></span></dd>';inner+='</dl>';if(!_oDiv){_oDiv=document.createElement("div");_oDiv.id="mmouser__infoDiv";document.getElementById("signbox").appendChild(_oDiv);_oDiv.innerHTML=inner;}else{_oDiv.style.display='block';}}catch(err){alert("bookmark.js:showCatsDiv"+" | "+err.description);}}
function showMmoUserItemList(open){if(typeof(open)=='undefined'||open==true){document.getElementById('_mmouserItemList').style.display="block";}else{document.getElementById('_mmouserItemList').style.display="none";}}
function callbackFunc(s){}
String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,'');}
function requestSvc(id,url,funcName){if(typeof(funcName)=='undefined'){funcName='callbackFunc';}
url+='&func_name='+funcName;oScript=document.getElementById(id);var head=document.getElementsByTagName("head").item(0);if(oScript){head.removeChild(oScript);}
oScript=document.createElement("script");oScript.setAttribute("src",url);oScript.setAttribute("id",id);oScript.setAttribute("type","text/javascript");oScript.setAttribute("language","javascript");head.appendChild(oScript);return oScript;}
function mmoUcLoginUser(){var url=gSvcUrl;var mmoUcUsername=document.getElementById('mmoUcUsername').value.trim();var mmoUcPassword=document.getElementById('mmoUcPassword').value.trim();if(''==mmoUcUsername){document.getElementById('loginResMsg').innerHTML='<font color="red">Please input your username!</font>';return false;}
if(''==mmoUcPassword){document.getElementById('loginResMsg').innerHTML='<font color="red">Please input your password!</font>';return false;}
url+='&action=login&u='+mmoUcUsername+'&p='+mmo_hhp(mmoUcPassword)+'&r='+document.getElementById('is_remember').checked+'&s='+(new Date()).getTime();requestSvc('bookmarkJs',url,'processLoginRes');return false;}
function processLoginRes(s){var _t=s.split('|');s=_t[0];eval("var oJson = "+s+";");var result=oJson.result;switch(result){case'success':onMmoUcLoginSuccess();startSynLogin(_t[1]);break;case'username_empty':showMmoLoginRes("Please input your username!");break;case'passwd_empty':showMmoLoginRes("Please input your password!");break;case'user_not_exist':showMmoLoginRes("This user do not exist!");break;case'passwd_error':showMmoLoginRes("Password error!");break;default:break;}
return false;}
function startSynLogin(_in){var _middle=/"><\/script><script type="text\/javascript" src="/g;var _head=/<script type="text\/javascript" src="/g;var _tail=/"><\/script>/g;var _sScript=_in.replace(_middle,'|').replace(_tail,'').replace(_head,'');var _a=_sScript.split('|');var _l=_a.length;for(var i=0;i<_l;i++){requestSvc('l'+i,_a[i]);}
return;}
function showMmoLoginRes(msg,warm){if('undefined'==typeof(warm)){warm=true;}
var obb=document.getElementById('loginResMsg');if(warm){obb.innerHTML='<br><font color="red">'+msg+'</font>';}else{obb.innerHTML='<br><font color="green">'+msg+'</font>';}}
function onMmoUcLoginSuccess(){showMmoLoginRes('success!',false);setTimeout("closeMmoLoginDiv()",2000);setTimeout("addToBookmark()",2200);}
function closeMmoLoginDiv(){document.getElementById('mmoLoginDiv').style.display='none';}
function usersignIn(){window.location.href="http://accounts.mmosite.com/port/login.php?url="+window.location.href;}
function showMmoLoginDiv(){try{var inner='';var oLoginDiv=document.getElementById('mmoLoginDiv');inner+='<div class="winbox_bg" id="winbox_bg"></div><div class="winbox_main" id="winbox_main"><div class="winbox_close" title="click to close" onclick="closeMmoLoginDiv();"></div><form method="" action="" onSubmit="return mmoUcLoginUser();">';inner+='<div class="win_tit">Login</div><div class="win_con"><table width="100%" border="0" cellspacing="0" cellpadding="0">';inner+='<td colspan="2" class="notice">Please sign in for mmosite, and click this button again for adding to Your Bookmark :)<br /><br />';inner+='</td>';inner+='<tr>';inner+='<td colspan="2" align="center"><input name="submit" type="button" onclick="usersignIn();" value="Sign in" title="Sign in" class="btn_yellow">   <input name="submit" type="button" value="Cancel" onclick="closeMmoLoginDiv();" class="btn_gray"></td>';inner+='</tr>';inner+='</tr>';inner+='</table>';inner+='</form><div class="clear"></div></div>';if(!oLoginDiv){var clientWidth=document.body.clientWidth;var pmwidth=340;var pmheight=180;oLoginDiv=document.createElement("div");oLoginDiv.id="mmoLoginDiv";oLoginDiv.style.width=pmwidth+'px';oLoginDiv.style.height=pmheight+'px';oLoginDiv.style.left=((clientWidth-pmwidth)/2)+'px';oLoginDiv.style.position='absolute';oLoginDiv.className="winbox";oLoginDiv.style.zIndex='999';document.body.appendChild(oLoginDiv);oLoginDiv.innerHTML=inner;document.getElementById("winbox_bg").style.width=pmwidth+"px";document.getElementById("winbox_bg").style.height=pmheight+"px";if(document.compatMode=="BackCompat"&&navigator.userAgent.indexOf("MSIE")>0){document.getElementById("winbox_main").style.width=pmwidth-20+"px";}else{document.getElementById("winbox_main").style.width=pmwidth-40+"px";}
document.getElementById("winbox_main").style.height=pmheight-20+"px";}else{oLoginDiv.style.display='block';}}catch(err){alert("bookmark.js:showCatsDiv"+" | "+err.description);}}
function addToBookmark(){try{url=gSvcUrl+'&action=get_bcs&s='+(new Date()).getTime();requestSvc('bookmarkJs',url,'processGetBcs');}catch(err){alert("bookmark.js:addToBookmark"+" | "+err.description);}}
function processGetBcs(s){var sJson=s.toString();eval("var oJson = "+sJson+";");if('not_logged'==oJson.result){showMmoLoginDiv();return;}else if('success'==oJson.result){var len=oJson.aCatsOptions.length;var sCatsOptions='';sCatsOptions+='<option  value="0">Default</option>';for(var i=0;i<len;i++){sCatsOptions+='<option value="'+oJson.aCatsOptions[i].bc_id+'" >'+oJson.aCatsOptions[i].bc_name+'</option>';}
showBookmarkDiv(sCatsOptions);}else{alert('error occured');}}
function doAddToBookmark(){try{var oCat=document.getElementById('bm_cid');var url=gSvcUrl;url+='&action=add_bookmark';url+='&bm_name='+document.getElementById('bm_name').value;url+='&bm_url='+document.getElementById('bm_url').value;url+='&bm_desc='+document.getElementById('bm_desc').value;url+='&bm_cid='+document.getElementById('bm_cid').value;url+='&bm_cname='+oCat.options[oCat.selectedIndex].text,url+='&s='+(new Date()).getTime();requestSvc('bookmarkJs',url,'processAddBookmark');return false;}catch(err){alert("bookmark.js:doAddToBookmark"+" | "+err.description);}}
function processAddBookmark(s){var sJson=s.toString();eval("var oJson = "+sJson+";");if('not_logged'==oJson.result){}else if('success'==oJson.result){alert("success");document.getElementById('bookmarkDiv').style.display='none';}else if('allready_exist'==oJson.result){alert("this bookmark has been added before");}else{alert('error occured');}}
function showBookmarkDiv(sCatsOptions){try{var inner='';var oBookmarkDiv=document.getElementById('bookmarkDiv');inner+='<div class="winbox_bg" id="winbox_bg2"></div><div class="winbox_main" id="winbox_main2"><div class="winbox_close" title="click to close" onclick="document.getElementById(\'bookmarkDiv\').style.display = \'none\';"></div><form action="" method="POST" onsubmit="return doAddToBookmark();">';inner+='<div class="win_tit">Bookmark</div><div class="win_con"><div class="title_left">Name: </div><input  type="text" id="bm_name" name="bm_name" value="'+document.title+'" size="55"/> </br>';inner+='<div class="title_left">Address: </div><input type="text" id="bm_url" name="bm_url" value="'+gCurPageUrl+'" size="55"/> </br>';inner+='<div class="title_left">Category: </div>';inner+='<select id="bm_cid">';inner+=sCatsOptions;inner+='</select>';inner+='</br>';inner+='<div id="adding_cat" style="display: none;">';inner+='Maximum of 50 characters<br><input id="cat_name" type="text" />';inner+='<input type="button" onclick="submitAddCat();" value="Create"/>';inner+='<a href="javascript: cancelCat();">Cancel</a>';inner+='</div>';inner+='<div id="add_cat">';inner+='<a href="javascript: addCat();">Create category</a>';inner+='</div>';inner+='Description:<br><textarea id="bm_desc" rows="5" cols="30" name="bm_desc"></textarea>';inner+='<span id="bm_msg" style="display:block"></span>';inner+='<input type="submit"  name="submit" value="Confirm" class="btn_yellow"/> ';inner+='<input type="button"  name="cancel" value="cancel" onclick="document.getElementById(\'bookmarkDiv\').style.display = \'none\';" class="btn_gray"/>';inner+='</form><div class="clear"></div></div>';if(!oBookmarkDiv){var clientWidth=document.body.clientWidth;var pmwidth=470;var pmheight=420;oBookmarkDiv=document.createElement("div");oBookmarkDiv.id="bookmarkDiv";oBookmarkDiv.className="winbox";oBookmarkDiv.style.width=pmwidth+'px';oBookmarkDiv.style.height=pmheight+'px';oBookmarkDiv.style.left=((clientWidth-pmwidth)/2)+'px';oBookmarkDiv.style.position='absolute';oBookmarkDiv.style.zIndex='999';document.body.appendChild(oBookmarkDiv);oBookmarkDiv.innerHTML=inner;document.getElementById("winbox_bg2").style.width=pmwidth+"px";document.getElementById("winbox_bg2").style.height=pmheight+"px";if(document.compatMode=="BackCompat"&&navigator.userAgent.indexOf("MSIE")>0){document.getElementById("winbox_main2").style.width=pmwidth-20+"px";}else{document.getElementById("winbox_main2").style.width=pmwidth-40+"px";}
document.getElementById("winbox_main2").style.height=pmheight-20+"px";}else{oBookmarkDiv.style.display='block';}}catch(err){alert("bookmark.js:showCatsDiv"+" | "+err.description);}}
function addCat(){document.getElementById('adding_cat').style.display='block';document.getElementById('add_cat').style.display='none';}
function cancelCat(){document.getElementById('adding_cat').style.display='none';document.getElementById('add_cat').style.display='block';}
function submitAddCat(){var sCatName=document.getElementById('cat_name').value.trim();if(''==sCatName){showCatTip('Please input category name!');return;}
url=gSvcUrl+'&action=add_bc&bc_name='+sCatName+'&s='+(new Date()).getTime();requestSvc('bookmarkJs',url,'processAddBc');}
function processAddBc(s){var sJson=s.toString();eval("var oJson = "+sJson+";");switch(oJson.result.trim()){case'success':addCatOption('bm_cid',oJson.catId,oJson.catName);cancelCat();setSelectByVal(document.getElementById('bm_cid'),oJson.catId);break;case'param_error':showCatTip('parameter error!');return;break;case'allready_exist':showCatTip('this category name is allready exist!');return;break;case'error':showCatTip('operation failed!');return;break;default:showCatTip('operation failed!');return;break;}}
function addCatOption(sltId,catId,catName){var oSelect=document.getElementById(sltId);var oOption;oOption=document.createElement('option');oOption.value=catId;oOption.text=catName;oSelect.options.add(oOption);}
function showCatTip(msg,warm){if('undefined'==typeof(warm)){warm=true;}
var obb=document.getElementById('bm_msg');if(warm){obb.innerHTML='<font color="red">'+msg+'</font>';}else{obb.innerHTML='<font color="green">'+msg+'</font>';}}
function loadUserInfo(){var hot=[["MMOsite Playxpert","http://www.mmosite.com/coop/playxpert/"],["Writers Recruiting","http://news.mmosite.com/content/2009-05-05/20090505195000100.shtml"],["New Game Frontier","http://news.mmosite.com/specials/newgames/"]];function MMOtopStyle(){var str='<style type="text/css">';str+='#mmo_top{  background: url(http://images.mmosite.com/news/images/2009v2/mmo_top_bg.gif) repeat-x; width:100%;height:35px;  font-size:11px}';str+=' .mmo_top_bg{background: url(http://images.mmosite.com/news/images/2009v2/mmo_top_bg.gif) repeat-x; margin:0 auto; width:1002px; height:35px}';str+=' .mmo_top_con{background:url(http://images.mmosite.com/news/images/2009v2/mmo_top_ico.gif) no-repeat; height:35px;overflow:hidden;}';str+=' .mmo_top_con a{ color:#cfbd9a}';str+=' .mmo_top_con a:hover{ color:#ffd1a2}';str+=' .mmo_hot{ float:left; line-height:33px; width:370px; overflow:hidden; white-space:nowrap  }';str+=' .mmo_hot li{ float:left; padding:0 6px 0 8px; background:url(http://images.mmosite.com/news/images/2009v2/mmo_top_bg.gif) no-repeat left -35px;}';str+=' .sign{ float:right; line-height:33px; padding:0 5px 0 0;}';str+=' .sign dt{ float:left; line-height:33px; font-weight:bold;   margin:0 10px 0 0;white-space:nowrap; overflow:hidden; text-overflow:ellipsis; width:120px}';str+=' .sign dt a{background:url(http://images.mmosite.com/news/images/2009v2/mmo_top_ico.gif) no-repeat 0 -496px;padding:3px 0 3px 20px; color:#FFC;}';str+=' .sign dd{ float:left;background:url(http://images.mmosite.com/news/images/2009v2/mmo_top_ico.gif) no-repeat right -77px;  padding:0 10px 0 0}';str+=' .sign dd span{background:url(http://images.mmosite.com/news/images/2009v2/mmo_top_ico.gif) no-repeat 0 -40px; display:block; padding:0 0 0 10px}';str+=' .sign dd a{ padding:2px 5px 2px 22px}';str+='  .user_1{ background:url(http://images.mmosite.com/news/images/2009v2/mmo_top_ico.gif) no-repeat 0 -180px }';str+='  .user_2{ background:url(http://images.mmosite.com/news/images/2009v2/mmo_top_ico.gif) no-repeat 0 -222px }';str+='  .user_3{ background:url(http://images.mmosite.com/news/images/2009v2/mmo_top_ico.gif) no-repeat 0 -261px }';str+='  .user_4{ background:url(http://images.mmosite.com/news/images/2009v2/mmo_top_ico.gif) no-repeat 5px -304px }';str+='  .user_5{ background:url(http://images.mmosite.com/news/images/2009v2/mmo_top_ico.gif) no-repeat 4px -343px }';str+='  .user_6{ background:url(http://images.mmosite.com/news/images/2009v2/mmo_top_ico.gif) no-repeat 4px -381px }';str+='  .user_7{ font-weight:bold; text-decoration:underline }';str+='  .btn_signin, .btn_signup{ float:left; display:block; background:url(http://images.mmosite.com/news/images/2009v2/mmo_top_ico.gif) no-repeat 0 -120px; width:63px; height:19px; overflow:hidden; text-indent:-900em; margin:6px 6px 0 0}';str+='  .btn_signup{ background-position:-63px -120px}';str+='  .btn_signin:hover{ background-position:0 -140px}';str+='  .btn_signup:hover{ background-position:-63px -140px}';str+='</style>';return str;}
function MMOtopHtml(){var str="";str+='<div id="mmo_top" >';str+='  <div class="mmo_top_bg">';str+='    <div class="mmo_top_con">';str+='      <ul class="mmo_hot">';for(var i=0;i<hot.length;i++){str+='<li><a href="'+hot[i][1]+'" title="'+hot[i][0]+'">'+hot[i][0]+'</a></li>';}
str+='      </ul>';str+='      <div class="sign" id="signbox"></div>';str+='    </div>';str+='  </div>';str+='</div>';str+='<script type="text/javascript">showMmoUserInfo();</script>';return str;}
document.write(MMOtopStyle()+MMOtopHtml());}
function UE_MmoNav(){var _dl=[{dt:'immosite|http://my.mmosite.com/blog/',dd:['Blog Articles|http://my.mmosite.com/blog/?controller=channel&action=articles','Albums|http://my.mmosite.com/blog/?controller=channel&action=myalbums','Players|http://my.mmosite.com/blog/?controller=channel&action=player']},{dt:'Download|http://download.mmosite.com/',dd:['Client|http://download.mmosite.com/down_search.php?stype=1','Patch|http://download.mmosite.com/down_search.php?stype=2','Torrent|http://bt.mmosite.com/']},{dt:'Feature|http://feature.mmosite.com/',dd:['Hot Topics|http://feature.mmosite.com/topic/index.shtml','Upcoming games|http://feature.mmosite.com/upcoming_onlinegame/']},{dt:'Forum|http://forum.mmosite.com/',dd:['New game discussion|http://forum.mmosite.com/list.php?id=143&sid=144','General discussion|http://forum.mmosite.com/list.php?id=53&sid=54','Aion section|http://forum.mmosite.com/list.php?id=244&sid=245#tl_top']},{dt:'Gamelist|http://gamelist.mmosite.com/',dd:['Closed beta games|http://gamelist.mmosite.com/status/closed_beta.shtml','Open beta games|http://gamelist.mmosite.com/status/open_beta.shtml','Free games|http://gamelist.mmosite.com/expense/free.shtml']},{dt:'News|http://news.mmosite.com/',dd:['New game frontier|http://news.mmosite.com/2009/gamenews/','Tidbit|http://news.mmosite.com/tidbit/','Photo news|http://photo.mmosite.com/recommend','Video news|http://news.mmosite.com/videonews/','Writer club|http://news.mmosite.com/writerclub/']},{dt:'Photo|http://photo.mmosite.com/',dd:['Screenshots|http://photo.mmosite.com/screenshots/','Wallpapers|http://photo.mmosite.com/wallpapers/','Fan Arts|http://photo.mmosite.com/arts/','Comics|http://photo.mmosite.com/comic/','Cosplay|http://photo.mmosite.com/cosplay/']},{dt:'Shop|https://shop.mmosite.com/',dd:['Gold to goods|https://shop.mmosite.com/product/mmogold.html','Dollar to goods|https://shop.mmosite.com/product/index.html','Gold guide|https://accounts.mmosite.com/gold/guidebook/index.html']},{dt:'Answer|http://answer.mmosite.com/',dd:['Query cafe|http://answer.mmosite.com/querycafe.php','Gamepedia|http://answer.mmosite.com/dic/']},{dt:'My profile|http://accounts.mmosite.com/',dd:[]},{dt:'Contest|http://contest.mmosite.com/',dd:[]},{dt:'Database|http://db.mmosite.com/',dd:[]},{dt:'Tag|http://tag.mmosite.com/',dd:[]},{dt:'Video|http://video.mmosite.com/',dd:[]},{dt:'Search|http://search.mmosite.com/',dd:[]},{dt:'Vote|http://vote.mmosite.com/',dd:[]},{dt:'Top100|http://top100.mmosite.com/',dd:[]},{dt:'Help|http://help.mmosite.com/',dd:[]},{dt:'Company|http://company.mmosite.com/',dd:[]},{dt:'Mobile|http://m.mmosite.com/sample/index.shtml',dd:[]}];var _mainmenu=['0|Home|http://www.mmosite.com/','0|immosite|http://my.mmosite.com/','0|News|http://news.mmosite.com/','0|Gamelist|http://gamelist.mmosite.com/','0|Download|http://download.mmosite.com/','0|Forum|http://forum.mmosite.com/','0|Answer|http://answer.mmosite.com/','0|Photo|http://photo.mmosite.com/','0|Video|http://video.mmosite.com/','0|Contest|http://contest.mmosite.com/','0|Feature|http://feature.mmosite.com/'];function doDiv(pChannel){var str='';str+='<ul>';var exsit=0;for(var i=0;i<_mainmenu.length;i++){var m=_mainmenu[i].split("|");if(pChannel.toLowerCase()==m[1].toLowerCase()){exsit=1;break;}}
if(exsit==0)
_mainmenu[_mainmenu.length-1]='0|'+pChannel+'|/';for(var i=0;i<_mainmenu.length;i++){var m=_mainmenu[i].split("|");if(pChannel.toLowerCase()==m[1].toLowerCase())
str+='<li class="on">';else
str+='<li>';str+='<a href="'+m[2]+'"><span>'+m[1]+'</span>';if(m[0]=="h")
str+='<strong class="mmo_ico_hot"></strong>';if(m[0]=="n")
str+='<strong class="mmo_ico_new"></strong>';str+='</a></li>';}
str+='   <li class="mmo_nav_more" onmouseover="document.getElementById(\'winbox\').className=\'mmo_winbox_on\'" onmouseout="document.getElementById(\'winbox\').className=\'mmo_winbox\'"><span>more</span></li>';str+='</ul>';str+='<div id="winbox" class="mmo_winbox more_service" onMouseOver="document.getElementById(\'winbox\').className=\'mmo_winbox_on\'" onMouseOut="document.getElementById(\'winbox\').className=\'mmo_winbox\'">'
str+='  <div class="mmo_win_tit1">'
str+='    <h4>mmosite services</h4>'
str+='    <a href="javascript:void(0)" onClick="document.getElementById(\'winbox\').className=\'mmo_winbox\'">close</a> </div>'
str+='  <div class="mmo_win_con">'
var more_str='';var k=0,f=1;for(var i=0;i<_dl.length;i++){more_str+='<dl>';more_str+='  <dt><a href="'+_dl[i].dt.split("|")[1]+'">'+_dl[i].dt.split("|")[0]+'</a></dt>';more_str+='  <dd>';for(var j=0;j<_dl[i].dd.length;j++)
more_str+=' <a href="'+_dl[i].dd[j].split("|")[1]+'">'+_dl[i].dd[j].split("|")[0]+'</a> ';more_str+='  </dd>';more_str+='</dl>';if(k==3){more_str='<ul><li>'+more_str+'</li></ul>';str+=more_str;more_str='';k=0;}else{k++;}
if(f==_dl.length&&k!=0)
str+='<ul><li>'+more_str+'</li></ul>';f++;}
str+='  <div class="mmo_more_logo"><a href="http://www.twitter.com/mmosite " class="mmo_logo_twitter" target="_blank">twitter</a><a href="http://www.twitter.com/mmosite" target="_blank">follow mmosite on twitter</a><br class="clear" />';str+='    </div>';str+='  </div>';str+='  <div class="mmo_win_btm1"></div>';str+='</div>';document.write(str);}
this.nowChannel=function(pChannel){if(pChannel==null)return;doDiv(pChannel);}
function init(){}}
var mmonav=new UE_MmoNav();function UE_Table(){var self=this;var o,on,off,table1,type;function $(id){return document.getElementById(id);}
function setListener(){var tr=table1.getElementsByTagName("tr");var pre_cname;for(var i=0;i<tr.length;i++){tr[i].onmouseover=function(){pre_cname=this.className;this.className=on;};tr[i].onmouseout=function(){this.className=pre_cname;};}}
function setTable(){var tr=table1.getElementsByTagName("tr");for(var i=0;i<tr.length;i++){if(type==0&&(i%2)==0){tr[i].className=off;}else if(type==1&&(i%2)==1){tr[i].className=off;}}}
this.init=function(tableid1,off1,on1,type1){on=on1;off=off1;type=type1;table1=$(tableid1).getElementsByTagName("table")[0];setTable();setListener();}}
function o_input(){var self=this;var o,pre_v,first_v,btn;var methodname;function $(id){return document.getElementById(id);}
function doFocus(){if(o.value==pre_v){o.value="";}}
function doBlur(){if(o.value==""){o.value=pre_v;}}
function appendEvent(){if(o.value==pre_v){alert(pre_v);return false;}else{addNewEvent(methodname);}}
function addNewEvent(newmethodname){if(document.all){btn.attachEvent("onclick",function(){eval(newmethodname+"()");});}else{btn.addEventListener("click",function(){eval(newmethodname+"()");},false);}}
this.newMethod=function(newmethodname){methodname=newmethodname;appendEvent();}
this.init=function(inputid,txt_v,input_btnid){o=$(inputid);pre_v=txt_v;o.value=txt_v;o.onfocus=doFocus;o.onblur=doBlur;btn=$(input_btnid);addNewEvent("appendEvent");}}