var AjaxUrl="/asp/ajaxrequests/spv/spv.php";var spvtwoUrl="/asp/ajaxrequests/spv/spv2.php";var COOKIE_NAME="CSNUtId";var DELIM=",";var StartTime;var AJAX_DELIM="$~$DELIM$~$";function findPos(a){var b=curtop=0;if(a.offsetParent){do{b+=a.offsetLeft;curtop+=a.offsetTop}while(a=a.offsetParent)}return[b,curtop]}function togChk(e,d,c){var a=e[d];if(a!=null){if(a.length!=undefined){for(var b=0;b<a.length;b++){a[b].checked=c}}else{a.checked=c}}return true}function toggle(b){var a=document.getElementById(b);if(a.style.display!="none"){a.style.display="none"}else{a.style.display="block"}}function spvtwo(b,a){var d="rfCSNID="+getCSNCookie_yui();d=d+"&rfHTTPReferer="+encodeURIComponent(document.referrer);d=d+"&rfURL="+encodeURIComponent(document.location);d=d+"&rfGUID="+encodeURIComponent(getUser(COOKIE_NAME,b));d=d+"&rfSoID="+a;var c=new Image(1,1);c.src=spvtwoUrl+"?"+d;c.onload=function(){chkimgLoad()}}function chkimgLoad(){return}function LoadPage(){StartTime=new Date()}function CallUnloadPage(d,b,e,c,a){UnloadPage(d,b,e,c,false,false,a)}function UnloadPage(e,n,h,o,c,a,b){var f=new Date();var k=f.getTime()-StartTime.getTime();var m=window.location.href;var j=getUser(COOKIE_NAME,b);var l="";if(c){l=GetSkuList()}var d="";if(a){d=GetSriSkuList()}var g=getCSNCookie_yui();UtInfo(j,g,e,m,n,h,l,d,o,k)}function GetSkuList(){var a=document.getElementsByName("sku");var d="";var c;for(var b=0;b<a.length;b++){c=a[b].value;if(c!=null&&c!=""){if(d.length>0){d=d+DELIM+c}else{d=c}}}return d}function GetSriSkuList(){var a=document.getElementsByName("SRISKUTagList");var b="";var c;for(i=0;i<a.length;i++){c=a[i].getAttribute("SRISKUId");if(c!=null&&c!=""){if(b.length>0){b=b+DELIM+c}else{b=c}}}return b}function GUID(){return(S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4())}function S4(){return(((1+Math.random())*65536)|0).toString(16).substring(1)}function getCookie_yui(a){return YAHOO.util.Cookie.get(a)}function getCSNCookie_yui(){return YAHOO.util.Cookie.getSub("CSN","CSNID")}function setCookie_yui(a,c,b){YAHOO.util.Cookie.set(a,c,{path:"/",domain:b,expires:new Date("January 12, 2034")})}function setSubCookie_yui(a,c,b){return YAHOO.util.Cookie.setSub(a,c,b)}function getSubCookie_yui(a,b){return YAHOO.util.Cookie.getSub(a,b)}function getUser(b,c){var a=getCookie_yui(b);if(a==null||a==""){a=GUID();if(a!=null&&a!=""){setCookie_yui(b,a,c)}}return a}function UtInfo(f,h,b,l,j,c,e,a,k,d){var g="UtGUID="+f+"&UtURL="+l+"&UtSkuList="+e+"&UtSriSkuList="+a+"&UtCSNID="+h+"&UtCustID="+b+"&UtSoID="+j+"&UtCatID="+c+"&UtRefID="+k+"&UtPgDuration="+d;YAHOO.util.Connect.asyncRequest("POST",AjaxUrl,sb_callback,g)}var sb_callback={success:function(b){try{}catch(a){}},failure:function(a){}};function CreateBookmarkLink(b,a){if(window.sidebar){window.sidebar.addPanel(b,a,"")}else{if(window.external){window.external.AddFavorite(a,b)}else{if(window.opera&&window.print){return"Sorry, bookmarking is not yet supported for Opera."}}}}function openpopup(b,c,a){winpops=window.open(b,"","width="+c+",height="+a+",scrollbars,resizable,toolbar,")}function openimgpopup(b,c,a){var d=document.getElementById("lgimage");if(d!=null){b=b+"&imgs="+encodeURIComponent(d.src)}winpops=window.open(b,"","width="+c+",height="+a+",scrollbars,resizable,toolbar,")}function opennamedpopup(b,d,c,a){winpops=window.open(b,d,"width="+c+",height="+a+",scrollbars,resizable,toolbar,")}function JavaScriptError(d,b,a){var c=document.getElementsByName("AJAX_JAVASCRIPT_OFF");if(c!=null){if(c[0]!=undefined){c[0].value="Error!"}}return true}window.onerror=JavaScriptError;function dealEmailSignUp(){var a=document.getElementById("deal_email_address");if(a!=null){YAHOO.util.Connect.asyncRequest("GET","/asp/public/session/ajax/deal_email.asp?email="+escape(a.value),ajax_callback_deal_email)}else{CatchAjaxError("dealEmailSignUp(): error getting email address.")}}var ajax_callback_deal_email={success:function(g){try{var a=g.responseText;var b=a.split(AJAX_DELIM);var f=b[0];var d=b[1];if(f=="0"){var h=document.getElementById("deal_email_div");if(h!=null){h.innerHTML='<div class="dealemailsubmit">'+d+"</div>"}}else{if(f=="1"){}else{CatchAjaxError(d)}}}catch(c){CatchAjaxError(c.message)}},failure:function(a){}};function footer_get_sponsored_links(b){if(hideSponsoredAds()){return}var a="/asp/public/static/ajax/sponsored_links.asp?"+b;YAHOO.util.Connect.asyncRequest("GET",a,ajax_callback_sponsored_links)}var ajax_callback_sponsored_links={success:function(d){try{var b=document.getElementById("sponsored_links_core");if(b!=null){b.innerHTML=d.responseText}if(document.getElementById("sponsored_links_success")==null){var a=document.getElementById("ft");if(a!=null){a.removeChild(document.getElementById("sponsored_links_div"))}}}catch(c){CatchAjaxError(c.message)}},failure:function(a){}};function HideContent(a){if(a.length<1){return}document.getElementById(a).style.display="none"}function ShowContent(a){if(a.length<1){return}document.getElementById(a).style.display="block"}function limitText(b,a){if(b.value.length>(a-1)){alert("You've reached the character limit for this field.");b.value=b.value.substr(0,a)}}function limitDelimitedText(k,a,g,f){var j=1;var c="";var h=0;var e;var d=false;var b=k.value;for(e=0;e<b.length;e++){if(j>a){if(e==b.length-1){c=c+b.substring(h+1,(e+1))+"\n";d=true}else{if(b.charAt(e)==g||b.charAt(e)==f){if(j-1>a){c=c+b.substring(h,((e)-(h)))+"\n";d=true}}}}if(b.charAt(e)==g||b.charAt(e)==f){j=0;h=e;d=false}j++}if(c!=""){alert("The following values are too long ("+a+" character limit) Please fix these before saving: \n\n"+c);return false}}function limitMultTextTypes(field,fieldValTypes){var PrName=255;var ChildName=255;var PrManuPartNum=50;var PrWebDescription=100000;var PrCallCenterDescription=100000;var PiName=50;var PiCategory=50;var PrProductWeight=8000;var RefProdID=64;var ManuProdID=64;var PiPartNumber=64;var PrName_full="Product Name";var ChildName_full="Name w/in Kit";var PrManuPartNum_full="Manu Part Number";var PrWebDescription_full="Description";var PrCallCenterDescription_full="Call Center Description";var PiName_full="Option Names";var PiCategory_full="Option Type";var PrProductWeight_full="Weight";var RefProdID_full="JOIN: Supplier ID";var ManuProdID_full="JOIN: Manufacturer Product ID";var PiPartNumber_full="Option Part Number (Auto-Create)";var i;var oneChecked=false;for(i=0;i<fieldValTypes.length;i++){if(fieldValTypes[i].checked==true){oneChecked=true;if(field.value.length+1>eval(fieldValTypes[i].value)){alert("You've reached the character limit for: "+eval(fieldValTypes[i].value+"_full"));field.value=field.value.substring(0,eval(fieldValTypes[i].value));return false}}}if(!oneChecked){alert("You need to check at least one box first");field.value=field.value.substring(0,field.value.length-1);return false}else{return true}}function isEmpty(fields,aForm){var fieldArray=fields.split(",");var emptyList="";for(var i=0;i<fieldArray.length;i++){if(eval("document."+aForm+"."+fieldArray[i])){if(eval("document."+aForm+"."+fieldArray[i]+".value")==""){alert("Please fill in all required fields.");return false}}}return true}function checkAllBoxes(formName,elementID,valToMatch,valPos,valDelim,action,valType){var checkBoxes=eval("document."+formName+".elements");var boxval;for(var i=0;i<checkBoxes.length;i++){if(eval("checkBoxes[i]."+valType)==valToMatch){checkBoxes[i].checked=action}}}function delAttribute(c,b){var a=c.selectedIndex;if(a<0){return}b.appendChild(c.options.item(a));selectNone(c,b)}function addAttribute(c,b){var a=b.selectedIndex;if(a<0){return}c.appendChild(b.options.item(a));selectNone(c,b)}function selectNone(a,b){a.selectedIndex=-1;b.selectedIndex=-1;addIndex=-1;selIndex=-1}function getSize(c){var a=c.childNodes.length;var b=0;for(i=0;i<a;i++){if(c.childNodes.item(i).nodeType==1){b++}}if(b<2){return 2}else{return b}}function delAll(c,b){var a=c.length-1;for(i=a;i>=0;i--){b.appendChild(c.item(i))}selectNone(c,b);setSize(c,b)}function addAll(c,b){var a=b.length-1;for(i=a;i>=0;i--){c.appendChild(b.item(i))}selectNone(c,b);setSize(c,b)}function selectAllInList(b){for(var a=0;a<b.length;a++){b[a].selected=true}}function changeObjectVisibility(a,c){var b=getStyleObject(a,document);if(b){b.visibility=c;return true}else{return false}}function getStyleObject(a){if(document.getElementById&&document.getElementById(a)){return document.getElementById(a).style}else{if(document.all&&document.all(a)){return document.all(a).style}else{if(document.layers&&document.layers[a]){return document.layers[a]}else{return false}}}}function switchDiv(b){var a=getStyleObject(b);if(a){hideAll();changeObjectVisibility(b,"visible")}else{alert("sorry, this only works in browsers that do Dynamic HTML")}}function LTrim(b){var a=/\s*((\S+\s*)*)/;return b.replace(a,"$1")}function RTrim(b){var a=/((\s*\S+)*)\s*/;return b.replace(a,"$1")}function Trim(a){return LTrim(RTrim(a))}function isDigit(a){return((a>="0")&&(a<="9"))}function isStrEmpty(a){return((a==null)||(a.length==0))}function isInteger(b){var a;b=Trim(b);if(isStrEmpty(b)){return false}for(a=0;a<b.length;a++){var d=b.charAt(a);if(!isDigit(d)){return false}}return true}function IsEmailValid(c){var b=c.length;var a=c.indexOf("@");var d=c.indexOf(" ");if(d>-1){return false}if(a<1){return false}var g=c.substring(a+1,b);var h=g.indexOf(".");if(h<1){return false}var f=g.lastIndexOf(".");if(f==h+1){return false}var e=g.substring(f+1,g.length);dom=e.toLowerCase();if(dom.length>6){return false}if(dom.length<2){return false}return true}var xmlhttp,oObject,fNode;function ShowShortText(c,b,a){if(c.style.display=="none"){c.style.display="block";oObject=c.id;if(a!=""&&b!=""){getSub(b+a)}}else{c.style.display="none";c.innerHTML="Loading..."}return false}function getSub(b){fNode=window.document.getElementById(oObject);fNode.style.display="";if(fNode.innerHTML=="Loading..."){try{xmlhttp=new ActiveXObject("MSXML2.XMLHTTP")}catch(a){}if(!xmlhttp){xmlhttp=new XMLHttpRequest()}xmlhttp.open("GET",b,true);xmlhttp.onreadystatechange=rtnStream;xmlhttp.send(null)}}function rtnStream(){if(xmlhttp.readyState==4){fNode.innerHTML=xmlhttp.responseText}}function addOption(qty,moreDIV,sku,nextNum,iform,customized){if(nextNum2!=""){nextNum=nextNum2}var mydiv=document.getElementById(moreDIV);var tb=document.createElement("TBODY");var tb0=document.createElement("TBODY");var mytable=document.createElement("TABLE");var mytable0=document.createElement("TABLE");var mytr0=document.createElement("TR");var mytd0=document.createElement("TD");mytable0.setAttribute("border","0");mytable0.cellSpacing=0;mytable0.cellPadding=0;mytd0.setAttribute("valign","top");mytable.setAttribute("border","0");mytable.cellSpacing=1;mytable.cellPadding=1;mytable.setAttribute("bgColor","<%=STTDkGray%>");var cssStyle="font-size:9px;height:18px";var new_row;var new_cell;var new_input;var tb;for(var j=0;j<qty;j++){new_row=document.createElement("TR");new_row.setAttribute("bgColor","#ffffff");new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_input=document.createElement("INPUT");new_input.style.cssText=cssStyle;new_input.setAttribute("type","text");new_input.setAttribute("name","add_PiCategory_"+sku+"_"+nextNum+"_"+customized);new_input.setAttribute("value","");new_input.setAttribute("size","10");new_input.setAttribute("maxlength","50");new_cell.appendChild(new_input);new_row.appendChild(new_cell);tb.appendChild(new_row);new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_input=document.createElement("INPUT");new_input.style.cssText=cssStyle;new_input.setAttribute("type","text");new_input.setAttribute("name","add_PiName_"+sku+"_"+nextNum+"_"+customized);new_input.setAttribute("value","");new_input.setAttribute("size","14");new_input.setAttribute("maxlength","50");new_cell.appendChild(new_input);new_row.appendChild(new_cell);tb.appendChild(new_row);new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_input=document.createElement("INPUT");new_input.style.cssText=cssStyle;new_input.setAttribute("type","text");new_input.setAttribute("name","add_PiCost_"+sku+"_"+nextNum+"_"+customized);new_input.setAttribute("value","0");new_input.setAttribute("size","6");new_input.setAttribute("maxlength","8");new_cell.appendChild(new_input);new_row.appendChild(new_cell);tb.appendChild(new_row);new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_input=document.createElement("INPUT");new_input.style.cssText=cssStyle;new_input.setAttribute("type","text");new_input.setAttribute("name","add_PiWSCost_"+sku+"_"+nextNum+"_"+customized);new_input.setAttribute("value","0");new_input.setAttribute("size","6");new_input.setAttribute("maxlength","8");new_cell.appendChild(new_input);new_row.appendChild(new_cell);tb.appendChild(new_row);new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_input=document.createElement("INPUT");new_input.style.cssText=cssStyle;new_input.setAttribute("type","text");new_input.setAttribute("name","add_PiPartNumber_"+sku+"_"+nextNum+"_"+customized);new_input.setAttribute("value","");new_input.setAttribute("size","6");new_input.setAttribute("maxlength","64");new_cell.appendChild(new_input);new_row.appendChild(new_cell);tb.appendChild(new_row);new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_cell.setAttribute("width",32);new_input=document.createElement("INPUT");new_input.setAttribute("type","checkbox");new_input.setAttribute("name","add_PiActive_"+sku+"_"+nextNum+"_"+customized);new_input.setAttribute("value",1);new_input.defaultChecked=true;new_cell.appendChild(new_input);new_row.appendChild(new_cell);tb.appendChild(new_row);new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_cell.setAttribute("width",29);new_input=document.createElement("INPUT");new_input.setAttribute("type","checkbox");new_input.setAttribute("name","add_PiBaseOption_"+sku+"_"+nextNum+"_"+customized);new_input.setAttribute("value",1);new_input.defaultChecked=false;new_cell.appendChild(new_input);new_row.appendChild(new_cell);tb.appendChild(new_row);new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_cell.setAttribute("width",37);new_row.appendChild(new_cell);tb.appendChild(new_row);nextNum++}mytable.appendChild(tb);mytd0.appendChild(mytable);tb0.appendChild(mytr0);mytr0.appendChild(mytd0);mytable0.appendChild(tb0);mydiv.appendChild(mytable0);nextNum2=nextNum;eval(iform+".NewOptionCount_"+sku+"_"+customized).value=nextNum2}function addImageSwapOption(qty,moreDIV,sku,nextNumImageSwap,iform){if(nextNumImageSwap2!=""){nextNumImageSwap=nextNumImageSwap2}var mydiv=document.getElementById(moreDIV);var tb=document.createElement("TBODY");var tb0=document.createElement("TBODY");var mytable=document.createElement("TABLE");var mytable0=document.createElement("TABLE");var mytr0=document.createElement("TR");var mytd0=document.createElement("TD");mytable0.setAttribute("border","0");mytable0.cellSpacing=0;mytable0.cellPadding=0;mytd0.setAttribute("valign","top");mytable.setAttribute("border","0");mytable.cellSpacing=1;mytable.cellPadding=1;mytable.setAttribute("bgColor","<%=STTDkGray%>");var cssStyle="font-size:9px;height:18px";var new_row;var new_cell;var new_input;var tb;for(var j=0;j<qty;j++){nextNumImageSwap++;new_row=document.createElement("TR");new_row.setAttribute("bgColor","#ffffff");new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_input=document.createElement("INPUT");new_input.style.cssText=cssStyle;new_input.setAttribute("type","text");new_input.setAttribute("name","add_PswCategory_"+sku+"_"+nextNumImageSwap);new_input.setAttribute("value","");new_input.setAttribute("size","10");new_input.setAttribute("maxlength","255");new_cell.appendChild(new_input);new_row.appendChild(new_cell);tb.appendChild(new_row);new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_input=document.createElement("INPUT");new_input.style.cssText=cssStyle;new_input.setAttribute("type","text");new_input.setAttribute("name","add_PswSubCategory_"+sku+"_"+nextNumImageSwap);new_input.setAttribute("value","");new_input.setAttribute("size","10");new_input.setAttribute("maxlength","255");new_cell.appendChild(new_input);new_row.appendChild(new_cell);tb.appendChild(new_row);new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_input=document.createElement("INPUT");new_input.style.cssText=cssStyle;new_input.setAttribute("type","text");new_input.setAttribute("name","add_PswName_"+sku+"_"+nextNumImageSwap);new_input.setAttribute("value","");new_input.setAttribute("size","10");new_input.setAttribute("maxlength","255");new_cell.appendChild(new_input);new_row.appendChild(new_cell);tb.appendChild(new_row);new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_input=document.createElement("INPUT");new_input.style.cssText=cssStyle;new_input.setAttribute("type","text");new_input.setAttribute("name","add_PswSmallIcon_"+sku+"_"+nextNumImageSwap);new_input.setAttribute("value","");new_input.setAttribute("size","10");new_input.setAttribute("maxlength","255");new_cell.appendChild(new_input);new_row.appendChild(new_cell);tb.appendChild(new_row);new_cell=document.createElement("TD");new_cell.setAttribute("align","center");new_cell.setAttribute("width",47);new_row.appendChild(new_cell);tb.appendChild(new_row)}mytable.appendChild(tb);mytd0.appendChild(mytable);tb0.appendChild(mytr0);mytr0.appendChild(mytd0);mytable0.appendChild(tb0);mydiv.appendChild(mytable0);nextNumImageSwap2=nextNumImageSwap;eval(iform+".NewImageSwapCount_"+sku).value=nextNumImageSwap2}function imgPreloader(d,g){var e=0;var c=d.split(g);var f=new Image();var b=new Array();for(var a=0;a<c.length;a++){b[a]=c[a]}for(e=0;e<=c.length;e++){f.src=b[e]}}function swapImage(k,d,a,g,r,e){var q=document.getElementById(k).src;var b=q.lastIndexOf(".");var c=q.substr(b,q.length-b);var o=document.getElementById(k).name;var l=o.split(d);var j=a.split("*")[0];var p=a.split("*")[1];var h=new Array(l.length);var f=new Array(l.length);for(var n=0;n<l.length;n++){if(j==l[n].split("*")[0]){l[n]=a;h[n]=l[n].split("*")[1]}else{h[n]=l[n].split("*")[1]}}h=h.sort(sortArrNumeric);for(n=0;n<h.length;n++){for(var m=0;m<l.length;m++){if(l[m].split("*")[1]==h[n]){f[n]=l[m];break}}}document.getElementById(k).src=g+h.join("")+c;document.getElementById(k).name=f.join("_");document.getElementById(j+"_current").src=r;document.getElementById(j+"_colorName").innerHTML=e}function sortArrNumeric(d,c){return(d-c)}function SetStateName(b,c,a){var e;var f;var d;d=document.getElementById(b);if(d==null){d=document.getElementById(c);f=d.value}else{f=document.myForm[b].options[document.myForm[b].selectedIndex].text}if(f!=null){document.getElementById(a).value=f}}function getHTTPObject(){var a;if(!a&&typeof XMLHttpRequest!="undefined"){try{a=new XMLHttpRequest()}catch(b){a=false}}return a}function GetSelOpts(g){var e="";var c="";var h=g.MiID;if(h!=null){if(h.length!=undefined){for(var f=0;f<h.length;f++){if(h[f].checked==true){e=e+"&PiID="+document.AddItem.MiID[f].value;c=c+document.AddItem.MiID[f].value+","}}}else{if(h.checked==true){e=e+"&PiID="+document.AddItem.MiID[f].value;c=c+document.AddItem.MiID[f].value+","}}}var d=GetOneOpts(g.PiID);e=e+d[0];c=c+d[2];return[e,d[1],c]}function GetOneOpts(e){var f="";var d="";var j="";var h=true;if(e!=null){if(e.length!=undefined&&e.options==undefined){for(var g=0;g<e.length;g++){j="";if(e[g].options!=undefined){if(e[g].options[e[g].selectedIndex].value!="XXXXXXXXXX"){h=false;j=e[g].options[e[g].selectedIndex].value}}else{if(e[g].value!="XXXXXXXXXX"){h=false;j=e[g].value}}if(j!=""){f=f+"&PiID="+j;if(d!=""){d=d+","}d=d+j}}}else{if(e.options!=undefined){if(e.options[e.selectedIndex].value!="XXXXXXXXXX"){h=false;j=e.options[e.selectedIndex].value}}else{if(e.value!="XXXXXXXXXX"){h=false;j=e.value}}if(j!=""){f=f+"&PiID="+j;if(d!=""){d=d+","}d=d+j}}}else{h=false}return[f,h,d]}var additempanel;var batcAllArray=new Array();var wi='<img height="32" width="32" id="sbprodswaitimg" alt="....." src="http://common.csnimages.com/common/misc/wait_bigflower.gif"/>';function BuildATCPanel(a,b){additempanel=new YAHOO.widget.Panel("additempanel",{width:"250px",height:"250px",autofillheight:"body",fixedcenter:"contained",close:true,draggable:false,zindex:1000,modal:true,visible:false});additempanel.setHeader(a);additempanel.setBody(makemsg(b));additempanel.setFooter("");additempanel.render(document.body)}function BuildEBMPanel(a,c,b){addebmpanel=new YAHOO.widget.Panel("addebmpanel",{width:"260px",height:"265px",autofillheight:"body",fixedcenter:"contained",close:true,draggable:true,zindex:1000,modal:true,visible:true});addebmpanel.setHeader(a);addebmpanel.setBody('<div class="ebillpop"><div class="text">You have chosen to check out with eBillme.  eBillme will email you a bill that you can pay at your online bank, like a utility bill.  <br/><br/><strong>PLEASE NOTE:</strong> Your order will not ship until you have paid your bill.</div><form action="/asp/public/session/basket.asp?k='+b+'" method="post"><input type="image" class="ebillmebutton" name="finalizeEbmCO" src="http://common.csnimages.com/common/misc/ebillmecont.jpg" alt="eBillme - Pay cash with online banking"/><div class="primarytext">-OR-</div><input type="image" name="finalizePayPalCO" class="paypalbutton" alt="Checkout with Paypal" src="http://common.csnimages.com/common/misc/paypalbutton.gif"/><p class="clear"></p><div class="btn_primary_m"><input type="submit" value="Pay With Credit Card" name="finalizeStdCO" class="btn_primary_m"/></div></form></div>');addebmpanel.setFooter("");addebmpanel.render(document.body)}function BuildPromoPanel(a){return false}function loadbatcpanel(c,a){var b=document.getElementById("atcbody");if(b!=null){b.innerHTML=makemsg(c)}panelresize(additempanel,250,250);additempanel.setHeader(a);additempanel.show()}function showbatcpanelsimp(b,d,c){loadbatcpanel(c,b);var a="&sku="+encodeURIComponent(d);YAHOO.util.Connect.asyncRequest("GET","/asp/public/session/email_when_available.asp?ajax=1"+a,atc_callback);return false}function showbatcpanel(o,f,a,h){loadbatcpanel(a,o);var k="";var m="";var d=f.form;var l=GetSelOpts(f.form);if(h){k="&sku="+encodeURIComponent(d.sku.value)+"&optionIDs="+encodeURIComponent(l[2]);if(batcAllArray[0][0].toLowerCase()!=d.sku.value.toLowerCase()){for(var e=0;e<batcAllArray.length;e++){if(m!=""){m=m+"~"}m=m+batcAllArray[e][0];if(d["PiID_"+batcAllArray[e][1]]!=null){var c=GetOneOpts(d["PiID_"+batcAllArray[e][1]]);m=m+"-"+c[2]}}k=k+"&child="+encodeURIComponent(m)}else{var g=d["invs_"+d.sku.value.toLowerCase()];if(g!=null){if(g.getAttribute("PiList").indexOf(";")>=0){m=g.getAttribute("PiList").replace(/;/g,"~");m=m.replace(/:/g,"-")}}k=k+"&child="+encodeURIComponent(m)}}else{var b=f.getAttribute("prsku");k="&sku="+b;if(b.toLowerCase()!=d.sku.value.toLowerCase()){var n=f.parentNode.parentNode.childNodes[0];if(n!=null){k=k+"&optionIDs="+encodeURIComponent(n.getAttribute("PiList"))}}else{var j=f.getAttribute("kitid");var p;if(j!=""){p=d["invs_"+j.toLowerCase()]}if(p!=null){k=k+"&optionIDs="+encodeURIComponent(p.getAttribute("PiList"))}else{k=k+"&optionIDs="+encodeURIComponent(l[2])}}}YAHOO.util.Connect.asyncRequest("GET","/asp/public/session/email_when_available.asp?ajax=1"+k,atc_callback);return false}function loadMapCouponPanel(a){YAHOO.util.Connect.asyncRequest("GET","/asp/public/static/ajax/couponpop.asp?StoreID="+a,mcp_callback);return false}var mcp_callback={success:function(b){try{mcpcontent(b.responseText)}catch(a){CatchAjaxError("mcp1:"+a.message)}},failure:function(a){CatchAjaxError("mcp2:"+a.statusText)}};function mcpcontent(a){var b=document.getElementById("atcbody");if(a!=""){if(b!=null){b.innerHTML=a}panelresize(additempanel,350,740);additempanel.cfg.setProperty("visible",true)}else{additempanel.hide()}}function sendmcpform(a){var b=document.getElementById("atcbody");if(a!=null){var c=a.form;var d="/asp/public/static/ajax/couponpop.asp";YAHOO.util.Connect.asyncRequest("POST",d,mcp_callback,"submit=1&CuEmail="+c.elements.CuEmail.value);YAHOO.util.Connect.setForm(c)}return false}function sendbatcpanel(a,b,c){return sendpanelform(a,b,c,"/asp/public/session/email_when_available.asp?ajax=1")}function showpanel(a,b,c){return sendpanelform(a,b,c,"/asp/public/session/2_add_item.asp?ajax=1")}function showcatpanel(a,c,b){return sendpanelform(a,null,b,"/asp/public/session/2_add_item.asp?sp=1&ajax=1&sku="+c)}function sendpanelform(a,b,d,f){var c=document.getElementById("atcbody");if(b!=null){var e=b.form;YAHOO.util.Connect.setForm(e);YAHOO.util.Connect.asyncRequest("POST",f,atc_callback)}else{YAHOO.util.Connect.asyncRequest("GET",f,atc_callback)}if(c!=null){c.innerHTML=makemsg(d)}if(additempanel!=null){panelresize(additempanel,250,350);additempanel.setHeader(a);additempanel.show()}return false}function editpanel(b,a,e){var d=document.getElementById("atcbody");var c="/asp/atc_detail.asp?x=1"+a;if(d!=null){d.innerHTML=makemsg(e)}if(additempanel!=null){panelresize(additempanel,250,250);additempanel.setHeader(b);additempanel.show();c=c+"&ajax=1"}else{document.location=c;return true}YAHOO.util.Connect.asyncRequest("GET",c,atc_callback);return false}function makemsg(a){return'<div id="atcbody"><span class="waitimg">'+wi+'</span><span class="waitmsg">'+a+"</span></div>"}var atc_callback={success:function(b){try{atccontent(b.responseText)}catch(a){CatchAjaxError("atc1:"+a.message)}},failure:function(a){CatchAjaxError("atc2:"+a.statusText)}};function atccontent(a){var b;if(a.length>=1){if(a.substr(0,14)=="LoadBasket:www"){if(a.indexOf("override=1")>-1){document.location="/asp/public/session/basket.asp?fromadd=1&upsell=1&override=1"}else{document.location="/asp/public/session/basket.asp?fromadd=1&upsell=1"}}else{if(a.substr(0,14)=="LoadBasket:ww2"){if(a.indexOf("override=1")>-1){document.location="http://"+document.domain.replace("www.","ww2.")+"/asp/public/session/basket.asp?fromadd=1&upsell=1&override=1"}else{document.location="http://"+document.domain.replace("www.","ww2.")+"/asp/public/session/basket.asp?fromadd=1&upsell=1"}}else{if(a.substr(0,6)=="isret:"){var c=a.replace("isret:","");document.location="/asp/show_detail.asp?sku="+encodeURIComponent(c)+"&IsReturn=1"}else{b=document.getElementById("atcbody");if(b!=null){b.innerHTML=a}if(a.indexOf('<div id="otherupsellitems">')>=0){panelresize(additempanel,b.offsetHeight+85,740);make_ajax_sessioned_reqs(false,"","",document.referrer,document.location)}else{panelresize(additempanel,b.offsetHeight+85,910)}if(document.AddItemAjax!=undefined){ShowOptionPrice(document.AddItemAjax);UpdateSteps(document.AddItemAjax);UpdateFormInventory(document.AddItemAjax)}}}}}}function panelresize(e,c,g){var d;var k;var j;var f;var l=findPos(e);var b=0;if(typeof(window.innerWidth)=="number"){b=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){b=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){b=document.body.clientHeight}}}d=e.cfg.getProperty("height");k=e.cfg.getProperty("width");d=d.replace("px","");k=k.replace("px","");j=e.cfg.getProperty("x");f=e.cfg.getProperty("y");var a=(f+(d/2)-(b/2)+10);j=j-(g-k)/2;f=f-(c-d)/2;if(j<10){j=10}if(f<a){f=a}e.cfg.setProperty("height",c+"px");e.cfg.setProperty("width",g+"px");e.cfg.setProperty("x",j);e.cfg.setProperty("y",f)}function GreyNodes(a){if(a.childNodes.length>0){for(var b=0;b<a.childNodes.length;b++){a.style.color="#dddddd";GreyNodes(a.childNodes[b])}}}function inventorywait(a){var c='<div class="invwait"><img height="32" width="32" id="invprodswaitimg" alt="Please Wait" src="http://common.csnimages.com/common/misc/wait_bigflower.gif"/></div>';GreyNodes(a.parentNode.childNodes[1]);var b=a.form[a.id.replace("invs_","invl_")];if(b!=null){GreyNodes(b.parentNode.childNodes[1])}a.parentNode.getElementsByTagName("div")[0].innerHTML=c+a.parentNode.getElementsByTagName("div")[0].innerHTML}function UpdateFormInventory(c){var f=new Array();var a=0;var l=false;for(var e=0;e<c.elements.length;e++){if(c.elements[e].name=="inventoryitem"){f[a]=c.elements[e];a=a+1}}if(f.length<2||l){for(var e=0;e<f.length;e++){UpdateInventory(f[e])}}else{var h="";var b;var d;var g;var k=0;for(var e=0;e<f.length;e++){if(f[e].getAttribute("PiList")!=""){d="&e="+encodeURIComponent(f[e].getAttribute("PiList"))}else{d=""}if(f[e].getAttribute("batca")!=""&&f[e].getAttribute("batca")!="ALL"){g="&l="+encodeURIComponent(f[e].getAttribute("batca"))}else{g=""}b=f[e].value.replace("/asp/public/static/ajax/stock_total.asp?","");b=ShrinkFormData(b)+d+g;k=k+b.length+4;h=h+'<input type="hidden" name="z'+e+'" value="'+b+'"/>';inventorywait(f[e])}if(k<2000){h='<form name="invfrm" method="GET">'+h}else{h='<form name="invfrm" method="POST">'+h}h=h+'<input type="hidden" name="y" value="1"/></form>';var j=document.getElementById("invfrmdiv");if(j!=null){j.innerHTML=h;UpdateBulkInventory(f)}}}function ShrinkFormData(a){var g=a.split("&");var e="";var f="";var c="";var l,k;for(var b=0;b<g.length;b++){var j=g[b].split("=");if(j.length==2){if(j[1]!=""&&j[1]!="False"){if(e!=""){k="&"}else{k=""}if(j[0]=="MaShowStock"){e=e+k+"a="}if(j[0]=="PrAlwaysInStock"){e=e+k+"b="}if(j[0]=="KitSku"){e=e+k+"c="}if(j[0]=="sku"){f=j[1];continue}if(j[0]=="Mastersku"){e=e+k+"f="}if(j[0]=="AjaxID"){c=j[1];continue}if(j[0]=="PrAssignSupplierMethod"){if(j[1]=="1"){continue}else{e=e+k+"i="}}if(j[0]=="def_speed"){e=e+k+"j="}if(j[0]=="IsPiIDOrderTrusted"){e=e+k+"k="}if(j[0]=="LayoutStyle"){l=j[1];if(l=="CondensedKit"){l="c"}if(l=="PriceGrid"){l="p"}if(l!="ProdListGrid"&&l.length!=1){l="s"}if(l.length==1){e=e+k+"g="+l}}else{if(j[1]=="True"){l="1"}else{l=j[1]}e=e+l}}}}if(e!=""){e=e+"&"}if(f==c){e=e+"m="+f}else{e=e+"d="+f+"&h="+c}return e}function UpdateBulkInventory(d){var b={success:function(g){try{inventorybulkcontent(g.responseText,g.argument.invArray)}catch(f){CatchAjaxError("1 invb:"+f.message)}},failure:function(e){CatchAjaxError("2 invb:"+e.statusText)},argument:{invArray:d}};var c=document.invfrm;var a="POST";if(c.method.toUpperCase()=="GET"){a="GET"}YAHOO.util.Connect.setForm(c);YAHOO.util.Connect.asyncRequest(a,"/asp/public/static/ajax/stock_total.asp",b)}function UpdateInventory(h){var n={success:function(s){try{var q=s.argument.myElement.form;inventorycontent(s.responseText,s.argument.myElement);try{UpdateBATC(q)}catch(r){}}catch(r){CatchAjaxError("1 inv:"+r.message)}},failure:function(q){CatchAjaxError("2 inv:"+q.statusText)},argument:{myElement:h}};inventorywait(h);var k,j,o,m,a;k="";j=0;a=0;o=0;m=h.getAttribute("id");if(m!==null){m=m.replace(/invs/,"");if(m.substring(0,5)=="_sri_"){a=1}}var p,d;d="";p=true;for(var g=0;g<h.form.elements.length;g++){if(h.form.elements[g].name.substring(0,7)=="SriSku_"){o=1}if(h.form.elements[g].getAttribute("id")=="crnc"){d=h.form.elements[g].value+",";if(h.form.elements[g].checked==true){p=false}else{p=true}}if(a==1){if((h.form.elements[g].name=="SriSkuPiId_"+h.getAttribute("PrSKU"))){if((h.form.elements[g].disabled==false)&&h.form.elements[g].value!=null&&h.form.elements[g].getAttribute("id")!="crnc"){k=k+h.form.elements[g].value+",";j=j+1}}}else{if((h.form.elements[g].name.substring(0,4)=="PiID")&&(h.getAttribute("PrSKU")==h.form.elements[g].getAttribute("PrSKU"))){if((h.form.elements[g].disabled==false)&&h.form.elements[g].value!=null&&h.form.elements[g].getAttribute("id")!="crnc"){k=k+h.form.elements[g].value+",";j=j+1}}}}var f,c;c=false;iAt=h.value.toUpperCase().indexOf("MASTERSKU",0);if(iAt!=-1){iAt=(iAt+9+1);if(h.value.substring(iAt,iAt+1)!="&"){c=true}}if(((o==1)||(a==1))&&(!c)){k=k.substring(0,(k.length-1));f="&PiID="+encodeURIComponent(k.replace(d,""))}else{f="&PiID="+encodeURIComponent(h.getAttribute("PiList").replace(d,""))}var l="&batca="+encodeURIComponent(h.getAttribute("batca"));var b=h.value+f+l;var e=h.form;YAHOO.util.Connect.asyncRequest("GET",b,n)}function inventorybulkcontent(g,h){var c="~^~!~";var a="~@~^~";var d;if(g.length>=1){var b=g.split(c);for(var f=0;f<b.length;f++){var j=b[f].split(a);if(j.length>=2){if(h[j[0]]!=undefined){d=h[j[0]].form;inventorycontent(j[1],h[j[0]])}}}}try{UpdateBATC(d)}catch(k){}}function inventorycontent(f,e){var k="!@#$%";var a;if(f.length>=1){var c=f.split(k);var n=e.id;var d=e.form;var m=false;var g=false;var j=d.PiID;if(j!=undefined){m=true}if(!m){if(e.id.indexOf("invs_kit")>0){if(d[e.id.replace("invs_kit","PiID")]!=undefined){m=true}}}if(n.indexOf("_sri_")>0){g=true;m=false}if(c[1]!=undefined){var h=d[e.id.replace("invs_","invl_")];if(h!=undefined){h.parentNode.innerHTML=c[1]}}var b="";if(c[c.length-1]!=undefined){var l=d[e.id.replace("invs_","invgh_")];if(l!=undefined){if(document.getElementById("sbhdn_listformat")==undefined){if(m==true){a=c[c.length-1].replace('width="268"','width="280"');a=a.replace('height="45"','height="62"');l.parentNode.innerHTML=a.replace("_prod.gif","_multi_options.gif")}else{if(g==true){a=c[c.length-1].replace('width="268"','width="182"');a=a.replace('height="45"','height="26"');l.parentNode.innerHTML=a.replace("_prod.gif","_kit.gif")}else{if(document.getElementById("LayoutFormat")==undefined){l.parentNode.innerHTML=c[c.length-1]}else{if(document.getElementById("LayoutFormat").value=="2"){a=c[c.length-1].replace('width="268"','width="125"');a=a.replace('height="45"','height="43"');l.parentNode.innerHTML=a.replace("_prod.gif","_sb_s.png")}else{l.parentNode.innerHTML=c[c.length-1]}}}}}else{if(document.getElementById("sbhdn_listformat").value=="2"&&document.getElementById("sbhdn_layoutformat").value=="1"){l.parentNode.innerHTML=c[c.length-1].replace(".gif","_lg.gif")}else{if(document.getElementById("sbhdn_layoutformat").value=="2"){a=c[c.length-1].replace('width="268"','width="125"');a=a.replace('height="45"','height="43"');l.parentNode.innerHTML=a.replace("_prod.gif","_sb_s.png")}else{l.parentNode.innerHTML=c[c.length-1]}}}}}if(c[0]!=undefined){e.parentNode.innerHTML=c[0]}}}function UpdateBATC(e){var g,l,o,c,n;var h=new Array();var a=0;batcAllArray=new Array();for(var f=0;f<e.elements.length;f++){g=e.elements[f];if(g.name=="inventoryitem"){if(g.parentNode.className=="dyninv addtcrtrow"){g.parentNode.className="dyninv"}l=e[g.id.replace("invs_","invl_")];if(l!=null){if(l.parentNode.className=="dyninv"){l.parentNode.className="dyninv addtcrtrow"}}h[a]=g;a=a+1}else{if(g.name=="sbtn"){g.style.display="block";g.parentNode.childNodes[1].style.display="none"}if(g.name.indexOf("PrChildQty_")>=0){g.disabled=false;g.style.backgroundColor=""}if(g.name.indexOf("INC_")>=0&&g.disabled==true){g.disabled=false}if(g.name.indexOf("tmp_qty")>=0){g.disabled=false;g.style.backgroundColor=""}}}a=0;for(var f=0;f<h.length;f++){g=h[f];if(g.getAttribute("blkatc")!=null){if(g.getAttribute("batca")=="ALL"){var m="";batcAllArray[a]=new Array();batcAllArray[a][0]=g.getAttribute("prsku");if(g.id.indexOf("kit_")>=0){m=g.id.replace("invs_kit_","")}batcAllArray[a][1]=m;a=a+1}else{if(g.id.indexOf("invs_kit_")>=0){o=g.id.replace("invs_kit_","");c="PrChildQty_"+o;n="INC_"+o;if(g.parentNode.className=="dyninv"){g.parentNode.className="dyninv addtcrtrow"}l=e[g.id.replace("invs_","invl_")];if(l!=null){if(l.parentNode.className=="dyninv"){l.parentNode.className="dyninv addtcrtrow"}}if(e[c]!=null){e[c].value="0";e[c].disabled=true;e[c].style.backgroundColor="#dddddd"}if(e[n]!=null){e[n].checked=false;e[n].disabled=true}if(e.ExtendedChild!=null){for(var d=0;d<e.ExtendedChild.length;d++){if(e.ExtendedChild[d].value==o){e.ExtendedChild[d].checked=false;e.ExtendedChild[d].disabled=true}}}}else{if(g.id.indexOf("invs_")>=0){o=g.id.replace("invs_","");c="ProdOptionQty_"+o;if(e[c]!=null){e[c].value="0";e[c].disabled=true;e[c].style.backgroundColor="#dddddd"}for(var b=0;b<g.parentNode.childNodes.length;b++){if(g.parentNode.childNodes[b].className=="blockatc blockatcrow"){g.parentNode.childNodes[b].className="blockatc";break}}}}}}}if(a>0){BATCAll(e)}ShowOptionPrice(e)}function BATCAll(c){var f,e,d,k,a,h,l;for(e=0;e<c.elements.length;e++){if(c.elements[e].name=="sbtn"){f=c.elements[e];f.style.display="none";f.parentNode.childNodes[1].style.display="block"}if(c.elements[e].name=="tmp_qty"){f=c.elements[e];f.disabled=true;f.style.backgroundColor="#dddddd"}}l=false;for(e=0;e<batcAllArray.length;e++){k=document.getElementById("sbb_"+batcAllArray[e][0]);if(k!=null){k.style.display="none";var g=false;for(d=0;d<k.parentNode.childNodes.length;d++){if(k.parentNode.childNodes[d]!=undefined){if(k.parentNode.childNodes[d].className=="btn_primary_m"){if(g){k.parentNode.childNodes[d].style.display="inline"}else{g=true}}}}}k=document.getElementById("gds_"+batcAllArray[e][0]);a=document.getElementById("ProdListTableBody");if(k!=null&&a!=null){h=k.className;if(h=="sbinfo"){l=true}var b=document.createElement("div");b.id="gds_"+batcAllArray[e][0];b.className=h;b.innerHTML=k.innerHTML;a.removeChild(k);a.appendChild(b)}}if(l){a=document.getElementById("ProdListTableBody");for(d=0;d<a.childNodes.length;d++){if(a.childNodes[d].className=="sbinfo lastinfo"){a.childNodes[d].className="sbinfo"}if(d==(a.childNodes.length-1)){a.childNodes[d].className="sbinfo lastinfo"}}}if(document.getElementById("cg_hidden_inputs")!=null){checkCompared()}}YAHOO.namespace("YAHOO.Hack").FixIESelectWidth=new function(){var g=this;var j=YAHOO.util.Event;var k=YAHOO.util.Dom;var n={};var a={};var d=0;var l;var e=!!(document.uniqueID&&typeof(XMLHttpRequest)!="undefined");function m(q){q=q||this;if(q.tagName.toLowerCase()!="select"){throw Error("element ["+q.id+"] is not <select>");return}if(!k.hasClass(q.parentNode,"select-box")){throw Error("className select-box is not included for element ["+q.id+"]");return}var p=q.runtimeStyle;var o=q.parentNode.runtimeStyle;o.fonSize=0;var r=q.parentNode.currentStyle.display.toLowerCase();if(r==""||r=="inline"||r=="inline-block"){o.display="inline-block";o.width=q.offsetWidth+"px";o.height=q.offsetHeight+"px";o.position="relative";p.position="absolute";p.top=0;p.left=0}q._timerId=(d+=1);q.selectedIndex=Math.max(0,q.selectedIndex);n["_"+q._timerId]=setTimeout("void(0)",0);a["A"+q._timerId]=setTimeout("void(0)",0);j.on(q,"mouseover",f);j.on(document,"mousedown",h,q,true);j.on(q,"change",b,q,true)}function b(o){status++;this.runtimeStyle.width=""}function f(s){var q=this;if(l&&l!=q){h.call(l,s)}var t="_"+q._timerId;var o="A"+q._timerId;clearTimeout(n[t]);var r=function(){clearTimeout(a[o]);if(Math.abs(p-u)>3){u+=(p-u)/3;q.runtimeStyle.width=u+"px";a[o]=setTimeout(r,0)}else{q.runtimeStyle.width="auto";q.selectedIndex=Math.max(0,q.selectedIndex)}};var u=q.offsetWidth;q.runtimeStyle.width="auto";var p=q.offsetWidth;clearTimeout(a[o]);r();q.focus();l=q}function h(q,p){p=(q.srcElement||q.target);if(p==this&&q.type!="mouseover"){status++;j.stopEvent(q);return false}p=this;clearTimeout(a["A"+p._timerId]);var r="_"+p._timerId;var o=function(){p.runtimeStyle.width=""};if(q.type=="mouseover"){o()}else{n[r]=setTimeout(o,100)}}function c(o){o=[o,""].join("");if(document.uniqueID&&window.createPopup){j.onAvailable(o,m);return true}else{return false}}return c};var magglasspanel;YAHOO.util.Event.addListener(window,"load",initMagGlassPanel);function initMagGlassPanel(){magglasspanel=new YAHOO.widget.Panel("magglasspanel",{width:"41px",height:"37px",visible:false,draggable:false,close:false,underlay:"none"});magglasspanel.render("ProdListContent");if(document.getElementById("magglasspanel")){document.getElementById("magglasspanel").style.display="block"}}function showMagGlassPanel(b,a){var c=b.split("_")[0];magglasspanel.setBody('<img id="'+c+'_glass" src="http://common.csnimages.com/common/misc/mag.png" onmouseover="showBigProdImage(\''+c+"_glass','"+a+"')\"/>");magglasspanel.cfg.setProperty("context",[b,"br","br"]);magglasspanel.show()}function hideMagGlassPanel(){magglasspanel.hide()}var bigprodimagepanel;YAHOO.util.Event.addListener(window,"load",initBigProdImagePanel);function initBigProdImagePanel(){bigprodimagepanel=new YAHOO.widget.Panel("bigprodimagepanel",{width:"354px",height:"354px",visible:false,draggable:false,close:false});bigprodimagepanel.render("ProdListContent");if(document.getElementById("bigprodimagepanel")){document.getElementById("bigprodimagepanel").style.display="block"}}function showBigProdImage(e,d){var f=e.split("_")[0];var b=document.getElementById(f+"_url").href;var a=document.getElementById(f+"_img").src;var c=document.getElementById(f+"_img").title;a=a.replace("/lf/2","/lf/4");bigprodimagepanel.setBody('<a id="MagnifiedImageBoxLink" title="'+c+'" href="'+b+'" onmouseout="hideBigProdImage()"><img id="MagnifiedImageBoxImage" src="'+a+'" alt=""/></a>');bigprodimagepanel.cfg.setProperty("context",[e,d,d]);bigprodimagepanel.show()}function hideBigProdImage(){bigprodimagepanel.hide()}var rolloverpanel;YAHOO.util.Event.addListener(window,"load",initRollOverPanel);function initRollOverPanel(){rolloverpanel=new YAHOO.widget.Panel("rolloverpanel",{visible:false,draggable:false,close:false,autofillheight:"body",underlay:"none"});rolloverpanel.render("ProdListContent");if(document.getElementById("rolloverpanel")){document.getElementById("rolloverpanel").style.display="block"}}function showOptNotify(b,a){rolloverpanel.cfg.setProperty("context",[a,"tl","bl"]);if(b>0){YAHOO.util.Connect.asyncRequest("GET","/asp/public/static/ajax/optnotify.asp?PonID="+b,optnotify_callback)}}function hideOptNotify(){rolloverpanel.hide()}var optnotify_callback={success:function(d){try{xmlDoc=d.responseXML;var c=xmlDoc.documentElement.getElementsByTagName("rollover");if(c[0].hasChildNodes()){var a=c[0].firstChild.nodeValue;if(a.length!=0){document.getElementById("DisplayText").innerHTML=c[0].firstChild.nodeValue;document.getElementById("rolloverpanel").style.display="block";rolloverpanel.show()}}}catch(b){CatchAjaxError(b.message+"***")}},failure:function(a){CatchAjaxError(a.statusText+"***fail***")}};function update_store_banner(){var a="/asp/public/static/ajax/store_banner.asp";YAHOO.util.Connect.asyncRequest("GET",a,update_store_banner_callback)}var update_store_banner_callback={success:function(b){try{update_banner(b.responseText)}catch(a){CatchAjaxError("store banner error:"+a.message)}},failure:function(a){CatchAjaxError("store banner status:"+a.statusText)}};function update_banner(a){var d=a.split("!#ZZ#!");var b=document.getElementById("storebanner");if(b!=null){b.innerHTML=d[0];if(d[0]=""){b.innerHTML='<span class="primary_shipheader">&nbsp</span><span class="secondary_shipheader">&nbsp;</span>'}}if(d.length>1){var c=document.getElementById("emergency_container");if(c!=null&&d[1]!=null){c.innerHTML=d[1]}}if(d.length>3){if((document.getElementById("clnTopBlockAccount")!=null)&&(d[2].indexOf("account")>-1)){document.getElementById("clnTopBlockAccount").innerHTML=d[3]}if((document.getElementById("clnTopBlockSuperbrowse")!=null)&&(d[2].indexOf("superbrowse")>-1)){document.getElementById("clnTopBlockSuperbrowse").innerHTML=d[3]}if((document.getElementById("clnTopBlockHomepage")!=null)&&(d[2].indexOf("homepage")>-1)){document.getElementById("clnTopBlockHomepage").innerHTML=d[3]}if((document.getElementById("clnTopBlockCategory")!=null)&&(d[2].indexOf("categories")>-1)){if(d[2].indexOf(","+document.getElementById("clnCatid").value+",")>-1){document.getElementById("clnTopBlockCategory").innerHTML=d[3]}}}}function getHolidayPromo(){var a="/asp/public/static/ajax/holiday_promo.asp";YAHOO.util.Connect.asyncRequest("GET",a,holiday_promo_callback)}var holiday_promo_callback={success:function(b){try{update_holiday_promo(b.responseText)}catch(a){CatchAjaxError("holiday promo error:"+a.message)}},failure:function(a){CatchAjaxError("holiday promo status:"+a.statusText)}};function update_holiday_promo(a){var b=document.getElementById("holidaypromo");if(b!=null){b.innerHTML=a}}var localStarted=false;function load_csnLocalContent(b,g,f,e,h,c){if(hideSponsoredAds()){return}localStarted=true;var d="/asp/public/static/ajax/get_local.asp";d=d+"?CurrentURL="+encodeURIComponent(b);d=d+"&sku="+encodeURIComponent(g);d=d+"&CaId="+encodeURIComponent(f);d=d+"&ClId="+encodeURIComponent(e);d=d+"&MaId="+encodeURIComponent(h);d=d+"&SoId="+encodeURIComponent(c);d=d+"&version=1";var a={success:function(k){try{show_csnlocalContent(k.responseText)}catch(j){CatchAjaxError("csnlocal:"+j.message)}},failure:function(j){CatchAjaxError("csnlocal:"+j.statusText)}};YAHOO.util.Connect.asyncRequest("GET",d,a)}function show_csnlocalContent(a){if(a.length>0){document.getElementById("csnlocal").style.display="inline-block";document.getElementById("csnlocal").innerHTML=a}else{if(typeof(google_afs_query)!="undefined"&&typeof(readyForAdsense)!="undefined"&&readyForAdsense){startAdsenseForSearch()}else{foundLocalAds=false}}}function print_local_popup(b){var a="/asp/public/static/ajax/local_ad_redirect.asp?pplogid="+encodeURIComponent(b);var c={success:function(f){try{}catch(d){CatchAjaxError("csnlocal:"+d.message)}},failure:function(d){CatchAjaxError("csnlocal:"+d.statusText)}};YAHOO.util.Connect.asyncRequest("GET",a,c);window.print()}function isMouseLeaveOrEnter(c,b){if(c.type!="mouseout"&&c.type!="mouseover"){return false}var a=c.relatedTarget?c.relatedTarget:c.type=="mouseout"?c.toElement:c.fromElement;while(a&&a!=b){a=a.parentNode}return(a!=b)}function jumpToAnchor(a){window.location=String(window.location).replace(/\#.*$/,"")+"#"+a}function hideSomeCollectionItems(){var c,a;c=a="";if(document.cookie.length>0){c_start=document.cookie.indexOf("CSN=");if(c_start!=-1){c_start=c_start+4;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}c=unescape(document.cookie.substring(c_start,c_end))}else{return}}else{return}prvw_start=c.indexOf("PRVW=");if(prvw_start!=-1){prvw_start=prvw_start+5;prvw_end=c.indexOf("&",prvw_start);if(prvw_end==-1){prvw_end=c.length}a=unescape(c.substring(prvw_start,prvw_end))}else{return}var d=a.split("|");var e=parseInt(document.getElementById("numColItems").value,10);for(var b=0;b<d.length;b++){if(document.getElementById("col~"+d[b])!=null){document.getElementById("col~"+d[b]).style.display="none";e--}}if(e!=null&&e<=0){if(document.getElementById("othercollectionitems")!=null){document.getElementById("othercollectionitems").style.display="none"}}return}function hideSponsoredAds(){return(getCookie_yui("CSNHideSponsoredAds")=="1")};