$(function() {

    $('#searchText').click(function() {
        if ($(this).val() == 'search') { $(this).val('') }
    });
    $('#search_btn').click(function() {
        $("#HeaderSearch").submit();
    });

    // get your select element and listen for a change event on it
    $('.selectgo').change(function() {
        window.location = $(this).val();
    });

    //Product Thumbnails
    $(".prodThumbs li img").hover(
	   function() { $(this).addClass("hover"); },
	   function() { $(this).removeClass("hover"); }
   );

    //Product Thumbnails
    $(".top-prod-thumbs li img").hover(
	   function() { $(this).addClass("hover"); },
	   function() { $(this).removeClass("hover"); }
   );

    //Track Product Image Impressions
    $(".prod-img-trk").each(function() {
        var prod_id_to_track = $(this).attr("id").replace('prod-', '');
        if (isNaN(prod_id_to_track) == false)
            trackImpression('prod_imp', prod_id_to_track);
    });

    //Track Business Card Impressions
    $(".bizcard-img-trk").each(function() {
        var manu_id_to_track = $(this).attr("id").replace('manu-', '');
        if (isNaN(manu_id_to_track) == false)
            trackImpression('mfr_logo_imp', manu_id_to_track);
    });

    //Category Grid
    $(".catGrid li").hover(
	   function() { $(this).addClass("hover"); },
	   function() { $(this).removeClass("hover"); }
   );

    // $(".lst-product-list-item").hover(
    //     function() { $(this).children(".itemflyout").show(); $(this).siblings(".itemflyout").css("z-index", "1000"); },
    //     function() { $(this).children(".itemflyout").hide(); $(this).siblings(".itemflyout").css("z-index", "1"); }
    //);

    $("li .itemflyout").hover(
        function() { $(this).show(); $(this).css("z-index", "1000"); },
        function() { $(this).hide(); $(this).css("z-index", "1"); }
   );

    $(".catGrid li").click(function() {
        window.location = $(this).find("a").attr("href"); return false;
    });

    $(".catGrid2 li").click(function () {
        window.location = $(this).find("a").attr("href"); return false;
    });

    $(".grid-stacked li").click(function () {
        window.location = $(this).find("a").attr("href"); return false;
    });

    //$("img[src$=.jpg]").bind("contextmenu", function(e) { return false; });
    $('img').bind('contextmenu', function (e) { return false; });
});

