var MINUTE_BUFFER=new Array();MINUTE_BUFFER.page=new Array();MINUTE_BUFFER.menu=new Array();MINUTE_BUFFER.pod=new Array();function Page(){if(MS_NewPage.id!=undefined){this.id=MS_NewPage.id}else{this.id=0}this.id=MINUTE_PAGE_in_process;if(MS_NewPage.properties!=undefined){this.properties=MS_NewPage.properties}else{this.properties={}}if(MS_NewPage.zones!=undefined){this.zones=MS_NewPage.zones}else{this.zones={}}if(MS_NewPage.blocks!=undefined){this.blocks=MS_NewPage.blocks}else{this.blocks={}}if(MS_NewPage.sizing!=undefined){this.sizing=MS_NewPage.sizing}else{this.sizing={}}if(MS_NewPage.role!=undefined){this.role=MS_NewPage.role}else{this.sizing={}}if(MS_NewPage.group!=undefined){this.group=MS_NewPage.group}else{this.sizing={}}if(MS_NewPage.uboxes!=undefined){this.uboxes=MS_NewPage.uboxes}else{this.uboxes={}}this.system=0;this.editable=true}Page.prototype.getZones=function(){var a=new Object();$(".groupWrapper").each(function(){var b=this.id;a[b]=new Array();$(this).children(".groupItem").each(function(){var c=this.getAttribute("podz_block_id");a[b].push(c.toString())})});this.zones=a;return a};Page.prototype.load=function(f,b){if(b!=true){b=false}if(f==undefined||f==null){f={id:null}}if(b==true){if($.browser.msie){}if(f==""){f={id:null}}else{if(!isObject(f)){if(f.substr(0,1)=="#"){f=f.substr(1)}f=JSON.parse(f)}}}else{}if(f.id!=undefined){if(PB_status=="designer"&&f.id!="designer"){return false}}$(".zone > .groupWrapper > div.groupItem[cmscommon=0]").animate({opacity:0},"fast","swing");if(PB_status!=null){if(PB_block_selected!=undefined&&PB_block_selected!=""){if(PBTool_Edit_MyStyles_Close){PBTool_Edit_MyStyles_Close()}}}if(f==undefined){f={id:null,menu:null,context:{}}}else{if(f.id==undefined){f.id=null}if(f.id==0){f.id=null}if(f.id==""){f.id=null}if(f.menu==undefined){f.menu=null}else{f.menu=parseInt(f.menu,10)}if(f.menu==0){f.menu=null}if(f.menu==""){f.menu=null}if(f.context==undefined){f.context={}}}this.pageObject=f;var g="";if(f.id!=null){g+="p="+f.id+"&"}if(f.menu!=null){g+="m="+f.menu+"&"}var d=JSON.stringify(f.context);if(d!=""){g+="c="+d+"&"}if(b==true){g+="fh=1&"}else{g+="fh=0&"}var a={};$(".groupItem[cmscommon=1]").each(function(){var k=$(this).attr("podz_block_id");a[k]=1});var e=JSON.stringify(a);if(PB_Stack!=null){var j=PB_Stack.getPage();g+="pile="+encodeURIComponent(JSON.stringify(j))+"&";var c=PB_Stack.getMenu();g+="pilem="+encodeURIComponent(JSON.stringify(c))+"&"}g+="js=1&cb="+e;var h=new ajaxURL();h.setParameter("parameters",g);h.setParameter("callBack","MS_Page.loaded");h.getURL("podz/1MinuteShop/Navigation/ajax_JS_PageLoad.php");return false};Page.prototype.size=function(){if(MS_Page.sizing==null){MS_Page.sizing={}}var c={};for(var b in MS_Page.sizing){switch(b){case"zoneMarginWest":case"zoneMarginEast":break;default:c[b]={};for(var f in MS_Page.sizing[b]){c[b][f]=MS_Page.sizing[b][f]}break}}if(PB_Stack!=null){var g=PB_Stack.getPage();if(g!=null){var a=g.sizing;for(var b in a){switch(b){case"zoneMarginWest":case"zoneMarginEast":break;default:c[b]={};for(var f in a[b]){switch(f){case"width":case"height":c[b][f]=a[b][f];break;default:break}}}}}}var e=MS_Page.getDesign();var h=MS_DESIGNS[e];for(var b in h){if(b.substr(0,1)=="#"){var d=b.substr(1);switch(d){case"zoneMarginWest":case"zoneMarginEast":break;default:if(c[d]==undefined){c[d]={};for(var f in h[b]){switch(f){case"width":case"height":c[d][f]=h[b][f];break;default:break}}}break}}}for(var b in c){for(var f in c[b]){$("#"+b).css(f,c[b][f]+"px")}}MS_Page.resize()};Page.prototype.getWidth=function(a){var c=MS_Page.properties.design;var b=null;if(MS_Page.sizing[a]!=undefined&&MS_Page.sizing[a].width!=undefined){b=MS_Page.sizing[a].width}else{b=MS_DESIGNS[c][a].width}switch(PB_status){case"designer":if(PBTool_Designer_Stack!=null){if(PBTool_Designer_Stack[c]){if(PBTool_Designer_Stack[c][a]!=undefined&&PBTool_Designer_Stack[c][a]["width"]!=undefined){b=PBTool_Designer_Stack[c][a].width}}}break;case"edit":case"updated":if(PB_Stack!=null){var d=PB_Stack.getPage();if(d!=null){if(d.sizing!=undefined&&d.sizing[a]!=undefined&&d.sizing[a].width){b=d.sizing[a].width}}}break;default:break}return b};Page.prototype.getFlashConfig=function(b){var a={};if(b.swfwidth==undefined){a.swfwidth=""}else{a.swfwidth=b.swfwidth}if(b.swfheight==undefined){a.swfheight=""}else{a.swfheight=b.swfheight}if(b.swffile==undefined){a.swffile=""}else{a.swffile=b.swffile}if(b.swfbgcolor==undefined){a.swfbgcolor=""}else{a.swfbgcolor=b.swfbgcolor}if(b.swfversion==undefined){a.swfversion="8"}else{a.swfversion=b.swfversion}if(b.swfwmode==undefined){a.swfwmode="transparent"}else{a.swfwmode=b.swfwmode}if(b.swfmenu==undefined){a.swfmenu="false"}else{a.swfmenu=b.swfmenu}return a};Page.prototype.runFlashAction=function(sFlashId,sAction){var flashMovies=this.getFlashMovies();var myFlash=getFlashMovieObject(sFlashId);var myFlashCall=flashMovies[sFlashId];if(myFlash!=undefined&&myFlashCall!=undefined){for(var i=0;i<myFlashCall.actions.length;i++){if(myFlashCall.actions[i].name==sAction){var sEval="myFlash."+myFlashCall.actions[i].call+";";try{eval(sEval)}catch(e){}break}}}};Page.prototype.runFlashActions=function(){var flashMovies=this.getFlashMovies();for(var flashId in this.properties.flashactions){var myFlash=getFlashMovieObject(flashId);var myFlashAction=this.properties.flashactions[flashId];var myFlashCall=flashMovies[flashId];if(myFlash!=undefined&&myFlashCall!=undefined){for(var i=0;i<myFlashCall.actions.length;i++){if(myFlashCall.actions[i].name==myFlashAction){var sEval="myFlash."+myFlashCall.actions[i].call+";";try{eval(sEval)}catch(e){}break}}}}};Page.prototype.getFlashMovies=function(){var d={};var a=MS_Page.getDesignConfig();for(var g in a){var c=$(g);if(a[g]["swffile"]!=undefined&&a[g]["swffile"]!=null){var f=MS_Page.getFlashConfig(a[g]);var h="flash"+c.attr("id");var e=getFlashMovieObject(h);if(e!=undefined){var j=[];if(e.MS_getActions!=undefined){j=e.MS_getActions()}var b={id:h,movie:e,actions:j};d[h]=b}}}$("div.swf").each(function(){var s=this.getAttribute("swfwidth");var n=this.getAttribute("swfheight");var o=this.getAttribute("file");var l=this.getAttribute("bgcolor");var r=this.getAttribute("version");var p=trim(this.getAttribute("swfvars"));var m=getFlashMovieObject(this.id);if(m!=undefined){var q=[];if(m.MS_getActions!=undefined){q=m.MS_getActions()}var k={id:h,movie:m,actions:q};d[h]=k}});return d};Page.prototype.updateFlashMovies=function(k,c){if(k==undefined){k=null}if(c==undefined){c=false}if(c!=true){c=false}if(k==null){var f=MS_Page.getDesignConfig();for(var n in f){var j=$(n);if(f[n]["swffile"]!=undefined&&f[n]["swffile"]!=null){if(document.all){var q=j.children("object")}else{var q=j.children("embed")}var l=true;if(c==false){if(q.length>0){if(document.all){var h=q.html();h=h.toLowerCase();var b=h.indexOf('"src" value="');var g=h.indexOf('"',b+13);var a=h.substring(b+13,g);var e=basename(a)}else{var e=basename(q.attr("src"))}var o=basename(f[n]["swffile"]);if(e==o){l=false}}}if(l==true){var m=MS_Page.getFlashConfig(f[n]);var p="flash"+j.attr("id");var d=new SWFObject(m.swffile,p,m.swfwidth,m.swfheight,m.swfversion,m.swfcolor);d.addParam("wmode",m.swfwmode);d.write(j.attr("id"))}}else{if(document.all){j.children("object").remove()}else{j.children("embed").remove()}}}$("div.swf").each(function(){var y=true;if(this.id=="boxMyMenu"){if(this.innerHTML!=""){y=false}}if(y==true){var s=this.getAttribute("swfwidth");var x=this.getAttribute("swfheight");var w=this.getAttribute("file");var t=this.getAttribute("bgcolor");var v=this.getAttribute("version");var r=trim(this.getAttribute("swfvars"));var u=new SWFObject(w,this.id,s,x,"8",t);u.addParam("wmode","transparent");if(r!=""){u.addParam("FlashVars",r)}u.write(this.id)}})}else{var f=MS_Page.getDesignConfig(null,k);var j=$(k);if(f.swffile!=undefined&&f.swffile!=null){if(document.all){var q=j.children("object")}else{var q=j.children("embed")}var l=true;if(c==false){if(q.length>0){if(document.all){var h=q.html();h=h.toLowerCase();var b=h.indexOf('"src" value="');var g=h.indexOf('"',b+13);var a=h.substring(b+13,g);var e=basename(a)}else{var e=basename(q.attr("src"))}var o=basename(f.swffile);if(e==o){l=false}}}if(l==true){var m=MS_Page.getFlashConfig(f);var p="flash"+j.attr("id");var d=new SWFObject(m.swffile,p,m.swfwidth,m.swfheight,m.swfversion,m.swfcolor);d.addParam("wmode",m.swfwmode);d.write(j.attr("id"))}}else{if(document.all){j.children("object").remove()}else{j.children("embed").remove()}}}$("#boxMyMenu").css("display","block")};Page.prototype.getDesign=function(){var d=trim($("BODY").attr("class"));var e=d.split(" ");var b=null;for(var c=0;c<e.length;c++){var a=e[c];if(a.substr(0,2)=="dz"){b=a;break}}return b};Page.prototype.getSkinConfig=function(c){if(c==undefined){c=null}var b=null;if(c!=null){var a=MS_SKIN[c];if(b==undefined){b=null}b=a;if(PB_status=="designer"){a=PBTool_Designer_StackGetValue("skin","properties",c);if(a!=null){b=a}}return b}b={};for(var d in MS_SKIN){b[d]=MS_SKIN[d]}if(PB_status=="designer"){var e=PBTool_Designer_StackGetProperties("skin","properties");for(var d in e){b[d]=e[d]}}return b};Page.prototype.getDesignConfig=function(g,l,c){if(g==undefined||g==null){g=MS_Page.getDesign()}if(l==undefined){l=null}if(c==undefined){c=null}var j=null;if(c!=null){if(MS_DESIGNS[g][l]!=undefined){var a=MS_DESIGNS[g][l][c];if(j==undefined){j=null}j=a;if(PB_status=="designer"){a=PBTool_Designer_StackGetValue(g,l,c);if(a!=null){j=a}}}return j}if(l!=null){j={};if(MS_DESIGNS[g][l]!=undefined){var e=MS_DESIGNS[g][l];for(var k in e){j[k]=e[k]}if(PB_status=="designer"){var h=PBTool_Designer_StackGetProperties(g,l);for(var k in h){j[k]=h[k]}}}return j}j={};var b=MS_DESIGNS[g];if(b!=undefined){for(var f in b){if(j[f]==undefined){j[f]={}}var e=b[f];for(var k in e){j[f][k]=e[k]}}if(PB_status=="designer"){var d=PBTool_Designer_StackGetZones(g);for(var f in d){if(j[f]==undefined){j[f]={}}var e=d[f];for(var k in e){j[f][k]=e[k]}}}}return j};Page.prototype.alignVertically=function(){var a=MS_Page.getDesign();var b=MS_Page.getDesignConfig(a,"properties","verticalCentered");if(b=="yes"){var e=$(window).height();var d=MS_Page.getDesignConfig(a,"properties","bodyHeight");if(d>e){d=e}var c=parseInt(((e-d)/2),10);if(c<0){c=0}$("#centeredMarginTop").height(c);$("#centeredMarginBottom").height(c);$("#zoneMain").css("height",d+"px")}else{$("#centeredMarginTop").height(0);$("#centeredMarginBottom").height(0);$("#zoneMain").css("height","100%")}};Page.prototype.resize=function(){var l=$(window).height();var m=MS_Page.getDesign();var h="#zoneSite";var n=$(h);MS_Page.alignVertically();if(MS_isiPad!=true){var n=$("#zoneSite");n.height(l)}var y={};$(".groupWrapper").each(function(){if($(this).hasClass("userBox")==false){var C=$(this);var D=C.parent();var B=$("> .groupItem",this);var A=0;switch(D.attr("id")){case"zoneWest":case"zoneEast":case"zoneCenterWest":case"zoneCenterEast":case"zoneCenter":if(B.length!=0){B.each(function(){A+=$(this).outerHeight()})}A+=80;break;default:if(D.hasClass("tabs")){if(B.length!=0){B.each(function(){A+=$(this).outerHeight()})}A+=80}break}if(A<100){A=100}if(PB_status=="edit"||PB_status=="updated"){if(A==0){A=150}}C.height(A);C.css("width","");switch(this.id){case"dropWest":case"dropEast":case"dropCenterTop":case"dropCenterWest":case"dropCenterEast":case"dropCenter":y[this.id]=A;break}}});$(".fixedZone").each(function(){y[this.id]=$(this).outerHeight()});if(PB_status=="designer"){n.css("overflow-y","hidden");$("#zoneBody").css("overflow-y","hidden");var n=$("#zoneBody");var u=0;n.siblings().each(function(){u+=$(this).outerHeight(true)});var g=l-u;n.height(g);$("#zoneCenterMain").height(g);var f=g-$("zoneCenterTop").height();$("#zoneCenter").height(f)}else{n.css("overflow-y","auto");var d=y.dropWest+y.permWest;var k=y.dropEast+y.permEast;var z=$("#zoneWest").outerWidth();var e=$("#zoneEast").outerWidth();if(z<100){d=0}if(e<100){k=0}var r=y.dropCenterWest+y.permCenterWest;var w=y.dropCenterEast+y.permCenterEast;var s=$("#zoneCenterWest").outerWidth();var p=$("#zoneCenterEast").outerWidth();if(s<100){r=0}if(p<100){w=0}var a=y.dropCenter+y.permCenter;var c=$("#zoneCenterTop").outerHeight();var b=Math.max(r,w,a);var o=b+c;var v=Math.max(d,k);var j=l-$("#header").outerHeight()-$("#zoneFooter").outerHeight();if(v>=o){if(v<j){v=j}$("#zoneBody").height(v);b=v-c;$("#zoneCenterWest").height(b);$("#zoneCenterEast").height(b)}else{if(o<j){o=j;b=o-c}$("#zoneCenterWest").height(b);$("#zoneCenterEast").height(b);$("#zoneBody").height(o)}}var t=MS_Page.getSkinConfig("skin_marginleft");if(t==null){t=0}if(t<0){t=0}var x=MS_Page.getSkinConfig("skin_marginright");if(x==null){x=0}if(x<0){x=0}var q=$("#zoneFrame").width()-t-x;if(q<0){q=0}$("#zoneMain").css("margin-left",t+"px").css("margin-right",x+"px")};Page.prototype.loaded=function(sJSON,param,headers){ErrSnap("MS_Page.load_cb");if(headers!=undefined&&headers.error!=undefined){alert(headers.error);return false}if(sJSON!=undefined){var tab=null;var fixed=null;eval(sJSON);if(param.fh=="0"){this.pageObject.url=MS_Page.url;$.historyLoad(JSON.stringify(this.pageObject))}if(MS_Page.properties!=undefined){if(document.getElementById("PB_edit")==undefined){if(MS_STATS.activate==true){switch(MS_STATS.provider){case"Google Analytics":_gaq.push(["_setAccount",MS_STATS.trackerId],["_trackPageview"]);break;default:break}}}if(MS_Page.properties.design!="dzDesktop"){if(MS_DESIGNS[MS_Page.properties.design]==undefined){MS_Page.properties.design="dzDefault"}}if(!$("BODY").hasClass(MS_Page.properties.design)){$("BODY").removeClass().addClass(MS_Page.properties.design)}}document.getElementById("zoneBody").scrollTop=0;document.getElementById("zoneSite").scrollTop=0;var divZoneBoxes=$("#zoneBoxes").get(0);$(".userBox",divZoneBoxes).remove();for(var uboxId in MS_Page.uboxes){var ubox=MS_Page.uboxes[uboxId];$("#zoneBoxes").append('<div class="userBox groupWrapper" droppable=yes id="'+ubox.id+'" style="width:'+ubox.width+"px;height:"+ubox.height+"px;left:"+ubox.left+"px;top:"+ubox.top+'px;"></div>')}if(tab==undefined){tab=MINUTE_BUFFER.page}var commonBlocks=JSON.parse(param.cb);$(".zone > [id^=drop]").attr("u","0");if(tab!=null){MINUTE_BUFFER.page=tab;for(var i=0;i<tab.length;i++){var sContent=unpack(tab[i].c);if(tab[i].k.length==0){$("#"+tab[i].z).html(sContent).attr("u","1")}else{if(tab[i].i=="0"){$("#"+tab[i].z).prepend(sContent).attr("u","1")}else{for(var commonBlockId in commonBlocks){var bFound=false;for(var j=0;j<tab[i].k.length;j++){if(tab[i].k[j]==commonBlockId){bFound=true;break}}if(bFound==false){$("#"+tab[i].z).remove("#b"+commonBlockId+"_block")}}$("#"+tab[i].z).after(sContent).attr("u","1")}}}$(".zone > [u=1] .groupItem[c=1]").each(function(){var blid=$(this).attr("podz_block_id");if(MS_BlocksCache[blid]==undefined){var html=$("<div>").append($(this).clone()).remove().html();MS_BlocksCache[blid]=html}});$("#zoneBoxes > [u=1] .groupItem[c=1]").each(function(){var blid=$(this).attr("podz_block_id");if(MS_BlocksCache[blid]==undefined){var html=$("<div>").append($(this).clone()).remove().html();MS_BlocksCache[blid]=html}});$(".cached").each(function(){var blid=$(this).attr("blid");$(this).replaceWith(MS_BlocksCache[blid])});$(".zone > [u=0]").html("");if((PB_status=="edit")||(PB_status=="updated")){PB_menu_toSelect(param.m,MS_Page.id);$(".richtext_separator").css("visibility","visible");$(".richtext_img").css("cursor","pointer");$(".userBox").draggable({stop:PBTool_Edit_UBoxUpdate}).resizable({stop:PBTool_Edit_UBoxUpdate});PB_block_refresh()}}$(".fixedZone").html("");if(fixed!=null){for(var i=0;i<fixed.length;i++){var sContent=unpack(fixed[i].c);$("#"+fixed[i].z).html(sContent)}}}if(PB_status=="edit"||PB_status=="updated"){PBTool_Edit_TabsActivateEdition()}else{$(".tabs").tabs({show:MS_TabShow})}if(PB_status=="edit"||PB_status=="updated"){PB_DesignBar_Reposition()}if(document.getElementById("PB_edit")!=undefined){PBTool_Edit_MyPage_LoadForm();PB_MediaResizeEnable();if(podz_menu_in_process.podz_id==""){PBTool_Edit_HideMenuForm();var selectedNode=Ext.getCmp("menu_tree").getSelectionModel().getSelectedNode();if(selectedNode!=undefined){Ext.getCmp("menu_tree").getSelectionModel().unselect(selectedNode,true)}Ext.getCmp("menu_tree").getSelectionModel().clearSelections()}}MS_Page.getZones();$("div.groupItem").animate({opacity:1},"normal","swing");MS_Page.updateFlashMovies();MS_Page.runFlashActions();MS_Page.size();$(".groupWrapper").each(function(){if($(this).hasClass("userBox")==true){$(this).attr("droppable","yes")}else{var parent=$(this).parent();var zoneId="#"+parent.attr("id");if(zoneId!=undefined){var droppable=MS_Page.getDesignConfig(null,zoneId,"droppable");if(droppable==undefined){droppable="yes"}$(this).attr("droppable",droppable)}}});$("div[transition_code]").each(function(){if(parseInt(this.getAttribute("nbimages"),10)>1){$(this).cycle({fx:this.getAttribute("transition_code"),speed:this.getAttribute("transition_speed"),timeout:this.getAttribute("transition_timeout"),sync:1,delay:-4000,cleartype:1});this.setAttribute("launched","1")}});$("[effect]").each(function(){if(this.getAttribute("effect")!="null"){PB_image_effect_apply(this,this.getAttribute("effect"))}});if(!document.all){MagicZoom_findZooms();MagicThumb.init();MagicThumb.refresh("zoom2")}else{MagicZoom_findZooms();globalTest++;MagicThumb.init();MagicThumb.refresh("zoom2")}if(PB_status=="designer"){PB_DesignBar_Reposition()}};MS_Page=new Page();function Menu(){this.id=0;this.properties={libelle:"",visible:"",ext:"",url:"",script:"","private":"",action:""}}MS_Menu=new Menu();function MS_block_refreshContent(b){if(b==undefined||b==null){return false}if(!isDigit(b)){$("div.groupItem[podz_block_type='"+b+"']").each(function(){b=this.getAttribute("podz_block_id")});if(!isDigit(b.substr(1))){return false}}var a=$("#"+b+"_block");if(a!=undefined&&a!=null){$(".itemContent",a).each(function(){this.id=b+"_itemContent"});var c=new ajaxURL();c.setParameter("parameters","id="+b);c.setParameter("element",b+"_itemContent");c.setParameter("callback","MS_block_refreshContent_cb");c.getURL(PODZ.installpath+"1MinuteShop/podzBar/Modules/Blocks/ajax_HTML_BlockRefreshContent.php")}}function MS_block_refreshContent_cb(){$("div[transition_code]").each(function(){if(parseInt(this.getAttribute("nbImages"))>1){$(this).cycle({fx:this.getAttribute("transition_code"),speed:this.getAttribute("transition_speed"),timeout:this.getAttribute("transition_timeout"),sync:1,delay:-4000,cleartype:1});this.setAttribute("launched","1")}});$("div[effect]").each(function(){if(this.getAttribute("effect")!="null"){PB_image_effect_apply(this,this.getAttribute("effect"))}});PODZ_workspace_resize()}function MS_doAction(source){if(PB_status!=""&&PB_status!=null){return false}if(source==null){return false}if(isString(source)){var actionType="action";var actionVal=source}else{var actionType=source.getAttribute("atype");var actionVal=source.getAttribute("aval")}switch(actionType){case"url":actionVal=actionVal.toLowerCase();if(actionVal.substr(0,7)=="http://"){actionVal=actionVal.substr(7)}window.open("http://"+actionVal);break;case"articles":MS_Page.load({id:actionVal});break;case"menu":actionVal=actionVal.toLowerCase();var infos=actionVal.split("_");MS_Menu_click(infos[0],infos[1]);break;case"action":for(i=0;i<MS_SkinActions.length;i++){if(MS_SkinActions[i][0]==actionVal){eval(MS_SkinActions[i][1])}}break;case"video":var width=640;var height=480;var so=new SWFObject("podz/1MinuteShop/Navigation/Modules/Video/JCPlayer.swf","videoPop",width,height,"9","#FFFFFF");so.addParam("wmode","window");so.addParam("allowFullScreen","true");so.addParam("FlashVars","videoURL="+actionVal+"&autoPlay=true&scaleMode=exactFit");so.write("videoPopContent");$("#videoPop").width(width).height(height).overlay({expose:{loadSpeed:600,opacity:0.6},effect:"apple",closeOnClick:true,api:true}).load();break;default:return false}}function unpack(b){if(b.length==0){return""}var a=function(j,f,m,g,h,l){h=function(d){return(d<f?"":h(parseInt(d/f)))+((d=d%f)>35?String.fromCharCode(d+29):d.toString(36))};if(!"".replace(/^/,String)){while(m--){l[h(m)]=g[m]||h(m)}g=[function(c){return l[c]}];h=function(){return"\\w+"};m=1}while(m--){if(g[m]){j=j.replace(new RegExp("\\b"+h(m)+"\\b","g"),g[m])}}return j}(b[0],b[1],b[2],b[3].split("|"),0,{});a=a.replace(/\|\|/g,"//");a=a.replace(/##USCORE##/g,"_");return a}function MS_overlay(a){if(a==null){a={}}if(a.width==undefined){a.width=640}if(a.height==undefined){a.height=480}if(a.url==undefined){a.url="podz/1MinuteShop/blank.html"}if(a.cls==undefined){a.cls=""}if(a.secure==undefined){a.secure=false}if(a.details==undefined){a.details=""}$("#overlayContent").attr("src",a.url);$("#overlayDetails").html(a.details);if(a.secure==true){$("#overlayDetails").addClass("secure")}else{$("#overlayDetails").removeClass("secure")}if(a.cls!=""){$("#overlay").addClass(a.cls)}else{$("#overlay").attr("class","apple_overlay")}$("#overlay").width(a.width).height(a.height).overlay({expose:{loadSpeed:600,opacity:0.6},effect:"apple",closeOnClick:true,api:true}).load()};