GD.enviroment.set("preBGImg",{});var g_mallCart=null;Eagle.shop={reg:/[4AE]/,maxAmout:40,currentItems:[],exclusiveItems:[],_firstLoadSkin:true,isFlashPlayed:false,_interface:{2:["_changeSkin","_resetSkin"],3:["_changeTitleSkin","_resetTitleSkin"],4:["_changeMenu","resetDefaultMenu"],5:["_showWelcomeFlash","_removeWelcomFlash"],6:["_addMusicPlayer","_removeMusicPlayer"],A:["_addDDItem","_removeDDItem"],B:["_floatItem","_removeFloatItem"],C:["_mouse","_removeMouse"],E:["_addDDItem","_removeDDItem"]},add:function(c,b){if(this.getItemsLen()>=this.maxAmout){GD.showInfo("最多只允许使用"+this.maxAmout+"个装饰");return;}if(this._interface[c.type]){var a=this[this._interface[c.type][0]];a.apply(this,[c,b]);}if(Eagle.initShopItem.inited){Eagle.space.setEditFlag();}this.setAmout();},remove:function(c,b){if(this._interface[c.type]){var a=this[this._interface[c.type][1]];a.apply(this,[c,b]);}if(Eagle.initShopItem.inited){Eagle.space.setEditFlag();}this.setAmout();},setAmout:function(){if(Eagle.customBody&&Eagle.customBody.toolBar){Eagle.customBody.toolBar.setDecorateAmout();}},getItemsLen:function(){return this.currentItems.length+this.exclusiveItems.length;},initItems:function(){if(this.getItemsLen()===0){Eagle.shop.currentItems=GD.objectClone(userConfig.Dressup.items);Eagle.shop.exclusiveItems=GD.objectClone(userConfig.Dressup.singletonItems);}},getUseItems:function(a){this.initItems();return Eagle.shop.reg.test(a)?this.currentItems:this.exclusiveItems;},setItem:function(b,d,e,a){var c=this.getItem(b,d);if(c){c=GD.objectClone(c);GD.$extend(c,e);return c;}else{return null;}},getItem:function(c,d,a){a=a||this.getUseItems(c);for(var b=0;b<a.length;b++){if(a[b]["type"]==c){if(!d||(d&&d==a[b]["itemno"])){return a[b];}}}return null;},removeItem:function(c,d,a){a=a||this.getUseItems(c);for(var b=0;b<a.length;b++){if(a[b]["type"]==c){if(!d||(d&&a[b]["itemno"]==d)){a.splice(b,1);return;}}}},replaceItem:function(c,d,a){a=a||this.getUseItems(c);for(var b=0;b<a.length;b++){if(a[b]["type"]==c){a.splice(b,1,d);return;}}a.push(d);},_changeSkin:function(b,a){if(!this._firstLoadSkin){GD.showInfo("正在设置,请稍候...",600);}this.replaceItem(2,b);this._doChangeSkin(b);},_resetSkin:function(){var a=Eagle.getDressup.getItem(2);this.add(a);},getType:function(a){var b={g:"gif",j:"jpg",p:"png",s:"swf",a:"ani"};return b[a];},_doChangeSkin:function(d){var f=GD.enviroment.get("preBGImg"),a=$("#contentBody"),e=$(document.body);try{f.bg.onload=null;f.bg=null;}catch(b){}if(d.itemno!=2){var c=d.i||Eagle.shop._getItemUrl("orig",d.itemno,Eagle.shop.getType(d.ft)||"jpg");f.bg=new Image();f.bg.onload=function(){a.removeClass("home_mainbg");e.removeClass("home_bodybg");a.get(0).style.cssText="";e.get(0).style.cssText="";var g=Eagle.defaultConfig;a.css("background-image","url("+c+")");a.css({"background-attachment":g.BGAttach[Eagle.getDressup.getBGScroll()||0]});a.css({"background-position":g.BGPosition[d.p||2]});a.css({"background-repeat":g.BGRepeat[(d.v==0?0:1)]});if(d.b){if(d.b=="_bg"){e.css("background-image","url("+Eagle.shop._getItemUrl("orig",d.itemno,"jpg",d.b)+")");e.css({"background-attachment":g.BGAttach[Eagle.getDressup.getBGScroll()||0]});e.css({"background-position":"center"});e.css({"background-position":"0px"});}else{if(/^#/.test(d.b)){e.css({"background-color":d.b});}}}};f.bg.src=c;}else{a.get(0).style.cssText="";e.get(0).style.cssText="";a.addClass("home_mainbg");e.addClass("home_bodybg");a.css({"background-attachment":Eagle.defaultConfig.BGAttach[Eagle.getDressup.getBGScroll()||0]});}this._firstLoadSkin=false;},_changeTitleSkin:function(e,c){this.replaceItem(3,e);var f=GD.enviroment.get("preBGImg");try{f.titleBar.onload=null;f.titleBar=null;}catch(b){}var d=$("#titleBar");isIE6?$("#_ie6PNGTitle").remove():"";if(e.itemno==101){d.removeClass("home_titlebg");d.css({"background-image":"none",height:Eagle.defaultConfig.TitleHeight.opacityHeight,"background-color":""});}else{if(e.itemno!=3){d.removeClass("home_titlebg");var a=e.i||Eagle.shop._getItemUrl("orig",e.itemno,Eagle.shop.getType(e.ft)||"png");f.titleBar=new Image();f.titleBar.onload=function(){f.titleBar.onload=null;var l=f.titleBar.height;var g=Eagle.defaultConfig;var k=g.TitleHeight;l=Math.min(k.maxHeight,Math.max(l,k.minHeight));d.css({"background-position":g.BGPosition[e.p||1]});d.css({"background-repeat":g.BGRepeat[e.v||0]});d.css({"background-color":e.b||""});d.css({height:l});if(isIE6&&/\.png$/.test(a)){var j=GD.$CE("div");j.id="_ie6PNGTitle";d.css({"background-image":""});$(j).css({"z-index":"-1",top:"0px",position:"absolute",width:"100%",height:l,filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true , sizingMethod='crop', src='"+a+"')"});d.get(0).appendChild(j);}else{d.css({"background-image":"url("+a+")",height:l});}};f.titleBar.src=a;}else{d.css({"background-image":"",height:"","background-color":""});d.addClass("home_titlebg");}}if(e.c&&/^#/.test(e.c)){d.css("color",e.c).find(">div>h1 a").css("color",e.c);}else{d.css("color","").find(">div>h1 a").css("color","");}},_resetTitleSkin:function(){this._changeTitleSkin(Eagle.getDressup.getItem(3));},_addDDItem:function(c,b){if(Eagle.shop.DDItem.items[c.itemno]){return;}c.x=c.x||0;c.y=c.y||0;var d=Eagle.shop._getItemUrl("orig",c.itemno,Eagle.shop.getType.ft||"gif");var a=new Eagle.shop.DDItem(c);a.init();a.onImageLoad=function(){if(!c.x&&!c.y){a.reSetXY();}if(b){a.notify();}a=null;};a.canHidden=Eagle.shop.reg.test(c.type);a.setXY(c.x,c.y);a.fillImage(d);this.currentItems.push(c);},_removeDDItem:function(a){if(a&&Eagle.shop.DDItem.items[a.itemno]){Eagle.shop.DDItem.items[a.itemno].unload();}},loadMusicURL:function(){if(Eagle.BGMusicURL){Eagle.shop.playBGMusic();}else{ajaxManager.add({type:"get",dataType:"xml",ifModified:spaceInfo.isSelf,url:spaceInfo.userPath+"/_bg_music.xml",success:function(b){if(b){var a=$(b).find("i>url").text();if(a){Eagle.BGMusicName=$(b).find("i>name").text();Eagle.BGMusicURL=a;Eagle.shop.playBGMusic();}}}});}},playBGMusic:function(){if(arguments.callee._timer){clearTimeout(arguments.callee._timer);arguments.callee._timer=null;}if(!Eagle.shop.isFlashPlayed){GD.navBar.setNavBGMusic(Eagle.BGMusicURL);}else{arguments.callee._timer=setTimeout(arguments.callee,500);}},_addMusicPlayer:function(a){this.replaceItem(a.type,a);this.loadMusicURL();},_removeMusicPlayer:function(a){GD.navBar.closeNavBGMusic();this.removeItem(a.type,a.itemno);Eagle.BGMusicName=Eagle.BGMusicURL=null;},_buildDefaultMenu:function(){if(!Eagle.topMenu){var a=Eagle.getMenuItems(userConfig.SimpleMenu||Eagle.SpaceTopMenu);a.autoRender=true;Eagle.topMenu=new SimpleMenu(null,null,a);Eagle.topMenu.setSelected(currentSubPage,"","current_2");}return Eagle.topMenu;},removeDefaultMenu:function(){if(Eagle.topMenu){var a=Eagle.topMenu.panelDom.parentNode,b=Eagle.topMenu.panelDom;b=a.removeChild(b);}return a;},defaultMenuStr:null,getMenuStr:function(){if(!this.defaultMenuStr){this.defaultMenuStr=encodeURI("xml_path=http://offres.9917.com/default/custom_menu.xml&json_str=["+Eagle.getFlashMenuItems()+"]");}return this.defaultMenuStr;},_changeMenu:function(d){var f=Eagle.shop.getItem(4);if(f&&Eagle.shop.DDItem.items[f.itemno]){Eagle.shop.DDItem.items[f.itemno].unload();}Eagle.shop.replaceItem(4,d);var b=new Eagle.shop.DDItem(d);var a=d.d=="Y"?"Y":"X";if(d.itemno>100){b.isFlash=true;b.canHidden=true;b.init();d.w=d.w||(a=="X"?528:100);d.h=d.h||(a=="X"?70:500);var e=Eagle.shop._getItemUrl("orig",d.itemno,Eagle.shop.getType.ft||"swf");var c=new SWFObject(e,"navFlash",d.w,d.h,"7","#ffffff");c.addParam("wmode","transparent");c.addParam("allowScriptAccess","always");c.addParam("quality","high");c.addParam("flashvars",this.getMenuStr());b.fillHtml(c.getSWFHTML());}else{this._buildDefaultMenu();b.isFlash=false;b.canHidden=true;b.init();b.fillHtml(Eagle.topMenu.panelDom);}if(!d.x||!d.y){this.resetMenuPosition(d.h,a,d);}else{this.resetMenuDirection(a,d);b.setXY(d.x,d.y);}b=null;},resetMenuDirection:function(a,d){var c=d||Eagle.shop.getItem(4);var e=Eagle.shop.DDItem.items[c.itemno];if(!Eagle.topMenu){return;}var b=$(Eagle.topMenu.panelDom.firstChild);if(a=="X"){b.removeClass("home_n_b");if(!e.isFlash){b.addClass("home_n_a");}}else{b.removeClass("home_n_a");if(!e.isFlash){b.addClass("home_n_b");}}},resetMenuPosition:function(l,f,b){var d=b||Eagle.shop.getItem(4);var k=Eagle.shop.DDItem.items[d.itemno];var g,e;f=f||d.d||"X";var j=$("#titleBar");j.removeClass("none");var m=GD.dom.getSize(GD$("customBody"));var a=GD.dom.getPosition(j.get(0));Eagle.shop.resetMenuDirection(f,d);if(f=="X"){try{l=l||k.isFlash?70:Eagle.topMenu.panelDom.offsetHeight;}catch(c){window.status="导航高度计算错误";l=70;}g=0-a.width/2+15;e=a.top+a.height-l-m[1]-11;}else{g=a.width/2+3;e=a.top+a.height+5-m[1];}k.setXY(g,e);},updateDefaultMenu:function(b){var a=b.d=="X"?"Y":"X";b.d=a;this.resetMenuPosition("",a,b);},resetDefaultMenu:function(c){var b=Eagle.getDressup.getItem(4);var a=c||Eagle.shop.getItem(4);if(b.itemno==a.itemno){Eagle.shop.resetMenuPosition("","",a);}else{Eagle.shop._changeMenu(b);}},setDefaultMenu:function(){GD.confirm("还原至初始导航后，所有栏目名称将恢复成系统<br/>默认；当您再次使用自定义导航，之前的设置仍<br/>可继续使用。","",function(){Eagle.shop._changeMenu({type:4,itemno:4,d:"X"});});},_showWelcomeFlash:function(b){if(this.isFlashPlayed){return;}this.isFlashPlayed=true;this.replaceItem(5,b);var e=Eagle.shop._getItemUrl("orig",b.itemno,Eagle.shop.getType.ft||"swf");var a=new SWFObject(e,"welFlash","1024","590","7","#ffffff");a.addParam("wmode","transparent");a.addParam("allowScriptAccess","always");a.addParam("quality","high");var d=GD.$CE("div");d.id="welDiv";d.style.textAlign="center";d.style.position="absolute";d.style.zIndex="300000";d.style.left="0px";d.style.backgroundColor="#fff";d.style.width="100%";d.style.display="block";var c=GD.$CE("div");c.id="welDivCover";c.style.width="100%";c.style.cursor="pointer";c.style.textAlign="center";c.style.position="absolute";c.style.zIndex="300001";c.style.left="0px";c.style.backgroundImage="url(http://x.9917.com/themes/img/icon/transparent.gif)";document.body.appendChild(c);document.body.appendChild(d);a.write("welDiv");this._resizeCenter();$(window).bind("scroll",Eagle.shop._resizeCenter);$(window).bind("resize",Eagle.shop._resizeCenter);if(Eagle.shop._wFlashTimeout){clearTimeout(Eagle.shop._wFlashTimeout);}Eagle.shop._wFlashTimeout=setTimeout(function(){Eagle.shop._closeWelcomeFlash();},20000);$(c).unbind("click",Eagle.shop._closeWelcomeFlash).bind("click",Eagle.shop._closeWelcomeFlash);if(typeof wSwf_obj_swf!="function"){window.wSwf_obj_swf=window.wSwf_obj_swf_s=window._closeWelcomeFlash=function(){Eagle.shop._closeWelcomeFlash();};}if(!GD.Browser.isChrome&&!GD.Browser.isSafari){document.documentElement.style.overflow="hidden";}a=d=c=null;},_resizeCenter:function(){var a=(GD.dom.getClientHeight()-590)/2;var c=GD$("welDiv"),b=GD$("welDivCover");if(c){var a=(GD.dom.getClientHeight()-590)/2;b.style.top=c.style.top=GD.dom.getScrollTop()+"px";b.style.height=c.style.height=GD.dom.getClientHeight()+"px";b.style.paddingTop=c.style.paddingTop=(a>0?a:"0")+"px";}},_closeWelcomeFlash:function(){window.wSwf_obj_swf=window.wSwf_obj_swf_s=window._closeWelcomeFlash=null;if(!Eagle.shop.isFlashPlayed){return false;}else{Eagle.shop.isFlashPlayed=false;}$("#welDiv").empty().remove();$("#welDivCover").empty().remove();if(Eagle.shop._wFlashTimeout){clearTimeout(Eagle.shop._wFlashTimeout);}$(window).unbind("scroll",Eagle.shop._resizeCenter);$(window).unbind("resize",Eagle.shop._resizeCenter);document.documentElement.style.overflow="";},_removeWelcomFlash:function(){this._closeWelcomeFlash();this.removeItem(5);},_mouse:function(a){this.removeItem("C");if(isIE){var b=Eagle.shop._getItemUrl("orig",a.itemno,Eagle.shop.getType.ft||"ani");document.body.style.cursor="url("+b+")";}this.replaceItem(a.type,a);},_removeMouse:function(a){this.removeItem("C");document.body.style.cursor="default";},resizeFloatContain:function(){this.nx=document.body.offsetWidth;this.ny=640;},_floatItem:function(b){this.resizeFloatContain();this._removeFloatItem();var c=parseInt(b.a||3,10);for(var a=0;a<8;a++){var d=Eagle.shop._getItemUrl("orig",b.itemno,Eagle.shop.getType.ft||"gif","_"+Math.floor(Math.random()*c+1));new this.floatItem(d);}this.replaceItem(b.type,b);},_removeFloatItem:function(){Eagle.shop.floatItem.unloadAll();this.removeItem("B");},_getItemUrl:function(b,c,a,d){b=b||"";d=d||"";var e="http://offres.9917.com/ornament/"+b+"/"+GD.PathParse(c,"decorate")+d+"."+a;return e;},getPreItemUrl:function(a){return this._getItemUrl("pre",a,"gif","_s");},getStyleId:function(){return userConfig.styleId;},getStyleUrl:function(){return"http://x.9917.com/themes/css/home/style/"+this.getStyleId()+"/1.css";},getDDItems:function(c){var d=GD$("floatItem").childNodes;var b=[];for(var a=0;a<d.length;a++){if(d[a].nodeType==1&&d[a].itemArgs){if(c){b.push(d[a].itemArgs);}else{b.push(this.getDDItemString(GD.objectClone(d[a].itemArgs),a));}}}return c?b:b.join(",");},getDDItemString:function(b,c){var a=[];b.x=Math.round(b.x||0);b.y=Math.round(b.y||0);b.z=c;a.push(b.type);a.push(b.itemno);delete b.type;delete b.itemno;delete b.ft;var d=this.getPropertyString(b);if(d){a.push(d);}return a.join("`");},getPropertyString:function(c){var a=[];if(c){for(var b in c){a.push(b+"="+c[b]);}}return a.join("&");},getItemString:function(c){var d=this.getItem(c,"",this.exclusiveItems),a=[];if(d){var b=GD.objectClone(d);a.push(b.type);a.push(b.itemno);delete b.type;delete b.itemno;delete b.ft;if(c==2){b.s=Eagle.getDressup.getBGScroll()||0;}var e=this.getPropertyString(b);if(e){a.push(e);}return a.join("`");}return null;},getDressupItems:function(c){var b=this.currentItems.concat(this.exclusiveItems),a=[],e=[];for(var g=0,d=b.length;g<d;g++){var k=GD.objectClone(b[g]);if(k.type!=k.itemno){var f=[];e.push(k);f.push(k.type);f.push(k.itemno);if(c){if(type==2){k.s=Eagle.getDressup.getBGScroll()||0;}delete k.itemno;delete k.type;f.push(this.getPropertyString(k));}a.push(f.join("`"));}}return{items:e,item_list:a.length?a.join(","):""};}};Eagle.shop.DDItem=function(a){Eagle.shop.DDItem.items[a.itemno]=this;Eagle.shop.DDItem.length++;this.args=a;this.mainElement=null;this.parentNode=GD$("floatItem");this.isFlash=false;this.onImageLoad=GD.emptyFn;};Eagle.shop.DDItem.items={};Eagle.shop.DDItem.length=0;Eagle.shop.DDItem.prototype.init=function(){this.mainElement=GD.$CE("div");this.mainElement.className="shop_item";this.mainElement.itemArgs=this.args;this.contentElement=GD.$CE("div");this.mainElement.appendChild(this.contentElement);this.parentNode.appendChild(this.mainElement);this._ready=true;var a=GD.enviroment.get("advCustom");if(a){this.activateDragdrop();}else{if(Eagle.shop.reg.test(this.args.type)){Eagle.shop.EnabledHidden.active(this);}}if(this.args.type==4){this._fnAfterHidden=function(c){var b=$("#a_show_nav");GD.runBox($(c.mainElement),b,null,function(){b.visible(true);},null,null,{top:GD$("customBody").offsetHeight});};}};Eagle.shop.DDItem.prototype.fillImage=function(c,b,a){this._img=new Image();this._img.onload=function(){this._img.onload=null;this.contentElement.innerHTML='<div><img src="'+this._img.src+'"/></div>';this._img=null;this.onImageLoad();}.bind(this);this._img.onerror=function(){this._img.onerror=null;this._img=null;}.bind(this);this._img.src=c;};Eagle.shop.DDItem.prototype.fillHtml=function(a){if(typeof a=="string"){this.contentElement.innerHTML=a;}else{if(GD.isElement(a)){this.contentElement.appendChild(a);}else{if(a&&a.jquery){this.contentElement.appendChild(a.get(0));}}}};Eagle.shop.DDItem.prototype.setXY=function(a,b){this.mainElement.style.left=a+"px";this.mainElement.style.top=b+"px";this.args.x=a;this.args.y=b;};Eagle.shop.DDItem.prototype.reSetXY=function(){var a=GD.dom.getSize(GD$("customBody"));var d=GD.dom.getScrollTop()-a[1];var c=GD.dom.getClientWidth();var b=c/2;this.setXY(-b,d<0?0:d);};Eagle.shop.DDItem.prototype.notify=function(){};Eagle.shop.DDItem.prototype.unload=function(){if(this.unActivateDragdrop&&this.drag){this.unActivateDragdrop();}delete Eagle.shop.DDItem.items[this.args.itemno];Eagle.shop.DDItem.length--;Eagle.shop.removeItem(this.args.type,this.args.itemno);GD.clearChildNodes(this.mainElement);$(this.mainElement).remove();if(!this.noInfoSet&&GD.enviroment.get("advCustom")){Eagle.space.setEditFlag();}for(var a in this){this[a]=null;}Eagle.shop.setAmout();};Eagle.shop.EnabledHidden=(function(){var a;return a={_timer:null,clearTimer:function(){if(a._timer){clearTimeout(a._timer);}},moveOver:function(b){if(!GD.enviroment.get("simCustom")){return;}a.clearTimer();a._timer=setTimeout(function(){a.showFloatTips(b);a.showHighlight(b,true);},100);},moveOut:function(b){a.clearTimer();a.hiddenTips(b);},hiddenTips:function(b){if(b){a.showHighlight(b,false);if(b.tips){$(b.tips).remove();b.tips=null;}}},active:function(b){$(b.mainElement).hover(function(c){a.moveOver(b);return false;},function(c){a.moveOut(b);return false;});b.canHidden=true;},unactive:function(b){$(b.mainElement).unbind("mouseenter").unbind("mouseleave").removeClass("none");a.hiddenTips(b);},hideFloatItem:function(b){$(b.mainElement).addClass("none");if(GD.isFunction(b._fnAfterHidden)){b._fnAfterHidden(b);}},showFloatTips:function(f){if(!f){return;}var e=GD.dom.getPosition(f.mainElement),d,g;e.top=e.top-GD.dom.getScrollTop();d=e.left+e.width>GD.dom.getClientWidth()?true:false;g=e.top<30?false:true;var b=GD.$CE("div");b.className="dragdrop_item_title";var c=GD.$CE("a");c.className="edit_title_link "+(d?"left":"right");c.href="javascript:;";c.innerHTML="隐藏";c.title="暂时隐藏";if(isIE6){b.style.width=GD.dom.getSize(f.mainElement)[0]+"px";}$(c).click(function(){a.hideFloatItem(f);return false;});b.style.position="absolute";b.appendChild(c);f.tips=b;f.mainElement.appendChild(f.tips);if(g){f.tips.style.bottom="auto";f.tips.style.top="-20px";}else{f.tips.style.bottom="-19px";f.tips.style.top="auto";}},showHighlight:function(c,b){if(!c){return;}var d=$(c.mainElement);if(b){d.addClass("dragdrop_item_highlight");if(c.tips){$(c.tips).visible(true);}}else{d.removeClass("dragdrop_item_highlight");if(c.tips){$(c.tips).visible(false);}}}};})();Eagle.shop.floatItem=function(a){this._s=Eagle.shop;this.x0=Math.floor(Math.random()*this._s.nx);this.y0=Math.floor(Math.random()*this._s.ny);this.xx=0.6;this.yy=1.5;this.img=new Image();this.img.onload=(function(b){return function(){b.img.onload=null;b.run();b=null;};})(this);this.img.src=a;this.timer;Eagle.shop.floatItem.items.push(this);};Eagle.shop.floatItem.items=[];Eagle.shop.floatItem.prototype.run=function(){this.h=this.img.height;this.w=this.img.width;this.v=Math.round((10/this.h)*Math.random());this.p=1+Math.round((this.w/80)*Math.random());this.imgObject=GD.$CE("img");this.imgObject.style.position="absolute";this.imgObject.src=this.img.src;var a=GD$("floatContain");a.appendChild(this.imgObject);this.timer=window.setInterval(this._move.bind(this),100);};Eagle.shop.floatItem.prototype.unload=function(){this.img.onload=null;this.img=null;clearInterval(this.timer);$(this.imgObject).remove();for(var a in this){this[a]=null;}};Eagle.shop.floatItem.prototype._move=function(){with(this){x0=Math.floor(x0+Math.cos(y0/10)*p)+xx;y0+=v+yy;if(y0>this._s.ny+h||x0<-w*2||x0>this._s.nx+w){y0=-h*2;x0=Math.floor(Math.random()*this._s.nx);}imgObject.style.top=y0-h+"px";imgObject.style.left=x0-w+"px";}};Eagle.shop.floatItem.unloadAll=function(){for(i in Eagle.shop.floatItem.items){Eagle.shop.floatItem.items[i].unload();}Eagle.shop.floatItem.items=[];};Eagle.getDressup={getItem:function(d,e){var a;if(Eagle.shop.reg.test(d)){a=userConfig.Dressup.items;}else{a=userConfig.Dressup.singletonItems;}for(var c=0,b=a.length;c<b;c++){if(a[c]["type"]==d){if(e){if(e==a[c]["itemno"]){return GD.objectClone(a[c]);}}else{return GD.objectClone(a[c]);}}}return null;},BGItem:null,getBG:function(){if(!this.BGItem){this.BGItem=this.getItem(2);}return this.BGItem;},getBGScroll:function(){return this.getBG().s;},setBGScroll:function(a){this.getBG().s=a?1:0;}};