function jsGo(url){
   $("body").css("cursor", "progress");
   window.location=url;
}
var intCount = 0;
function searchPrep(f){
	var isNewSearch = false;
	for( var i=0; i<f.length; i++ ){
		if( (f.elements[i].name == "searchType") && (f.elements[i].value == "new") ) {
			isNewSearch = f.elements[i].checked;
   		break;
		}
	}
	if( isNewSearch ){
		for( var i=1; i<f.length; i++){
			f.elements[i].value = ""; 
		}
	}
}
function openPrintWindow(src){
	newWin=window.open(src,'PrintPopup','resizable=yes,toolbar=no,location=no,scrollbars=yes,status=no,width=600,height=520,top=20,left=20');
	newWin.focus();
}
function popupHomeDesignPortfolio(){
	windowA = window.open("/PersonalPortfolio/LearnAboutYourHomeDesignPortfolio.html", "windowA", "location=no,scrollbars=yes,width=470,height=300"); 
	windowA.focus();
}
function submitForm (f) {
  f.submit();
}
function jumpPage(newLoc){
	newPage = newLoc.options[newLoc.selectedIndex].value
	if(newPage !=""){
		window.location.href = newPage
	}
}
function surfto1(form) {
	var myindex=form.select1.selectedIndex
	location=form.select1.options[myindex].value;
}
function surfto2(form) {
	var myindex=form.select2.selectedIndex
	location=form.select2.options[myindex].value;
}
function surfto3(form) {
	var myindex=form.select3.selectedIndex
	location=form.select3.options[myindex].value;
}
function ahrefSubmit(){
  document.SeeAllForm.submit();
}
function popup(url){
	aboutWin=window.open(url,"aboutWin","resizable=yes,toolbar=no,location=no,scrollbars=yes,status=no,width=500,height=600");
	aboutWin.focus();
}
function openLinkInParent(theLink){
	window.opener.location=theLink.href;
	window.close();
	location.reload();
}
function openWin(src,name){
	newWin=window.open(src,name,'resizable=yes,toolbar=no,status=no,width=250,height=150');
	newWin.focus();
}
function popupListPrice(){
  windowA = window.open("/ProductExplorer/PricingExplanations.html#ListPrice", "windowA", "location=no,scrollbars=yes,width=400,height=300"); 
}
function popupTradeOnlyProducts(){
  windowA = window.open("/ProductExplorer/PricingExplanations.html", "windowA", "location=no,scrollbars=yes,width=400,height=300"); 
}
function popupPLUSInfo(url) {
  if( url.substring(0,1) != "/" )
    url = "/catalog/" + url;
  newPLUSWin=window.open( url,"PLUSwin","resizable=yes,toolbar=no,location=no,scrollbars=yes,status=no,width=450,height=530");
  newPLUSWin.focus();
}
function popupPLUSInfo2(url) {
  if( url.substring(0,1) != "/" )
    url = "/catalog/" + url;
  newPLUSWin2=window.open( url,"PLUSwin2","resizable=yes,toolbar=no,location=no,scrollbars=yes,status=no,width=660,height=600");
  newPLUSWin2.focus();
}
function popupPLUSAboutMan(url){
  newABOUTWin=window.open(url,"ABOUTwin","resizable=yes,toolbar=no,location=no,scrollbars=yes,status=no,width=700,height=500");
  newABOUTWin.focus();
}
function searchOtherShowRooms(){
		if(document.showroom.zip.value==""){
		alert("Please enter a Zip Code.");
		document.showroom.zip.focus();
		return false;
	}
	document.showroom.submit();
}
function showOnDisplayAt(url,prodid,retid,type){		
	if(url!="" && prodid!="" && retid!="" && type!=""){
		var url=url+"?prodId="+prodid+"&retId="+retid+"&type="+type;
		newONDISPLATATWin=window.open(url,"ONDISPLAYATwin","resizable=yes,toolbar=no,location=no,scrollbars=yes,status=no,width=670,height=670");
		newONDISPLATATWin.focus();
	}
}
function callRetailerPage(){
	document.retailerlist.submit();
}
function searchForMulAttrib(){
  if (fattrib.avId!=null) {
  	if (fattrib.avId.length!="undefined") {
  		var catid=fattrib.catId.value;	
			var url="/catalog/Listing.jhtml?catId="+catid;
			var checkedatleastonce=false;
			for(i=0;i<fattrib.avId.length;i++) {
				if(fattrib.avId[i].checked==true) {
					checkedatleastonce=true;
					url=url+"&avId="+fattrib.avId[i].value;
				}
			}
  	}
  	if (checkedatleastonce==false) {
  		alert("Please select at least one attribute.");
			return false;
  	} else {
	  	fattrib.action=url;
  		fattrib.target=window.opener.name;
  	  fattrib.submit();
  	}
  }
}
function openNewWin(src,name){
	newWin=window.open(src,name,'resizable=yes,toolbar=no,location=no,scrollbars=yes,status=no,width=620,height=510');
	newWin.focus();
}
function openManWin(url,name,wNum,hNum) {
 newWin=window.open(url,name,'resizable=yes,toolbar=no,location=no,scrollbars=yes,width='+wNum+',height='+hNum+',status=no');
 newWin.focus();
}
function fullWin(url,name,resizeOK,toolbarOK,locOK,scrollOK,statusOK,wNum,hNum) {
	var fullWin=window.open(url,name,'resizable='+resizeOK+',toolbar='+toolbarOK+',location='+locOK+',scrollbars='+scrollOK+',status='+statusOK+',width='+wNum+',height='+hNum+'');
	fullWin.focus();
}
function popupABOUTWin(url) {
	newABOUTWin=window.open(url,"ABOUTwin","resizable=yes,toolbar=no,location=no,scrollbars=yes,status=no,width=600,height=500");
	newABOUTWin.focus();
}
function popupEmailRetailerWin(url){
	EmailWin=window.open(url,"Emailwin","resizable=yes,toolbar=no,location=no,scrollbars=yes,status=no,width=550,height=565,top=0,left=0");
	EmailWin.focus();
}
function divSwap(div1,div2) {
	var show = document.getElementById(div1);
	var hide = document.getElementById(div2);
	hide.style.display = "none";
	show.style.display = "block";
}
function ImgOver(pgType,buttonName){ 
	if (pgType=='pLinks') {	document.getElementById(buttonName).src = '/images/Backgrounds/callToActionPortBg-hover.gif'; }
	else { document.getElementById(buttonName).src = '/images/Backgrounds/callToActionBg-hover.gif'; }
}
function ImgOut(buttonName){ 
	document.getElementById(buttonName).src = '/images/Backgrounds/callToActionBg.gif'; 
}
function updateParent(newURL){
	opener.document.location = newURL
}
var debugging = false;
              
