/* Begin Code to for Mapping to Suites */
/** Global Load Values **/
var defaultSpot = -1;

/**
 * Function to find out if we are in a dev environment.
 * We need to define here what servers are dev/stage (non-production).
 * Example: http://www.harrahs.com would return "false"
 * while    http://test.harrahs.com would return "true"
 *
 * Creation Date:(11/18/04).
 * Copyright @2004, Harrah's Operating Company Inc, all rights reserved.
 * @author: Richard Treharne
 */
function findIfDev()
{
   // Put URL into variable, then split it up at the slashes
   var URL = document.URL;
   var urlArray = URL.split("/");
   var isDev = true;
   if (urlArray == null || urlArray.length < 2)
      isDev=true;
   else if (urlArray[2].indexOf("www.harrahs.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("investor.harrahs.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("playforfun.harrahs.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("harrahs.custhelp.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("directions.harrahs.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("www.riovegasnights.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("payflow.hodes.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("www.equibase.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("www.ladowns.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("insight.smartdm.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("www.applyonlinenow.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("www.costore.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("harrahs.neatgroup.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("harrahsent.directtrak.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("www.caesars.com") >=0)
      isDev=false;
   else if (urlArray[2].indexOf("www.shopcaesars.com") >=0)
      isDev=false;
   return isDev;
}

/**
 * Data Member Function for holding suiteIDs of production and developement
 *
 * Creation Date:(11/18/04).
 * Copyright @2004, Harrah's Operating Company Inc, all rights reserved.
 * @author: Richard Treharne
 */
function suiteID (production,development)
{
   this.pro = production;
   this.dev = development;
}

/**
 * Data Member Function for holding specific mapping information
 *
 * Creation Date:(11/18/04).
 * Copyright @2004, Harrah's Operating Company Inc, all rights reserved.
 * @author: Richard Treharne
 */
function SiteItem (propCode,division,type,brand,OmnitureSuite)
{
   this.propCode = propCode;
   this.type = type;
   this.division = division;
   this.brand = brand;
   this.OmnitureSuite = OmnitureSuite;
}

/**
 * Function to add a mapping to an array given.
 * It then returns the new array with that member added.
 *
 * Creation Date:(11/18/04).
 * Copyright @2004, Harrah's Operating Company Inc, all rights reserved.
 * @author: Richard Treharne
 */
function addSiteCode(SiteCodes,item)
{
   if (SiteCodes == null)
      SiteCodes = new Array();
   var nextSpot = SiteCodes.length;
   SiteCodes[nextSpot] = item;
   return SiteCodes;
}

/**
 * Function to trim a string s
 * @param: a string
 * @return: a string with not spaces before or after 
 *
 * Creation Date:(11/19/04).
 * Copyright @2004, Harrah's Operating Company Inc, all rights reserved.
 * @author: Richard Treharne
 */
function trim(s) 
{
   if (s != null)
   {
      // Remove leading spaces and carriage returns
      while ((s.length > 1) &&
            ((s.substring(0,1) == ' ') || 
            (s.substring(0,1) == '\n') || 
            (s.substring(0,1) == '\r')))
      {
         s = s.substring(1,s.length);
      }
      // Remove trailing spaces and carriage returns
      while ((s.length > 1) &&
            ((s.substring(s.length-1,s.length) == ' ') || 
            (s.substring(s.length-1,s.length) == '\n') || 
            (s.substring(s.length-1,s.length) == '\r')))
      {
         s = s.substring(0,s.length-1);
      }
   }
   else
   {
      s = "";
   }
   return s;
}

/**
 * Function to define all the mappings one by one and add them to an array given.
 * @param: an array to add to 
 * @return: a populated array 
 *
 * Creation Date:(11/18/04).
 * Copyright @2004, Harrah's Operating Company Inc, all rights reserved.
 * @author: Richard Treharne
 */
function populateSiteCodes(SiteCodes)
{
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("corp","","","Harrahs",
                                       new suiteID("harrahscom,harrahsglobal","devharrahscom")));
   /**
    * These properties are divested
    */
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("default","Divested","Divested","Divested",
                                       new suiteID("harrahscom,harrahsglobal","devharrahscom")));

   SiteCodes = addSiteCode(SiteCodes,new SiteItem("BLA","Divested","Divested","Divested",
                                       new suiteID("harrahscom,harrahsglobal","devharrahscom")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("NZE","Divested","Divested","Divested",
                                       new suiteID("harrahscom,harrahsglobal","devharrahscom")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("PDB","Divested","Divested","Divested",
                                       new suiteID("harrahscom,harrahsglobal","devharrahscom")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("ECH","Divested","Divested","Divested",
                                       new suiteID("harrahscom,harrahsglobal","devharrahscom")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("SHR","Divested","Divested","Divested",
                                       new suiteID("harrahscom,harrahsglobal","devharrahscom")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("SKA","Divested","Divested","Divested",
                                       new suiteID("harrahscom,harrahsglobal","devharrahscom")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("TUN","Divested","Divested","Divested",
                                       new suiteID("harrahscom,harrahsglobal","devharrahscom")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("VIC","Divested","Divested","Divested",
                                       new suiteID("harrahscom,harrahsglobal","devharrahscom")));
   /**
    * These properties are good
    */
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("AKC","Western","Frequency","Harrahs",
                                       new suiteID("harakchin,harrahsglobal","harakchindev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("ATL","Eastern","Destination","Harrahs",
                                       new suiteID("haratlanticcity,harrahsglobal","haratlanticcitydev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("BIL","Western","Frequency","Harrahs",
                                       new suiteID("harbills,harrahsglobal","harbillsdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("CHE","Eastern","Frequency","Harrahs",
                                       new suiteID("harcherokee,harrahsglobal","harcherokeedev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("COU","Eastern","Frequency","Harrahs",
                                       new suiteID("harcouncilbluffs,harrahsglobal","harcouncilbluffsdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("Chesterdowns","Eastern","Frequency","Harrahs",
                                       new suiteID("harchesterdowns,harrahsglobal","harchesterdownsdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("HBR","Eastern","Frequency","Harrahs",
                                       new suiteID("harbluffrun,harrahsglobal","harbluffrundev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("HLT","Western","Destination","Harveys",
                                       new suiteID("harlaketahoe,harrahsglobal","harlaketahoedev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("JOL","Eastern","Frequency","Harrahs",
                                       new suiteID("harjoliet,harrahsglobal","harjolietdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("LAD","Central","Frequency","Harrahs",
                                       new suiteID("harlouisianadowns,harrahsglobal","harlouisianadownsdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("LAS","Western","Destination","Harrahs",
                                       new suiteID("harlasvegas,harrahsglobal","harlasvegasdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("LAU","Western","Frequency","Harrahs",
                                       new suiteID("harlaughlin,harrahsglobal","harlaughlindev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("LCH","Central","Frequency","Harrahs",
                                       new suiteID("harlakecharles,harrahsglobal","harlakecharlesdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("MET","Eastern","Frequency","Harrahs",
                                       new suiteID("harmetropolis,harrahsglobal","harmetropolisdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("NOR","Central","Destination","Harrahs",
                                       new suiteID("harneworleans,harrahsglobal","harneworleansdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("NKC","Eastern","Frequency","Harrahs",
                                       new suiteID("harnkansascity,harrahsglobal","harnkansascitydev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("REN","Western","Frequency","Harrahs",
                                       new suiteID("harreno,harrahsglobal","harrenodev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("RIN","Western","Frequency","Harrahs",
                                       new suiteID("harrincon,harrahsglobal","harrincondev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("RLV","Western","Destination","Rio",
                                       new suiteID("harriolasvegas,harrahsglobal","harriolasvegasdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("SAC","Eastern","Destination","Showboat",
                                       new suiteID("harshowboatac,harrahsglobal","harshowboatacdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("STL","Eastern","Frequency","Harrahs",
                                       new suiteID("harstlouis,harrahsglobal","harstlouisdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("TAH","Western","Destination","Harrahs",
                                       new suiteID("harahlaketahoe,harrahsglobal","harahlaketahoedev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("TOP","Eastern","Frequency","Harrahs",
                                       new suiteID("hartopeka,harrahsglobal","hartopekadev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("UBC","Central","Frequency","Horseshoe",
                                       new suiteID("harnewhorseshoebossier,harrahsglobal","harnewhorseshoebossierdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("UHA","Central","Frequency","Horseshoe",
                                       new suiteID("harnewhorseshoehammond,harrahsglobal","harnewhorseshoehammonddev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("UTU","Central","Frequency","Horseshoe",
                                       new suiteID("harnewhorseshoetunica,harrahsglobal","harnewhorseshoetunicadev")));
   
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("sachob","","","",
                                       new suiteID("harsachob,harrahsglobal","harsachobdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("slotspot","","","",
                                       new suiteID("harslots,harrahsglobal","harslotsdev")));

   /* Non-Harrahs Global Reports */
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("riovegasnights","Western","Destination","Rio",
                                       new suiteID("harrionightlife","harrionightlifedev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("riogroups","Western","Destination","Rio",
                                       new suiteID("harriogroups","harriogroupsdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("wsop","","","",
                                       new suiteID("harworldseries","harworldseriesdev")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("thestraightdeal","","","",
                                       new suiteID("harcaesars","devharrahscom")));
                                       
   /* Harrah's Market Suites */
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("marketatlanticcity","","","",
                                       new suiteID("harmarketatlanticcity,harrahsglobal","devharrahscom")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("marketgulfport","","","",
                                       new suiteID("harmarketgulfport,harrahsglobal","devharrahscom")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("marketmidwest","","","",
                                       new suiteID("harmarketmidwest,harrahsglobal","devharrahscom")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("markettahoe","","","",
                                       new suiteID("harmarkettahoe,harrahsglobal","devharrahscom")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("markettunica","","","",
                                       new suiteID("harmarkettunica,harrahsglobal","devharrahscom")));
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("marketvegas","","","",
                                       new suiteID("harmarketvegas,harrahsglobal","devharrahscom")));
                                       
   /* Caesars.com Added Suites */
   //Caesars Main
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("corpcaesars","","","Caesars",
                                       new suiteID("harcaesarsmain,harrahsglobal","harcaesarsmaindev")));
   //BALLEYS Las Vegas
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("BLV","Western","Destination","Bally's",
                                       new suiteID("harballlyslasvegas,harrahsglobal","harballlyslasvegasdev,harcaesarsmaindev")));
   //BALLEYS Atlantic City
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("BAC","Eastern","Destination","Bally's",
                                       new suiteID("harballysatlanticcity,harrahsglobal","harballysatlanticcitydev,harcaesarsmaindev")));
   //BALLEYS Atlantic City Wild Wild West
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("BWW","Eastern","Destination","Bally's",
                                       new suiteID("harballysatlanticcity,harrahsglobal","harballysatlanticcitydev,harcaesarsmaindev")));
   //BALLEYS Atlantic City Claridge
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("CLA","Eastern","Destination","Bally's",
                                       new suiteID("harballysatlanticcity,harrahsglobal","harballysatlanticcitydev,harcaesarsmaindev")));
   //Caesars Atlantic City
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("CAC","Eastern","Destination","Caesars",
                                       new suiteID("harcaesarsatlanticcity,harrahsglobal","harcaesarsatlanticcitydev,harcaesarsmaindev")));
   //Caesars Indiana
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("CEL","Central","Frequency","Caesars",
                                       new suiteID("harcaesarsindiana,harrahsglobal","harcaesarsindianadev,harcaesarsmaindev")));
   //Caesars Palace Las Vegas
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("CLV","Western","Destination","Caesars",
                                       new suiteID("harcaesarspalacelasvegas,harrahsglobal","harcaesarspalacelasvegasdev,harcaesarsmaindev")));
   //Flamingo Las Vegas
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("FLV","Western","Destination","Flamingo",
                                       new suiteID("harflamingolasvegas,harrahsglobal","harflamingolasvegasdev,harcaesarsmaindev")));
   //Flamingo Laughlin
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("FLA","Western","Frequency","Flamingo",
                                       new suiteID("harflamingolaughlin,harrahsglobal","harflamingolaughlindev,harcaesarsmaindev")));
   //Grand Casino Biloxi
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("GBI","Central","Frequency","Grand",
                                       new suiteID("hargrandcasinobiloxi,harrahsglobal","hargrandcasinobiloxidev,harcaesarsmaindev")));
   //Grand Casino Gulfport
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("GGU","Central","Frequency","Grand",
                                       new suiteID("hargrandcasinogulfport,harrahsglobal","hargrandcasinogulfportdev,harcaesarsmaindev")));
   //Grand Casino Tunica
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("GTU","Central","Frequency","Grand",
                                       new suiteID("hargrandcasinotunica,harrahsglobal","hargrandcasinotunicadev,harcaesarsmaindev")));
   //Paris Las Vegas
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("PLV","Western","Destination","Paris",
                                       new suiteID("harparislasvegas,harrahsglobal","harparislasvegasdev,harcaesarsmaindev")));
   //Reno Hilton
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("RNO","Western","Frequency","Hilton",
                                       new suiteID("harrenohilton,harrahsglobal","harrenohiltondev,harcaesarsmaindev")));
   //Sheraton Casino & Hotel - Tunica
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("STU","Central","Frequency","Sheraton",
                                       new suiteID("harsheratoncasinohoteltunica,harrahsglobal","harsheratoncasinohoteltunicadev,harcaesarsmaindev")));
                                       
   /* External Caesars.com Site */
   //Shop Caesars
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("shopcaesars","","","Caesars",
                                       new suiteID("harshopcaesars","harshopcaesarsdev")));
                                       

   //CHECK THIS ONE
   SiteCodes = addSiteCode(SiteCodes,new SiteItem("binions","","","Horseshoe",
                                       new suiteID("harrahsbinions","harrahsbinionsdev")));
   return SiteCodes;
}

/**
 * Function to search a mapping for a propCode
 * @param: an array to search and the propCode to find
 * @return: the place in the array that the propCode is found.
 *
 * Creation Date:(11/18/04).
 * Copyright @2004, Harrah's Operating Company Inc, all rights reserved.
 * @author: Richard Treharne
 */
function getSiteCodePlace(SiteCodes, propCode)
{
   var arrayPlace = defaultSpot;
   if (SiteCodes && propCode)
   {
      arrayPlace = 0;
      var NotFound = true;
      propCode = propCode.toLowerCase();
      propCode = trim(propCode);
      while (NotFound && arrayPlace < SiteCodes.length)
      {
         var lookingAt = SiteCodes[arrayPlace].propCode;
         if (lookingAt == null)
            arrayPlace = SiteCodes.length;
         else
         {
            lookingAt = lookingAt.toLowerCase();
            lookingAt = trim(lookingAt);
            if (propCode == lookingAt)
               NotFound = false;
            else
               arrayPlace++;
         }
      }
      if (NotFound)
         arrayPlace = defaultSpot;
   }  
   return arrayPlace;
}

/**
 * Function to set the default site section
 * Creation Date:(04/21/05).
 * Copyright @2005, Harrah's Operating Company Inc, all rights reserved.
 * @author: Richard Treharne
 */

function setDefaultSiteMapSpot(SiteCodes)
{
   defaultSpot = getSiteCodePlace(SiteCodes,"default");
}

/**
 * Function to search for an exisiting defined variable.
 * @param: the name of a variable to find the value of
 * @return: the value of the variable or "" if not defined
 *
 * Creation Date:(11/18/04).
 * Copyright @2004, Harrah's Operating Company Inc, all rights reserved.
 * @author: Richard Treharne
 */
function getPropCodeIfDefined(codeVariable)
{
   var propCodeFound = self[codeVariable];
   if (propCodeFound == null)
      propCodeFound = "";
   return propCodeFound;
}

/**
 * Function to get the Account id for a mapping.
 * If we are in a dev environment it returns the dev suite id.
 * @param: a suite mapping and the propCode to find
 * @return: the suite id needed to send to omniture
 *
 * Creation Date:(11/18/04).
 * Copyright @2004, Harrah's Operating Company Inc, all rights reserved.
 * @author: Richard Treharne
 */
function getAccountIDforCode(SiteCodes, theCode, devBypass)
{
   var returnValue = "";
   var getDevSuite = findIfDev();
   if (devBypass != null && devBypass == 1)
   {
      getDevSuite = false;
   }
   if (SiteCodes && SiteCodes != null && theCode && theCode != null)
   {
      var placeHolder = getSiteCodePlace(SiteCodes, theCode);
      if (placeHolder != -1)
      {
         if (getDevSuite)
            returnValue = SiteCodes[placeHolder].OmnitureSuite.dev;
         else
            returnValue = SiteCodes[placeHolder].OmnitureSuite.pro;
      }
   }
   if (returnValue == null || returnValue == "")
      returnValue = "";

   return returnValue;
}


/**
 * Function to standardize tier levels
 * GOLD, DIAMOND, PLATINUM, SEVEN STARS
 * @param: a tier level
 * @return: the pretty tier level
 *
 * Creation Date:(04/04/05).
 * Copyright @2005, Harrah's Operating Company Inc, all rights reserved.
 * @author: Richard Treharne
 */
function getPrettyTierLevel(passedTierLevel)
{
   var returnValue = "";
   if (passedTierLevel != null && passedTierLevel != "")
   {
      if (passedTierLevel.indexOf("TOTAL GOLD") >= 0 || passedTierLevel.indexOf("Gold") >= 0)
         returnValue = "GOLD";
      else if (passedTierLevel.indexOf("PLATINUM") >= 0 || passedTierLevel.indexOf("Platinum") >= 0)
         returnValue = "PLATINUM";
      else if (passedTierLevel.indexOf("DIAMOND") >= 0 || passedTierLevel.indexOf("Diamond") >= 0)
         returnValue = "DIAMOND";
      else if (passedTierLevel.indexOf("7StarsClub") >= 0 || passedTierLevel.indexOf("7Stars") >= 0)
         returnValue = "SEVEN STARS";
   }
   return returnValue;
}

/**
 * Call functions and begin 
 */
var MappingArray = populateSiteCodes(MappingArray);
setDefaultSiteMapSpot(MappingArray);
var s_account = getAccountIDforCode(MappingArray, getPropCodeIfDefined("s_prop1"),getPropCodeIfDefined("devBypass"));
var s_eVar24;
if (getPropCodeIfDefined("s_prop1") != "")
   s_eVar24 = getPropCodeIfDefined("s_prop1");

var s_prop10;
if (getPropCodeIfDefined("s_prop10") != "")
   s_prop10 = getPrettyTierLevel(getPropCodeIfDefined("s_prop10"));
var s_eVar3;
if (getPropCodeIfDefined("s_eVar3") != "")
   s_eVar3 = getPrettyTierLevel(getPropCodeIfDefined("s_eVar3"));

/* End Code to Determine Suites */

/************************ ADDITIONAL FEATURES ************************
     Dynamic Account Selection
     Plugins
*/
/************************** CONFIG SECTION **************************/
/* You may add or alter any code config here.                       */
/* Variables (s_pageName, s_prop1, etc.) not prefixed with "s_" will not be used. */
var s_disableLegacyVars=true
/* Specify the Report Suite ID(s) to track here */
//var s_account="devharrahscom"
var s_dynamicAccountSelection=true
var s_dynamicAccountList=""
/* E-commerce Config */
var s_currencyCode="USD"
var s_eVarCFG=""
/* Link Tracking Config */
var s_trackDownloadLinks=true
var s_trackExternalLinks=true
var s_trackInlineStats=true
var s_linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,doc,pdf,xls"
var s_linkInternalFilters="javascript:,."
var s_linkLeaveQueryString=false
var s_linkTrackVars="s_prop1"
var s_linkTrackEvents="None"
/* Plugin Config */
var s_usePlugins=true

function s_doPlugins() {
   /* Add calls to plugins here */
   // External Campaigns
   s_vp_getCGI('s_campaign','source');
   s_vp_getCGI('s_eVar16','ip');
   // Internal Campaigns
   if (getPropCodeIfDefined('s_eVar18') == "")
   {
      if (getPropCodeIfDefined('s_eVar8') == "")
      {
         if(!s_vp_getValue("s_eVar8"))
         {
            s_vp_getCGI('s_eVar8','offerCode');
         }
      }
      s_vp_getCGI('s_eVar18','offerCode');
   }
   if (getPropCodeIfDefined('s_eVar17') == "")
   {
      if (getPropCodeIfDefined('s_eVar8') == "")
      {
         if(!s_vp_getValue("s_eVar8"))
         {
            s_vp_getCGI('s_eVar8','dealCode');
         }
      }
      s_vp_getCGI('s_eVar17','dealCode');
   }
   
   //this block will set the correlating property info based on the prop code in traffic...
   var tpid=s_vp_getValue("s_prop1"); 
   if(tpid){
      placeHolder = getSiteCodePlace(MappingArray,tpid);
      if (placeHolder != -1)
      {
         s_vpr("s_prop2",MappingArray[placeHolder].division);
         s_vpr("s_prop3",MappingArray[placeHolder].type);
         s_vpr("s_prop4",MappingArray[placeHolder].brand);
      }
   }
   
   //this block will set the correlating property info based on the dom prop code in traffic...
   var tpid=s_vp_getValue("s_prop11"); 
   if(tpid){
      placeHolder = getSiteCodePlace(MappingArray,tpid);
      if (placeHolder != -1)
      {
         s_vpr("s_prop12",MappingArray[placeHolder].division);
         s_vpr("s_prop13",MappingArray[placeHolder].type);
         s_vpr("s_prop14",MappingArray[placeHolder].brand);
      }
   }
   
   //this block will set the correlating property info based on the prop code in commerce...
   var tpid=s_vp_getValue("s_eVar4"); 
   if(tpid){
      placeHolder = getSiteCodePlace(MappingArray,tpid);
      if (placeHolder != -1)
      {
         s_vpr("s_eVar5",MappingArray[placeHolder].division);
         s_vpr("s_eVar6",MappingArray[placeHolder].type);
         s_vpr("s_eVar7",MappingArray[placeHolder].brand);
      }
   }
}
/************************** PLUGINS SECTION *************************/
/* You may insert any plugins you wish to use here.                 */
/*
 * Plugin: Get Plugin Modified Value
 */
function s_vp_getValue(vs)
   {var k=vs.substring(0,2)=='s_'?vs.substring(2):vs;return s_wd[
   's_vpm_'+k]?s_wd['s_vpv_'+k]:s_gg(k)}
/*
 * Plugin: Get Query String CGI Variable Value
 */
function s_vp_getCGI(vs,k)
   {var v='';if(k&&s_wd.location.search){var q=s_wd.location.search,
   qq=q.indexOf('?');q=qq<0?q:q.substring(qq+1);v=s_pt(q,'&',s_cgif,
   k)}s_vpr(vs,v)}function s_cgif(t,k){if(t){var te=t.indexOf('='),
   sk=te<0?t:t.substring(0,te),sv=te<0?'True':t.substring(te+1);if(
   sk==k)return s_epa(sv)}return ''}
/*
 * Plugin: Get Value From Cookie
 */
function s_vp_getCookie(vs,k)
   {s_vpr(vs,s_c_r(k))}
/*
 * Plugin Utilities v2.0 (Required For All Plugins)
 */
function s_vpr(vs,v){if(s_wd[vs])s_wd[vs]=s_wd[vs];else s_wd[vs]=''
if(vs.substring(0,2) == 's_')vs=vs.substring(2);s_wd['s_vpv_'+vs]=v
s_wd['s_vpm_'+vs]=1}function s_dt(tz,t){var d=new Date;if(t)d.setTime(
t);d=new Date(d.getTime()+(d.getTimezoneOffset()*60*1000))
return new Date(Math.floor(d.getTime()+(tz*60*60*1000)))}
function s_vh_gt(k,v){var vh='|'+s_c_r('s_vh_'+k),vi=vh.indexOf('|'+v
+'='),ti=vi<0?vi:vi+2+v.length,pi=vh.indexOf('|',ti),t=ti<0?'':
vh.substring(ti,pi<0?vh.length:pi);return t}function s_vh_gl(k){var
vh=s_c_r('s_vh_'+k),e=vh?vh.indexOf('='):0;return vh?(vh.substring(0,
e?e:vh.length)):''}function s_vh_s(k,v){if(k&&v){var e=new Date,st=
e.getTime(),y=e.getYear(),c='s_vh_'+k,vh='|'+s_c_r(c)+'|',t=s_vh_gt(k,
v);e.setYear((y<1900?y+1900:y)+5);if(t)vh=s_rep(vh,'|'+v+'='+t+'|','|'
);if(vh.substring(0,1)=='|')vh=vh.substring(1);if(vh.substring(
vh.length-1,vh.length)=='|')vh=vh.substring(0,vh.length-1);vh=v
+'=[PCC]'+(vh?'|'+vh:'');s_c_w(c,vh,e);if(s_vh_gt(k,v)!='[PCC]')
return 0;vh=s_rep(vh,'[PCC]',st);s_c_w(c,vh,e)}return 1}

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_un,s_ios=0,s_q='',s_code='',code='',s_bcr=0,s_lnk='',s_eo='',
s_vb,s_pl,s_tfs=0,s_etfs=0,s_wd=window,s_d=s_wd.document,s_ssl=(
s_wd.location.protocol.toLowerCase().indexOf('https')>=0),s_n=
navigator,s_u=s_n.userAgent,s_apn=s_n.appName,s_v=s_n.appVersion,
s_apv,s_i,s_ie=s_v.indexOf('MSIE '),s_ns6=s_u.indexOf('Netscape6/')
if(s_v.indexOf('Opera')>=0||s_u.indexOf('Opera')>=0)s_apn='Opera';var
s_isie=(s_apn=='Microsoft Internet Explorer'),s_isns=(s_apn==
'Netscape'),s_isopera=(s_apn=='Opera'),s_ismac=(s_u.indexOf('Mac')>=0)
if(s_ie>0){s_apv=parseInt(s_i=s_v.substring(s_ie+5));if(s_apv>3)s_apv=
parseFloat(s_i)}else if(s_ns6>0)s_apv=parseFloat(s_u.substring(s_ns6
+10));else s_apv=parseFloat(s_v);function s_fl(s,l){return (s+''
).substring(0,l)}function s_co(o){if(!o)return o;var n=new Object,x
for(x in o)if(x.indexOf("select")<0&&x.indexOf("filter")<0)n[x]=o[x]
return n}function s_num(x){var s=x.toString(),g='0123456789',p,d
for(p=0;p<s.length;p++){d=s.substring(p,p+1);if(g.indexOf(d)<0)
return 0}return 1}function s_rep(s,o,n){var i=s.indexOf(o),l=n.length>
0?n.length:1;while(s&&i>=0){s=s.substring(0,i)+n+s.substring(i
+o.length);i=s.indexOf(o,i+l)}return s}function s_ape(s){return s?
s_rep(escape(''+s),'+','%2B'):s}function s_epa(s){return s?unescape(
s_rep(''+s,'+',' ')):s}function s_pt(s,d,f,a){var t=s,x=0,y,r;while(t)
{y=t.indexOf(d);y=y<0?t.length:y;t=t.substring(0,y);r=f(t,a);if(r)
return r;x+=y+d.length;t=s.substring(x,s.length);t=x<s.length?t:''}
return ''}function s_isf(t,a){if(t.substring(0,2)=='s_')t=t.substring(
2);return (t!=''&&t==a)}function s_fsf(t,a){if(s_pt(a,',',s_isf,t))
s_fsg+=(s_fsg!=''?',':'')+t;return 0}var s_fsg;function s_fs(s,f){
s_fsg='';s_pt(s,',',s_fsf,f);return s_fsg}var s_c_d=''
function s_c_gdf(t,a){if(!s_num(t))return 1;return 0}function s_c_gd()
{var d=s_wd.location.hostname,n=s_gg('cookieDomainPeriods'),p;if(d&&
!s_c_d){n=n?parseInt(n):2;n=n>2?n:2;p=d.lastIndexOf('.');while(p>=0&&
n>1){p=d.lastIndexOf('.',p-1);n--}s_c_d=p>0&&s_pt(d,'.',s_c_gdf,0)?
d.substring(p):''}return s_c_d}function s_c_r(k){k=s_ape(k);var c=' '
+s_d.cookie,s=c.indexOf(' '+k+'='),e=s<0?s:c.indexOf(';',s),v=s<0?'':
s_epa(c.substring(s+2+k.length,e<0?c.length:e));return v!='[[B]]'?v:''
}function s_c_w(k,v,e){var d=s_c_gd(),l=s_gg('cookieLifetime'),s;v=''
+v;l=l?(''+l).toUpperCase():'';if(e&&l!='SESSION'&&l!='NONE'){s=(v!=
''?parseInt(l?l:0):-60);if(s){e=new Date;e.setTime(e.getTime()+(s*1000
))}}if(k&&l!='NONE'){s_d.cookie=k+'='+s_ape(v!=''?v:'[[B]]')+'; '
+'path=/;'+(e&&l!='SESSION'?' expires='+e.toGMTString()+';':'')+(d?
' domain='+d+';':'');return s_c_r(k)==v}return 0}function s_cet(f,a,
et,oe,fb){var r,d=0
/*@cc_on@if(@_jscript_version>=5){try{return f(a)}catch(e){return et(e)}d=1}@end@*/
if(!d){if(s_ismac&&s_u.indexOf('MSIE 4')>=0)return fb(a);else{
s_wd.s_oe=s_wd.onerror;s_wd.onerror=oe;r=f(a);s_wd.onerror=s_wd.s_oe
return r}}}function s_gtfset(e){return s_tfs}function s_gtfsoe(e){
s_wd.onerror=s_wd.s_oe;s_etfs=1;var code=s_gs(s_un);if(code)s_d.write(
code);s_etfs=0;return true}function s_gtfsfb(a){return s_wd}
function s_gtfsf(w){var p=w.parent,l=w.location;s_tfs=w;if(p&&
p.location!=l&&p.location.host==l.host){s_tfs=p;return s_gtfsf(s_tfs)}
return s_tfs}function s_gtfs(){if(!s_tfs){s_tfs=s_wd;if(!s_etfs)s_tfs=
s_cet(s_gtfsf,s_tfs,s_gtfset,s_gtfsoe,s_gtfsfb)}return s_tfs}
function s_ca(un){un=un.toLowerCase();var ci=un.indexOf(','),fun=ci<0?
un:un.substring(0,ci),imn='s_i_'+fun;if(s_d.images&&s_apv>=3&&
!s_isopera&&(s_ns6<0||s_apv>=6.1)){s_ios=1;if(!s_d.images[imn]&&(
!s_isns||(s_apv<4||s_apv>=5))){s_d.write('<im'+'g name="'+imn
+'" height=1 width=1 border=0 alt="">');if(!s_d.images[imn])s_ios=0}}}
function s_it(un){s_ca(un)}function s_mr(un,sess,q,ta){un=
un.toLowerCase();var ci=un.indexOf(','),fun=ci<0?un:un.substring(0,ci
),unc=s_rep(fun,'_','-'),imn='s_i_'+fun,im,b,e,rs='http'+(s_ssl?'s':''
)+'://'+(s_ssl?'102':unc)+'.112.2O7.net/b/ss/'+un+'/1/G.7-PD-R/'
+sess+'?[AQB]&ndh=1'+(q?q:'')+(s_q?s_q:'')+'&[AQE]';if(s_ios){im=s_wd[
imn]?s_wd[imn]:s_d.images[imn];if(!im)im=s_wd[imn]=new Image;im.src=rs
if(rs.indexOf('&pe=')>=0&&(!ta||ta=='_self'||ta=='_top'||(s_wd.name&&
ta==s_wd.name))){b=e=new Date;while(e.getTime()-b.getTime()<500)e=
new Date}return ''}return '<im'+'g sr'+'c="'+rs
+'" width=1 height=1 border=0 alt="">'}function s_gg(v){var g='s_'+v
return s_wd[g]||s_wd.s_disableLegacyVars?s_wd[g]:s_wd[v]}var s_qav=''
function s_havf(t,a){var b=t.substring(0,4),s=t.substring(4),n=
parseInt(s),k='s_g_'+t,m='s_vpm_'+t,q=t,v=s_gg('linkTrackVars'),e=
s_gg('linkTrackEvents');if(!s_wd['s_'+t])s_wd['s_'+t]='';s_wd[k]=s_wd[
m]?s_wd['s_vpv_'+t]:s_gg(t);if(s_lnk||s_eo){v=v?v+',pageName,pageURL,'
+'referrer,charSet,cookieDomainPeriods,cookieLifetime,currencyCode,pu'
+'rchaseID':'';if(v&&!s_pt(v,',',s_isf,t))s_wd[k]='';if(t=='events'&&e
)s_wd[k]=s_fs(s_wd[k],e)}s_wd[m]=0;if(t=='pageURL')q='g';else if(t==
'referrer')q='r';else if(t=='charSet')q='ce';else if(t==
'cookieDomainPeriods')q='cdp';else if(t=='cookieLifetime')q='cl'
else if(t=='currencyCode')q='cc';else if(t=='channel')q='ch';else if(
t=='campaign')q='v0';else if(s_num(s)){if(b=='prop')q='c'+n;else if(
b=='eVar')q='v'+n;else if(b=='hier')q='h'+n}if(s_wd[k]&&t!=
'linkName'&&t!='linkType')s_qav+='&'+q+'='+s_ape(s_wd[k]);return ''}
function s_hav(){var n,av='charSet,cookieDomainPeriods,cookieLifetime'
+',pageName,pageURL,referrer,channel,server,pageType,campaign,state,z'
+'ip,events,products,currencyCode,purchaseID,linkName,linkType'
for(n=1;n<26;n++)av+=',prop'+n+',eVar'+n+',hier'+n;s_qav='';s_pt(av,
',',s_havf,0);return s_qav}function s_lnf(t,h){t=t?t.toLowerCase():''
h=h?h.toLowerCase():'';var te=t.indexOf('=');if(t&&te>0&&h.indexOf(
t.substring(te+1))>=0)return t.substring(0,te);return ''}
function s_ln(h){if(s_gg('linkNames'))return s_pt(s_gg('linkNames'),
',',s_lnf,h);return ''}function s_ltdf(t,h){t=t?t.toLowerCase():'';h=
h?h.toLowerCase():'';var qi=h.indexOf('?');h=qi>=0?h.substring(0,qi):h
if(t&&h.substring(h.length-(t.length+1))=='.'+t)return 1;return 0}
function s_ltef(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';if(
t&&h.indexOf(t)>=0)return 1;return 0}function s_lt(h){var lft=s_gg(
'linkDownloadFileTypes'),lef=s_gg('linkExternalFilters'),lif=s_gg(
'linkInternalFilters')?s_gg('linkInternalFilters'):
s_wd.location.hostname;h=h.toLowerCase();if(s_gg('trackDownloadLinks'
)&&lft&&s_pt(lft,',',s_ltdf,h))return 'd';if(s_gg('trackExternalLinks'
)&&(lef||lif)&&(!lef||s_pt(lef,',',s_ltef,h))&&(!lif||!s_pt(lif,',',
s_ltef,h)))return 'e';return ''}function s_lc(e){s_lnk=s_co(this)
s_gs('');s_lnk='';if(this.s_oc)return this.s_oc(e);return true}
function s_ls(){var l,ln,oc;for(ln=0;ln<s_d.links.length;ln++){l=
s_d.links[ln];oc=l.onclick?l.onclick.toString():'';if(oc.indexOf(
"s_gs(")<0&&oc.indexOf("s_lc(")<0){l.s_oc=l.onclick;l.onclick=s_lc}}}
function s_bc(e){s_eo=e.srcElement?e.srcElement:e.target;s_gs('')
s_eo=''}function s_ot(o){var a=o.type,b=o.tagName;return (a&&
a.toUpperCase?a:b&&b.toUpperCase?b:o.href?'A':'').toUpperCase()}
function s_oid(o){var t=s_ot(o),p=o.protocol,c=o.onclick,n='',x=0;if(
!o.s_oid){if(o.href&&(t=='A'||t=='AREA')&&(!c||!p||p.toLowerCase(
).indexOf('javascript')<0))n=o.href;else if(c){n=s_rep(s_rep(s_rep(
s_rep(c.toString(),"\r",''),"\n",''),"\t",''),' ','');x=2}else if(
o.value&&(t=='INPUT'||t=='SUBMIT')){n=o.value;x=3}else if(o.src&&t==
'IMAGE')n=o.src;if(n){o.s_oid=s_fl(n,100);o.s_oidt=x}}return o.s_oid}
function s_rqf(t,un){var e=t.indexOf('='),u=e>=0?','+t.substring(0,e)
+',':'';return u&&u.indexOf(','+un+',')>=0?s_epa(t.substring(e+1)):''}
function s_rq(un){var c=un.indexOf(','),v=s_c_r('s_sq'),q='';if(c<0)
return s_pt(v,'&',s_rqf,un);return s_pt(un,',',s_rq,0)}var s_sqq,s_squ
function s_sqp(t,a){var e=t.indexOf('='),q=e<0?'':s_epa(t.substring(e
+1));s_sqq[q]='';if(e>=0)s_pt(t.substring(0,e),',',s_sqs,q);return 0}
function s_sqs(un,q){s_squ[un]=q;return 0}function s_sq(un,q){s_sqq=
new Object;s_squ=new Object;s_sqq[q]='';var k='s_sq',v=s_c_r(k),x,c=0
s_pt(v,'&',s_sqp,0);s_pt(un,',',s_sqs,q);v='';for(x in s_squ)s_sqq[
s_squ[x]]+=(s_sqq[s_squ[x]]?',':'')+x;for(x in s_sqq)if(x&&s_sqq[x]&&(
x==q||c<2)){v+=(v?'&':'')+s_sqq[x]+'='+s_ape(x);c++}return s_c_w(k,v,0
)}function s_wdl(e){s_wd.s_wd_l=1;var r=true;if(s_wd.s_ol)r=s_wd.s_ol(
e);if(s_wd.s_ls)s_wd.s_ls();return r}function s_wds(un){un=
un.toLowerCase();s_wd.s_wd_l=1;if(s_apv>3&&(!s_isie||!s_ismac||s_apv>=
5)){s_wd.s_wd_l=0;if(!s_wd.s_unl)s_wd.s_unl=new Array;s_wd.s_unl[
s_wd.s_unl.length]=un;if(s_d.body&&s_d.body.attachEvent){if(
!s_wd.s_bcr&&s_d.body.attachEvent('onclick',s_bc))s_wd.s_bcr=1}
else if(s_d.body&&s_d.body.addEventListener){if(!s_wd.s_bcr&&
s_d.body.addEventListener('click',s_bc,false))s_wd.s_bcr=1}else{var
ol=s_wd.onload?s_wd.onload.toString():'';if(ol.indexOf("s_wdl(")<0){
s_wd.s_ol=s_wd.onload;s_wd.onload=s_wdl}}}}function s_iepf(i,a){if(
i.substring(0,1)!='{')i='{'+i+'}';if(s_d.body.isComponentInstalled(i,
'ComponentID')){var n=s_pl.length;s_pl[n]=new Object;s_pl[n].name=i
+':'+s_d.body.getComponentVersion(i,'ComponentID')}return 0}
function s_vs(un,x){var s=s_gg('visitorSampling'),g=s_gg(
'visitorSamplingGroup'),k='s_vsn_'+un+(g?'_'+g:''),n=s_c_r(k),e=
new Date,y=e.getYear();e.setYear(y+10+(y<1900?1900:0));if(s){s*=100
if(!n){if(!s_c_w(k,x,e))return 0;n=x}if(n%10000>s)return 0}return 1}
function s_dyasmf(t,m){if(t&&m&&m.indexOf(t)>=0)return 1;return 0}
function s_dyasf(t,m){var i=t?t.indexOf('='):-1,un,s;if(i>=0&&m){var
un=t.substring(0,i),s=t.substring(i+1);if(s_pt(s,',',s_dyasmf,m))
return un}return 0}function s_dyas(un,l,m){if(!m)m=s_wd.location.host
if(!m.toLowerCase)m=m.toString();l=l.toLowerCase();m=m.toLowerCase()
var nun=s_pt(l,';',s_dyasf,m);if(nun)return nun;return un}
function s_gs(un){un=un.toLowerCase()
var dyas=s_gg('dynamicAccountSelection'),dyal=s_gg(
'dynamicAccountList'),dyam=s_gg('dynamicAccountMatch');if(dyas&&dyal)
un=s_dyas(un,dyal,dyam);
s_un=un;var trk=1,tm=new Date,sed=Math&&Math.random?Math.floor(
Math.random()*10000000000000):tm.getTime(),sess='s'+Math.floor(
tm.getTime()/10800000)%10+sed,yr=tm.getYear(),tfs=s_gtfs(),t,ta='',q=
'',qs='';yr=yr<1900?yr+1900:yr;t=tm.getDate()+'/'+tm.getMonth()+'/'+yr
+' '+tm.getHours()+':'+tm.getMinutes()+':'+tm.getSeconds()+' '
+tm.getDay()+' '+tm.getTimezoneOffset();if(!s_q){var tl=tfs.location,
s='',c='',v='',p='',bw='',bh='',j='1.0',k=s_c_w('s_cc','true',0)?'Y':
'N',hp='',ct='',iepl=s_gg('iePlugins'),pn=0,ps;if(s_apv>=4)s=
screen.width+'x'+screen.height;if(s_isns||s_isopera){if(s_apv>=3){j=
'1.1';v=s_n.javaEnabled()?'Y':'N';if(s_apv>=4){j='1.2';c=
screen.pixelDepth;bw=s_wd.innerWidth;bh=s_wd.innerHeight;if(s_apv>=
4.06)j='1.3'}}s_pl=s_n.plugins}else if(s_isie){if(s_apv>=4){v=
s_n.javaEnabled()?'Y':'N';j='1.2';c=screen.colorDepth;if(s_apv>=5){bw=
s_d.documentElement.offsetWidth;bh=s_d.documentElement.offsetHeight;j=
'1.3';if(!s_ismac&&s_d.body){s_d.body.addBehavior("#default#homePage")
hp=s_d.body.isHomePage(tl)?"Y":"N";s_d.body.addBehavior(
"#default#clientCaps");ct=s_d.body.connectionType;if(iepl){s_pl=
new Array;s_pt(iepl,',',s_iepf,'');}}}}else r='';if(!s_pl&&iepl)s_pl=
s_n.plugins}if(s_pl)while(pn<s_pl.length&&pn<30){ps=s_fl(s_pl[pn
].name,100)+';';if(p.indexOf(ps)<0)p+=ps;pn++}s_q=(s?'&s='+s_ape(s):''
)+(c?'&c='+s_ape(c):'')+(j?'&j='+j:'')+(v?'&v='+v:'')+(k?'&k='+k:'')+(
bw?'&bw='+bw:'')+(bh?'&bh='+bh:'')+(ct?'&ct='+s_ape(ct):'')+(hp?'&hp='
+hp:'')+(s_vb?'&vb='+s_vb:'')+(p?'&p='+s_ape(p):'')}if(s_gg(
'usePlugins'))s_wd.s_doPlugins();var l=s_wd.location,r=
tfs.document.referrer;if(!s_gg("pageURL"))s_wd.s_pageURL=s_fl(l?l:'',
255);if(!s_gg("referrer"))s_wd.s_referrer=s_fl(r?r:'',255);q+=(t?'&t='
+s_ape(t):'')+s_hav();if(s_lnk||s_eo){var o=s_eo?s_eo:s_lnk;if(!o)
return '';var p=s_wd.s_g_pageName,w=1,t=s_ot(o),n=s_oid(o),x=o.s_oidt,
h,l,i,oc;if(s_eo&&o==s_eo){while(o&&!n&&t!='BODY'){o=o.parentElement?
o.parentElement:o.parentNode;if(!o)return '';t=s_ot(o);n=s_oid(o);x=
o.s_oidt}oc=o.onclick?o.onclick.toString():'';if(oc.indexOf("s_gs(")>=
0)return ''}ta=o.target;h=o.href?o.href:'';i=h.indexOf('?');h=s_gg(
'linkLeaveQueryString')||i<0?h:h.substring(0,i);l=s_gg('linkName')?
s_gg('linkName'):s_ln(h);t=s_gg('linkType')?s_gg('linkType'
).toLowerCase():s_lt(h);if(t&&(h||l))q+='&pe=lnk_'+(t=='d'||t=='e'?
s_ape(t):'o')+(h?'&pev1='+s_ape(h):'')+(l?'&pev2='+s_ape(l):'');else
trk=0;if(s_gg('trackInlineStats')){if(!p){p=s_wd.s_g_pageURL;w=0}t=
s_ot(o);i=o.sourceIndex;if(s_gg('objectID')){n=s_gg('objectID');x=1;i=
1}if(p&&n&&t)qs='&pid='+s_ape(s_fl(p,255))+(w?'&pidt='+w:'')+'&oid='
+s_ape(s_fl(n,100))+(x?'&oidt='+x:'')+'&ot='+s_ape(t)+(i?'&oi='+i:'')}
s_wd.s_linkName=s_wd.s_linkType=s_wd.s_objectID=s_lnk=s_eo='';if(
!s_wd.s_disableLegacyVars)s_wd.linkName=s_wd.linkType=s_wd.objectID=''
}if(!trk&&!qs)return '';var code='';if(un){if(trk&&s_vs(un,sed))code+=
s_mr(un,sess,q+(qs?qs:s_rq(un)),ta);s_sq(un,trk?'':qs)}else if(
s_wd.s_unl)for(var unn=0;unn<s_wd.s_unl.length;unn++){un=s_wd.s_unl[
unn];if(trk&&s_vs(un,sed))code+=s_mr(un,sess,q+(qs?qs:s_rq(un)),ta)
s_sq(un,trk?'':qs)}return code}function s_dc(un){un=un.toLowerCase()
var dyas=s_gg('dynamicAccountSelection'),dyal=s_gg(
'dynamicAccountList'),dyam=s_gg('dynamicAccountMatch');if(dyas&&dyal)
un=s_dyas(un,dyal,dyam);
s_wds(un);s_ca(un);return s_gs(un)}
s_code=s_dc(s_account);if(s_code)s_d.write(s_code)
