/*Request handled by WWW-2-105,9/4/2010 5:30:10 AM,13 ms,Not in cache */
/*Content generated by WWW-2-105,9/4/2010 5:30:10 AM,12 ms*/

/*http://images.5173cdn.com/5173/js/layer/layer31.js */

var UED={layer31:{openLayerID:"",thisID:"",currentlyLayerID:"",layerTitle:"",layerTitleID:"UED_TITLE_ID",layerContainer:"UED_lightbox",layerClose:2,noframe:0,init:function(){if(!document.getElementById("UED_iframe_overlay_v31")){var a=document.createElement("iframe");a.id="UED_iframe_overlay_v31";a.style.dispay="none";a.frameborder="0";a.src="about:blank";document.body.appendChild(a)}if(!document.getElementById("UED_overlay_v31")){a=document.createElement("div");a.id="UED_overlay_v31";document.body.appendChild(a)}},show:function(a){this.init();this.thisID=a.id;this.noframe=a.noframe;if(this.openLayerID){document.getElementById(this.openLayerID).style.display="none";this.openLayerID=""}this.layerContainer=a.layerContainer?a.layerContainer:"UED_lightbox";this.layerClose=a.close==0?0:2;var b=document.getElementById(this.layerContainer).style,c=document.getElementById(a.id).style;document.getElementById(a.id).style.display="block";b.display="block";b.height=a.height+31+"px";b.width=a.width+"px";b.marginLeft=-1*(a.width/2)+"px";c.width=a.width-2+"px";c.height=a.height-4+"px";if(window.XMLHttpRequest)b.marginTop=-1*(a.height/2)+"px";this.h2title(a.title);document.getElementById("UED_iframe_overlay_v31").style.display="block";document.getElementById("UED_overlay_v31").style.display="block";this.openLayerID=a.id},close:function(a){document.getElementById(this.openLayerID).style.display="none";document.getElementById(this.layerContainer).style.display="none";document.getElementById("UED_iframe_overlay_v31").style.display="none";document.getElementById("UED_overlay_v31").style.display="none";if(a===1)try{typeof call_back_win_js_alert_close()=="function"&&call_back_win_js_alert_close()}catch(b){}else try{typeof call_back_js_alert_close()=="function"&&call_back_js_alert_close()}catch(c){}},h2title:function(a){if(UED.layer31.noframe!=1){var b=document.createElement("div");b.id=this.layerTitleID;_tt=this.layerClose==0?'<h3 id="UED_layer_h3_v31"><span id="UED_layer_title_v31">'+a+"</span></h3>":'<h3 id="UED_layer_h3_v31"><a id="UED_layer_title_close_v31" class="UED_close_lightbox_v31" href="javascript:UED.layer31.close(1)"></a><span id="UED_layer_title_v31">'+
a+"</span></h3>";b.innerHTML=_tt;a=document.getElementById(this.layerContainer);if(a.getElementsByTagName("div")[0].id==this.layerTitleID)a.getElementsByTagName("div")[0].innerHTML=_tt;else a.insertBefore(b,a.childNodes[0])}}}};

/*Inline Script */

document.domain='5173.com';

/*http://images.5173cdn.com/5173/js/layer.js */

