// -------------------------------------------------- START GUIDE PAGE CODE ------------ var intCount = 0; function searchPrep(f){ var isNewSearch = false; for( var i=0; i'); document.write('') document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); } // --------------------------------------------------------- END VARIOUS & SUNDRY UI CODE ------------ // -------------------------------------------------------------- START GET INSPIRED CODE -------------- function formHandler(form){ var URL = document.form.site.options[document.form.site.selectedIndex].value; window.location.href = URL; } function openWinImage1(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=425,height=650'); newWin.focus(); } function openWinImage2(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=425,height=650'); newWin.focus(); } function openWinImage3(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=450'); newWin.focus(); } function openWinImage4(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=485'); newWin.focus(); } function openWinImage5(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=550'); newWin.focus(); } function openWinImage6(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625, height=450'); newWin.focus(); } function openWinImage7(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=500'); newWin.focus(); } function openWinImage8(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=530'); newWin.focus(); } function openWinImage9(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=425,height=650'); newWin.focus(); } function openWinImage10(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=425,height=650'); newWin.focus(); } function openWinImage11(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=510'); newWin.focus(); } function openWinImage12(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=515'); newWin.focus(); } function openWinImage13(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=530'); newWin.focus(); } function openWinImage14(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=505,height=650'); newWin.focus(); } function openWinImage15(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=475,height=650'); newWin.focus(); } function openWinImage16(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=500'); newWin.focus(); } function openWinImage17(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=515'); newWin.focus(); } function openWinImage18(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=480'); newWin.focus(); } function openWinImage19(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=485'); newWin.focus(); } function openWinImage20(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=450'); newWin.focus(); } function openWinImage21(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=450'); newWin.focus(); } function openWinImage22(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=425,height=650'); newWin.focus(); } function openWinImage23(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=555,height=650'); newWin.focus(); } function openWinImage24(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=530'); newWin.focus(); } function openWinImage25(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=500'); newWin.focus(); } function openWinImage26(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=455'); newWin.focus(); } function openWinImage27(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=445,height=650'); newWin.focus(); } function openWinImage28(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=495'); newWin.focus(); } function openWinImage29(src,name) { newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=625,height=495'); newWin.focus(); } // -------------------------------------------------------------- START Cookie CODE -------------- /* name - name of the cookie value - value of the cookie [expires] - expiration date of the cookie (defaults to end of current session) [path] - path for which the cookie is valid (defaults to path of calling document) [domain] - domain for which the cookie is valid (defaults to domain of calling document) [secure] - Boolean value indicating if the cookie transmission requires a secure transmission * an argument defaults when it is assigned null as a placeholder * a null placeholder is not required for trailing omitted arguments */ function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; } /* name - name of the desired cookie return string containing value of specified cookie or null if cookie does not exist */ function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else begin += 2; var end = document.cookie.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin + prefix.length, end)); } /* name - name of the cookie [path] - path of the cookie (must be same as path used to create cookie) [domain] - domain of the cookie (must be same as domain used to create cookie) path and domain default if assigned null or omitted if no explicit argument proceeds */ function deleteCookie(name, path, domain) { if (getCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // date - any instance of the Date object // * hand all instances of the Date object to this function for "repairs" function fixDate(date) { var base = new Date(0); var skew = base.getTime(); if (skew > 0) date.setTime(date.getTime() - skew); } // var visits = getCookie("pgcount"); var firstload = true; // if the cookie wasn't found, this is your first visit if (!visits) { visits = 1; } else { // increment the counter visits = parseInt(visits) + 1; firstload = false; } // set the new cookie setCookie("pgcount", visits); // -------------------------------------------------------------- END Cookie CODE -------------- // -------------------------------------------------------------- START AD CODE -------------- function ad_build_page_tag(scat, cat) { var tag_name scat = ad_format_cat(scat); cat = ad_format_cat(cat); tag_name = 'HP_' + scat; if (cat != '') tag_name = tag_name + '_' + cat; return tag_name; }; function ad_format_cat(cat) { cat = cat.replace(/’/g, ""); cat = cat.replace(/ /g, "-"); cat = cat.replace(/-&-/g, "-And-"); cat = cat.replace(/,/g, ""); cat = cat.replace(/'/g, ""); cat = cat.replace(/\//g, "-Or-"); return cat }; // -------------------------------------------------------------- END AD CODE -------------- // -------------------------------------------------------------- START ROLLOVER CODE -------------- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0)?"&":"?"; DCS.dcsqry += "manId=" + HPmanId; DCS.dcsqry += "&catId=" + HPcatId; DCS.dcsqry += "&supercatId=" + HPsupercatId; } if( HPretailerId != null ) { DCS.dcsqry += (DCS.dcsqry.length>0)?"&":"?"; DCS.dcsqry += "retId=" + HPretailerId; } else { if( HPretId != null ) { DCS.dcsqry += (DCS.dcsqry.length>0)?"&":"?"; DCS.dcsqry += "retId=" + HPretId; } } if( HPstandaloneOsFg ) { DCS.dcsqry += (DCS.dcsqry.length>0)?"&":"?"; DCS.dcsqry += "standaloneOs=" + HPstandaloneOsFg; } if( HPdesId != null ) { DCS.dcsqry += (DCS.dcsqry.length>0)?"&":"?"; DCS.dcsqry += "desId=" + HPdesId; } } function A(N,V){ return "&"+N+"="+escape(V); } function dcsCreateImage(dcsSrc){ if (document.images){ gImages[gIndex]=new Image; gImages[gIndex].src=dcsSrc; gIndex++; } else{ document.write(''); } } function dcsMeta(){ var myDocumentElements; if (document.all){ myDocumentElements=document.all.tags("meta"); } else if (document.documentElement){ myDocumentElements=document.getElementsByTagName("meta"); } if (typeof(myDocumentElements)!="undefined"){ for (var i=1;i<=myDocumentElements.length;i++){ myMeta=myDocumentElements.item(i-1); if (myMeta.name){ if (myMeta.name.indexOf('WT.')==0){ WT[myMeta.name.substring(3)]=myMeta.content; } else if (myMeta.name.indexOf('DCSext.')==0){ DCSext[myMeta.name.substring(7)]=myMeta.content; } else if (myMeta.name.indexOf('DCS.')==0){ DCS[myMeta.name.substring(4)]=myMeta.content; } } } } } function dcsTag(TagImage){ var P="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+TagImage+"/dcs.gif?"; for (N in DCS){ if (DCS[N]) { P+=A(N,DCS[N]); } } for (N in WT){ if (WT[N]) { P+=A("WT."+N,WT[N]); } } for (N in DCSext){ if (DCSext[N]) { P+=A(N,DCSext[N]); } } if (P.length>2048&&navigator.userAgent.indexOf('MSIE')>=0){ P=P.substring(0,2040)+"&WT.tu=1"; } dcsCreateImage(P); } function trackNow() { dcsVar(); dcsMeta(); dcsTag(gTagPath); //debugging //printTagVariables(); //printCookies(); } function trackImpression(impressionType,objectId) { //debugging //alert('trackImpression.type:' + impressionType + ',obj:' + objectId); if (DCSext[impressionType]) { DCSext[impressionType] += objectId + ";"; } else { DCSext[impressionType] = objectId + ";"; } } function printTagVariables() { var tagVariables = ""; for (N in WT) { tagVariables += "\n WT." + N + " = " + WT[N]; } for (N in DCS) { tagVariables += "\n DCS." + N + " = " + DCS[N]; } for (N in DCSext) { tagVariables += "\n DCSext." + N + " = " + DCSext[N]; } var P ="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+gTagPath+"/dcs.gif?"; for (N in DCS){P+=A( N, DCS[N]);} for (N in WT){P+=A( "WT."+N, WT[N]);} for (N in DCSext){P+=A( N, DCSext[N]);} tagVariables += "\n TagImage = " + P; alert("Here are all the tag variables : " + tagVariables); } function printCookies() { alert(document.cookie); } // ---------------------------------------------------------------- END WEBTRENDS CODE ------------