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<document.getElementsByTagName(a).length;i++){obj=document.getElementsByTagName(a)[i];if(!obj||!obj.offsetParent){continue}if(is_ie&&(obj.readyState==4)&&(obj.tagName.toUpperCase()=="OBJECT")){continue}obj.style.visibility=""}}function atlQbiHideElement(elmID,overDiv){for(i=0;i<document.getElementsByTagName(elmID).length;i++){obj=document.getElementsByTagName(elmID)[i];if(!obj||!obj.offsetParent){continue}objLeft=obj.offsetLeft-overDiv.offsetParent.offsetLeft;objTop=obj.offsetTop;objParent=obj.offsetParent;while((objParent.tagName.toUpperCase()!="BODY")&&(objParent.tagName.toUpperCase()!="HTML")){objLeft+=objParent.offsetLeft;objTop+=objParent.offsetTop;objParent=objParent.offsetParent}objHeight=obj.offsetHeight;objWidth=obj.offsetWidth;if((overDiv.offsetLeft+overDiv.offsetWidth)<=objLeft){continue}else{if((overDiv.offsetParent.offsetTop+overDiv.offsetHeight+20)<=objTop){continue}else{if(overDiv.offsetParent.offsetTop>=eval(objTop+objHeight)){continue}else{if(overDiv.offsetLeft>=eval(objLeft+objWidth)){continue}else{obj.style.visibility="hidden"}}}}}}function atlQbiGetPopupDataIndex(a){var b=-1;for(var c=0;c<atl_qbi_popupData.length;c++){if(atl_qbi_popupData[c].targetDiv.id==a){b=c;break}}return b}function atlQbiInitializeEx(c,a,b,e,d,f){atl_qbi_querystring=f;atlQbiInitialize(c,a,b,e,d)}function atlQbiInitialize(d,a,c,f,e){var b=atlQbiGetPopupDataIndex(d.id);if(b==-1){atl_qbi_popupData[atl_qbi_popupData.length]={targetDiv:d,quickBuyName:a,siteUrl:e,cacheFlag:false,itemTrackingCode:c,ciCodes:f}}else{atl_qbi_popupData[b].targetDiv=d;atl_qbi_popupData[b].quickBuyName=a;atl_qbi_popupData[b].siteUrl=e;atl_qbi_popupData[b].cacheFlag=false;atl_qbi_popupData[b].itemTrackingCode=c;atl_qbi_popupData[b].ciCodes=f}atl_qbi_is_safari=agt.indexOf("safari")!=-1;if(is_ie){atl_qbi_is_ie6under=(agt.indexOf("msie 6")!=-1||agt.indexOf("msie 5")!=-1||agt.indexOf("msie 4")!=-1)}}function atlQbiFindChildNode(c,d){var b=null;if(c.hasChildNodes){var a=c.firstChild;while(a!=null){if(a.id==d){b=a;break}a=a.nextSibling}}return b}function atlQbiClearCache(){atl_qbi_cachedFlag=false}function atlQbiClearPopupCache(c){var b=atlQbiGetPopupDataIndex(c.id);if(b>-1){var a=atl_qbi_popupData[b];a.cacheFlag=false}}function atlQbiShowInt(a){if(a!=null){atlQbiSetVisibility(a.id,true);if(atl_qbi_is_ie6under){atlQbiHideElement("SELECT",a)}}}function atlQbiShow(e,d,c){atlQuickBuyBeforeShow();var b=atlQbiGetPopupDataIndex(e.id);if(b>-1){var a=atl_qbi_popupData[b];var f=-1;if(a.ciCodes.length>0){f=a.ciCodes[0]}if((f>0)&&(typeof FastballEvent_MouseClick=="function")){FastballEvent_MouseClick(d,f,c,"","div")}if(a.cacheFlag&&!atl_qbi_is_ie6under){atlQbiShowInt(a.targetDiv)}else{atlQbiCallForContent(a)}}}function atlQuickBuyBeforeShow(){if(typeof(ShowHideDomainSearchDiv)!="undefined"){ShowHideDomainSearchDiv("hide")}}function atlQuickBuyBeforeClose(){if(typeof(ShowHideDomainSearchDiv)!="undefined"){ShowHideDomainSearchDiv("show")}}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}atlQbiSendServerRequest(b)}function atlQbiFillDiv(a){if(a!=null){var f=atlQbiGetPopupDataIndex(a.TargetDivId);if(f<0){return}var b=atl_qbi_popupData[f];var j=document.getElementsByTagName("head").item(0);if(a.StyleSheet.length>0){var k="atlInsertStyles";var g=atlQbiFindChildNode(j,k);if(g==null){var h=document.createElement("link");h.setAttribute("id",k);h.setAttribute("type","text/css");h.setAttribute("rel","stylesheet");h.setAttribute("href",a.StyleSheet);h.setAttribute("media","screen");j.appendChild(h)}}if(a.ScriptReference.length>0){var c="atlQbi_"+b.quickBuyName+"_script";var e=atlQbiFindChildNode(j,c);if(e==null){var d=document.createElement("script");d.setAttribute("id",c);d.setAttribute("type","text/javascript");d.setAttribute("language","javascript");d.setAttribute("src",a.ScriptReference);j.appendChild(d)}}atlQbiShowInt(b.targetDiv);b.targetDiv.innerHTML=a.Html;b.cacheFlag=true}}function atlQbiClose(a){atlQuickBuyBeforeClose();var b=document.getElementById(a);if(b!=null){if(atl_qbi_is_ie6under){atlQbiShowElement("SELECT")}atlQbiSetVisibility(a,false)}}function atlQbiSendCommandToServer(h,f,d,m,l,a,g){var j=atlQbiGetPopupDataIndex(h);if(j<0){return}var b=atl_qbi_popupData[j];if(l>0&&a!=null&&g!=null&&(typeof FastballEvent_MouseClick=="function")){FastballEvent_MouseClick(a,l,g,"","div")}var e=b.siteUrl+"QuickBuy/QuickBuyData.aspx";if(atl_qbi_querystring.length==0){e=e+"?callback="+m+"&targetDivId="+b.targetDiv.id}else{e=e+atl_qbi_querystring+"&callback="+m+"&targetDivId="+b.targetDiv.id}if((b.quickBuyName!=null)&&(b.quickBuyName!="")){e=e+"&quickBuyName="+b.quickBuyName}if((b.itemTrackingCode!=null)&&(b.itemTrackingCode!="")){e=e+"&itemTrackingCode="+b.itemTrackingCode}if(l>0){e=e+"&ci="+l}if((f!=null)&&(f!="")){e=e+"&commandName="+f;if(d!=null){var c=d.join("|");if(c.length>0){e=e+"&params="+escape(c)}}}var k=Math.floor(Math.random()*999999999);e=e+"&rand="+k;atlQbiSendServerRequest(e)}function atlQbiSendServerRequest(d){var b=document.getElementsByTagName("head").item(0);var e="atlQbiInsert";var c=atlQbiFindChildNode(b,e);var a=document.createElement("script");a.setAttribute("id",e);a.setAttribute("type","text/javascript");a.setAttribute("language","javascript");a.setAttribute("src",d);if(c!=null){b.replaceChild(a,c)}else{b.appendChild(a)}}function atlQbiSetVisibility(c,a){var b=document.getElementById(c);if(b){if(a){b.style.display=""}else{b.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(b,a){if(atl_qbi_is_safari){atl_qbi_bHover=a;window.status=a;atlQbi_qbj_setDD(b,a,false)}else{atl_qbi_bHover=a;window.status=a;setTimeout("atlQbi_qbj_setDD('"+b+"', '"+a+"', false)",400)}}function atlQbi_qbj_setDD(b,a,c){atlQbi_qbj_hideDDs(b);if((atl_qbi_bHover==a)||(c)){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 e,a,d,b=atlQbi_qbjNav.arguments,c=0;if(!((b[c]==b[c+1])&&(b[c+2]=="hide")&&(b[c+3]=="ov"))){if((d=atlQbi_qbj_findDiv(b[c]))!=null){a=b[c+2];if(d.style){d=d.style;a=(a=="show")?"visible":(a="hide")?"hidden":a}d.visibility=a;if(a=="hidden"){atlQbi_qbj_of_g(b[c]+"x")}}}}function atlQbi_qbj_findDiv(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=atlQbi_qbj_findDiv(f,e.layers[b].document)}if(!a&&document.getElementById){a=document.getElementById(f)}return a}function atlQbi_qbj_hv_g(a){if(a=="qb_osx"){document.getElementById("qb_os_dd").className="qbb qb_ov_u"}}function atlQbi_qbj_of_g(a){if(a=="qb_osx"){document.getElementById("qb_os_dd").className="qbb qb_ov_d"}}function atlQbi_qbj_hideDD(a){atlQbi_qbj_of_g(a+"x");atlQbi_qbjNav(a,"","hide");atlQbi_qbj_hideDDs("")}function atlQbi_osSubOn(a){document.getElementById(a).style.backgroundColor="#F0F0F0"}function atlQbi_osSubOff(a){document.getElementById(a).style.backgroundColor="#FFFFFF"}var atlQbi_selectedOSIds=new Array();function atlQbi_osSubClick(c,b){var d=atlQbiGetSelectedOSIdIndex(c);if(d==-1){atlQbi_selectedOSIds[atlQbi_selectedOSIds.length]={targetDivId:c,selectedOSId:b}}else{atlQbi_selectedOSIds[d].selectedOSId=b}var a=document.getElementById("qb_"+c+"_osdiv_l");var e=document.getElementById("qb_"+c+"_osdiv_w");if(a&&e){if(b=="l"){e.style.display="none";a.style.display=""}else{a.style.display="none";e.style.display=""}}var f=document.getElementById("qb_"+c+"_plans_l");var h=document.getElementById("qb_"+c+"_plans_w");if(f&&h){if(b=="l"){h.style.display="none";f.style.display=""}else{f.style.display="none";h.style.display=""}}var g=document.getElementById("qb_"+c+"_features_l");var j=document.getElementById("qb_"+c+"_features_w");if(g&&j){if(b=="l"){j.style.display="none";g.style.display=""}else{g.style.display="none";j.style.display=""}}atlQbi_qbj_mout("qb_"+c+"_os")}function atlQbiGetSelectedOSIdIndex(a){var b=-1;for(var c=0;c<atlQbi_selectedOSIds.length;c++){if(atlQbi_selectedOSIds[c].targetDivId==a){b=c;break}}return b}var atlQbiSelectedProductIds=new Array();function atlQbiProductRadioClicked(a,c,d){var b=atlQbiGetSelectedProductIdIndex(a,c);if(b==-1){atlQbiSelectedProductIds[atlQbiSelectedProductIds.length]={targetDivId:a,radioName:c,selectedProductId:d.value}}else{atlQbiSelectedProductIds[b].selectedProductId=d.value}d.checked=true}function atlQbiGetSelectedProductIdIndex(a,d){var b=-1;for(var c=0;c<atlQbiSelectedProductIds.length;c++){if(atlQbiSelectedProductIds[c].targetDivId==a&&atlQbiSelectedProductIds[c].radioName==d){b=c;break}}return b}function atlQb_qhHideHelp(b){var a;if(document.all){a=document.all["atlQbQhi_"+b+"_Help"]}else{if(document.getElementById){a=document.getElementById("atlQbQhi_"+b+"_Help")}}if(a){a.style.display="none"}if(atl_qbi_is_ie6under){atlQbiShowElement("select");atlQbiShowElement("object");atlQbiShowElement("embed")}}function atlQb_qhShowHelp(j,m,l,k){var f;if(document.all){f=document.all["atlQbQhi_"+m+"_Help"]}else{if(document.getElementById){f=document.getElementById("atlQbQhi_"+m+"_Help")}}if(f){var d=340;var e=atlQb_qhGetOffsetLeft(j);var a=(window.innerWidth)?window.innerWidth-25:document.body.clientWidth;if((e+d)>a){e=a-d}newX=e;var g=f.offsetHeight;var c=atlQb_qhGetOffsetTop(j)+j.offsetHeight;var b=(window.innerHeight)?window.innerHeight-25:document.body.clientHeight;if((c+g)>b+atlQb_qhGetScrollY()){c=atlQb_qhGetOffsetTop(j)-g}newY=c;f.style.top=newY.toString()+"px";f.style.left=newX.toString()+"px";if(atl_qbi_is_ie6under){atlQbiHideElement("select",f);atlQbiHideElement("object",f);atlQbiHideElement("embed",f)}var h=document.getElementById(l);if(h){e=atlQb_qhGetOffsetLeft(h);newX-=e;c=atlQb_qhGetOffsetTop(h);newY-=c}f.style.top=newY.toString()+"px";f.style.left=newX.toString()+"px";f.style.display=""}}function atlQb_qhGetOffsetTop(c){var b=c.offsetTop;var a=c.offsetParent;while(a){b+=a.offsetTop;a=a.offsetParent}return b}function atlQb_qhGetOffsetLeft(c){var b=c.offsetLeft;var a=c.offsetParent;while(a){b+=a.offsetLeft;a=a.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};
