function JSONscriptRequest(A){this.fullUrl=A;
this.noCacheIE=(this.fullUrl.indexOf("?")>=0)?"&":"?";
this.noCacheIE+="noCacheIE="+(new Date()).getTime();
this.headLoc=document.getElementsByTagName("head").item(0);
this.scriptId="JscriptId"+JSONscriptRequest.scriptCounter++
}JSONscriptRequest.scriptCounter=1;
JSONscriptRequest.prototype.buildScriptTag=function(){this.scriptObj=document.createElement("script");
this.scriptObj.setAttribute("type","text/javascript");
this.scriptObj.setAttribute("charset","utf-8");
this.scriptObj.setAttribute("src",this.fullUrl+this.noCacheIE);
this.scriptObj.setAttribute("id",this.scriptId)
};
JSONscriptRequest.prototype.removeScriptTag=function(){this.headLoc.removeChild(this.scriptObj)
};
JSONscriptRequest.prototype.addScriptTag=function(){this.headLoc.appendChild(this.scriptObj)
};
function getParameter(B){var A="[\\?&]"+B+"=([^&]*)";
var E=new RegExp(A);
var D=window.location.href;
var C=E.exec(D);
if(C==null){return""
}else{return C[1]
}}function openPane(){var A=getParameter("openPane");
if(A=="true"){openSelectorPane()
}}function openSelectorPane(){window.scrollTo(0,0);
wep.openPane("Shop")
}function openPricingPane(){window.scrollTo(0,0);
wep.openPane("Shop")
}function openLocatorPane(){window.scrollTo(0,0);
wep.openPane("Shop")
}function openInterruptFrame(){scrollTo(0,0);
if(jQuery("span.StoreName a").length>0){jQuery("span.StoreName a").eq(0).click()
}else{jQuery("span.SpecialOffers a").eq(0).click()
}}function openSearchInterruptFrame(){scrollTo(0,0)
}function openDetailInterruptFrame(){scrollTo(0,0)
}function createInterruptCokkie(){setSessionCookie("interrupt","true")
}function reloadPage(C){var A=location.href;
var D=A.indexOf("#");
if(D!=-1){A=A.substring(0,D)
}if(C=="true"){if(A.indexOf("openPane")==-1){var B="";
if(A.indexOf("?")>-1){separator="&"
}else{separator="?"
}window.location=A+separator+"openPane=true"
}else{window.location=A
}}else{if(A.indexOf("?openPane=true&")!=-1){A=A.replace("openPane=true&","")
}else{if(A.indexOf("?openPane=true")!=-1){A=A.replace("?openPane=true","")
}else{if(A.indexOf("&openPane=true")!=-1){A=A.replace("&openPane=true","")
}}}window.location=A
}}function setSessionCookie(A,B){document.cookie=A+"="+escape(B)+"; path=/"
}function getCookie(A){if(document.cookie.length>0){c_start=document.cookie.indexOf(A+"=");
if(c_start!=-1){c_start=c_start+A.length+1;
c_end=document.cookie.indexOf(";",c_start);
if(c_end==-1){c_end=document.cookie.length
}return unescape(document.cookie.substring(c_start,c_end))
}}return""
}function setCookie(C,E,A,H,D,G){var B=new Date();
B.setTime(B.getTime());
if(A){A=A*1000*60
}var F=new Date(B.getTime()+(A));
document.cookie=C+"="+escape(E)+((A)?";expires="+F.toGMTString():"")+((H)?";path="+H:"")+((D)?";domain="+D:"")+((G)?";secure":"")
}function deleteCookie(A,C,B){if(getCookie(A)){document.cookie=A+"="+((C)?";path="+C:"")+((B)?";domain="+B:"")+";expires=Sat, 30-Dec-1972 00:00:02 GMT"
}}function CheckCookiesEnabled(){setCookie("CookieStatusDetector","none","","/","","");
return(""!=getCookie("CookieStatusDetector"))
}function addLoadEvent(A){var B=window.onload;
if(typeof window.onload!="function"){window.onload=A
}else{window.onload=function(){if(B){B()
}A()
}
}}function hideBMBDivisions(){if(jQuery("div.mcr-interruptable").length>0){jQuery("div.colBMBArea").hide();
jQuery("div.cntSelectorViewDetailContainer").hide();
jQuery("div.cntComponentsBMB").hide();
jQuery("p.startingPrice").hide()
}else{showBMBDivisions()
}}function showBMBDivisions(){jQuery("div.colBMBArea").show();
jQuery("div.cntSelectorViewDetailContainer").show();
jQuery("div.cntComponentsBMB").show();
jQuery("p.startingPrice").show()
}function showMcrInterruptDivs(){jQuery("div.mcr-interrupt").show()
};
