var atl_qbi_is_ie6under;var atl_qbi_is_safari;var atl_qbi_popupData=new Array();var atl_qbi_querystring="";var agt=navigator.userAgent.toLowerCase();var is_ie=agt.indexOf("msie")!=-1;function atlQbiShowElement(a){for(i=0;i=eval(objTop+objHeight)){continue}else{if(overDiv.offsetLeft>=eval(objLeft+objWidth)){continue}else{obj.style.visibility="hidden"}}}}}}function atlQbiGetPopupDataIndex(c){var b=-1;for(var a=0;a-1){var b=atl_qbi_popupData[a];b.cacheFlag=false}}function atlQbiShowInt(a){if(a!=null){atlQbiSetVisibility(a.id,true);if(atl_qbi_is_ie6under){atlQbiHideElement("SELECT",a)}}}function atlQbiShow(f,c,b){atlQuickBuyBeforeShow();var d=atlQbiGetPopupDataIndex(f.id);if(d>-1){var e=atl_qbi_popupData[d];var a=-1;if(e.ciCodes.length>0){a=e.ciCodes[0]}if((a>0)&&(typeof FastballEvent_MouseClick=="function")){FastballEvent_MouseClick(c,a,b,"","div")}if(e.cacheFlag&&!atl_qbi_is_ie6under){atlQbiShowInt(e.targetDiv)}else{atlQbiCallForContent(e)}}}function atlQuickBuyBeforeShow(){if(typeof(ShowHideDomainSearchDiv)!="undefined"){ShowHideDomainSearchDiv("hide")}}function atlQuickBuyBeforeClose(){if(typeof(ShowHideDomainSearchDiv)!="undefined"){ShowHideDomainSearchDiv("show")}if(typeof(QuickBuyCloseNotify)!="undefined"){QuickBuyCloseNotify()}}function atlQbiCallForContent(a){var b=a.siteUrl+"QuickBuy/QuickBuyInsert.aspx";if(atl_qbi_querystring.length==0){b=b+"?callback=atlQbiFillDiv&targetDivId="+a.targetDiv.id}else{b=b+atl_qbi_querystring+"&callback=atlQbiFillDiv&targetDivId="+a.targetDiv.id}if((a.quickBuyName!=null)&&(a.quickBuyName!="")){b=b+"&quickBuyName="+a.quickBuyName}if((a.returnToMyr!=null)&&(a.returnToMyr!="")){b=b+"&returnToMyr="+a.returnToMyr}atlQbiSendServerRequest(b)}function atlQbiFillDiv(g){if(g!=null){var c=atlQbiGetPopupDataIndex(g.TargetDivId);if(c<0){return}var f=atl_qbi_popupData[c];var b=document.getElementsByTagName("head").item(0);if(g.StyleSheet.length>0){var d="atlInsertStyles";var e=atlQbiFindChildNode(b,d);if(e==null){var a=document.createElement("link");a.setAttribute("id",d);a.setAttribute("type","text/css");a.setAttribute("rel","stylesheet");a.setAttribute("href",g.StyleSheet);a.setAttribute("media","screen");b.appendChild(a)}}if(g.ScriptReference.length>0){var k="atlQbi_"+f.quickBuyName+"_script";var h=atlQbiFindChildNode(b,k);if(h==null){var j=document.createElement("script");j.setAttribute("id",k);j.setAttribute("type","text/javascript");j.setAttribute("language","javascript");j.setAttribute("src",g.ScriptReference);b.appendChild(j)}}atlQbiShowInt(f.targetDiv);f.targetDiv.innerHTML=g.Html;f.cacheFlag=true}}function atlQbiClose(b){atlQuickBuyBeforeClose();var a=document.getElementById(b);if(a!=null){if(atl_qbi_is_ie6under){atlQbiShowElement("SELECT")}atlQbiSetVisibility(b,false)}}function atlQbiSendCommandToServer(m,c,g,a,b,e,d){var f=atlQbiGetPopupDataIndex(m);if(f<0){return}var h=atl_qbi_popupData[f];if(b>0&&e!=null&&d!=null&&(typeof FastballEvent_MouseClick=="function")){FastballEvent_MouseClick(e,b,d,"","div")}var k=h.siteUrl+"QuickBuy/QuickBuyData.aspx";if(atl_qbi_querystring.length==0){k=k+"?callback="+a+"&targetDivId="+h.targetDiv.id}else{k=k+atl_qbi_querystring+"&callback="+a+"&targetDivId="+h.targetDiv.id}if((h.quickBuyName!=null)&&(h.quickBuyName!="")){k=k+"&quickBuyName="+h.quickBuyName}if((h.itemTrackingCode!=null)&&(h.itemTrackingCode!="")){k=k+"&itemTrackingCode="+h.itemTrackingCode}if(b>0){k=k+"&ci="+b}if((h.returnToMyr!=null)&&(h.returnToMyr!="")){k=k+"&returnToMyr="+h.returnToMyr}if((c!=null)&&(c!="")){k=k+"&commandName="+c;if(g!=null){var l=g.join("|");if(l.length>0){k=k+"¶ms="+escape(l)}}}var j=Math.floor(Math.random()*999999999);k=k+"&rand="+j;atlQbiSendServerRequest(k)}function atlQbiSendServerRequest(c){var b=document.getElementsByTagName("head").item(0);var e="atlQbiInsert";var a=atlQbiFindChildNode(b,e);var d=document.createElement("script");d.setAttribute("id",e);d.setAttribute("type","text/javascript");d.setAttribute("language","javascript");d.setAttribute("src",c);if(a!=null){b.replaceChild(d,a)}else{b.appendChild(d)}}function atlQbiSetVisibility(b,c){var a=document.getElementById(b);if(a){if(c){a.style.display=""}else{a.style.display="none"}}}var atl_qbi_secSet=null;var atl_qbi_bHover="";function atlQbi_qbj_mout(a){atl_qbi_bHover="";window.status="";atlQbi_qbj_setDDTimeout(a)}function atlQbi_qbj_movr(a,b){if(atl_qbi_is_safari){atl_qbi_bHover=b;window.status=b;atlQbi_qbj_setDD(a,b,false)}else{atl_qbi_bHover=b;window.status=b;setTimeout("atlQbi_qbj_setDD('"+a+"', '"+b+"', false)",400)}}function atlQbi_qbj_setDD(b,c,a){atlQbi_qbj_hideDDs(b);if((atl_qbi_bHover==c)||(a)){atlQbi_qbjNav(b,"","show");atlQbi_qbj_hv_g(b+"x");if(atl_qbi_secSet!=null){window.clearTimeout(atl_qbi_secSet)}}}function atlQbi_qbj_setDDTimeout(a){if(atl_qbi_secSet!=null){window.clearTimeout(atl_qbi_secSet)}atl_qbi_secSet=window.setTimeout('atlQbi_qbj_hideDD("'+a+'")',400)}function atlQbi_qbj_hideDDs(a){atlQbi_qbjNav("qb_os",a,"hide","ov");atlQbi_qbj_inApp_hideDDs(a)}function atlQbi_qbj_inApp_hideDDs(a){atlQbi_qbjNav("qb_dn",a,"hide","ov");atlQbi_qbjNav("qb_ho",a,"hide","ov");atlQbi_qbjNav("qb_ws",a,"hide","ov");atlQbi_qbjNav("qb_em",a,"hide","ov");atlQbi_qbjNav("qb_sc",a,"hide","ov");atlQbi_qbjNav("qb_bs",a,"hide","ov");atlQbi_qbjNav("qb_re",a,"hide","ov")}function atlQbi_qbjNav(){var d,e,c,a=atlQbi_qbjNav.arguments,b=0;if(!((a[b]==a[b+1])&&(a[b+2]=="hide")&&(a[b+3]=="ov"))){if((c=atlQbi_qbj_findDiv(a[b]))!=null){e=a[b+2];if(c.style){c=c.style;e=(e=="show")?"visible":(e="hide")?"hidden":e}c.visibility=e;if(e=="hidden"){atlQbi_qbj_of_g(a[b]+"x")}}}}function atlQbi_qbj_findDiv(c,a){var e,b,f;if(!a){a=document}if((e=c.indexOf("?"))>0&&parent.frames.length){a=parent.frames[c.substring(e+1)].document;c=c.substring(0,e)}if(!(f=a[c])&&a.all){f=a.all[c]}for(b=0;!f&&bk){g=k-b}newX=g;var a=d.offsetHeight;var h=atlQb_qhGetOffsetTop(f)+f.offsetHeight;var j=(window.innerHeight)?window.innerHeight-25:document.body.clientHeight;if((h+a)>j+atlQb_qhGetScrollY()){h=atlQb_qhGetOffsetTop(f)-a}newY=h;d.style.top=newY.toString()+"px";d.style.left=newX.toString()+"px";if(atl_qbi_is_ie6under){atlQbiHideElement("select",d);atlQbiHideElement("object",d);atlQbiHideElement("embed",d)}var l=document.getElementById(m);if(l){g=atlQb_qhGetOffsetLeft(l);newX-=g;h=atlQb_qhGetOffsetTop(l);newY-=h}d.style.top=newY.toString()+"px";d.style.left=newX.toString()+"px";d.style.display=""}}function atlQb_qhGetOffsetTop(a){var c=a.offsetTop;var b=a.offsetParent;while(b){c+=b.offsetTop;b=b.offsetParent}return c}function atlQb_qhGetOffsetLeft(a){var b=a.offsetLeft;var c=a.offsetParent;while(c){b+=c.offsetLeft;c=c.offsetParent}return b}function atlQb_qhGetScrollY(){var a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop}}}return a};