function notEmpty(_1){
return _1!=null&&_1!=undefined;
};
function updateDisplay(_2,_3){
if(notEmpty(_2)){
obj=document.getElementById(_2);
if(notEmpty(obj)){
obj.style.display=_3;
}
}
};
function show(_4){
updateDisplay(_4,"block");
};
function hide(_5){
updateDisplay(_5,"none");
};
function updateClass(_6,_7){
if(notEmpty(_6)){
obj=document.getElementById(_6);
if(notEmpty(obj)){
obj.className=_7;
}
}
};
function selectStoreNum(_8){
updateClass(_8,"selectedDot");
};
function deselectStoreNum(_9){
updateClass(_9,"dot");
};
var curStoreIndex;
function showStore(_a){
if(notEmpty(_a)){
if(notEmpty(curStoreIndex)){
curStoreSelectorDiv="store_selector_"+curStoreIndex;
deselectStoreNum(curStoreSelectorDiv);
curStoreLinkDiv="store_"+curStoreIndex+"_link_div";
show(curStoreLinkDiv);
curStoreNoLinkDiv="store_"+curStoreIndex+"_nolink_div";
hide(curStoreNoLinkDiv);
curStoreDiv="store_container_"+curStoreIndex;
hide(curStoreDiv);
}
if(notEmpty(_a)){
newStoreSelectorDiv="store_selector_"+_a;
selectStoreNum(newStoreSelectorDiv);
newStoreNoLinkDiv="store_"+_a+"_nolink_div";
show(newStoreNoLinkDiv);
newStoreLinkDiv="store_"+_a+"_link_div";
hide(newStoreLinkDiv);
newStoreDiv="store_container_"+_a;
show(newStoreDiv);
curStoreIndex=_a;
}
}
};
function updateStores(){
updates={"postalCode":document.getElementById("postalCode").value};
cursor_wait();
wc.render.updateContext("StoresWithStockArea_Context",updates);
};
function addIdsToDiv(_b){
if(notEmpty(_b)){
containerDiv=document.getElementById(_b);
if(notEmpty(containerDiv)){
addIdsToNode(containerDiv);
}
}
};
function addIdsToNode(_c){
var _d=_c.childNodes;
if(notEmpty(_d)){
var _e=_d.length;
var _f=0;
for(;_f<_e;++_f){
iterNode=_d.item(_f);
if(iterNode.nodeType==Node.ELEMENT_NODE){
var _10=iterNode.attributes;
if(notEmpty(_10)){
var _11=_10.getNamedItem("class");
var _12=_10.getNamedItem("id");
if(notEmpty(_11)){
_12=document.createAttribute("id");
_12.nodeValue=_11.nodeValue;
iterNode.setAttributeNode(_12);
}
}
addIdsToNode(iterNode);
}else{
alert;
}
}
}else{
}
};
function showHideSendToFriend(e){
var obj=document.getElementById("emailFriend");
var _15=document.getElementById("emailFriends");
if(obj!=null){
obj.style.display=(obj.style.display=="block")?"none":"block";
obj.style.top=e.pageY+10;
obj.style.left=e.pageX-270;
}
};
dojo.addOnLoad(function(){
var _16=dojo.widget.getWidgetById("mainTabContainer");
dojo.event.connect("after",_16,"selectChild",function(){
var _17=dojo.html.getContentBox(document.getElementById("hideBV"));
if(_16.selectedChild=="tab5"&&_17.height>=220){
_16.resizeTo(541,_17.height+80);
}else{
_16.resizeTo(541,300);
}
});
});
function showReviewsTab(){
var _18=dojo.widget.getWidgetById("mainTabContainer");
_18.selectChild("tab5");
};

