var menuItemHeight=27;var delay=100;var delayStart=210;var start;var hideFlag;var hideTimer;var showTimer;var curMenu;var activeMenu;var activeIframe;var onMenu=false;var menusSize=0;var hasSelect=false;var popInfoIndex=-10;var productInfoIndex=-10;var popTimeout;var popDir;document.onmouseup=mouseUp;function clearHideTimer(){if(hideTimer){clearTimeout(hideTimer)}hideTimer=null;hideFlag=false}function writeBanner(a){var b=Math.random()+"";var c=b.substring(2,b.length);document.writeln('<SCRIPT type="text/javascript" LANGUAGE="JavaScript1.1" SRC="http://ad.doubleclick.net/adj/'+a+";dcopt=ist;tile=1;sz=468x60;ord="+c+'?"></SCRIPT>')}var img="http://img.shopping.com";function reload(){window.location.reload()}function ws(a){window.status=a?a:"";return true}function pops(b,a,c){var d=window.open(b,"popup","screenX=0,screenY=0,resizable=yes,scrollbars=yes,height="+c+",width="+a);d.focus()}function popsl(c,b,d,a,e){window.open(c,"popup","screenX="+a+",screenY="+e+",top="+e+",left="+a+",resizable=yes,scrollbars=yes,height="+d+",width="+b)}function pop(a){pops(a,520,300)}function fs(){pops("/pop/featuredStore?js=0",520,330)}function fsp(){pops("/pop/featuredStore?ct=cars&js=0",520,330)}function fp(){pops("/pop/featuredProduct?js=0",550,380)}function ts(){pops("/pop/trustedStore?js=0",520,470)}function sb(){pops("/pop/smartBuy?js=0",520,450)}function wl(){pops("/pop/whyStoresListed?js=0",520,500)}function ii(){pops("/pop/informativeInterstitial?js=0",440,280)}function dc(a,b){document.write("<a href="+a+"&CT="+b+">")}function bookmark(){var c=window.location.href;var b=document.title;if(window.sidebar){window.sidebar.addPanel(b,c,"")}else{if(document.all){window.external.AddFavorite(c,b)}else{if(window.opera&&window.print){var a=document.createElement("a");a.setAttribute("href",c);a.setAttribute("title",b);a.setAttribute("rel","sidebar");a.click()}}}}function sortReviews(d,g,c){var f=document.frmSort;var b=f.sortby.selectedIndex;var a=f.sortby.options[b].value;var e;if(d){e="/xPR-"+d+"~S-"+a;if(c==1){e=e+"~ZD-"+c}}else{e="/xMR-"+g+"~S-"+a}document.location.href=e}linkName2Index=new Object();function getLinkNamed(a){var c=document;if(linkName2Index[a]>=0){return c.links[linkName2Index[a]]}var e=c.links.length-1;for(var b=e;b>=0;b--){if(typeof c.links[b].name!="undefined"){if(c.links[b].name==a){linkName2Index[c.links[b].name]=b;return c.links[b]}}}return null}function cpl(g,f,d){var a=getLinkNamed(g);var b=getLinkNamed(f);if(a!=null&&b!=null){var e=b.innerHTML;var c=a.href.lastIndexOf("&CT=");if(c!=-1){b.href=a.href.substring(0,c+4)+d}else{b.href=a.href}b.innerHTML=e;b.target=a.target;b.className="";b.onclick=a.onclick}}function prodSel(){var d=document.getElementsByName("cmpbox");var f=d.length;for(var c=0;c<f;c++){var b=document.getElementById("prdRow"+d[c].value).childNodes;var e;for(var a=0;a<b.length;a++){e=b[a];if(d[c].checked){e.style.backgroundColor="#f0f3e4";e.style.borderTop="1px #bbcb90 solid"}else{e.style.backgroundColor="#fff";b[0].style.backgroundColor="#f7f5d7";if(c==0){e.style.borderTop="1px #ccc solid"}else{if(d[c-1].checked){e.style.borderTop="1px #bbcb90 solid"}else{e.style.borderTop="1px #ccc solid"}}}}}}function handlePrdLnk(b,a,f,c,e,d){b=getPageLink(b);if(a>1){b+="~PG-"+a}else{b=checkBeforeSbs(b)}if(b==-1){displayPopup("/pop/sbs_oops","","sbs_oopsArea",c,e,d)}else{if(b==-2){return}else{document.location.href=b}}}function checkBeforeSbs(b){var c=b;if(b.indexOf("xSBS")!=-1){if(b.indexOf("PRDLT-")==-1){c=-1}else{var d=b.substring(b.indexOf("PRDLT-"));var a=d.split("-");if(document.location.href.indexOf("dealtime")>-1&&a.length>6){alert("Please select only 5 products or less");return -2}}}return c}function getPageLink(d){var k=document.getElementsByName("cmpbox");var e;var j="~PRDLT";var f=d.indexOf("PRDLT");if(f!=-1){e=getProductsFromUrl(d);j=""}var g=0;var c=0;var a=k.length;for(var b=0;b<a;b++){if(k[b].checked&&!existsInArray(k[b].value,e)){j+="-"+k[b].value;g=1}else{if(!k[b].checked&&existsInArray(k[b].value,e)){d=removePrdFromUrl(d,k[b].value);c++}}}if(g){d+=j}else{if(e&&c==(e.length-1)){d=d.replace("~PRDLT","")}}return d}function getProductsFromUrl(b){var d=b.split("~");var a;var e=d.length;for(var c=0;c<e;c++){if(d[c].indexOf("PRDLT")!=-1){a=d[c].split("-");break}}return a}function existsInArray(d,a){var c=0;if(a){var e=a.length;for(var b=0;b<e;b++){if(d==a[b]){c=1;break}}}return c}function removePrdFromUrl(a,b){return a.replace("-"+b,"")}function sortProducts(){var a=document.frmSort;document.location.href="/xPP-"+a.seoUrl.value+"~S-"+a.sortDropDown.options[a.sortDropDown.selectedIndex].value}function chgl(d,a,g,f){var b=a.split("|");var e=b.length;for(var c=0;c<e;c++){changeLink(d,"PL"+f+b[c],b[c])}changeLink(d,"PLP"+f,g-1);changeLink(d,"PLN"+f,parseInt(g)+1)}function changeLink(b,c,d){var a=getLinkNamed(c);if(a!=null){a.href="javascript:handlePrdLnk('"+escape(b)+"','"+d+"')"}}function changePrefDomain(d,a,c){var b=new Date();b.setFullYear(b.getFullYear()+1);document.cookie="prefServer="+escape(d)+";expires="+b.toGMTString()+";path=/;domain="+c;_redirect("http://"+d+"/?ncrd=1&pref=1&linkin_id="+a)}function _redirect(a){if(a){opener.location.href=a}window.close()}function selectPrefDomain(c,d){var b=document.forms[c].elements.pref;var e=b.length;for(var a=0;a<e;a++){if(b[a].checked){changePrefDomain(b[a].value,"",d)}}}function createCookie(c,e,f,d){var a;if(f){var b=new Date();b.setTime(b.getTime()+(f*86400000));a="; expires="+b.toGMTString()}else{a=""}document.cookie=c+"="+escape(e)+a+"; path=/"+(d?"; domain="+d:"")}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");var g=a.length;for(var d=0;d<g;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return unescape(f.substring(e.length,f.length))}}return null}function eraseCookie(a){createCookie(a,"",-1,domain)}function lz(a){var b=String(a);return b.length==1?"0"+b:b}function validateInput(a){if(document.forms[0].FD&&document.forms[0].FD.value<0){document.forms[0].FD.value=0}if(a.value==""){return false}else{return true}}function toggle(a){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display="block"}else{document.getElementById(a).style.display="none"}return true}function on(a,b){if(document.getElementById(a)!=null){if(b!=null){document.getElementById(a).style.display="inline"}else{document.getElementById(a).style.display="block"}}return true}function off(a){if(document.getElementById(a)!=null){document.getElementById(a).style.display="none"}return true}var currentPopupDivId;var popupTimerValue;function divPopup(a,f,b,c){if(currentPopupDivId!=null&&document.getElementById(currentPopupDivId)!=null){clearPopupTimer();document.getElementById(currentPopupDivId).style.display="none"}on(a);var e=document.getElementById(a);var d="";$carouselWidth=$("#carouselWrap div.carouselFrame").width();if($carouselWidth>820){d=6}else{if($carouselWidth<580){d=4}else{d=5}}if(f%d==0||((f*1)+1)%d==0||b>0){e.style.marginLeft=-279+"px";$(e).removeClass("sgPopupBoxLeft");$(e).addClass("sgPopupBox")}else{e.style.marginLeft=126+"px";$(e).removeClass("sgPopupBox");$(e).addClass("sgPopupBoxLeft")}copyPopupUrl(a,c,".closeButton");currentPopupDivId=a;return true}function copyPopupUrl(a,b,c){if(c==null||c==""){$("#"+a+" a").each(function(d,e){$(e).attr("href",b)})}else{$("#"+a+" a").not(c).each(function(d,e){$(e).attr("href",b)})}}function startPopupTimer(a){popupTimerValue=setTimeout("off('"+a+"')",1000)}function clearPopupTimer(){if(popupTimerValue){clearTimeout(popupTimerValue)}popupTimerValue=null}function copyDealUrl(){$(".priceShipCenter .sbsTotalPrice a").each(function(a){$(this).attr("href",$(this).parent().prev().children().attr("href"))})}function byClass(f,d,b){var a=new Array();a=document.getElementsByTagName("div");var e=a.length;for(var c=0;c<e;c++){if(d=="on"){if(a[c].className==f){a[c].style.display="block"}}if(d=="off"){if(a[c].className==f){a[c].style.display="none"}}if(d=="toggle"){if(a[c].style.display=="none"){a[c].style.display="block"}else{a[c].style.display="none"}}}}function swap(b,a,c){if(c!=null){on(b,c)}else{on(b)}off(a);return true}function WTBToggleOpen(){on("wtb");document.getElementById("close").style.display="inline";document.getElementById("open").style.display="none";return true}function WTBToggleClose(){off("wtb");document.getElementById("open").style.display="inline";document.getElementById("close").style.display="none";return true}function assembleSegments(b){var e="";var a=0;var f=b.length;for(var d=0;d<f;d++){var c=b[d].split("_");e+=a>0?";s="+c[1]:";s="+c[1];a++}return e}function multiPageSBS(c,f){var g="";var e=false;var d="";var a="0123456789";if((f!=null)&&(f.length>0)){g=f.substring(0,1);if(f.length>1){var b=f.charAt(1);if(b!=null){if(a.indexOf(b)!=-1){e=true}}}if((g=="1")&&(!e)){d=f.substring(1,f.length)}else{d="~PG-"+f}}document.location.href=getPageLink(c)+d}function dealclick(a,b,d){var e=getLinkNamed(b).href;var c=e.lastIndexOf("&CT=");if(c!=-1){a.href=e.substring(0,c+4)+d}else{a.href=e}}function getElementsByClassName(f,q,d){q=q||"*";d=d||document;var s=(q=="*"&&document.all&&!window.opera)?document.all:d.getElementsByTagName(q);var r=new Array();var a=f.indexOf("|")!=-1?"|":" ";var t=f.split(a);var o=s.length;for(var p=0;p<o;p++){var l=s[p].className.split(" ");if(a==" "&&t.length>l.length){continue}var v=0;var u=l.length;comparisonLoop:for(var g=0;g<u;g++){var b=t.length;for(var e=0;e<b;e++){if(t[e]==l[g]){v++}if((a=="|"&&v==1)||(a==" "&&v==t.length)){r.push(s[p]);break comparisonLoop}}}}return r}var max="11";var addOptAlertMsg="Please select only 10 options or less.";function add(){var a=0;var d=document.forms.multiselect.length;for(var b=0;b<d;b++){var c=document.forms.multiselect.elements[b];if(c.type=="checkbox"&&c.checked){a++}}if(a>=max){alert(addOptAlertMsg);return false}else{return true}}function updateSurveyCookie(){var b=getCookie("session");var a=window.location.href;if(b){b=b.replace("FBS%3D0","FBS%3D1");if(a.indexOf("doorone.com")>0){document.cookie="session="+b+";path=/;domain=doorone.com;"}else{if(a.indexOf("shopping.com")>0){document.cookie="session="+b+";path=/;domain=shopping.com;"}}}}function getCookie(a){if(document.cookie.length>0){start=document.cookie.indexOf(a+"=");if(start!=-1){start=start+a.length+1;end=document.cookie.indexOf(";",start);if(end==-1){end=document.cookie.length}return document.cookie.substring(start,end)}}return null}function showGalleryDiv(d,c,e,b){if(galleryImages!=null){var a=document.getElementById(e+b);a.src=galleryImages[b-1][0];a.height=galleryImages[b-1][1];a.width=galleryImages[b-1][2];if(galleryImages.length>2&&b>1&&b<galleryImages.length){a=document.getElementById(e+(b-1));a.src=galleryImages[b-2][0];a.height=galleryImages[b-2][1];a.width=galleryImages[b-2][2];a=document.getElementById(e+(b+1));a.src=galleryImages[b][0];a.height=galleryImages[b][1];a.width=galleryImages[b][2]}}document.getElementById(c).style.display="none";document.getElementById(d).style.display="block"}function changeLocation(a){var b=a.options[a.selectedIndex].value;if(b!=""){window.location=b}}function changeSortLocation(a){var b=a.options[a.selectedIndex].value;if(b!=""){window.location=b+"#stt"}}var debugAJAX=false;var ajaxUpdateTargetContent=makeAJAHRequest;function makeAJAHRequest(f,c,e,d,a){var b=null;if(window.XMLHttpRequest){b=new XMLHttpRequest()}else{if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLHTTP")}}if(b!=undefined){b.onreadystatechange=function(){ajahRequestCompleted(b,c,e,d,a)};b.open(f,c,true);if(!f){f="POST"}if(f=="POST"){b.setRequestHeader("Connection","close");b.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");b.setRequestHeader("Method","POST "+c+"HTTP/1.1")}if(e){b.send(e)}else{b.send("")}}}function ajahRequestCompleted(d,c,f,e,a){if(d.readyState==4){if(d.status==200){if(debugAJAX){var b;if(f){b=c+"?"+f}else{b=c}e.innerHTML='<div class="debugAJAXBox"><div class="debugAJAXPath">AJAX content: <a class="debugAJAXAnchor" href="'+b+'">'+b+"</a></div><br />"+d.responseText+"</div>"}else{e.innerHTML=d.responseText}if(a!=null){a(d,e)}}}}function toggleAJAXBorders(){if(debugAJAX){debugAJAX=false;document.getElementById("debugToggleAJAXSpan").innerHTML=" (Current state: Off)"}else{debugAJAX=true;document.getElementById("debugToggleAJAXSpan").innerHTML=" (Current state: On)"}}function getObj(b){var a;if(document.getElementById){a=document.getElementById(b)}else{if(document.all){a=document.all[b]}}return a}function findPosX(a){var b=0;if(a.offsetParent){while(a.offsetParent){b+=a.offsetLeft;a=a.offsetParent}}else{if(a.x){b+=a.x}}return b}function findPosY(b){var a=0;if(b.offsetParent){while(b.offsetParent){a+=b.offsetTop;b=b.offsetParent}}else{if(b.y){a+=b.y}}return a}if(document.addEventListener){document.addEventListener("mouseup",mouseUp,false)}function mouseUp(){return true}var mouseVerticalPos;var mouseHorizontalPos;var popContent="popContent";var popArea="popArea";var popArrowLeft="popArrowLeft";var popArrowRt="popArrowRt";var popArrowTop="popArrowTop";var popArrowBtm="popArrowBtm";var lastTop;var lastLeft;var isShort;function preloadPopupImages(){var a=new Image();a.src="http://img.shopping.com/jfe/bb/popups/infoPopArrowLeft.gif";a.src="http://img.shopping.com/jfe/bb/popups/infoPopArrowRt.gif";a.src="http://img.shopping.com/jfe/bb/popups/infoCornerTopLeft.gif";a.src="http://img.shopping.com/jfe/bb/popups/infoCornerTopRt.gif";a.src="http://img.shopping.com/jfe/bb/popups/infoPopTopRepeat.gif";a.src="http://img.shopping.com/jfe/bb/popups/infoPopLeftRepeat.gif";a.src="http://img.shopping.com/jfe/bb/popups/infoPopRtRepeat.gif";a.src="http://img.shopping.com/jfe/bb/popups/infoCornerBtmLeft.gif";a.src="http://img.shopping.com/jfe/bb/popups/infoCornerBtmRt.gif";a.src="http://img.shopping.com/jfe/bb/popups/infoPopBtmRepeat.gif"}function detectClick(b){var a;if(!b){b=window.event}if(b.target){a=b.target}else{if(b.srcElement){a=b.srcElement}}if(a.nodeType==3){a=a.parentNode}if(b.type=="mousedown"&&isOutsidePopup(a)){closeAllPopups()}}function isOutsidePopup(a){if(a&&a.id!="popText"&&a.id!="popTitle"&&a.id!="popAction"&&a.id.substring(0,6)!="popTop"&&a.id!="popMidRt"&&a.id.substring(0,9)!="okgnauhc."&&a.id.substring(0,3)!="IN."&&a.tagName!="HTML"){return true}return false}function getPopupTopPos(b,a){if(navigator.appName=="Netscape"){if((window.innerHeight-(b.pageY-window.pageYOffset))<a){mouseVerticalPos="bottom"}else{mouseVerticalPos="top"}return b.pageY}else{if(isIE()){if((document.documentElement.clientHeight-window.event.clientY)<a){mouseVerticalPos="bottom"}else{mouseVerticalPos="top"}return window.event.clientY}}}function getPopupLeftPos(b,a){if(navigator.appName=="Netscape"){if((window.innerWidth-(b.pageX-window.pageXOffset))<a){mouseHorizontalPos="left"}else{mouseHorizontalPos="right"}return b.pageX}else{if(isIE()){if((document.documentElement.clientWidth-window.event.clientX)<a){mouseHorizontalPos="left"}else{mouseHorizontalPos="right"}return window.event.clientX}}}function closePopup(a){document.getElementById(a).innerHTML="&nbsp;";document.getElementById(a).style.display="none";if(isIE()&&document.getElementById("generalIframe")!=null){if(document.getElementById("generalIframe").style.display=="block"){document.getElementById("generalIframe").style.display="none"}}}function closeAllPopups(){var a=new Array("currently_not_availableArea","trustedArea","deliveryOptionsPopArea","enterZipArea","featuredItemArea","featuredProductArea","top5mpPopArea","smartBuyArea","featuredStoreArea","trustedCriteriaArea","whatIsArea","sponsoredListingsArea","trustedStoreArea","smartBuyCriteriaArea","FAQArea","memberLeadArea","memberAdvArea","memberTopRevArea","no_longer_availableArea","not_yet_availableArea","sbs_oopsArea","whyStoresListedArea","whatsHotPopArea","freeMerchantArea","payPalArea","buyItNowArea","cookiePolicyArea","storeInfoPopArea","largerImageArea","largeImage","popIn","buyingGuideArea","multiSelectArea","dpTaxShippingPopArea","whyIsOfferPopArea","lowestPriceArea");var c=a.length;for(var b=0;b<c;b++){if(document.getElementById(a[b])!=null){closePopup(a[b])}}document.onmousedown=null}function displayPopup(a,i,e,d,f,g,b,c){if(useSimplePop){pops(a,400,400)}else{topPos=getPopupTopPos(d,g);leftPos=getPopupLeftPos(d,f);callback=function(){showPopup(e,topPos,leftPos,f,g);document.onmousedown=detectClick};if(e!="trustedCriteriaArea"&&e!="trustedStoreArea"&&e!="smartBuyCriteriaArea"||isIE()||navigator.appVersion.toLowerCase().indexOf("safari")>=0||navigator.userAgent.toLowerCase().indexOf("firefox/3")>=0){closeAllPopups()}if(c!=null){document.getElementById(e).innerHTML='<div id="popArea"><div id="popArrowLeft">&nbsp;</div><div id="popArrowRt">&nbsp;</div><div id="popContent"><div class="popTop" id="popTop"><div class="popTopRt" id="popTopRt"><div class="popTopMid" id="popTopMid"></div></div></div><div id="popMiddle" class="popMiddle"><div id="popMidRt" class="popMidRt"><p id="popAction" class="popAction" style="float: right;"><a class="closeBtn" onclick="closeAllPopups();return false;" href="/pop/nojs"></a></p><h2 id="popTitle" class="popTitle">'+b+'</h2><div id="popText">'+c+'<div class="clearAll">&nbsp;</div></div></div></div><div class="popBtm"><div class="popBtmRt"><div class="popBtmMid">&nbsp;</div></div></div></div></div>';callback()}else{makeAJAHRequest("POST",a,i,document.getElementById(e),callback)}}}function showPopup(b,i,e,m,l){var a=document.getElementById(popArea).style;a.width=m+"px";var g=document.getElementById(b).style;var k=document.getElementById(popArrowLeft).style;var d=document.getElementById(popArrowRt).style;g.display="block";var c=$("#"+b+" #popContent").height();var f=c-30;var n=f-10;var j=(mouseVerticalPos=="bottom"&&b!="whatsHotPopArea"&&b!="whyIsOfferPopArea"&&b!="FAQArea");a.zIndex=99999;if(navigator.appName=="Netscape"){if(b=="largerImageArea"){a.top=(i-f+80)+"px"}else{if(j){a.top=(i-f)+"px"}else{a.top=(i-brandPop2ndOffset)+"px"}}if(mouseHorizontalPos=="left"){a.left=(e-m+30)+"px";k.display="none";if(j){d.top=(n)+"px"}else{d.top=brandTopArrow2ndOffset+"px"}}else{a.left=(e+12)+"px";d.display="none";if(b=="largerImageArea"){k.top=(n-80)+"px"}else{if(j){k.top=(n-brandBtmArrow2ndOffset)+"px"}else{k.top=brandTopArrow2ndOffset+"px"}}}}else{if(isIE()){var o=document.getElementById("generalIframe");if(b=="largerImageArea"){a.top=(i+document.documentElement.scrollTop-f+80)+"px";o.style.top=(i+document.documentElement.scrollTop-f+80)+"px"}else{if(j){a.top=(i+document.documentElement.scrollTop-f)+"px";o.style.top=(i+document.documentElement.scrollTop-f)+"px"}else{a.top=(i+document.documentElement.scrollTop-brandPop2ndOffset)+"px";if(o!=null){o.style.top=(i+document.documentElement.scrollTop-brandPop2ndOffset)+"px"}}}a.zIndex=a.zIndex+10;if(mouseHorizontalPos=="left"){a.left=(e-m+12)+"px";if(o!=null){o.style.left=(e-m+12)+"px"}k.display="none";if(j){d.top=(n)+"px"}else{d.top=brandTopArrow2ndOffset+"px"}}else{a.left=(e+12)+"px";if(o!=null){o.style.left=(e+12)+"px"}d.display="none";if(b=="largerImageArea"){if((i+document.documentElement.scrollTop-f+80)>0){k.top=(f-93)+"px"}else{k.top=(f-93)+(i+document.documentElement.scrollTop-f+80)+"px"}}else{if(j){k.top=(n)+"px"}else{if((i+document.documentElement.scrollTop-brandPop2ndOffset)>0){k.top=brandTopArrow2ndOffset+"px"}else{k.top=brandTopArrow2ndOffset+(i+document.documentElement.scrollTop-brandPop2ndOffset)+"px"}}}}}}if(isIE()||navigator.appVersion.toLowerCase().indexOf("safari")>=0||navigator.userAgent.toLowerCase().indexOf("firefox/3")>=0){var o=document.getElementById("generalIframe");if(b=="trustedArea"||b=="featuredStoreArea"||b=="smartBuyArea"||b=="whyStoresListedArea"){lastTop=a.top;lastLeft=a.left}else{if(b=="trustedCriteriaArea"||b=="trustedStoreArea"||b=="smartBuyCriteriaArea"){k.display="none";d.display="none";a.top=lastTop;a.left=lastLeft;if(o!=null){o.style.left=lastLeft;o.style.top=lastTop}}}}setPopupIFrame(m,c)}function displayPopupVertical(b,i,e,d,f,g,a,c){if(useSimplePop==true){pops(b,400,400)}else{topPos=getPopupTopPos(d,c);leftPos=getPopupLeftPos(d,f);callback=function(){if(document.paymentForm.paymentField.value=="short"){h=c}else{if(document.paymentForm.paymentField.value=="mid"){h=a}else{h=g}}showPopupVertical(e,topPos,leftPos,f,h);setWindowTop(e,h);document.onmousedown=detectClick};if(e!="trustedCriteriaArea"&&e!="trustedStoreArea"&&e!="smartBuyCriteriaArea"||isIE()||navigator.appVersion.toLowerCase().indexOf("safari")>=0){closeAllPopups()}makeAJAHRequest("POST",b,i,document.getElementById(e),callback)}}function displayPopupVertical2(b,i,e,d,f,g,a,c){if(useSimplePop==true){pops(b,400,400)}else{topPos=getPopupTopPos(d,c);leftPos=getPopupLeftPos(d,f);callback=function(){if(document.paymentForm.paymentField.value=="short"){h=c}else{if(document.paymentForm.paymentField.value=="mid"){h=a}else{h=g}}showPopupVertical(e,topPos,leftPos+180,f,h);setWindowTop(e,h);$("#popArea #popArrowTop").css("left","20px");document.onmousedown=detectClick};if(e!="trustedCriteriaArea"&&e!="trustedStoreArea"&&e!="smartBuyCriteriaArea"||isIE()||navigator.appVersion.toLowerCase().indexOf("safari")>=0){closeAllPopups()}makeAJAHRequest("POST",b,i,document.getElementById(e),callback)}}function showPopupVertical(c,a,b,d,e){if(navigator.appName=="Netscape"){document.getElementById(popArea).style.zIndex=99}else{if(isIE()){document.getElementById(popArea).style.zIndex=document.getElementById(popArea).style.zIndex+10;if(document.getElementById("generalIframe")!=null){document.getElementById("generalIframe").style.left=(b-(d/2))+"px"}}}document.getElementById(popArea).style.left=(b-(d/2))+"px";document.getElementById(popArrowRt).style.display="none";document.getElementById(popArrowLeft).style.display="none";document.getElementById(popArea).style.width=d+"px";document.getElementById(c).style.display="block";setPopupIFrame(d,e)}function setWindowTop(a,b){if(navigator.appName=="Netscape"){if(mouseVerticalPos=="bottom"){document.getElementById(popArea).style.top=(topPos-b-30)+"px"}else{document.getElementById(popArea).style.top=(topPos+5)+"px"}}else{if(isIE()){if(mouseVerticalPos=="bottom"){document.getElementById(popArea).style.top=(topPos+document.documentElement.scrollTop-b-40)+"px";if(document.getElementById("generalIframe")!=null){document.getElementById("generalIframe").style.top=(topPos+document.documentElement.scrollTop-b-40)+"px"}}else{document.getElementById(popArea).style.top=(topPos+document.documentElement.scrollTop+10)+"px";if(document.getElementById("generalIframe")!=null){document.getElementById("generalIframe").style.top=(topPos+document.documentElement.scrollTop+10)+"px"}}}}if(mouseVerticalPos=="bottom"){if(a=="storeInfoPopArea"||a=="deliveryOptionsPopArea"){document.getElementById(popArrowTop).style.display="none"}}else{if(a=="storeInfoPopArea"||a=="deliveryOptionsPopArea"){document.getElementById(popArrowBtm).style.display="none"}}}function setPopupIFrame(a,b){if(isIE()&&document.getElementById("generalIframe")!=null){document.getElementById("generalIframe").style.display="block";document.getElementById("generalIframe").style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";document.getElementById("generalIframe").style.zIndex=5;document.getElementById("generalIframe").style.width=a+"px";document.getElementById("generalIframe").style.height=(b*1)+"px"}}function clearTileBg(){for(var a=0;a<90;a++){if(document.getElementById("productDealCell"+a)){document.getElementById("productDealCell"+a).className="productDealCell productsTileBg"}}}var informativeSurveyShow=false;function hideInformativeSurvey(){informativeSurveyShow=false;off("popIn")}var searchAssistantTrayOpen=false;var recentSearchTrayOpen=false;var clickedInsideSSD=false;var clickedInsideSurvey=false;var clickedInsidePPIPop=false;var lastKeywordTyped=null;var curHighlightPosY=-1,curHighlightPosX=0;var maxHighlightPosY=0,maxHighlightPosX=0;var keyPressFlag=2;function updateHighlight(){for(var b=0;b<=maxHighlightPosY;b++){for(var a=0;a<=maxHighlightPosX;a++){if(document.getElementById("saiTxt"+b+","+a)!=null){document.getElementById("saiTxt"+b+","+a).className="saiTxt"}}}if(curHighlightPosY!=-1){document.getElementById("saiTxt"+curHighlightPosY+","+curHighlightPosX).className="saiTxtHover"}}function searchSuggestionsKeyDown(a){var b=a;if(!b){b=window.event}if(b&&!saHidden){switch(b.keyCode){case 37:if(curHighlightPosY!=-1){if(curHighlightPosX==0){curHighlightPosX=1}else{curHighlightPosX=0}if(document.getElementById("saiTxt"+curHighlightPosY+","+curHighlightPosX)==null){curHighlightPosY--}updateHighlight();return false}break;case 38:if(searchAssistantTrayOpen||recentSearchTrayOpen){if(curHighlightPosY!=-1&&((keyPressFlag%2==0&&(navigator.appVersion.toLowerCase().indexOf("safari")>=0))||!(navigator.appVersion.toLowerCase().indexOf("safari")>=0))){if(curHighlightPosY==0){if(curHighlightPosX==1){curHighlightPosY=maxHighlightPosY;curHighlightPosX=0}else{curHighlightPosY=-1}}else{curHighlightPosY--}updateHighlight()}keyPressFlag++}break;case 39:if(curHighlightPosY!=-1){if(curHighlightPosX==1){curHighlightPosX=0}else{curHighlightPosX=1}if(document.getElementById("saiTxt"+curHighlightPosY+","+curHighlightPosX)==null){curHighlightPosY--}updateHighlight();return false}break;case 40:if(!searchAssistantTrayOpen&&!recentSearchTrayOpen){document.getElementById("searchTxtField").blur()}else{if((keyPressFlag%2==0&&(navigator.appVersion.toLowerCase().indexOf("safari")>=0))||!(navigator.appVersion.toLowerCase().indexOf("safari")>=0)){if(curHighlightPosY!=-1){if(curHighlightPosY==maxHighlightPosY){if(curHighlightPosX==1){curHighlightPosY=-1;curHighlightPosX=0}else{if(maxHighlightPosX==1){curHighlightPosY=0;curHighlightPosX=1}else{curHighlightPosY=-1}}}else{curHighlightPosY++}if(document.getElementById("saiTxt"+curHighlightPosY+","+curHighlightPosX)==null){curHighlightPosY=-1;curHighlightPosX=0}}else{curHighlightPosY=0}updateHighlight()}keyPressFlag++}break;case 13:if(curHighlightPosY!=-1){document.location.href=document.getElementById("saiTxtLink"+curHighlightPosY+","+curHighlightPosX).href;return false}break;case 33:case 34:if(!searchAssistantTrayOpen&&!recentSearchTrayOpen){document.getElementById("searchTxtField").blur()}default:}}return true}function searchSuggestionsKeyPress(a){var b=a;if(!b){b=window.event}if(b&&!saHidden){switch(b.keyCode){case 37:if(curHighlightPosY!=-1){return false}break;case 38:break;case 39:if(curHighlightPosY!=-1){return false}break;case 40:break;case 13:if(curHighlightPosY!=-1){return false}break;default:}}return true}function showSearchSuggestions(c,j,l,e,i,f){var g="/ajaxSearchAssistant";var b=saiTxtSearchSuggest;if(f=="recentSearches"){g="/ajaxRecentSearches";b=saiTxtYourRecent}var a=c;if(!a){a=window.event}var k=false;if((a&&!saHidden)||(a&&f=="recentSearches")){switch(a.keyCode){case 37:break;case 38:break;case 39:break;case 40:break;case 13:break;default:lastKeywordTyped=i;k=true}}else{lastKeywordTyped=i;k=true}if(k&&(f=="recentSearches"||(i!=null&&i.length>0))){if(f=="recentSearches"){i=new Date().getTime();lastKeywordTyped=i}$.get(g,{q:i},function(r){if(lastKeywordTyped!=i){return}curHighlightPosY=-1;curHighlightPosX=0;maxHighlightPosY=0;maxHighlightPosX=0;var u=$(r);suggestNodes=$("S",u);if(suggestNodes.length==0&&f!="recentSearches"){if(searchAssistantTrayOpen){$("#"+e).hide(100,function(){hideSaiIframe(l);hideSaiDiv(j)});searchAssistantTrayOpen=false}}else{if(saHidden&&f!="recentSearches"){document.getElementById(e).innerHTML='<div class="saiCell smallTxt"><a class="gArrowDown" href="javascript:void(0);" onClick="openSai();showSearchSuggestions(event,\''+j+"','"+l+"','"+e+"','"+i+"','"+f+"');\">"+saiTxtShowSuggest+"</a></div>"}else{var w='<table cellpadding="0" cellspacing="0" border="0" summary=""><tr><td valign="top" class="saiCell pB0"><div class="saiContain"><span class="saiTtl">';w+=b+'</span></div></td><td align="right" class="pT5 pR5 pB0"><div class="saiContain">';w+='<a href="#" onclick="closeSai(\''+j+"','"+l+"','"+e+"','"+i+"','"+f+'\');return false;" class="gArrowUp">'+saiTxtHd+"</a>";w+="</div></td></tr>";if(suggestNodes.length==0&&f=="recentSearches"){w+='</table><div class="noRS">'+saiHaveNo+"</div>"}else{w+='<tr><td valign="top" class="saiCell"><div class="saiContain">';var o=0;var m=0;var q=suggestNodes.length;for(var s=0;s<q;s++){var t=decodeURIComponent(suggestNodes[s].firstChild.data);var p=encodeURIComponent(t).replace(/%20/g,"+")+"&CLT="+(f=="recentSearches"?"RSH":"SAS");if(t.length>50){var v=t.substring(0,49);while(v.match(/[\w]$/)){v=v.replace(/[\w]$/,"")}v=v.replace(/[\s]$/,"")+"..."}else{var v=t}if(suggestNodes.length>1&&(s==(suggestNodes.length/2)||s==((suggestNodes.length+1)/2))){w+='</div></td><td valign="top" class="saiCell"><div class="saiContain">';maxHighlightPosY=s-1;maxHighlightPosX=1;o=1;m=0}w+='<div id="saiTxt'+m+","+o+'" class="saiTxt" onMouseOver="curHighlightPosY='+m+";curHighlightPosX="+o+';updateHighlight();"><a id="saiTxtLink'+m+","+o+'" href="/xFS?KW='+p+'">'+v+"</a></div>";m++}if(maxHighlightPosX==0){maxHighlightPosY=suggestNodes.length-1}if(suggestNodes.length==1){w+='</div></td><td class="saiCell"><div class="saiContain">&nbsp;'}w+="</div></td></tr></table>";if(f=="recentSearches"){w+='<div class="clearRS"><a href="#" class="linkClr2" ';w+="onclick=\"clearRS('"+j+"','"+l+"');return false;\">"+saiClearRecent+"</a></div>"}}document.getElementById(e).innerHTML=w}showSaiIframe(l,j);showSaiDiv(j);$("#"+e).show()}},"xml")}if(f=="recentSearches"){rsImgOn("rsImg");rsImgOn("rsImgFoot");searchAssistantTrayOpen=false;recentSearchTrayOpen=true;var d=j=="saiArea"?"frmGSRequest":"frmGSRequestFoot";document.forms[d].KW.focus()}else{if(document.getElementById("rsImg")!=null){rsImgOff("rsImg")}if(document.getElementById("rsImgFoot")!=null){rsImgOff("rsImgFoot")}searchAssistantTrayOpen=true;recentSearchTrayOpen=false}}function hideSaiDiv(a){document.getElementById(a).style.visibility="hidden"}function showSaiDiv(a){document.getElementById(a).style.visibility="visible"}function showSaiIframe(b,a){if(isIE()){document.getElementById(b).className="ifrStyle2";document.getElementById(b).style.left=findPosX(a)+"px";document.getElementById(b).style.top=(findPosY(a)+menuItemHeight-1)+"px";document.getElementById(b).style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";document.getElementById(b).style.display="block"}}function rsImgOff(a){if(document.getElementById(a)!=null){document.getElementById(a).src="http://img.shopping.com/jfe/bb/btns/recentSearchDown.gif"}}function rsImgOn(a){if(document.getElementById(a)!=null){document.getElementById(a).src="http://img.shopping.com/jfe/bb/btns/recentSearchUp.gif"}}function swapTheImg(a,b){if(document.getElementById(a)!=null){document.getElementById(a).src=b}}function hideSaiIframe(a){if(isIE()){document.getElementById(a).style.display="none"}}function closeSai(b,e,d,a,c){hideSaiDiv(b);hideSaiIframe(e);if(c=="recentSearches"){if(b=="saiArea"){rsImgOff("rsImg")}else{rsImgOff("rsImgFoot")}recentSearchTrayOpen=false}else{saHidden=true;document.getElementById(d).innerHTML='<div class="saiCell smallTxt"><a class="gArrowDown" href="javascript:void(0);" onClick="openSai();showSearchSuggestions(event,\''+b+"','"+e+"','"+d+"','"+a+"','"+c+"');\">"+saiTxtShowSuggest+"</a></div>";$.get("/ajaxWC",{c:"SAF",v:"1"},function(f){},"text")}}function openSai(){saHidden=false;$.get("/ajaxWC",{c:"SAF",v:"0"},function(a){},"text")}function bodyOnClick(){if(!clickedInsideSSD){closeSSD()}else{clickedInsideSSD=false}if(!clickedInsideSurvey){hideInformativeSurvey()}else{clickedInsideSurvey=false}}function bodyClckPops(){if(!clickedInsidePPIPop){if(document.getElementById("popPos")!=null){document.getElementById("popPos").style.display="none"}clearTileBg()}else{clickedInsidePPIPop=false}}function clickInPPI(){clickedInsidePPIPop=true}function closeSSD(){if(searchAssistantTrayOpen||recentSearchTrayOpen){if(document.getElementById("saiArea")!=null){hideSaiDiv("saiArea")}if(document.getElementById("generalIframe")!=null){hideSaiIframe("generalIframe")}if(document.getElementById("saiAreaFoot")!=null){hideSaiDiv("saiAreaFoot")}if(document.getElementById("rsImg")!=null){rsImgOff("rsImg")}if(document.getElementById("rsImgFoot")!=null){rsImgOff("rsImgFoot")}searchAssistantTrayOpen=false;recentSearchTrayOpen=false}}function clickInsideSSD(){clickedInsideSSD=true}function clickInsideSurvey(){clickedInsideSurvey=true}function getY(b){var a=0;while(b!=null){a+=b.offsetTop;b=b.offsetParent}return a}function getX(b){var a=0;while(b!=null){a+=b.offsetLeft;b=b.offsetParent}return a}function preLoadRS(){var a=new Image();a.src="http://img.shopping.com/jfe/bb/btns/recentSearchDown.gif";a.src="http://img.shopping.com/jfe/bb/btns/recentSearchUp.gif"}function clearRS(a,b){hideSaiDiv(a);hideSaiIframe(b);recentSearchTrayOpen=false;if(a=="saiArea"){rsImgOff("rsImg")}else{rsImgOff("rsImgFoot")}$.get("/ajaxWC?cc=RS",{c:"SAF",v:"1"},function(c){},"text")}function googleAdClick(a,b){var c=s_gi(b);c.linkTrackVars="eVar10,events,prop20";c.linkTrackEvents="event6";c.eVar10="GoogleAd:"+a;c.events="event6";c.prop20="GoogleAd:"+a;c.tl(this,"o","GoogleAD")}function narrowByClick(d,c,a){var b=s_gi(a);b.linkTrackVars="prop5";b.prop5="NarrowByPosition:"+d+","+c;b.tl(this,"o","NarrowByPosition")}function soi(a){}function scrollElementIntoView(b,a){if(isIE()){if(document.getElementById(b)){document.getElementById(b).scrollIntoView(a)}}}function omnitureShoesXpoColorClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="eVar27,events";b.linkTrackEvents="event12";b.events="event12";b.eVar27="shoe color clicked on";b.tl(true,"o","shoe color")}}function omnitureShoesXpoSizeClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="eVar28,events";b.linkTrackEvents="event13";b.events="event13";b.eVar28="shoe size clicked on";b.tl(true,"o","shoe size")}}function omnitureShoesQuickLookClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events";b.linkTrackEvents="event15";b.events="event15";b.tl(true,"o","quick look")}}function omnitureShoesxDNSeeMoreClick(a,c){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="eVar30,events";b.linkTrackEvents="event16";b.events="event16";b.eVar30=c;b.tl(true,"o","shoes xdn see more")}}function omnitureShoesDealImageClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events";b.linkTrackEvents="event17";b.events="event17";b.tl(true,"o","shoes deal image")}}function omnitureEnlargeImageClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="eVar29,events";b.linkTrackEvents="event14";b.events="event14";b.eVar29="enlarge image clicked on";b.tl(true,"o","enlarge image")}}function omnitureGrigRowSwitchClick(b,a){if(typeof s_gi=="function"){var c=s_gi(b);c.linkTrackVars="events,eVar32";c.linkTrackEvents="event18";c.events="event18";c.eVar32=a;c.tl(true,"o","Grid/Row View Icon")}}function omnitureNonShoesQuickLookIconClick(a,c){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events,products";b.linkTrackEvents="event19";b.events="event19";b.products=";"+c;b.tl(true,"o","QuickLook Icon")}}function omnitureQuickLookFilmStripClick(a,c){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events,products";b.linkTrackEvents="event20";b.events="event20";b.products=";"+c;b.tl(true,"o","QuickLook Filmstrip Icon")}}function omnitureCategoryLinkClick(a,c){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events,eVar33";b.linkTrackEvents="event21";b.events="event21";b.eVar33=c;b.tl(true,"o","Category Link")}}function omnitureOfferDetailClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events";b.linkTrackEvents="event22";b.events="event22";b.tl(true,"o","Offer Details Click")}}function omnitureTabOverviewClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events";b.linkTrackEvents="event23";b.events="event23";b.tl(true,"o","Tab Overview Click")}}function omnitureTabReviewsClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events";b.linkTrackEvents="event24";b.events="event24";b.tl(true,"o","Tab Reviews Click")}}function omnitureTabComparePricesClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events";b.linkTrackEvents="event25";b.events="event25";b.tl(true,"o","Tab Compare Prices Click")}}function omnitureShoppingGeniusProductClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events";b.linkTrackEvents="event26";b.events="event26";b.tl(true,"o","Genius Product Page Click")}}function omnitureShoppingGeniusSBSClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events";b.linkTrackEvents="event27";b.events="event27";b.tl(true,"o","Genius SBS Click")}}function omnitureSocialShareClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events";b.linkTrackEvents="event28";b.events="event28";b.tl(true,"o","Share Icon Click")}}function omnitureGetItBoxSeeAllClick(a){if(typeof s_gi=="function"){var b=s_gi(a);b.linkTrackVars="events";b.linkTrackEvents="event29";b.events="event29";b.tl(true,"o","See All Offers Click")}}function focusSort(){}var ourInterval;var scrollSpeed=30;var scrollDistance=4;function scrollStart(b,a){ourInterval=setInterval("scroll"+b+"('"+a+"')",scrollSpeed)}function scrollEnd(a){clearInterval(ourInterval)}function scrollUp(a){document.getElementById(a).scrollTop=document.getElementById(a).scrollTop-scrollDistance}function scrollDown(a){document.getElementById(a).scrollTop=document.getElementById(a).scrollTop+scrollDistance}function scrollLeft(a){document.getElementById(a).scrollLeft=document.getElementById(a).scrollLeft-scrollDistance}function scrollRight(a){document.getElementById(a).scrollLeft=document.getElementById(a).scrollLeft+scrollDistance}var prevElementID="elementID0";function showHide(a){swap(a,prevElementID);prevElementID=a}function toggleRelatedSearchWords(b,a,c){document.getElementById(b+"showMoreWordsItem").style.display=c?"none":(a?"inline":"block");document.getElementById(b+"moreTopWords").style.display=c?(a?"inline":"block"):"none";return false}function scrollStorefrontsLeft(a){scrollLeft(a);toggleStorefrontArrowStatus("left")}function toggleStorefrontArrowStatus(k){var f="vMid p1 disabled";var a="vMid p1";var b=document.getElementById("storefrontContentFull")!=null;var g;var i;var d;if(b){g=document.getElementById("storefrontContentFull");i=document.getElementById("arrowImgLeftFull");d=document.getElementById("arrowImgRightFull")}else{g=document.getElementById("storefrontContent");i=document.getElementById("arrowImgLeft");d=document.getElementById("arrowImgRight")}var c=document.getElementById("storefrontGallery");var j=g.scrollLeft==0;var e=false;var l=c.offsetWidth-g.offsetWidth;if(!j&&l+1>=g.scrollLeft&&l-1<=g.scrollLeft){e=true}i.className=j?f:a;d.className=e?f:a}function scrollStorefrontsRight(a){scrollRight(a);toggleStorefrontArrowStatus("right")}function validateZip(a){if(a==""){return true}zip1=new RegExp(/(^\d{5}$)|(^\d{5}-\d{4}$)/);if(!zip1.test(a)||a=="00000"){zipAlert(a);return false}return true}function zipAlert(a){alert(a+" is not a valid zip code.")}function focusStoreSearch(){try{document.frmStoreDir.SS.focus()}catch(a){}}function populateDynNavPopUp(b,a){makeAJAHRequest("POST","/ajaxDynamicNav-"+seoUrl,a,document.getElementById(b),null)}function isIE(){return navigator.appName=="Microsoft Internet Explorer"}function addClassName(b,a){if(b){b.className=b.className+" "+a}}function removeClassName(b,a){if(b){b.className=b.className.split(a).join("")}}function showMore(e,a){var b="hi1";if(e){addClassName(e,b)}if(a){var f=a.childNodes;if(f){var d;for(var c=0;c<f.length;c++){d=f[c];if(d.className&&d.className.indexOf(b)>-1){removeClassName(d,b)}}}}return false}$(function(){$("a.attrMultiSelLink").bind("click",function(f){var d=$(this).attr("href");var a=d.substring(1,4);var c=d.substring(2,4).toLowerCase();var b="/"+c+"MultiSelect"+d.substring(4);displayPopup(b,"pageType="+a,"multiSelectArea",f,572,372);return false})});function updateMultiSelectResults(){var a=$("#multiSelDiv input:checked");if(a.length>0){$("#multiSelDiv form").submit()}else{$("#multiSelectArea").hide()}return false}function setBrowserWidthCookie(){var b=navigator.userAgent.toLowerCase().indexOf("msie 6")==-1;if(b){var a=readCookie("browserWidth");if(a==null){if(window.innerWidth){a=window.innerWidth;createCookie("browserWidth",a,0)}else{if(document.all){var c=21;a=document.body.clientWidth+c;createCookie("browserWidth",a,0)}}if(a!=null){rightRailToggle(a)}}}}function rightRailToggle(c){var b=(navigator.userAgent.toLowerCase().indexOf("msie 6")==-1);var a=1271;if((c>a)&&b){$("#right").removeClass("hi1");$("#outer").addClass("outerRightRail");$(".bodyWide").addClass("bodyWideRightRail");$(".pCol1Right").addClass("contentMinWidth");$("#searchPageTopBox .contentIndent4").addClass("topWordsHiddenVertAlign");$(".newContentContainer").addClass("rightRailContMargin");$(".linkcolornewsearchpages").removeClass("gridRowTopModRightPadding").addClass("gridRowRightRailTopModRightPadding")}else{$("#topWordsDiv").removeClass("topWordsHidden");$("#topWordsLeftNav").removeClass("topWordsHidden");$("#searchPageTopBox .contentIndent4").addClass("topWordsShownVertAlign")}}var indexShowing=0;function showMatchingReview(a){$("#reviewTab"+indexShowing).removeClass("sbsshowReviewTab");$("#reviewTab"+indexShowing).addClass("sbshideReviewTab");$("#reviewTab"+a).removeClass("sbshideReviewTab");$("#reviewTab"+a).addClass("sbsshowReviewTab");$("#reviewTabFilter"+indexShowing).show();$("#reviewTabFilter"+a).hide();$("#reviewList"+a).show();$("#reviewList"+indexShowing).hide();indexShowing=a}function showMatchingReviewLeft(a){$("#reviewTab"+indexShowing).removeClass("sbsshowReviewTab");$("#reviewTab"+indexShowing).addClass("sbshideReviewTab");$("#reviewTab"+a).removeClass("sbshideReviewTab");$("#reviewTab"+a).addClass("sbsshowReviewTabLeft");$("#reviewTabFilter"+indexShowing).show();$("#reviewTabFilter"+a).hide();$("#reviewList"+a).show();$("#reviewList"+indexShowing).hide();indexShowing=a}function feedBackInfoSubmit(){var b=$("#feedBackForm input[name=userRating]:checked");if(b&&b.val()){var c=$("#feedBackForm input");var d="";var a="";c.each(function(f,g){if(g.type=="radio"){var e=$("input[name="+g.name+"]:checked").val();if(a!=g.name&&e){if(d!=""){d=d+"&"}d=d+g.name+"="+e;a=g.name}}else{if(d!=""){d=d+"&"}d=d+g.name+"="+escape($(g).val())}});$.get("/ajaxFeedBack",d,function(e){$("#feedBackBox").html(e)})}}$(function(){var a="<object width='320' height='272'><param name='src' value='http://www.expotv.com/video/embed/video_id/711abf38766668dae1ea513d84bd8f2f'></param><param name='wmode' value='transparent'></param><param name='allowScriptAccess' value='always'></param><param name='allowfullscreen' value='true'></param><embed src='http://www.expotv.com/video/embed/video_id/711abf38766668dae1ea513d84bd8f2f' type='application/x-shockwave-flash' wmode='transparent' width='320' height='272' allowScriptAccess='always' allowfullscreen='true'></embed></object>";function b(){$("#expoTvVideoLayer #videoTitle").empty();$("#expoTvVideoLayer #videoPlayer").empty();$("#expoTvVideoLayer #videoRating").empty();$("#expoTvVideoLayer #videoReviewer").empty();$("#expoTvVideoLayer #videoDesc").empty();$("#expoTvVideoLayer #videoPros").empty();$("#expoTvVideoLayer #videoCons").empty()}$("#expoTvVideoLayer .closePanel").click(function(c){c.preventDefault();b();$("#expoTvVideoLayer").hide();$("#expoTvMask").css({display:"none"}).removeClass("whiteOutBG")});$(document).click(function(j){if($(j.target).parents("#expoTvVideoLayer").length===0){b();$("#expoTvVideoLayer").hide();$("#expoTvMask").css({display:"none"}).removeClass("whiteOutBG")}if($(j.target).parents(".expoTvVideo").length===1){j.preventDefault();b();var n=$(j.target).parents(".expoTvVideo");var g=$(n).find("input[name=galleryVideoId]").val();var k=a.replace(/video_id/g,g);$("#expoTvVideoLayer #videoPlayer").html(k);$("#expoTvVideoLayer #videoTitle").html($(n).find("div[name=galleryVideoTitle]").html());$("#expoTvVideoLayer #videoRating").html($(n).find("div[name=galleryVideoRating]").html());$("#expoTvVideoLayer #videoReviewer").html($(n).find("input[name=galleryVideoReviewer]").val());$("#expoTvVideoLayer #videoDesc").html($(n).find("span[name=galleryVideoDesc]").html());var m=$(n).find("span[name=galleryVideoPros]").html();if(m){$("#expoTvVideoLayer #videoPros").html(m+"<br><br>")}var l=$(n).find("span[name=galleryVideoCons]").html();if(l){$("#expoTvVideoLayer #videoCons").html(l+"<br><br>")}var d=0,f=0;if(typeof(window.innerWidth)=="number"){d=200;f=($(window).scrollTop())-300}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){isIE6=navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1;if(isIE6==true){var i=330;var c=-500}else{var i=330;var c=-400}d=200;f=($(window).scrollTop())+c}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){d=200;f=($(window).scrollTop())+50}}}$("#expoTvVideoLayer").css({display:"block",position:"absolute",top:f,left:d});$("#expoTvVideoLayer").show();$("#expoTvMask").css({display:"block"}).addClass("whiteOutBG");if($(window).scrollTop()>2000){$("#expoTvMask").css("height",($(window).scrollTop())+1600)}}})});function loadMerchantInfo(d,b,c){var a=b.replace("merchantInfoDetail-","");$.get("/xStoreInfo",{MRD:d},function(e){$("#"+b).html(e);if(a){$paymentOpt=$("#merchantInfoDetail-"+a).find("div.paymentMeth").html();if($paymentOpt){$("#offerDetails-"+a).find("table td#options").html($paymentOpt)}}},"text/html");$("#offerDetails-"+a).toggle();$("#offerDetails-"+a).parent("div.offerWrapper").toggle("normal");$("#offerItem-"+a).toggleClass("active");$("#arrowDetail-"+a).toggleClass("arrowDown")}$(window).load(function(){$("#compareOfferTable").find("div.offerItem").hover(function(){if(!$(this).hasClass("active")){$(this).addClass("showBg")}},function(){if(!$(this).hasClass("active")){$(this).removeClass("showBg")}});$("#compareOfferTable").find("div.dealClick a").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")});var c=getElementsByClassName("nojs2","a");if(c!=null){for(var b=0,a=c.length;b<a;b++){c[b].className="linkClr2"}}var c=getElementsByClassName("nojs","a");if(c!=null){for(var b=0,a=c.length;b<a;b++){c[b].className=""}}});function openOfferDetail(){$("#compareOfferTable div.details a").click()}function toggleDealSpotlight(a){var b=document.getElementById("bottomDealSpotlight");if(b){b.style.display=a?"block":"none"}}function showTab(a){hideAllTabs();document.getElementById(a+"Body").style.display="block";switch(a){case"deals":document.getElementById("dealsTab").className="f1TabOn";document.getElementById("specsTab").className="fMid1TabOff";document.getElementById("reviewsTab").className="fLast2TabOff";document.getElementById("reviewCount").className="";toggleDealSpotlight(false);break;case"specs":document.getElementById("dealsTab").className="f1TabOff";document.getElementById("specsTab").className="fMidTabOn";document.getElementById("reviewsTab").className="fLast1TabOff";document.getElementById("reviewCount").className="";toggleDealSpotlight(true);break;case"reviews":document.getElementById("dealsTab").className="f1TabOff";document.getElementById("specsTab").className="fMid2TabOff";document.getElementById("reviewsTab").className="fLastTabOn";document.getElementById("reviewCount").className="hideLink";toggleDealSpotlight(true);break;default:}}function hideAllTabs(){var b=new Array("dealsBody","specsBody","reviewsBody");for(var a=0;a<b.length;a++){document.getElementById(b[a]).style.display="none"}}function showFiltersTab(a){hideAllFiltersTabs();document.getElementById(a+"Body").style.display="block";switch(a){case"defFilters":document.getElementById("defFiltersTab").className="fh1TabOn";document.getElementById("addFiltersTab").className="fh2TabOff";break;case"addFilters":document.getElementById("defFiltersTab").className="fh1TabOff";document.getElementById("addFiltersTab").className="fh2TabOn";break;default:}}function hideAllFiltersTabs(){var b=new Array("defFiltersBody","addFiltersBody");for(var a=0;a<b.length;a++){document.getElementById(b[a]).style.display="none"}}var menuItemHeightDtr=24;var delayDtr=250;var delayStartDtr=250;var startTimerDtr;var startDtr;var hideFlagDtr;var hideTimerDtr;var curMenuDtr;var activeMenuDtr;var activeMenuItemDtr;var activeMenuLitDtr;var activeMenuItemLitDtr;var onMenuDtr=false;var menuToggler=false;var onMenuNumber=-1;var insideMenuClick=false;function clearHideTimerDtr(){if(hideTimerDtr){clearTimeout(hideTimerDtr)}hideTimerDtr=null;hideFlagDtr=false}function hideMenusDealtime(){if(!hideFlagDtr){return}var a=new Date()-startDtr;if(a<delayDtr){hideTimerDtr=setTimeout("hideMenusDealtime()",delayDtr-a);return}hideFlagDtr=false;hideMainMenuDealtime();hideAllMenusDealtime()}function hideMainMenuDealtime(){var a=getObj(activeMenuDtr);if(a){a.style.visibility="hidden"}activeMenuDtr=null}function hideAllMenusDealtime(){var a=getObj(activeMenuItemDtr);if(a){a.style.visibility="hidden"}onMenuDtr=false}function moveMenuDealtime(a){var c=getObj("menu"+a);var b=getObj("tab"+a);if(c){c.style.left=(findPosX(b)-18)+"px";c.style.top=((findPosY(b)-1)+menuItemHeightDtr)+"px"}}function showMenusDealtime(){onMenuDtr=true;closeSSD();activeMenuDtr="menu"+curMenuDtr;var a=getObj(activeMenuDtr);if(a){a.style.visibility="visible"}}function menuDelayStart(b){var a="menuOnClick("+b+")";if(onMenuDtr){menuOnClick(b)}else{startTimerDtr=setTimeout(a,delayStartDtr)}}function menuOnClick(b){var a=(b==onMenuNumber);if(a){startShowDealtime(b);highLightTopMenu(b);onMenuNumber=b}else{hideMainMenuDealtime();hideAllMenusDealtime();removeHighLightTopMenu(onMenuNumber);if(b!=-2){startShowDealtime(b);highLightTopMenu(b);onMenuNumber=b}}}function startShowDealtime(a){moveMenuDealtime(a);curMenuDtr=a;clearHideTimerDtr();showMenusDealtime()}function moveMenuDealtimeItem(a,d){var e=getObj("menu"+a+"item"+d);var c=getObj("tab"+a+"menu"+d);var b=getObj("generalIframe");e.style.left=(findPosX(c)+201)+"px";e.style.top=(findPosY(c)-1)+"px"}function showMenusDealtimeItem(c,b){hideAllMenusDealtime();showMenusDealtime();var a="menu"+c+"item"+b;activeMenuItemDtr=a;getObj(a).style.visibility="visible"}function startShowDealtimeItem(b,a){startShowDealtime(b);moveMenuDealtimeItem(b,a);showMenusDealtimeItem(b,a)}function startShowDealtimeItemI(b,a){startShowDealtime(b)}function sMHDealtime(){startDtr=new Date();hideFlagDtr=true;clearTimeout(startTimerDtr);hideTimerDtr=setTimeout("hideMenusDealtime()",delayDtr)}function checkedTopMenuMouseOutDealtime(c){if(!c){var c=window.event}var a=c.relatedTarget||c.toElement;if((a!=null)&&(a.id!=null)){var b=a.id;if((b.indexOf("nav2tab"))==-1){if(activeMenuLitDtr){activeMenuLitDtr.style.color="#06666b";activeMenuLitDtr.style.backgroundImage="url(http://img.shopping.com/jfe/bb/headrFootr/dtrNavArrowDn.gif)";activeMenuLitDtr.style.backgroundRepeat="no-repeat";activeMenuLitDtr.style.backgroundPosition="right 5px";activeMenuLitDtr=null}sMHDealtime()}}}function highLightTopMenu(a){if(activeMenuLitDtr){activeMenuLitDtr.style.color="#06666b";activeMenuLitDtr.style.backgroundImage="url(http://img.shopping.com/jfe/bb/headrFootr/dtrNavArrowDn.gif)";activeMenuLitDtr.style.backgroundRepeat="no-repeat";activeMenuLitDtr.style.backgroundPosition="right 5px";activeMenuLitDtr=null}var b=getObj("tab"+a);if(b&&(menuSizes[a]>0)){b.style.color="#FFFFFF";b.style.backgroundImage="url(http://img.shopping.com/jfe/bb/headrFootr/dtrNavArrowDnOn.gif)";b.style.backgroundRepeat="no-repeat";b.style.backgroundPosition="right 5px"}activeMenuLitDtr=b}function hightLightMouseOut(a){if(onMenuNumber!=a){removeHighLightTopMenu(a)}}function removeHighLightTopMenu(a){var b=getObj("tab"+a);if(b&&(menuSizes[a]>0)){b.style.color="#06666b";b.style.backgroundImage="url(http://img.shopping.com/jfe/bb/headrFootr/dtrNavArrowDn.gif)";b.style.backgroundRepeat="no-repeat";b.style.backgroundPosition="right 5px"}activeMenuLitDtr=null}function highLightDynMenuArea(b,c){var a=getObj("atab"+b+"amenu"+c);if(a){a.style.color="#FFFFFF";a.style.background="#86A33D";a.style.backgroundImage="url(http://img.shopping.com/jfe/bb/headrFootr/dtrNavArrowRtOn.gif)";a.style.backgroundRepeat="no-repeat";a.style.backgroundPosition="180px 5px"}highLightTopMenu(b);activeMenuItemLitDtr=a}function removeHighLightDynMenuArea(a,b){if(activeMenuItemLitDtr){activeMenuItemLitDtr.style.color="#04818E";activeMenuItemLitDtr.style.background="none";activeMenuItemLitDtr.style.backgroundImage="url(http://img.shopping.com/jfe/bb/headrFootr/dtrNavArrowRt.gif)";activeMenuItemLitDtr.style.backgroundRepeat="no-repeat";activeMenuItemLitDtr.style.backgroundPosition="180px 5px"}activeMenuItemLitDtr=null}function mouseOverSubmenuWithChild(a,b){startShowDealtimeItem(a,b);highLightDynMenuArea(a,b)}function mouseOutSubmenuWithChild(a){removeHighLightDynMenuArea(-1,-1);checkedTopMenuMouseOutDealtime(a)}function mouseOverSubMenuWithoutChild(a){startShowDealtime(a);highLightTopMenu(a);hideAllMenusDealtime()}function mouseOverChild(a,b){highLightDynMenuArea(a,b);startShowDealtimeItemI(a,-1)}function mouseOutChild(a){removeHighLightDynMenuArea(-1,-1);removeHighLightTopMenu(a);sMHDealtime()};