function uExist(a){return a!=null}function uRemoveNode(a){if(uExist(a))a.removeNode?a.removeNode(true):a.parentNode.removeChild(a)}function $uGet(a){return document.getElementById?document.getElementById(a):document.all[a]}function $uCreat(a){return document.createElement(a)}function $uHide(a){document.getElementById(a).style.display="none"}function $uShow(a){document.getElementById(a).style.display="block"}var tmp_overlay_lightbox_tmp_001,tmp_overlay_lightbox_hide_001;function close_ude_js_alert(a){id=tmp_overlay_lightbox_tmp_001;uRemoveNode($uGet("UED_overlay_heder_tmp_id_0044444"));$uHide("UED_overlay");$uHide("UED_lightbox");$uHide(id);if(!window.XMLHttpRequest)if(tmp_overlay_lightbox_hide_001)for(key in tmp_overlay_lightbox_hide_001)$uGet(tmp_overlay_lightbox_hide_001[key]).style.display="inline";else{var b=document.getElementsByTagName("select");for(i=0;i<b.length;i++)b[i].style.display="inline"}if(a==null)try{typeof call_back_null_js_alert_close()=="function"&&call_back_null_js_alert_close()}catch(c){}else if(a==1)try{typeof call_back_win_js_alert_close()=="function"&&call_back_win_js_alert_close()}catch(d){}else try{typeof call_back_js_alert_close()=="function"&&call_back_js_alert_close()}catch(e){}}
function ued_js_alert(a){$uShow("UED_overlay");$uShow("UED_lightbox");if(!a.title)a.title="title";tmp_overlay_lightbox_tmp_001=a.id;if(!a.width)a.width=400;if(!a.height)a.height=100;var b=$uGet("UED_lightbox").style;b.marginLeft=parseInt(a.width)/2*-1+"px";b.marginTop=parseInt(a.height)/2*-1+"px";b.width=parseInt(a.width)+"px";b.height=parseInt(a.height)+"px";if(!window.XMLHttpRequest){self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);$uGet("UED_overlay").style.width=document.documentElement.offsetWidth-
20+"px";$uGet("UED_overlay").style.height=document.documentElement.scrollHeight>document.documentElement.offsetHeight?document.documentElement.scrollHeight+"px":document.documentElement.offsetHeight-4+"px";b.marginTop=-$uGet("UED_lightbox").offsetHeight/2+100+"px";b.marginLeft=-$uGet("UED_lightbox").offsetWidth/2+"px";if(a.hide){tmp_overlay_lightbox_hide_001=a.hide;for(key in tmp_overlay_lightbox_hide_001)$uHide(tmp_overlay_lightbox_hide_001[key])}else{b=document.getElementsByTagName("select");for(i=0;i<b.length;i++)b[i].style.display="none";b=$uGet(a.id).getElementsByTagName("select");for(i=0;i<b.length;i++)b[i].style.display="inline"}}b=$uCreat("DIV");b.innerHTML='<h3 class="ued_js_alert_head"><a class="close_lightbox" href="javascript:close_ude_js_alert(1)"></a> '+a.title+" </h3>";b.id="UED_overlay_heder_tmp_id_0044444";$uGet("UED_lightbox").insertBefore(b,$uGet("UED_lightbox").childNodes[0]);if(a.id=="iframe_div"){document.domain="5173.com";$uGet(a.id).getElementsByTagName("iframe")[0].src=a.src;$uGet(a.id).getElementsByTagName("iframe")[0].height=a.height-31}$uShow(a.id)};

/*http://images.5173cdn.com/js/JScript/SearchBar/Version_3.05/searchbar42.js */