function insertFSIViewer(src, width, height, imgHeight, imgWidth) {
	var movie = fsiServiceUrl + '?ViewerWidth=' + width + '&ViewerHeight=' + height + '&cfg=info&fpxsrc=' + src + '&fpxwidth=' + imgWidth + '&fpxheight=' + imgHeight;
	if (debugging) {
		movie += '&debug=true';
	}
	document.write('<object id="fsiviewer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="' + height + '" width="' + width + '">');
	document.write('<param name="movie" value="' + movie + '">')
	document.write('<param name="quality" value="high">');
	document.write('<param name="WIDTH" value="' + width + '">');
	document.write('<param name="HEIGHT" value="' + height + '">');
	document.write('<param name="menu" value=true">');
	document.write('<param name="bgcolor" value="#ffffff">');
	document.write('<embed height="' + height + '" width="' + width + '" name="fsiviewer" swLiveConnect="true" pluginspage="http://www.macromedia.com/go/getflashplayer" src="'+ movie + '" bgcolor="#ffffff" type="application/x-shockwave-flash"></embed>');
	document.write('</object>');
}
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(/&#146;/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; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
// rollover functions used on Manufacturer Profile page
function prepRollovers() {
	mainImg = document.getElementById('mainImage').src;
}		
function swapImg(whichImg) {
	if (mainImg) {document.getElementById('mainImage').src = whichImg.id}
}
function restoreImg() {
	if (mainImg) {document.getElementById('mainImage').src = mainImg}
}
//  END ROLLOVER CODE 


//  START WEBTRENDS CODE 
var gImages=new Array;
var gIndex=0;
var DCS=new Object();
var WT=new Object();
var DCSext=new Object();
var gDcsId="";

if (gDcsId==""){
    var gTagPath=gDomain;
}
else{
    var gTagPath=gDomain+"/"+gDcsId;
}

function dcsVar(){
    var dCurrent=new Date();
    WT.tz=dCurrent.getTimezoneOffset()/60*-1;
    WT.bh=dCurrent.getHours();
    WT.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage; 

    if (typeof(screen)=="object"){
        WT.cd=screen.colorDepth;
        WT.sr=screen.width+"x"+screen.height;
    }
    if (typeof(navigator.javaEnabled())=="boolean"){
        WT.jo=navigator.javaEnabled()?"Yes":"No";
    }
    //WT.ti=document.title;
    WT.js="Yes";
    if (typeof(gVersion)!="undefined"){
        WT.jv=gVersion;
    }
//    WT.sp="";
    DCS.dcsuri=window.location.pathname;
    DCS.dcsqry=window.location.search;
    if ((window.document.referrer!="")&&(window.document.referrer!="-")){
        if (!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){
            DCS.dcsref=window.document.referrer;
        }
    }
    DCS.dcssip=window.location.hostname;
    DCS.dcsdat=dCurrent.getTime();
    if( HPprodId != null ) {
          DCS.dcsqry += (DCS.dcsqry.length>0)?"&":"?";
      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('<img border="0" name="DCSIMG" width="1" height="1" src="'+dcsSrc+'">');
    }
	//alert(dcsSrc);
}

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 