var gamelist=new Array;var _searchPopBool=false;var baseDomain=getCurrentlyDomain();if(!baseDomain)alert("\u975e5173\u7ad9\u70b9\u8c03\u7528");jQuery(function(){_loadGameNameData();setTimeout("initSearchGameName()",800);jQuery("body").bind("click",function(e){if(e.target==this)_hideSearchDiv()});jQuery("#searchGameName").click(function(){changShowHide("searchGameName")});jQuery("#searchGameNameFrame li a").click(function(){jQuery("#searchGameNameFrame li").removeClass("currert");jQuery(this).parent().addClass("currert");azSearchGameName(jQuery(this).html())});jQuery("#searchGameArea").click(function(){_searchPopBool=true;changShowHide("searchGameArea")});jQuery("#searchGameServer").click(function(){_searchPopBool=true;changShowHide("searchGameServer")});jQuery("#searchGameAllType").click(function(){_searchPopBool=true;changShowHide("searchGameAllType")});jQuery(".popup_layer_title .search_close").click(function(){_hideSearchDiv()})});function isUseProxy(baseDomain){if(!baseDomain)return false;if(baseDomain=="need.5173.com"||baseDomain=="dlc2c.5173.com"||baseDomain=="search.5173.com"||baseDomain=="mall.5173.com"||baseDomain=="complain.5173.com"||baseDomain=="message.5173.com")baseDomain="www.5173.com";return baseDomain}function filterProxyData(data){re=/\$\s*?<\!DOCTYPE[\s\S]*/ig;r=data.replace(re,"");return data.replace(re,"")}
function _loadGameNameData(){var dataUrl="/Controls/Common/Proxy.aspx?url="+encodeURIComponent("http://"+isUseProxy(baseDomain)+"/ajax.axd?methodName=GETALLGAMESDATAv3&IsGameID=false");var name="",type="",ii=0;jQuery.post(dataUrl,function(data){data=filterProxyData(data);data="history:"+g_history+";"+data;GT=data.split(";");for(key=0;key<GT.length;key++)if(GT[key]!=""){GN=GT[key].split(":");gamelist[key]={name:GN[0].toUpperCase(),list:[]};tmpGameName=GN[1];GameName=tmpGameName.split(",");for(key1 in GameName)if(GameName[key1]!=""){name=GameName[key1];tmpName=name.split("#");if(tmpName[2]=="h")hot=1;else hot=0;name=tmpName[1];type=tmpName[0];gamelist[key].list[key1]={name:name,type:type,url:name,hot:hot}}}})}
function _loadGameTypeData(){var dataUrl="/Controls/Common/Proxy.aspx?url="+encodeURIComponent("http://"+isUseProxy(baseDomain)+"/ajax.axd?methodName=GETBIZOFFERTYPEALLV3&gameType=offertypes");var name="",type="",ii=0;jQuery.post(dataUrl,function(data){var html="";html+="<dl><dd><a href=\"javascript:_selectAll('searchGameAllType','\u5168\u90e8\u5206\u7c7b')\">\u5168\u90e8\u5206\u7c7b</a></dd>";data=filterProxyData(data);if(data!=""){gameType=data.split("$");var id="";var name="";var idlist="";var namelist="";for(v in gameType)if(v%2==0)idlist+="__"+gameType[v];else namelist+="__"+gameType[v];id=idlist.split("__");name=namelist.split("__");for(key=1;key<id.length;key++)html+="<dd><a href=\"javascript:selectGameAllType('"+id[key]+"','"+name[key]+"')\">"+name[key]+"</a></dd>"}html+="</dl>";jQuery("#searchGameAllTypeFrame").html(html)})}
function initSearchGameName(){var _h=pHistoryGame();if(_h)jQuery("#searchGameNameFrameInline h2").html("\u5386\u53f2\u9009\u62e9\uff1a<a href=\"javascript:_selectAll('searchGameName','\u5168\u90e8\u6e38\u620f')\">\u5168\u90e8\u6e38\u620f</a><span>"+_h+"</span>");else jQuery("#searchGameNameFrameInline h2").html("\u8bf7\u9009\u62e9\u6e38\u620f<span>(\u70b9\u51fb\u6e38\u620f\u540d\u79f0\u9009\u62e9\u6e38\u620f)</span>\uff1a<a href=\"javascript:_selectAll('searchGameName','\u5168\u90e8\u6e38\u620f')\">\u5168\u90e8\u6e38\u620f</a>");azSearchGameName("\u70ed\u95e8\u6e38\u620f")}
function azSearchGameName(type){if(type=="\u70ed\u95e8\u6e38\u620f"){type="HOTG";_u="hotgame"}else if(type=="\u7f51\u9875\u6e38\u620f"||type=="\u53f0\u670d\u6e38\u620f"){type="WEBG";_u=""}else _u="";var html='<h3 class="az_'+type+'">&nbsp;</h3><ul class="'+_u+'">';if(type=="I"||type=="O"||type=="V")html+='<li class="ajax_note">\u8be5\u5b57\u6bcd\u4e0b\u6682\u65e0\u6e38\u620f</li>';else for(key in gamelist)if(gamelist[key].name==type)for(key1 in gamelist[key].list){if(gamelist[key].list[key1].hot==1)tmpclass='class="hot"';else tmpclass="";html+="<li><a "+tmpclass+' href="javascript:void 0" onclick="javascript:selectSearchGameName(\''+key1+"','"+key+"','"+gamelist[key].list[key1].name+'\')" title="'+gamelist[key].list[key1].name+'">'+gamelist[key].list[key1].type+" - "+gamelist[key].list[key1].name+"</a></li>"}html+="</ul>";jQuery("#azGamelistFrame").html(html)}
function selectSearchWebGameName(webGameName,webGameID){jQuery("#searchGameName").html(webGameName);jQuery("#searchGameNameFrame").hide();_selectAll("searchGameArea","\u5168\u90e8\u533a");_selectAll("searchGameServer","\u5168\u90e8\u670d");_hideSearchDiv()}
function selectSearchGameName(areakey,key,name){if(name=="Q\u5e01\u5145\u503c")searchVer31API.hideQCoinsResult();else searchVer31API.showQCoinsResult();jQuery("#searchGameAreaFrameInline h2").html("<h2>\u8bf7\u9009\u62e9\u6e38\u620f\u533a\uff1a<a href=\"javascript:_selectAll('searchGameArea','\u5168\u90e8\u533a')\">\u5168\u90e8\u533a</a></h2>");jQuery("#searchGameName").html(name);jQuery("#searchGameNameFrame").hide();jQuery("#searchGameArea").val("\u5168\u90e8\u533a");jQuery("#searchGameServer").val("\u5168\u90e8\u670d");jQuery("#searchGameAllType").val("\u5168\u90e8\u5206\u7c7b");jQuery("#"+ga_id).val("-1");jQuery("#"+gs_id).val("-1");jQuery("#"+tp).val("-1");jQuery("#searchGameArea").html("\u6e38\u620f\u533a");jQuery("#searchGameServer").html("\u6e38\u620f\u670d\u52a1\u5668");jQuery("#searchGameAllType").html("\u5168\u90e8\u5206\u7c7b");var dataUrl="/Controls/Common/Proxy.aspx?url="+encodeURIComponent("http://"+isUseProxy(baseDomain)+"/ajax.axd?methodName=GETIDBYGAMENAME&GameName="+encodeURI(name));jQuery.post(dataUrl,function(data){data=filterProxyData(data);if(data){loadSearchGameArea(data,name);loadSearchGameType(data)}else alert("\u6ca1\u53d1\u73b0\u6e38\u620fID")})}
function loadSearchGameArea(gameID,gameName){html="";jQuery("#"+gm_id).val(gameID);var dataUrl="/Controls/Common/Proxy.aspx?url="+encodeURIComponent("http://"+isUseProxy(baseDomain)+"/ajax.axd?methodName=games&gameType=GameAreas&tradingType=other&id="+gameID);jQuery.post(dataUrl,function(data){data=filterProxyData(data);html+="<h3>&nbsp;</h3><ul>";if(data!=""){gameArea=data.split("$");var id="";var name="";var idlist="";var namelist="";for(v in gameArea)if(v%2==0)idlist+="__"+gameArea[v];else namelist+="__"+gameArea[v];id=idlist.split("__");name=namelist.split("__");for(j=1;j<id.length;j++)html+="<li><a href=\"javascript:loadSearchGameServer('"+id[j]+"','"+name[j]+"')\" title='"+name[j]+"'>"+name[j]+"</a></li>"}html+="</ul>";jQuery("#getSearchGameArea").html(html)})}
function loadSearchGameServer(gameAreaID,name,auto){if(auto!="auto")jQuery("#"+gs_id).val("-1");jQuery("#searchGameServer").html("\u6e38\u620f\u670d\u52a1\u5668");jQuery("#searchGameServerFrameInline h2").html("<h2>\u8bf7\u9009\u62e9\u6e38\u620f\u670d\u52a1\u5668\uff1a<a href=\"javascript:_selectAll('searchGameServer','\u5168\u90e8\u670d')\">\u5168\u90e8\u670d</a></h2>");jQuery("#"+ga_id).val(gameAreaID);jQuery("#searchGameArea").html(name);jQuery("#searchGameAreaFrame").hide();var html="<h3>&nbsp;</h3><ul>";var dataUrl="/Controls/Common/Proxy.aspx?url="+encodeURIComponent("http://"+isUseProxy(baseDomain)+"/ajax.axd?methodName=games&gameType=GameServers&tradingType=other&id="+gameAreaID);jQuery.post(dataUrl,function(data){data=filterProxyData(data);if(data!=""){var id="";var name="";var idlist="";var namelist="";gameserver=data.split("$");for(v in gameserver)if(v%2==0)idlist+="__"+gameserver[v];else namelist+="__"+gameserver[v];id=idlist.split("__");name=namelist.split("__");for(key=1;key<id.length;key++)html+="<li><a href=\"javascript:selectSearchGameServer('"+id[key]+"','"+name[key]+'\')" title="'+name[key]+'">'+name[key]+"</a></li>"}html+="</ul>";jQuery("#getSearchGameServer").html(html)})}function selectSearchGameServer(serverid,servername){jQuery("#"+gs_id).val(serverid);jQuery("#searchGameServer").html(servername);jQuery("#searchGameServerFrame").hide()}
function loadSearchGameType(gameid){var dataUrl="/Controls/Common/Proxy.aspx?url="+encodeURIComponent("http://"+isUseProxy(baseDomain)+"/ajax.axd?methodName=GetOfferTypesByGameID&gameType=offertypes&gameid="+gameid);jQuery.post(dataUrl,function(data){var html="";html+="<dl><dd><a href=\"javascript:_selectAll('searchGameAllType','\u5168\u90e8\u5206\u7c7b')\">\u5168\u90e8\u5206\u7c7b</a></dd>";data=filterProxyData(data);if(data!=""){gameType=data.split("$");var id="";var name="";var idlist="";var namelist="";for(v in gameType)if(v%2==0)idlist+="__"+gameType[v];else namelist+="__"+gameType[v];id=idlist.split("__");name=namelist.split("__");for(key=1;key<id.length;key++)html+="<dd><a href=\"javascript:selectGameAllType('"+id[key]+"','"+name[key]+"')\">"+name[key]+"</a></dd>"}html+='</dl><iframe class="iframe_estop"></iframe>';jQuery("#searchGameAllTypeFrame").html(html)})}
function isTypeHideGameAreaServer(typeID){var dataUrl="/Controls/Common/Proxy.aspx?url="+encodeURIComponent("http://"+isUseProxy(baseDomain)+"/ajax.axd?methodName=BIZOFFERMBORJHCARDBYID&GameBizTypesID="+typeID);jQuery.post(dataUrl,function(data){alert(data);data=filterProxyData(data);if(data!=="false")searchVer31API.hideGameAreaGameServer();else searchVer31API.showGameAreaGameServer()})}
function selectGameAllType(id,name){jQuery("#"+tp).val(id);jQuery("#searchGameAllType").html(name);jQuery("#searchGameAllTypeFrame").hide()}
function _selectAll(id,val){if(id=="searchGameName"){jQuery("#"+gm_id).val("-1");init_area();init_server();init_type();jQuery("#searchGameAreaFrameInline h2").html("<h2>\u8bf7\u9009\u62e9\u6e38\u620f\u533a\uff1a<a href=\"javascript:_selectAll('searchGameArea','\u5168\u90e8\u533a')\">\u5168\u90e8\u533a</a></h2>");jQuery("#searchGameServerFrameInline h2").html("<h2>\u8bf7\u9009\u62e9\u6e38\u620f\u670d\u52a1\u5668\uff1a<a href=\"javascript:_selectAll('searchGameServer','\u5168\u90e8\u670d')\">\u5168\u90e8\u670d</a></h2>")}if(id=="searchGameArea"){jQuery("#"+
ga_id).val("-1");init_server();jQuery("#searchGameServerFrameInline h2").html("<h2>\u8bf7\u9009\u62e9\u6e38\u620f\u670d\u52a1\u5668\uff1a<a href=\"javascript:_selectAll('searchGameServer','\u5168\u90e8\u670d')\">\u5168\u90e8\u670d</a></h2>")}if(id=="searchGameServer")jQuery("#"+gs_id).val("-1");if(id=="searchGameAllType")jQuery("#"+tp).val("-1");jQuery("#"+id).html(val);changShowHide(id)}
function init_area(){html='<h3></h3><ul><li class="ajax_note">\u8bf7\u5148\u9009\u62e9\u6e38\u620f...</li></ul>';jQuery("#searchGameArea").html("\u5168\u90e8\u533a");jQuery("#getSearchGameArea").html(html);jQuery("#"+ga_id).val("-1")}function init_server(){var html='<h3></h3><ul><li class="ajax_note">\u8bf7\u5148\u9009\u62e9\u6e38\u620f\u533a...</li></ul>';jQuery("#searchGameServer").html("\u5168\u90e8\u670d");jQuery("#getSearchGameServer").html(html);jQuery("#"+gs_id).val("-1")}
function init_type(){var html="<dl><dt><a href=\"javascript:_selectAll('searchGameAllType','\u5168\u90e8\u5206\u7c7b')\">\u5168\u90e8\u5206\u7c7b</a></dt></dl>";jQuery("#searchGameAllType").html("\u5168\u90e8\u5206\u7c7b");jQuery("#searchGameAllTypeFrame").html(html)}function changShowHide(id){if(jQuery("#"+id+"Frame").css("display")=="none"){_hideSearchDiv();jQuery("#"+id+"Frame").show()}else jQuery("#"+id+"Frame").hide()}
function _hideSearchDiv(){jQuery("#searchGameNameFrame").hide();jQuery("#searchGameAreaFrame").hide();jQuery("#searchGameServerFrame").hide();jQuery("#searchGameAllTypeFrame").hide()}function pHistoryGame(){var t=g_history.split(",");var arrTmp=[];var html="";for(key in t){var v=t[key].split("#");if(v!=""){if(v[2])_t='class="hot"';else _t="";html=html+"<a "+_t+' href="javascript:void 0;" title="'+v[1]+'" onclick="selectSearchGameName(0,0,\''+v[1]+"')\">"+v[1]+"</a>"}}return html}
function _last_history_game(g){var t=g.split(",");if(t[0]!==""){var v=t[0].split("#");if(v[1])return v[1];return false}return false}function getCurrentlyDomain(){var _bd=window.location.href;re=/http\:\/\/(.*5173\.com)(.*)/i;_bd=_bd.match(re);if(_bd[1])return _bd[1];return false}function getUserRecords(hideID){var _tmp=jQuery("#"+hideID).val();return _tmp}
var searchVer31API={init:function(){},hideGameAreaGameServer:function(){this._hide_areas();this._hide_servers()},showGameAreaGameServer:function(){this._show_areas();this._show_servers()},hideQCoinsResult:function(){this._hide_areas();this._hide_servers();this._hide_gamebiztype()},showQCoinsResult:function(){this._show_areas();this._show_servers();this._show_gamebiztype()},_hide_areas:function(){jQuery(".search .select2").hide()},_hide_servers:function(){jQuery(".search .select3").hide()},_hide_gamebiztype:function(){jQuery(".search .select4").hide()},_show_areas:function(){jQuery(".search .select2").show()},_show_servers:function(){jQuery(".search .select3").show()},_show_gamebiztype:function(){jQuery(".search .select4").show()}};

/*http://images.5173cdn.com/5173/js/common_v30/footer_v30.js */

document.writeln(unescape("%3Cscript src='http://images001.5173cdn.com/js/fed-std/footer/v4.js' charset='utf-8' type='text/javascript'%3E%3C/script%3E"));
