/**
 *	SiteCatalyst code version: H.21.
 *  Copyright 1996-2010 Adobe, Inc. All Rights Reserved
 *  More info available at http://www.omniture.com
 *  **/

/**
 * Adversitement B.V.
 * 
 * Author: Stefan Leever
 * Current version: 1.5.0 
 * Last updated: $Date: 2010-08-26 16:24:58 +0200 (do, 26 aug 2010) $)5 +0200 (do, 10 jun 2010) $
 * Last updated by: $Author: stefan $
 * 
 * s_code.js
 * 
 * Omniture SiteCatalyst code used for managing the incoming data and mapping them to the correct
 * variable. This script is going to work together with the WA object which holds all the information
 * coming from the website.
 * 
 * Changelog
 * 
 * 2010-04-22: Last changes made for stable version (0.6.0 -> 1.0.0)
 * 2010-05-11: s.un overwrite removed from s_code
 * 2010-05-27: revenue to year modification added & productid fix added.
 * 2010-06-09: event28 added to quickquote and clickmap support added for unique URL's.
 * 2010-06-10: Revenue fix for monthly added.
 * 2010-06-15: Deactivated dynamic object ID's
 * 2010-06-23: Product fix to be more exact. Modified the indexOf to regular =='s.
 * 2010-07-13: eVar50 added for pageName.
 * 2010-08-09: s.prop9 filter added to link check in doPlugins.
 * 				AS_WA.pageerror added.
 * 				onload error handling added (scanning the document.body for 'Er is iets fout gegaan'.
 * 2010-08-12: Moved getTimeStamp (eVar41) to doPlugins and link methods. Now it will get measured at every request.
 * 				Copied the pageName into hier1.
 * 2010-08-16: event9 set for onload error page.
 * event10 and event8 (savePremium) added. s.prop25 with a combination of pagename and error.
 * 2010-08-20: Added s.prop25 to contain a copy of pagename on each visit. 
 * 2010-08-26: purchaseID used to check whether purchase should be called.
 * 				license plate check added for specific license plate. When that license plate is entered no request will be send.
 */

var s_codeversion='1.5.0';
var s_account="advallsecurtest"
var s=s_gi(s_account)
// Check wether the AS_WA object is available. If not. Create it.
if (typeof(AS_WA) == "undefined") {
	var AS_WA = {};
}
/************************** CONFIG SECTION **************************/
/* You may add or alter any code config here. */
s.charSet="ISO-8859-1"
/* Conversion Config */
s.currencyCode="EUR"
/* Link Tracking Config */
s.trackDownloadLinks=true
s.trackExternalLinks=true
s.trackInlineStats=true
s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,doc,pdf,xls"
s.linkInternalFilters="javascript:,allsecur.nl"
s.linkLeaveQueryString=false
s.linkTrackVars=""
s.linkTrackEvents=""
s.usePlugins=true

/**
 * specify the requestSent method to determine wether the request has already been sent.
 * In case of a link click a part of the code in the doPlugins will not be send.
 */

var s_requestSent = false;

/**
 * Clickmap support with dynamicObjectID's
 */

s.getObjectID = function(o) {
	var ID=o.href;
	return ID;
}

/**
 * s_doPlugins();
 * 
 * Gets called before the data is being send to Omniture. If you have to do some manipulation
 * to the s object it has to be done in this function.
 * 
 * @param {Object} s
 */

function s_doPlugins(s){
	if (typeof(s.events) == "undefined") {
		s.events = "";
	}
	
	// Specify the trackingServer:
	var visitorCookie 	= s.c_r("s_vi");
	var tsCookie		= s.c_r("s_ts");
	
	if (visitorCookie && !tsCookie) {
		s.trackingServer = "a.allsecur.nl";
	}else if((visitorCookie == false || visitorCookie == "")){
		s.trackingServer = "b.allsecur.nl";
		s.getValOnce("b", "s_ts", (15*365));
	}else if(tsCookie){
		s.trackingServer = "b.allsecur.nl";
	}
	// Specify the secure trackingServer:
	s.trackingServerSecure	=	"scs.allsecur.nl" 
	
	// Set the current report suite:
	if (typeof(AS_WA.rsid) != "undefined") {
		s.un = AS_WA.rsid;
	}
	
	if (!s_requestSent) {
		// Set dynamic ID's
		// Set the pagename if it exists:
		if (typeof(AS_WA.pagename) != "undefined") {
			s.pageName = AS_WA.pagename;
			s.hier1	= "D=pageName";
			// Copy the pagename:
			s.eVar19 = "D=pageName";
			s.eVar50 = "D=pageName";
			s.prop25 = "D=pageName";
		}
		// If "Mijn allsecur" isset and the method isn't empty then set the pagename to the following
		// format:
		if (typeof(AS_WA.section) != "undefined" && AS_WA.section.indexOf("Mijn Allsecur")>-1 && s.getQueryParam("method")!="") {
			s.pageName = AS_WA.section+":"+s.getQueryParam("method");
		}
		// Assign the current datetime value:
		s.prop2 = s.eVar2 = s.getTimeParting('d', s.getDST(), new Date().getFullYear()) + "-" + s.getTimeParting('h', s.getDST(), new Date().getFullYear());
		s.prop5 = s.eVar5 = s.getNewRepeat();
		// Set the channel if it exists:
		if (typeof(AS_WA.sitesection) != "undefined") {
			s.channel = AS_WA.sitesection;
		}
		s.prop10 = window.location.href;
		s.eVar20 = "D=c10";
		s.server = window.location.host;
		// Set the section:
		s.channel = AS_WA.section;
		// Copy the VisitorID cookie into prop18:
		s.prop18 = "D=s_vi";
		// Set the s_code version:
		s.prop20 = s_codeversion;
		// Bounce handling by tracking code:
		s.setBounceRateByTC();
		// Bounce handling by visit:
		s.setBounceRateByVisit();
		// Campaign handling:
		// Set the campaign by checking the cmp or utm_source parameter.
		s.defineCampaignBySource();
		
		// Log the login of the user by checking the login variable on the AS_WA object if it
		// has already been populated. If it has already been populated it won't be set.
		if (typeof(AS_WA.loginstatus) != "undefined" && AS_WA.loginstatus.toLowerCase() == "logged in") {
			if (s.detectFirstTimePopulated(AS_WA.loginstatus, "s_login", 0)) {
				s.events = s.apl(s.events, "event4", ',', 1);
			}
		}
		
		// Fetch state by pagename.
		var states = s.getPageStateByPageName(AS_WA.pagename);
		// If the states is popuplated and therefore true set the state and substate.
		if (states) {
			AS_WA.state = states.state;
			if (typeof(states.substate) != "undefined") {
				AS_WA.substate = states.substate;
			}
		}
		
		/**
		 * Revenue to month implementation
		 */
		if (typeof(AS_WA.prices) != "undefined" && typeof(AS_WA.paymentperiod) != "undefined") {
			AS_WA.prices = s.revenueToMonth(AS_WA.prices, AS_WA.paymentperiod);
		}
		
		/**
		 * Input about the states and how they're mapped still has to be recieved from AllSecur IT.
		 */
		
		// Define the state and populate the required props and evars:
		if (typeof(AS_WA.state) != "undefined") {
			s.defineState(AS_WA.state, AS_WA.substate);
		}
		
		// Define and set the page variant if it's available.
		s.swe("eVar45", AS_WA.pagevariant);
		s.prop22 = "D=v45";
		
		// Channel (Online or CC)
		s.eVar42 = "Online";
		
		if (typeof(AS_WA.pageerror) != "undefined" && AS_WA.pageerror != "") {
			s.prop24 = AS_WA.pageerror;
			s.events = s.apl(s.events, "event10", ',', 1);
		}
		
		s_requestSent = true;
		
		// Save the pageName so it can be checked as a previous page on the next page.
		s.c_w("s_prevPageName", s.pageName, 0);
		
	}
	
	// Set timestamp:
	s.eVar41		= getTimeStamp();
	
	// When a link has been clicked provide some props and evars with their values.
	if ((typeof(s.lnk) != "undefined" && s.lnk)) {
		s.linkTrackVars		= s.apl(s.linkTrackVars, "eVar19,prop11,prop21", ",", 1);
		s.linkTrackVars		= s.apl(s.linkTrackVars, "eVar41", ',', 1);
		if (typeof(AS_WA.pagename) != "undefined" && AS_WA.pagename != "") {
			s.eVar19 = AS_WA.pagename;
			s.prop21 = AS_WA.pagename;
		}
		if (typeof(AS_WA.itemdetail) != "undefined" && AS_WA.itemdetail != "") {
			s.prop11 = AS_WA.itemdetail;
		}
	}
}

s.doPlugins = s_doPlugins;

/**
 * Custom methods defined by Adversitement:
 */

/**
 * Error handling method
 * @param {Object} pageName
 * @param {Object} itemDetail
 */

window.onload = function() {
	if (typeof(document.body) != "undefined" && (document.body.innerHTML.toString().toLowerCase().indexOf("er is iets fout gegaan")>-1 || document.body.innerHTML.toString().toLowerCase().indexOf("Het kenteken is niet juist")>-1)) {
		var s = s_gi(s_account);
		s.prop10 = document.location.href.toString();
		s.prop23 = "An error occured on page (er is iets fout gegaan)";
		s.prop25 = s.pageName+"/"+s.prop23;
		s.eVar41 = getTimeStamp();
		s.eVar46 = s.prop23;
		s.events = "event9";
		s.linkTrackEvents = "event9";
		s.linkTrackVars = "prop23,prop25,prop10,eVar41,eVar46,events";
		s.tl(true,'o','Client side page error');
	}else if(typeof(document.body) != "undefined" && document.body.innerHTML.toString().toLowerCase().indexOf("het kenteken is niet juist")>-1) {
		var s = s_gi(s_account);
		s.prop10 = document.location.href.toString();
		s.prop23 = "An error occured on page (Het kenteken is niet juist of wordt (nog) niet herkend)";
		s.prop25 = s.pageName+"/"+s.prop23;
		s.eVar41 = getTimeStamp();
		s.eVar46 = s.prop23;
		s.events = "event9";
		s.linkTrackEvents = "event9";
		s.linkTrackVars = "prop23,prop25,prop10,eVar41,eVar46,events";
		s.tl(true,'o','Client side page error');
	}else if(typeof(document.body) != "undefined" && document.body.innerHTML.toString().toLowerCase().indexOf("de meldcode moet uit 4 karakters te bestaan")>-1) {
		var s = s_gi(s_account);
		s.prop10 = document.location.href.toString();
		s.prop23 = "An error occured on page (Meldcode niet juist of niet ingevuld.)";
		s.prop25 = s.pageName+"/"+s.prop23;
		s.eVar41 = getTimeStamp();
		s.eVar46 = s.prop23;
		s.events = "event9";
		s.linkTrackEvents = "event9";
		s.linkTrackVars = "prop23,prop25,prop10,eVar41,eVar46,events";
		s.tl(true,'o','Client side page error');
	}
};
/**
 * sc_trackAction
 * 
 * used for link clicks.
 * 
 * @todo
 */

var sc_trackAction = function(pageName, itemDetail) {}

/**
 * setGlobalSuiteByCurrentSuite
 * 
 * Set global suits based on the current suite that has been set.
 * 
 * @param {Object} suiteID
 */

s.setGlobalSuiteByCurrentSuite = function(suiteID) {
	if (typeof(AS_WA.globrsid) != "undefined" && AS_WA.globrsid != "") {
		s.un = s.apl(s.un, AS_WA.globrsid, ",", 1);
	}else if(s.un == "advallsecurlive") {
		s.un = s.apl(s.un, "advallgloblive", ",", 1);
	}
}

/**
 * Revenue to  month
 * @param {Object} pagename
 */

s.revenueToMonth = function(prices, period) {
	prices = prices.split(',');
	var newPrices = new Array();
	switch(period.toLowerCase()) {
		case "annual": 
			for (var i=0;i<prices.length;i++) {
				newPrices[i] = (prices[i]/12).toFixed(2);
			}
		break;
		case "quarterly": 
			for (var i=0;i<prices.length;i++) {
				newPrices[i] = (prices[i]/4).toFixed(2);
			}
		break;
		case "monthly": 
			for (var i=0;i<prices.length;i++) {
				newPrices[i] = prices[i];
			}
		break;
	}
	return newPrices.join(',');
}

/**
 * getPageStateByPageName
 * 
 * Gets the state and substate based on the pageName
 */

s.getPageStateByPageName = function(pagename){
	if (typeof(pagename) != "undefined" && pagename != "") {
		if (pagename.indexOf("Home:AllSecur Homepage") > -1) {
			return {
				"state": "home"
			};
		}
		if (pagename.indexOf("Premieberekening:Kenteken bekend") > -1 || pagename.indexOf("Premieberekening:Kenteken onbekend") > -1) {
			return {
				"state": "quickquote",
				"substate": "qqrequired"
			};
		}
		if (pagename.indexOf("Premieberekening:Afgerond") > -1) {
			return {
				"state": "quickquote",
				"substate": "qqcalculate"
			};
		}
		if (pagename.indexOf("Polis:Step 1") > -1) {
			return {
				"state": "quickquote",
				"substate": "rpstep1"
			};
		}
		if (pagename.indexOf("Polis:Step 2") > -1) {
			return {
				"state": "quickquote",
				"substate": "rpstep2"
			};
		}
		if (pagename.indexOf("Polis:Step 3") > -1) {
			return {
				"state": "quickquote",
				"substate": "rpstep3"
			};
		}
		if (pagename.indexOf("Polis:Step 4") > -1) {
			return {
				"state": "quickquote",
				"substate": "rpstep4"
			};
		}
		if (pagename.indexOf("Polis:Afgerond") > -1) {
			return {
				"state": "quickquote",
				"substate": "rpcompleted"
			};
		}
		if (pagename.indexOf("Contact:Formulier") > -1) {
			return {
				"state": "contact"
			};
		}
		if (pagename.indexOf("news:news") > -1) {
			return {
				"state": "news",
				"substate": "newsdetail"
			};
		}
		if (pagename.indexOf("Bel me:Formulier") > -1) {
			return {
				"state": "callback"
			};
		}
		if (pagename.indexOf("Premieberekening:Mail berekening")> -1) {
			return {
				"state": "savePremium"
			};
		}
	}else{
		return false;
	}
}

/**
 * filterCharacters
 * 
 * Filters the value for a specific amount of chars. When the modification has been done it will
 * return the text lowercased.
 */

s.filterCharacters = function(value, chars) {
	if (typeof(chars) != "undefined") {
		for (var i = 0; i < chars.length; i++) {
			value = value.split(chars[i]).join("");
		}
		return value.toLowerCase();
	}else{
		return value.toLowerCase();
	}
}

/**
 * setBounceRateByTC
 * 
 * Sets 2 events and a cookie based on the tracking code. This function manages the bouncerate of a certain
 * tracking code. When the user continues on the website it is measured as a second visit which means event25
 * will be tracked. When the user enters the site with another tracking code a new visit will be registered
 * and event24 will be tracked.
 * 
 * TC = TrackingCode.
 */

s.setBounceRateByTC = function() {
	var tc = s.getTrackingCode();
	// When a user has moved within the site mark it as a non-bounce. Which means the user has succesfully
	// moved within the site's domain and therefore isn't bounced.
	if(typeof(document.referrer) != "undefined" && document.referrer.indexOf("allsecur")>-1 && s.getVisitStart("s_visitstart") == "0" && !tc){
		if (s.c_r("s_tc") != "") {
			// Set event25 which measures a success event (next page within the website):
			s.events = s.apl(s.events, "event25", ',', 1);
			// An action should probably be taken to remove or empty the cookie:
			s.c_w("s_tc", "", 0);
		}
	}
	// When a user comes from another location:
	if ((typeof(document.referrer) != "undefined" && document.referrer.indexOf(".allsecur.")==-1 && s.getVisitStart("s_visitstart") == "1") || (tc && s.c_r("s_tc") != tc)) {
		// Set event24 which measures the landing within the website.
		s.events = s.apl(s.events, "event24", ',', 1);
		s.c_w("s_tc", tc, 0);
	}
}

s.setBounceRateByVisit = function() {
	var cookie = s.c_r("s_vb");
	// When the user resides within the domain 'allsecur' and the cookie isn't empty it's a returned visit
	// and therefore the user hasn't bounced.
	if (typeof(document.referrer) != "undefined" && document.referrer.indexOf(".allsecur.")>-1 && cookie != "") {
		s.events = s.apl(s.events, "event27", ',', 1);
		// Remove or empty the cookie:
		s.c_w("s_vb", "", 0);
	}
	// When a users' referrer isn't allsecur or empty it's a landing visit. The cookie should be set.
	if (typeof(document.referrer) != "undefined" && document.referrer.indexOf(".allsecur.")==-1 && cookie == "") {
		s.events = s.apl(s.events, "event26", ',', 1);
		s.c_w("s_vb", "1", 0);
	}else if((typeof(document.referrer) == "undefined" || document.referrer == "") && cookie == "") {
		s.events = s.apl(s.events, "event26", ',', 1);
		s.c_w("s_vb", "1", 0);
	}
}

/**
 * getTrackingCode
 * 
 * Fetches the tracking code from either the cmp or utm_source. If both fail a false is returned:
 */

s.getTrackingCode = function() {
	// Check wether the element campaignQueryString is available.
	// If so. populate the url variable. Otherwise leave it empty
	// and the script will try to get the campaign or utm_source value from
	// the query string.
	var cmp = s.getQueryParam("cmp");
	var utm_source = s.getQueryParam("utm_source");
	
	if (cmp != "") {
		return cmp;
	}
	else 
		if (utm_source != "") {
			return utm_source;
		}else {
			var element = document.getElementById("campaignQueryString");
			var	url		= "";
			if (typeof(element) != "undefined" && element.value != "") {
				var url = "http://"+document.location.host+"/?"+element.value;
			}
			var cmp = s.getQueryParam("cmp", "", url);
			var utm_source = s.getQueryParam("utm_source", "", url);
			if (cmp != "") {
				return cmp;
			}else if(utm_source != "") {
				return utm_source;
			}
		}
	return false;
}

s.getKwcID = function() {
	var kwc = s.getQueryParam("s_kwcid");
	if (kwc != "") {
		return kwc;
	}else{
		var element = document.getElementById("campaignQueryString");
		var	url		= "";
		if (typeof(element) != "undefined" && element.value != "") {
			var url = "http://"+document.location.host+"/?"+element.value;
		}
		var kwc = s.getQueryParam("s_kwcid", "", url);
		return kwc;
	}
	return false;
}

/**
 * setProducts
 * 
 * Set the products by a set of paramaters. The values of the parameters should be
 * divided by comma.
 * 
 * @param {Object} n(ames)					example: productname
 * @param {Object} q(uantity)				example: 1
 * @param {Object} p(rice)					example: 1.00
 * @param {Object} e(vents)					example: event1=value1|event2=value2
 * @param {Object} m(erchandising evars) 	example: eVar1=value1|eVar2=value2
 */

s.setProducts = function(n, q, p, e, m) {
	// If the names parameter is empty the function should return false.
	if (n == "") {
		return false;
	}
	// Split the values. if none exist use a empty value.
	var n = (typeof(n) != "undefined") ? n.split(",") : "";
	var q = (typeof(q) != "undefined") ? q.split(",") : "";
	var p = (typeof(p) != "undefined") ? p.split(",") : "";
	var e = (typeof(e) != "undefined") ? e.split(",") : "";
	var m = (typeof(m) != "undefined") ? m.split(",") : "";
	var pr = new Array();
	// Loop through the arrays and use the names as a base:
	for (var i=0; i<n.length; i++) {
		if (n[i] == "Third-Part") { n[i] = "Third-Party"; }
		if (n[i] == "Third-Party Full casc") { n[i] = "Third-Party Full casco"; }
		if (n[i] == "Third-Party Limited casc") { n[i] = "Third-Party Limited casco"; }
		if (n[i] == "Passenger acciden") { n[i] = "Passenger accident"; }
		if (n[i] == "Replacement as ne") { n[i] = "Replacement as new"; }
		if (n[i] == "Foreign countrie") { n[i] = "Foreign countries"; }
		if (n[i] == "Roadside Assistanc") { n[i] = "Roadside Assistance"; }
		if (n[i] == "Bonus save") { n[i] = "Bonus saver"; }
		if (n[i] == "Legal ai") { n[i] = "Legal aid"; }
		var ni	= (typeof(n[i]) != "undefined" && n[i] != "") ? n[i] : "";
		var qi	= (typeof(q[i]) != "undefined" && q[i] != "") ? q[i] : "1";
		var pi	= (typeof(p[i]) != "undefined" && p[i] != "") ? p[i] : "";
		var ei	= (typeof(e[i]) != "undefined" && e[i] != "") ? e[i] : "";
		var mi	= (typeof(m[i]) != "undefined" && m[i] != "") ? m[i] : "";
		// Build the product string.
		pr[i] 	= ";"+ni+";"+qi+";"+pi+";"+ei+";"+mi;
	}
	// Return the products array as a string divided by comma.
	return pr.join(",");
}

/**
 * defineCampaignBySource
 * 
 * Checks wether cmp or utm_source are available in the get parameters (the s.getQueryParam method is required)
 * if one of the get-params are available they will be set in the campaign variable.
 * 
 * If a | (pipe) is set. the s.campaign will be modified to only have the keyword as a value.
 */

s.defineCampaignBySource = function() {
	var campaignCode = s.c_r("s_cqp");
	// Specify the tracking code:
	var myCampaign = s.getTrackingCode();
	
	if (campaignCode == "" || (myCampaign != false && campaignCode != myCampaign)) {
		var kwcId = s.getKwcID();
		if (kwcId) {
			s.eVar11 = kwcId;
		}
		else {
			s.eVar11 = "";
		}
		
		// Check if the visit is direct (no referrer)
		if (s.eVar11 == "" && (typeof(document.referrer) == "undefined" || document.referrer == "")) {
			s.eVar11 = "direct";
		}
		
		// Check if the visit is organic search (search engine)
		if (s.eVar11 == "" && typeof(document.referrer) != "undefined" && document.referrer != "" && document.referrer.indexOf(".allsecur.") == -1) {
			s.eVar11 = document.referrer;
		}
		
		s.eVar28 = "D=v11";
		s.eVar29 = "D=v11";
		s.prop29 = "D=v11";
		if (kwcId != "") {
			s.eVar13 = "+1";
		}
		s.eVar14 = "D=v11";
		s.prop6 = "D=v11";
		s.prop8 = "D=v11";
		if (kwcId != "") {
			s.prop7 = "cmp=" + kwcId + ":" + s.pageName;
		}
		else {
			s.prop7 = "D=pageName";
		}
		// When a pipe character has been set. Split the string and define
		// The keyword to s.campaign.
		if (typeof(myCampaign) != "undefined" && myCampaign) {
			s.campaign = myCampaign;
			if (s.campaign.indexOf("|") > -1) {
				var keyword = ((s.campaign).split('|'))[0];
				if (typeof(keyword) != "undefined" && keyword != "") {
					s.campaign = "k_" + keyword;
				}
			}
		}
		s.getValOnce(myCampaign, 's_cqp', 0);
	}
}

/**
 * swe (Set When Exists)
 * 
 * Checks wether a variable exists. If it does it will set it. Otherwise it will not.
 */

s.swe = function(vr, vl) {
	if (typeof(vl) != "undefined" && vl != "") {
		eval("s."+vr+" = '"+vl+"';");
	}
}

s.defineState = function(state, substate) {
	// Define the state
	switch (state) {
		case "savePremium":
			s.events = s.apl(s.events, "event8", ',', 1);
		break;
		case "home":
			// Nothing to track here.
			break;
		case "quickquote":
			s.prop1		= "Auto";
			s.eVar1		= "D=c1";
			// Fetch substate
			switch(substate) {
				case "qqrequired":
					s.swe('eVar26', AS_WA.platenumber);
					s.swe('eVar42', AS_WA.channel);
					s.events	= s.apl(s.events, "event1", ',', 1);
				break;
				case "qqcalculate":
					// Load dynamic object ID's:
					//s.setupDynamicObjectIDs();
					// Process the rest of the data:
					s.swe('eVar6', AS_WA.damagefreeyears);
					s.swe('eVar7', AS_WA.kilometers);
					s.swe('eVar8', AS_WA.gender);
					s.swe('eVar21', AS_WA.age);
					s.swe('eVar22', AS_WA.carage);
					s.swe('eVar23', AS_WA.carbrand);
					s.swe('eVar24', AS_WA.cartype);
					s.swe('eVar26', AS_WA.platenumber);
					s.swe('eVar27', AS_WA.fuel);
					s.swe('eVar39', AS_WA.zip);
					if (typeof(AS_WA.platenumber) != "undefined" && typeof(AS_WA.zip) != "undefined") {
						s.eVar40 = AS_WA.platenumber + "_" + AS_WA.zip;
					}
					// Channel might still be added from the AS_WA object:
					s.events	= s.apl(s.events, "scAdd", ',', 1);
					if(s.uniqueEvent("event6")) {
						s.events = s.apl(s.events, "event6", ',', 1);
						s.events = s.apl(s.events, "event28", ',', 1);
					}
					AS_WA.prices = (typeof(AS_WA.prices) != "undefined") ? AS_WA.prices : "";
					if (typeof(AS_WA.coverset) != "undefined" && AS_WA.coverset != "") {
						s.products = s.setProducts(AS_WA.coverset, "", AS_WA.prices, "", ""); // needs same solution as vodafone.
					}
					// Set the global report suite ID.
					s.setGlobalSuiteByCurrentSuite(s.un);
				break;
				case "rpstep1":
					s.swe('eVar8', AS_WA.gender);
					s.swe('eVar21', AS_WA.age);
					AS_WA.prices = (typeof(AS_WA.prices) != "undefined") ? AS_WA.prices : "";
					if (typeof(AS_WA.coverset) != "undefined" && AS_WA.coverset != "") {
						s.products = s.setProducts(AS_WA.coverset, "", AS_WA.prices, "", ""); // needs same solution as vodafone.
					}
					s.events	= s.apl(s.events, "event11", ',', 1);
					if (s.uniqueEvent("event15")) {
						s.events = s.apl(s.events, "event15", ',', 1);
					}
				break;
				case "rpstep2":
					s.swe('eVar8', AS_WA.gender);
					s.swe('eVar21', AS_WA.age);
					AS_WA.prices = (typeof(AS_WA.prices) != "undefined") ? AS_WA.prices : "";
					if (typeof(AS_WA.coverset) != "undefined" && AS_WA.coverset != "") {
						s.products = s.setProducts(AS_WA.coverset, "", AS_WA.prices, "", ""); // needs same solution as vodafone.
					}
					if (s.uniqueEvent("event16")) {
						s.events = s.apl(s.events, "event16", ',', 1);
					}
				break;
				case "rpstep3":
					s.swe('eVar8', AS_WA.gender);
					s.swe('eVar21', AS_WA.age);
					AS_WA.prices = (typeof(AS_WA.prices) != "undefined") ? AS_WA.prices : "";
					if (typeof(AS_WA.coverset) != "undefined" && AS_WA.coverset != "") {
						s.products = s.setProducts(AS_WA.coverset, "", AS_WA.prices, "", ""); // needs same solution as vodafone.
					}
					if (s.uniqueEvent("event17")) {
						s.events = s.apl(s.events, "event17", ',', 1);
					}
				break;
				case "rpstep4":
					s.swe('eVar8', AS_WA.gender);
					s.swe('eVar21', AS_WA.age);
					AS_WA.prices = (typeof(AS_WA.prices) != "undefined") ? AS_WA.prices : "";
					if (typeof(AS_WA.coverset) != "undefined" && AS_WA.coverset != "") {
						s.products = s.setProducts(AS_WA.coverset, "", AS_WA.prices, "", ""); // needs same solution as vodafone.
					}
					if (s.uniqueEvent("event18")) {
						s.events = s.apl(s.events, "event18", ',', 1);
					}
				break;
				case "rpcompleted":
					var now	= new Date();
					s.swe('purchaseID', AS_WA.contractnumber);
					// Set the products:
					AS_WA.prices = (typeof(AS_WA.prices) != "undefined") ? AS_WA.prices : "";
					if (typeof(AS_WA.coverset) != "undefined" && AS_WA.coverset != "") {
						s.products = s.setProducts(AS_WA.coverset, "", AS_WA.prices, "", ""); // needs same solution as vodafone.
					}
					s.swe('eVar6', AS_WA.damagefreeyears);
					s.swe('eVar7', AS_WA.kilometers);
					s.swe('eVar9', s.purchaseID);
					s.swe('eVar10', AS_WA.visitorid);
					s.swe('eVar17', AS_WA.progdossierid);
					s.swe('eVar21', AS_WA.age);
					s.swe('eVar22', AS_WA.carage);
					s.swe('eVar23', AS_WA.carbrand);
					s.swe('eVar24', AS_WA.cartype);
					s.swe('eVar25', AS_WA.carprice);
					s.swe('eVar26', AS_WA.platenumber);
					s.swe('eVar27', AS_WA.fuel);
					s.swe('eVar30', AS_WA.paymentperiod);
					s.swe('eVar39', AS_WA.zip);
					if (typeof(AS_WA.platenumber) != "undefined" && typeof(AS_WA.zip) != "undefined") {
						s.eVar40 = AS_WA.platenumber + "_" + AS_WA.zip;
						s.transactionID	= AS_WA.platenumber + "_" + AS_WA.zip + "_" + s.purchaseID;
					}
					s.eVar41		= getTimeStamp();
					s.swe('eVar43', AS_WA.cancellationpolicy);
					s.swe('zip', AS_WA.zip);
					s.swe('state', AS_WA.city);
					s.prop18		= "D=s_vi";
					// When the previousPage is either Polis:Step 4 or Polis:Afgerond the purchase event should be set.
					if (typeof(s.purchaseID) != "undefined" && s.purchaseID != "") {
						s.events = s.apl(s.events, "purchase", ',', 1);
					}
					if (s.uniqueEvent("event19")) {
						s.events = s.apl(s.events, "event19", ',', 1);
					}
					// Set the global report suite ID.
					s.setGlobalSuiteByCurrentSuite(s.un);
				break;
			}
			break;
		case "myaccount":
			
			break;
		case "terms":
			if (typeof(AS_WA.pagedetail) != "undefined") {
				s.prop11 = AS_WA.pagedetail;
			}
			break;
		case "contact":
			
			break;
		case "about":
			
			break;
		case "schade":
			
			break;
		case "faq":
			if (typeof(AS_WA.pagedetail) != "undefined") {
				s.prop11 = AS_WA.pagedetail;
			}
			break;
		case "news":
			if (typeof(AS_WA.pagedetail) != "undefined") {
				s.prop11 = AS_WA.pagedetail;
			}
			break;
		case "funnel":
			
			break;
		case "order":
			var now	= new Date();
			s.swe('purchaseID', AS_WA.contractnumber);
			// Set the products:
			if (typeof(AS_WA.coverset) != "undefined" && AS_WA.coverset != "") {
				if (typeof(AS_WA.prices) != "undefined" && AS_WA.prices != "") {
					s.products = s.setProducts(AS_WA.coverset, "", AS_WA.prices, "", ""); // needs same solution as vodafone.
				}
			}
			s.swe('eVar6', AS_WA.damagefreeyears);
			s.swe('eVar7', AS_WA.km);
			s.swe('eVar9', s.purchaseID);
			s.swe('eVar10', AS_WA.visitorid);
			s.swe('eVar17', AS_WA.progdossierid);
			s.swe('eVar21', AS_WA.age);
			s.swe('eVar22', AS_WA.carage);
			s.swe('eVar23', AS_WA.carbrand);
			s.swe('eVar24', AS_WA.cartype);
			s.swe('eVar25', AS_WA.carprice);
			s.swe('eVar26', AS_WA.platenumber);
			s.swe('eVar27', AS_WA.fuel);
			s.swe('eVar30', AS_WA.paymentperiod);
			s.swe('eVar39', AS_WA.zip);
			if (typeof(AS_WA.platenumber) != "undefined" && typeof(AS_WA.zip) != "undefined") {
				s.eVar40 = AS_WA.platenumber + "_" + AS_WA.zip;
			}
			s.eVar41		= getTimeStamp();
			s.swe('eVar42', AS_WA.channel);
			s.swe('eVar43', AS_WA.cancellationpolicy);
			s.swe('zip', AS_WA.zip);
			s.swe('state', AS_WA.city);
			s.prop18		= "D=s_vi";
			s.events		= s.apl(s.events, "purchase", ',', 1);
			// Set the global report suite ID.
			s.setGlobalSuiteByCurrentSuite(s.un);
			break;
		case "callback":
			
			break;
	}
}

/**
 * uniqueEvent
 * 
 * Checks wether an event has been set already. it it hasn't been set it will add it to the
 * s_evt cookie.
 * 
 * @param String e
 */

s.uniqueEvent = function(e) {
	var events = s.c_r("s_evts");
	var event = e.replace("vent", "");
	if (typeof(events) != "undefined" && events != "") {
		if (events.indexOf( event )>-1) { // event exists
			return false;
		} else { //event doesn't exist:
			s.c_w("s_evts", s.apl(events, event, ',', 1), 0);
			return true;
		}
	}else{ // cookie doesn't exist. add it with the event:
		s.c_w("s_evts", event, 0);
		return true;
	}
}

function getTimeStamp(){
	var _23="";
	var now=new Date();
	_23=now.getUTCFullYear().toString()+completedString(now.getUTCMonth()+1)+completedString(now.getUTCDate())+completedString(now.getHours())+completedString(now.getMinutes())+completedString(now.getSeconds());
	return _23;
};

function completedString(el){
	if(el<10){
		return "0"+el.toString();
	}else{
		return el.toString();
	}
};

/**
 * ErrorHandling
 */

// Create Adversitement namespace if it doesn't exists
if(typeof(AdverSC) == 'undefined') {
	var AdverSC = {};
}

AdverSC.extra = function() {
  //Private variables
  /**
   * Handle javascript errors
   * @private   
   */     
  var onError = function(s_account, prop, msg, url, l) {
    if(typeof(s_gi) != 'undefined') {
      var p,ltv,lte;
      var err = '';
      var s = s_gi(s_account);
      if(s.pageName) {
        err = s.pageName+':'+msg+':'+l;
      } else {
        err = url+':'+msg+':'+l;
      }
      ltv = s.linkTrackVars;
      lte = s.linkTrackEvents;  
      if(prop) {
        p = s[prop];
        s[prop] = err;
		s.eVar41 = getTimeStamp();
        s.linkTrackVars = prop+",eVar41,events";
      }
      s.linkTrackEvents = 'event5';
      s.tl(this,'o','Javascript Error');
      if(p) {
        s[prop] = p;
      }
      s.linkTrackVars = ltv;
      s.linkTrackEvents = lte;
    }
  };
 
  //Public variables
  return /** @scope AdverSC.extra */ {
    
    isReady: false,
    
    DOMReady: function(f) {
      if (/(?!.*?compatible|.*?webkit)^mozilla|opera/i.test(navigator.userAgent)){
        document.addEventListener("DOMContentLoaded", function(){
          AdverSC.extra.isReady = true;
          f();
        }, false);
      }  else {
        //window.setTimeout(f,0);
        var docReadyProcId = setInterval(function(){
            try{
                // throws errors until DOM is ready
                AdverSC.extra.isReady || (document.documentElement.doScroll('left'));
            }catch(e){
                return;
            }
            AdverSC.extra.isReady = true;
            if(docReadyProcId){
                clearInterval(docReadyProcId);
                docReadyProcId = null;
            }
            f();  // no errors, fire
        }, 5);

  			document.onreadystatechange = function(){
  				if(document.readyState == 'complete' && AdverSC.extra.isReady == false){
  					document.onreadystatechange = null;
  					AdverSC.extra.isReady = true;
  					if(docReadyProcId){
                clearInterval(docReadyProcId);
                docReadyProcId = null;
            }
  					f();
  				}
        }
      }
    },
	
    /**
     * On Javascript error send error url, message and line number as link to SiteCatalyst
     * @param s_account accountId
     * @param prop CustomInsight variable name or eVar variable name          
     */         
    addOnErrorHandler: function(s_account, prop) {
      if(window.onerror && typeof(window.onerror)=='function') {
        var tmp = window.onerror;
        window.onerror = function(msg, url, l) {
          tmp(msg, url, l);
          onError(s_account, prop, msg, url, l);
        };
      } else {
        window.onerror = function(msg, url, l) {
          onError(s_account, prop, msg, url, l);
        };
      }
    }
  }
}(); // create the actual object

 /* JavaScript error tracking */
AdverSC.extra.addOnErrorHandler(s_account, 'prop9');

/**
 * Plugins will be defined below this line.
 */

/*
 * Plugin: getVisitStart v2.0 - returns 1 on first page of visit
 * otherwise 0
 */
s.getVisitStart=new Function("c",""
+"var s=this,v=1,t=new Date;t.setTime(t.getTime()+1800000);if(s.c_r(c"
+")){v=0}if(!s.c_w(c,1,t)){s.c_w(c,1,0)}if(!s.c_r(c)){v=0}return v;");

/* Plugin: detectFirstTimePopulated detect if a variable is populated for the first time 
 *Useful to track events depending on a change in the variable value; for instance, track a login when a username becomes available
 */
s.detectFirstTimePopulated=function(v,c,t) {
    var r=s.c_r(c);
    if (v) {
        s.c_w(c,v,t)
    } else {
        s.c_w(c,'no value',t);
    }
    return ((r=='no value' || r=="") && (v))
}

/**
* Get Daylight Savings Time
*/
s.getDST = new Function("var gmt=new Date();var lsm=new Date();var lso=new"
+ " Date();lsm.setMonth(2);lsm.setDate(31);var day=lsm.getDay();lsm.setDa"
+ "te(31-day);lso.setMonth(9);lso.setDate(31);day=lso.getDay();lso.setDat"
+ "e(31-day);if(gmt<lsm||gmt>=lso)return '0';return '+1';");

/*
 * Plugin: getQueryParam 2.3
 */
s.getQueryParam=new Function("p","d","u",""
+"var s=this,v='',i,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.locati"
+"on);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0?p"
+".length:i;t=s.p_gpv(p.substring(0,i),u+'');if(t){t=t.indexOf('#')>-"
+"1?t.substring(0,t.indexOf('#')):t;}if(t)v+=v?d+t:t;p=p.substring(i="
+"=p.length?i:i+1)}return v");
s.p_gpv=new Function("k","u",""
+"var s=this,v='',i=u.indexOf('?'),q;if(k&&i>-1){q=u.substring(i+1);v"
+"=s.pt(q,'&','p_gvf',k)}return v");
s.p_gvf=new Function("t","k",""
+"if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'T"
+"rue':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s."
+"epa(v)}return ''");

/*
 * Plugin: getAndPersistValue 0.3 - get a value on every page
 */
s.getAndPersistValue=new Function("v","c","e",""
+"var s=this,a=new Date;e=e?e:0;a.setTime(a.getTime()+e*86400000);if("
+"v)s.c_w(c,v,e?a:0);return s.c_r(c);");
/*
 * Plugin Utility: apl v1.1
 */
s.apl=new Function("L","v","d","u",""
+"var s=this,m=0;if(!L)L='';if(u){var i,n,a=s.split(L,d);for(i=0;i<a."
+"length;i++){n=a[i];m=m||(u==1?(n==v):(n.toLowerCase()==v.toLowerCas"
+"e()));}}if(!m)L=L?L+d+v:v;return L");

/*
 * Utility Function: split v1.5 - split a string (JS 1.0 compatible)
 */
s.split=new Function("l","d",""
+"var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x"
+"++]=l.substring(0,i);l=l.substring(i+d.length);}return a");


/*
 * Plugin: getValOnce 0.2 - get a value once per session or number of days
 */
s.getValOnce=new Function("v","c","e",""
+"var s=this,k=s.c_r(c),a=new Date;e=e?e:0;if(v){a.setTime(a.getTime("
+")+e*86400000);s.c_w(c,v,e?a:0);}return v==k?'':v");

/*
 * Plugin: getNewRepeat 1.1 - Return whether user is new or repeat
 */
s.getNewRepeat=new Function("d",""
+"var s=this,e=new Date(),cval,sval,ct=e.getTime();e.setTime(ct+d*24*"
+"60*60*1000);cval=s.c_r('s_nr');if(cval.length==0){s.c_w('s_nr',ct+'"
+"-New',e);return 'New';}sval=cval.split('-');if(ct-sval[0]<30*60*100"
+"0&&sval[1]=='New'){s.c_w('s_nr',ct+'-New',e);return 'New';}else {s."
+"c_w('s_nr',ct+'-Repeat',e);return 'Repeat';}"); 

/*
 * Plugin: getTimeParting 1.3 - Set timeparting values based on time zone
 */
s.getTimeParting=new Function("t","z","y",""
+"dc=new Date('1/1/2000');f=15;ne=8;if(dc.getDay()!=6||"
+"dc.getMonth()!=0){return'Data Not Available'}else{;z=parseInt(z);"
+"if(y=='2009'){f=8;ne=1};gmar=new Date('3/1/'+y);dsts=f-gmar.getDay("
+");gnov=new Date('11/1/'+y);dste=ne-gnov.getDay();spr=new Date('3/'"
+"+dsts+'/'+y);fl=new Date('11/'+dste+'/'+y);cd=new Date();"
+"if(cd>spr&&cd<fl){z=z+1}else{z=z};utc=cd.getTime()+(cd.getTimezoneO"
+"ffset()*60000);tz=new Date(utc + (3600000*z));thisy=tz.getFullYear("
+");var days=['Sunday','Monday','Tuesday','Wednesday','Thursday','Fr"
+"iday','Saturday'];if(thisy!=y){return'Data Not Available'}else{;thi"
+"sh=tz.getHours();thismin=tz.getMinutes();thisd=tz.getDay();var dow="
+"days[thisd];var ap='AM';var dt='Weekday';var mint='00';if(thismin>3"
+"0){mint='30'}if(thish>=12){ap='PM';thish=thish-12};if (thish==0){th"
+"ish=12};if(thisd==6||thisd==0){dt='Weekend'};var timestring=thish+'"
+":'+mint+ap;var daystring=dow;var endstring=dt;if(t=='h'){return tim"
+"estring}if(t=='d'){return daystring};if(t=='w'){return en"
+"dstring}}};"
);

/*
 * DynamicObjectIDs v1.4: Setup Dynamic Object IDs based on URL
 */
s.setupDynamicObjectIDs=new Function(""
+"var s=this;if(!s.doi){s.doi=1;if(s.apv>3&&(!s.isie||!s.ismac||s.apv"
+">=5)){if(s.wd.attachEvent)s.wd.attachEvent('onload',s.setOIDs);else"
+" if(s.wd.addEventListener)s.wd.addEventListener('load',s.setOIDs,fa"
+"lse);else{s.doiol=s.wd.onload;s.wd.onload=s.setOIDs}}s.wd.s_semapho"
+"re=1}");
s.setOIDs=new Function("e",""
+"var s=s_c_il["+s._in+"],b=s.eh(s.wd,'onload'),o='onclick',x,l,u,c,i"
+",a=new Array;if(s.doiol){if(b)s[b]=s.wd[b];s.doiol(e)}if(s.d.links)"
+"{for(i=0;i<s.d.links.length;i++){l=s.d.links[i];c=l[o]?''+l[o]:'';b"
+"=s.eh(l,o);z=l[b]?''+l[b]:'';u=s.getObjectID(l);if(u&&c.indexOf('s_"
+"objectID')<0&&z.indexOf('s_objectID')<0){u=s.repl(u,'\"','');u=s.re"
+"pl(u,'\\n','').substring(0,97);l.s_oc=l[o];a[u]=a[u]?a[u]+1:1;x='';"
+"if(c.indexOf('.t(')>=0||c.indexOf('.tl(')>=0||c.indexOf('s_gs(')>=0"
+")x='var x=\".tl(\";';x+='s_objectID=\"'+u+'_'+a[u]+'\";return this."
+"s_oc?this.s_oc(e):true';if(s.isns&&s.apv>=5)l.setAttribute(o,x);l[o"
+"]=new Function('e',x)}}}s.wd.s_semaphore=0;return true");

/*
 * Plugin Utility: Replace v1.0
 */
s.repl=new Function("x","o","n",""
+"var i=x.indexOf(o),l=n.length;while(x&&i>=0){x=x.substring(0,i)+n+x."
+"substring(i+o.length);i=x.indexOf(o,i+l)}return x");

/* WARNING: Changing any of the below variables will cause drastic
changes to how your visitor data is collected.  Changes should only be
made when instructed to do so by your account manager.*/
s.visitorNamespace="allianz"
//s.trackingServer="allianz.122.2o7.net"

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code='',s_objectID;function s_gi(un,pg,ss){var c="s._c='s_c';s.wd=window;if(!s.wd.s_c_in){s.wd.s_c_il=new Array;s.wd.s_c_in=0;}s._il=s.wd.s_c_il;s._in=s.wd.s_c_in;s._il[s._in]=s;s.wd.s_c_in++;s"
+".an=s_an;s.cls=function(x,c){var i,y='';if(!c)c=this.an;for(i=0;i<x.length;i++){n=x.substring(i,i+1);if(c.indexOf(n)>=0)y+=n}return y};s.fl=function(x,l){return x?(''+x).substring(0,l):x};s.co=func"
+"tion(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};s.num=function(x){x=''+x;for(var p=0;p<x.length;p++)if(('0123456789').indexO"
+"f(x.substring(p,p+1))<0)return 0;return 1};s.rep=s_rep;s.sp=s_sp;s.jn=s_jn;s.ape=function(x){var s=this,h='0123456789ABCDEF',i,c=s.charSet,n,l,e,y='';c=c?c.toUpperCase():'';if(x){x=''+x;if(c=='AUTO"
+"'&&('').charCodeAt){for(i=0;i<x.length;i++){c=x.substring(i,i+1);n=x.charCodeAt(i);if(n>127){l=0;e='';while(n||l<4){e=h.substring(n%16,n%16+1)+e;n=(n-n%16)/16;l++}y+='%u'+e}else if(c=='+')y+='%2B';"
+"else y+=escape(c)}x=y}else{x=x?s.rep(escape(''+x),'+','%2B'):x;if(x&&c&&s.em==1&&x.indexOf('%u')<0&&x.indexOf('%U')<0){i=x.indexOf('%');while(i>=0){i++;if(h.substring(8).indexOf(x.substring(i,i+1)."
+"toUpperCase())>=0)return x.substring(0,i)+'u00'+x.substring(i);i=x.indexOf('%',i)}}}}return x};s.epa=function(x){var s=this;return x?unescape(s.rep(''+x,'+',' ')):x};s.pt=function(x,d,f,a){var s=th"
+"is,t=x,z=0,y,r;while(t){y=t.indexOf(d);y=y<0?t.length:y;t=t.substring(0,y);r=s[f](t,a);if(r)return r;z+=y+d.length;t=x.substring(z,x.length);t=z<x.length?t:''}return ''};s.isf=function(t,a){var c=a"
+".indexOf(':');if(c>=0)a=a.substring(0,c);if(t.substring(0,2)=='s_')t=t.substring(2);return (t!=''&&t==a)};s.fsf=function(t,a){var s=this;if(s.pt(a,',','isf',t))s.fsg+=(s.fsg!=''?',':'')+t;return 0}"
+";s.fs=function(x,f){var s=this;s.fsg='';s.pt(x,',','fsf',f);return s.fsg};s.si=function(){var s=this,i,k,v,c=s_gi+'var s=s_gi(\"'+s.oun+'\");s.sa(\"'+s.un+'\");';for(i=0;i<s.va_g.length;i++){k=s.va"
+"_g[i];v=s[k];if(v!=undefined){if(typeof(v)=='string')c+='s.'+k+'=\"'+s_fe(v)+'\";';else c+='s.'+k+'='+v+';'}}c+=\"s.lnk=s.eo=s.linkName=s.linkType=s.wd.s_objectID=s.ppu=s.pe=s.pev1=s.pev2=s.pev3=''"
+";\";return c};s.c_d='';s.c_gdf=function(t,a){var s=this;if(!s.num(t))return 1;return 0};s.c_gd=function(){var s=this,d=s.wd.location.hostname,n=s.fpCookieDomainPeriods,p;if(!n)n=s.cookieDomainPerio"
+"ds;if(d&&!s.c_d){n=n?parseInt(n):2;n=n>2?n:2;p=d.lastIndexOf('.');if(p>=0){while(p>=0&&n>1){p=d.lastIndexOf('.',p-1);n--}s.c_d=p>0&&s.pt(d,'.','c_gdf',0)?d.substring(p):d}}return s.c_d};s.c_r=funct"
+"ion(k){var s=this;k=s.ape(k);var c=' '+s.d.cookie,i=c.indexOf(' '+k+'='),e=i<0?i:c.indexOf(';',i),v=i<0?'':s.epa(c.substring(i+2+k.length,e<0?c.length:e));return v!='[[B]]'?v:''};s.c_w=function(k,v"
+",e){var s=this,d=s.c_gd(),l=s.cookieLifetime,t;v=''+v;l=l?(''+l).toUpperCase():'';if(e&&l!='SESSION'&&l!='NONE'){t=(v!=''?parseInt(l?l:0):-60);if(t){e=new Date;e.setTime(e.getTime()+(t*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};s.eh=function(o,e,r,f){var"
+" s=this,b='s_'+e+'_'+s._in,n=-1,l,i,x;if(!s.ehl)s.ehl=new Array;l=s.ehl;for(i=0;i<l.length&&n<0;i++){if(l[i].o==o&&l[i].e==e)n=i}if(n<0){n=i;l[n]=new Object}x=l[n];x.o=o;x.e=e;f=r?x.b:f;if(r||f){x."
+"b=r?0:o[e];x.o[e]=f}if(x.b){x.o[b]=x.b;return b}return 0};s.cet=function(f,a,t,o,b){var s=this,r,tcf;if(s.apv>=5&&(!s.isopera||s.apv>=7)){tcf=new Function('s','f','a','t','var e,r;try{r=s[f](a)}cat"
+"ch(e){r=s[t](e)}return r');r=tcf(s,f,a,t)}else{if(s.ismac&&s.u.indexOf('MSIE 4')>=0)r=s[b](a);else{s.eh(s.wd,'onerror',0,o);r=s[f](a);s.eh(s.wd,'onerror',1)}}return r};s.gtfset=function(e){var s=th"
+"is;return s.tfs};s.gtfsoe=new Function('e','var s=s_c_il['+s._in+'],c;s.eh(window,\"onerror\",1);s.etfs=1;c=s.t();if(c)s.d.write(c);s.etfs=0;return true');s.gtfsfb=function(a){return window};s.gtfs"
+"f=function(w){var s=this,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};s.gtfs=function(){var s=this;if(!s.tfs){s.tfs=s.wd"
+";if(!s.etfs)s.tfs=s.cet('gtfsf',s.tfs,'gtfset',s.gtfsoe,'gtfsfb')}return s.tfs};s.mrq=function(u){var s=this,l=s.rl[u],n,r;s.rl[u]=0;if(l)for(n=0;n<l.length;n++){r=l[n];s.mr(0,0,r.r,0,r.t,r.u)}};s."
+"br=function(id,rs){var s=this;if(s.disableBufferedRequests||!s.c_w('s_br',rs))s.brl=rs};s.flushBufferedRequests=function(){this.fbr(0)};s.fbr=function(id){var s=this,br=s.c_r('s_br');if(!br)br=s.br"
+"l;if(br){if(!s.disableBufferedRequests)s.c_w('s_br','');s.mr(0,0,br)}s.brl=0};s.mr=function(sess,q,rs,id,ta,u){var s=this,dc=s.dc,t1=s.trackingServer,t2=s.trackingServerSecure,tb=s.trackingServerBa"
+"se,p='.sc',ns=s.visitorNamespace,un=s.cls(u?u:(ns?ns:s.fun)),r=new Object,l,imn='s_i_'+(un),im,b,e;if(!rs){if(t1){if(t2&&s.ssl)t1=t2}else{if(!tb)tb='2o7.net';if(dc)dc=(''+dc).toLowerCase();else dc="
+"'d1';if(tb=='2o7.net'){if(dc=='d1')dc='112';else if(dc=='d2')dc='122';p=''}t1=un+'.'+dc+'.'+p+tb}rs='http'+(s.ssl?'s':'')+'://'+t1+'/b/ss/'+s.un+'/'+(s.mobile?'5.1':'1')+'/H.21/'+sess+'?AQB=1&ndh=1"
+"'+(q?q:'')+'&AQE=1';if(s.isie&&!s.ismac){if(s.apv>5.5)rs=s.fl(rs,4095);else rs=s.fl(rs,2047)}if(id){s.br(id,rs);return}}if(s.d.images&&s.apv>=3&&(!s.isopera||s.apv>=7)&&(s.ns6<0||s.apv>=6.1)){if(!s"
+".rc)s.rc=new Object;if(!s.rc[un]){s.rc[un]=1;if(!s.rl)s.rl=new Object;s.rl[un]=new Array;setTimeout('if(window.s_c_il)window.s_c_il['+s._in+'].mrq(\"'+un+'\")',750)}else{l=s.rl[un];if(l){r.t=ta;r.u"
+"=un;r.r=rs;l[l.length]=r;return ''}imn+='_'+s.rc[un];s.rc[un]++}im=s.wd[imn];if(!im)im=s.wd[imn]=new Image;im.s_l=0;im.onload=new Function('e','this.s_l=1;var wd=window,s;if(wd.s_c_il){s=wd.s_c_il["
+"'+s._in+'];s.mrq(\"'+un+'\");s.nrs--;if(!s.nrs)s.m_m(\"rr\")}');if(!s.nrs){s.nrs=1;s.m_m('rs')}else s.nrs++;im.src=rs;if(rs.indexOf('&pe=')>=0&&(!ta||ta=='_self'||ta=='_top'||(s.wd.name&&ta==s.wd.n"
+"ame))){b=e=new Date;while(!im.s_l&&e.getTime()-b.getTime()<500)e=new Date}return ''}return '<im'+'g sr'+'c=\"'+rs+'\" width=1 height=1 border=0 alt=\"\">'};s.gg=function(v){var s=this;if(!s.wd['s_'"
+"+v])s.wd['s_'+v]='';return s.wd['s_'+v]};s.glf=function(t,a){if(t.substring(0,2)=='s_')t=t.substring(2);var s=this,v=s.gg(t);if(v)s[t]=v};s.gl=function(v){var s=this;if(s.pg)s.pt(v,',','glf',0)};s."
+"rf=function(x){var s=this,y,i,j,h,l,a,b='',c='',t;if(x){y=''+x;i=y.indexOf('?');if(i>0){a=y.substring(i+1);y=y.substring(0,i);h=y.toLowerCase();i=0;if(h.substring(0,7)=='http://')i+=7;else if(h.sub"
+"string(0,8)=='https://')i+=8;h=h.substring(i);i=h.indexOf(\"/\");if(i>0){h=h.substring(0,i);if(h.indexOf('google')>=0){a=s.sp(a,'&');if(a.length>1){l=',q,ie,start,search_key,word,kw,cd,';for(j=0;j<"
+"a.length;j++){t=a[j];i=t.indexOf('=');if(i>0&&l.indexOf(','+t.substring(0,i)+',')>=0)b+=(b?'&':'')+t;else c+=(c?'&':'')+t}if(b&&c){y+='?'+b+'&'+c;if(''+x!=y)x=y}}}}}}return x};s.hav=function(){var "
+"s=this,qs='',fv=s.linkTrackVars,fe=s.linkTrackEvents,mn,i;if(s.pe){mn=s.pe.substring(0,1).toUpperCase()+s.pe.substring(1);if(s[mn]){fv=s[mn].trackVars;fe=s[mn].trackEvents}}fv=fv?fv+','+s.vl_l+','+"
+"s.vl_l2:'';for(i=0;i<s.va_t.length;i++){var k=s.va_t[i],v=s[k],b=k.substring(0,4),x=k.substring(4),n=parseInt(x),q=k;if(v&&k!='linkName'&&k!='linkType'){if(s.pe||s.lnk||s.eo){if(fv&&(','+fv+',').in"
+"dexOf(','+k+',')<0)v='';if(k=='events'&&fe)v=s.fs(v,fe)}if(v){if(k=='dynamicVariablePrefix')q='D';else if(k=='visitorID')q='vid';else if(k=='pageURL'){q='g';v=s.fl(v,255)}else if(k=='referrer'){q='"
+"r';v=s.fl(s.rf(v),255)}else if(k=='vmk'||k=='visitorMigrationKey')q='vmt';else if(k=='visitorMigrationServer'){q='vmf';if(s.ssl&&s.visitorMigrationServerSecure)v=''}else if(k=='visitorMigrationServ"
+"erSecure'){q='vmf';if(!s.ssl&&s.visitorMigrationServer)v=''}else if(k=='charSet'){q='ce';if(v.toUpperCase()=='AUTO')v='ISO8859-1';else if(s.em==2)v='UTF-8'}else if(k=='visitorNamespace')q='ns';else"
+" if(k=='cookieDomainPeriods')q='cdp';else if(k=='cookieLifetime')q='cl';else if(k=='variableProvider')q='vvp';else if(k=='currencyCode')q='cc';else if(k=='channel')q='ch';else if(k=='transactionID'"
+")q='xact';else if(k=='campaign')q='v0';else if(k=='resolution')q='s';else if(k=='colorDepth')q='c';else if(k=='javascriptVersion')q='j';else if(k=='javaEnabled')q='v';else if(k=='cookiesEnabled')q="
+"'k';else if(k=='browserWidth')q='bw';else if(k=='browserHeight')q='bh';else if(k=='connectionType')q='ct';else if(k=='homepage')q='hp';else if(k=='plugins')q='p';else if(s.num(x)){if(b=='prop')q='c"
+"'+n;else if(b=='eVar')q='v'+n;else if(b=='list')q='l'+n;else if(b=='hier'){q='h'+n;v=s.fl(v,255)}}if(v)qs+='&'+q+'='+(k.substring(0,3)!='pev'?s.ape(v):v)}}}return qs};s.ltdf=function(t,h){t=t?t.toL"
+"owerCase():'';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};s.ltef=function(t,h){t=t?t.toLowerCase():''"
+";h=h?h.toLowerCase():'';if(t&&h.indexOf(t)>=0)return 1;return 0};s.lt=function(h){var s=this,lft=s.linkDownloadFileTypes,lef=s.linkExternalFilters,lif=s.linkInternalFilters;lif=lif?lif:s.wd.locatio"
+"n.hostname;h=h.toLowerCase();if(s.trackDownloadLinks&&lft&&s.pt(lft,',','ltdf',h))return 'd';if(s.trackExternalLinks&&h.substring(0,1)!='#'&&(lef||lif)&&(!lef||s.pt(lef,',','ltef',h))&&(!lif||!s.pt"
+"(lif,',','ltef',h)))return 'e';return ''};s.lc=new Function('e','var s=s_c_il['+s._in+'],b=s.eh(this,\"onclick\");s.lnk=s.co(this);s.t();s.lnk=0;if(b)return this[b](e);return true');s.bc=new Functi"
+"on('e','var s=s_c_il['+s._in+'],f,tcf;if(s.d&&s.d.all&&s.d.all.cppXYctnr)return;s.eo=e.srcElement?e.srcElement:e.target;tcf=new Function(\"s\",\"var e;try{if(s.eo&&(s.eo.tagName||s.eo.parentElement"
+"||s.eo.parentNode))s.t()}catch(e){}\");tcf(s);s.eo=0');s.oh=function(o){var s=this,l=s.wd.location,h=o.href?o.href:'',i,j,k,p;i=h.indexOf(':');j=h.indexOf('?');k=h.indexOf('/');if(h&&(i<0||(j>=0&&i"
+">j)||(k>=0&&i>k))){p=o.protocol&&o.protocol.length>1?o.protocol:(l.protocol?l.protocol:'');i=l.pathname.lastIndexOf('/');h=(p?p+'//':'')+(o.host?o.host:(l.host?l.host:''))+(h.substring(0,1)!='/'?l."
+"pathname.substring(0,i<0?0:i)+'/':'')+h}return h};s.ot=function(o){var t=o.tagName;t=t&&t.toUpperCase?t.toUpperCase():'';if(t=='SHAPE')t='';if(t){if((t=='INPUT'||t=='BUTTON')&&o.type&&o.type.toUppe"
+"rCase)t=o.type.toUpperCase();else if(!t&&o.href)t='A';}return t};s.oid=function(o){var s=this,t=s.ot(o),p,c,n='',x=0;if(t&&!o.s_oid){p=o.protocol;c=o.onclick;if(o.href&&(t=='A'||t=='AREA')&&(!c||!p"
+"||p.toLowerCase().indexOf('javascript')<0))n=s.oh(o);else if(c){n=s.rep(s.rep(s.rep(s.rep(''+c,\"\\r\",''),\"\\n\",''),\"\\t\",''),' ','');x=2}else if(t=='INPUT'||t=='SUBMIT'){if(o.value)n=o.value;"
+"else if(o.innerText)n=o.innerText;else if(o.textContent)n=o.textContent;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};s.rqf=function(t,un){var s=this,e"
+"=t.indexOf('='),u=e>=0?','+t.substring(0,e)+',':'';return u&&u.indexOf(','+un+',')>=0?s.epa(t.substring(e+1)):''};s.rq=function(un){var s=this,c=un.indexOf(','),v=s.c_r('s_sq'),q='';if(c<0)return s"
+".pt(v,'&','rqf',un);return s.pt(un,',','rq',0)};s.sqp=function(t,a){var s=this,e=t.indexOf('='),q=e<0?'':s.epa(t.substring(e+1));s.sqq[q]='';if(e>=0)s.pt(t.substring(0,e),',','sqs',q);return 0};s.s"
+"qs=function(un,q){var s=this;s.squ[un]=q;return 0};s.sq=function(q){var s=this,k='s_sq',v=s.c_r(k),x,c=0;s.sqq=new Object;s.squ=new Object;s.sqq[q]='';s.pt(v,'&','sqp',0);s.pt(s.un,',','sqs',q);v='"
+"';for(x in s.squ)if(x&&(!Object||!Object.prototype||!Object.prototype[x]))s.sqq[s.squ[x]]+=(s.sqq[s.squ[x]]?',':'')+x;for(x in s.sqq)if(x&&(!Object||!Object.prototype||!Object.prototype[x])&&s.sqq["
+"x]&&(x==q||c<2)){v+=(v?'&':'')+s.sqq[x]+'='+s.ape(x);c++}return s.c_w(k,v,0)};s.wdl=new Function('e','var s=s_c_il['+s._in+'],r=true,b=s.eh(s.wd,\"onload\"),i,o,oc;if(b)r=this[b](e);for(i=0;i<s.d.l"
+"inks.length;i++){o=s.d.links[i];oc=o.onclick?\"\"+o.onclick:\"\";if((oc.indexOf(\"s_gs(\")<0||oc.indexOf(\".s_oc(\")>=0)&&oc.indexOf(\".tl(\")<0)s.eh(o,\"onclick\",0,s.lc);}return r');s.wds=functio"
+"n(){var s=this;if(s.apv>3&&(!s.isie||!s.ismac||s.apv>=5)){if(s.b&&s.b.attachEvent)s.b.attachEvent('onclick',s.bc);else if(s.b&&s.b.addEventListener)s.b.addEventListener('click',s.bc,false);else s.e"
+"h(s.wd,'onload',0,s.wdl)}};s.vs=function(x){var s=this,v=s.visitorSampling,g=s.visitorSamplingGroup,k='s_vsn_'+s.un+(g?'_'+g:''),n=s.c_r(k),e=new Date,y=e.getYear();e.setYear(y+10+(y<1900?1900:0));"
+"if(v){v*=100;if(!n){if(!s.c_w(k,x,e))return 0;n=x}if(n%10000>v)return 0}return 1};s.dyasmf=function(t,m){if(t&&m&&m.indexOf(t)>=0)return 1;return 0};s.dyasf=function(t,m){var s=this,i=t?t.indexOf('"
+"='):-1,n,x;if(i>=0&&m){var n=t.substring(0,i),x=t.substring(i+1);if(s.pt(x,',','dyasmf',m))return n}return 0};s.uns=function(){var s=this,x=s.dynamicAccountSelection,l=s.dynamicAccountList,m=s.dyna"
+"micAccountMatch,n,i;s.un=s.un.toLowerCase();if(x&&l){if(!m)m=s.wd.location.host;if(!m.toLowerCase)m=''+m;l=l.toLowerCase();m=m.toLowerCase();n=s.pt(l,';','dyasf',m);if(n)s.un=n}i=s.un.indexOf(',');"
+"s.fun=i<0?s.un:s.un.substring(0,i)};s.sa=function(un){var s=this;s.un=un;if(!s.oun)s.oun=un;else if((','+s.oun+',').indexOf(','+un+',')<0)s.oun+=','+un;s.uns()};s.m_i=function(n,a){var s=this,m,f=n"
+".substring(0,1),r,l,i;if(!s.m_l)s.m_l=new Object;if(!s.m_nl)s.m_nl=new Array;m=s.m_l[n];if(!a&&m&&m._e&&!m._i)s.m_a(n);if(!m){m=new Object,m._c='s_m';m._in=s.wd.s_c_in;m._il=s._il;m._il[m._in]=m;s."
+"wd.s_c_in++;m.s=s;m._n=n;m._l=new Array('_c','_in','_il','_i','_e','_d','_dl','s','n','_r','_g','_g1','_t','_t1','_x','_x1','_rs','_rr','_l');s.m_l[n]=m;s.m_nl[s.m_nl.length]=n}else if(m._r&&!m._m)"
+"{r=m._r;r._m=m;l=m._l;for(i=0;i<l.length;i++)if(m[l[i]])r[l[i]]=m[l[i]];r._il[r._in]=r;m=s.m_l[n]=r}if(f==f.toUpperCase())s[n]=m;return m};s.m_a=new Function('n','g','e','if(!g)g=\"m_\"+n;var s=s_c"
+"_il['+s._in+'],c=s[g+\"_c\"],m,x,f=0;if(!c)c=s.wd[\"s_\"+g+\"_c\"];if(c&&s_d)s[g]=new Function(\"s\",s_ft(s_d(c)));x=s[g];if(!x)x=s.wd[\\'s_\\'+g];if(!x)x=s.wd[g];m=s.m_i(n,1);if(x&&(!m._i||g!=\"m_"
+"\"+n)){m._i=f=1;if((\"\"+x).indexOf(\"function\")>=0)x(s);else s.m_m(\"x\",n,x,e)}m=s.m_i(n,1);if(m._dl)m._dl=m._d=0;s.dlt();return f');s.m_m=function(t,n,d,e){t='_'+t;var s=this,i,x,m,f='_'+t,r=0,"
+"u;if(s.m_l&&s.m_nl)for(i=0;i<s.m_nl.length;i++){x=s.m_nl[i];if(!n||x==n){m=s.m_i(x);u=m[t];if(u){if((''+u).indexOf('function')>=0){if(d&&e)u=m[t](d,e);else if(d)u=m[t](d);else u=m[t]()}}if(u)r=1;u="
+"m[t+1];if(u&&!m[f]){if((''+u).indexOf('function')>=0){if(d&&e)u=m[t+1](d,e);else if(d)u=m[t+1](d);else u=m[t+1]()}}m[f]=1;if(u)r=1}}return r};s.m_ll=function(){var s=this,g=s.m_dl,i,o;if(g)for(i=0;"
+"i<g.length;i++){o=g[i];if(o)s.loadModule(o.n,o.u,o.d,o.l,o.e,1);g[i]=0}};s.loadModule=function(n,u,d,l,e,ln){var s=this,m=0,i,g,o=0,f1,f2,c=s.h?s.h:s.b,b,tcf;if(n){i=n.indexOf(':');if(i>=0){g=n.sub"
+"string(i+1);n=n.substring(0,i)}else g=\"m_\"+n;m=s.m_i(n)}if((l||(n&&!s.m_a(n,g)))&&u&&s.d&&c&&s.d.createElement){if(d){m._d=1;m._dl=1}if(ln){if(s.ssl)u=s.rep(u,'http:','https:');i='s_s:'+s._in+':'"
+"+n+':'+g;b='var s=s_c_il['+s._in+'],o=s.d.getElementById(\"'+i+'\");if(s&&o){if(!o.l&&s.wd.'+g+'){o.l=1;if(o.i)clearTimeout(o.i);o.i=0;s.m_a(\"'+n+'\",\"'+g+'\"'+(e?',\"'+e+'\"':'')+')}';f2=b+'o.c+"
+"+;if(!s.maxDelay)s.maxDelay=250;if(!o.l&&o.c<(s.maxDelay*2)/100)o.i=setTimeout(o.f2,100)}';f1=new Function('e',b+'}');tcf=new Function('s','c','i','u','f1','f2','var e,o=0;try{o=s.d.createElement("
+"\"script\");if(o){o.type=\"text/javascript\";'+(n?'o.id=i;o.defer=true;o.onload=o.onreadystatechange=f1;o.f2=f2;o.l=0;':'')+'o.src=u;c.appendChild(o);'+(n?'o.c=0;o.i=setTimeout(f2,100)':'')+'}}catc"
+"h(e){o=0}return o');o=tcf(s,c,i,u,f1,f2)}else{o=new Object;o.n=n+':'+g;o.u=u;o.d=d;o.l=l;o.e=e;g=s.m_dl;if(!g)g=s.m_dl=new Array;i=0;while(i<g.length&&g[i])i++;g[i]=o}}else if(n){m=s.m_i(n);m._e=1}"
+"return m};s.vo1=function(t,a){if(a[t]||a['!'+t])this[t]=a[t]};s.vo2=function(t,a){if(!a[t]){a[t]=this[t];if(!a[t])a['!'+t]=1}};s.dlt=new Function('var s=s_c_il['+s._in+'],d=new Date,i,vo,f=0;if(s.d"
+"ll)for(i=0;i<s.dll.length;i++){vo=s.dll[i];if(vo){if(!s.m_m(\"d\")||d.getTime()-vo._t>=s.maxDelay){s.dll[i]=0;s.t(vo)}else f=1}}if(s.dli)clearTimeout(s.dli);s.dli=0;if(f){if(!s.dli)s.dli=setTimeout"
+"(s.dlt,s.maxDelay)}else s.dll=0');s.dl=function(vo){var s=this,d=new Date;if(!vo)vo=new Object;s.pt(s.vl_g,',','vo2',vo);vo._t=d.getTime();if(!s.dll)s.dll=new Array;s.dll[s.dll.length]=vo;if(!s.max"
+"Delay)s.maxDelay=250;s.dlt()};s.t=function(vo,id){var s=this,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,y=tm.getYear(),vt=tm.getDate()+'/'+tm.getMonth()+'/'+(y<1900?y+1900:y)+' '+tm.getHours()+':'+tm.getMinutes()+':'+tm.getSeconds()+' '+tm.getDay()+' '+tm.getTimezoneOffset(),tcf,tfs=s.gtfs(),"
+"ta='',q='',qs='',code='',vb=new Object;s.gl(s.vl_g);s.uns();s.m_ll();if(!s.td){var tl=tfs.location,a,o,i,x='',c='',v='',p='',bw='',bh='',j='1.0',k=s.c_w('s_cc','true',0)?'Y':'N',hp='',ct='',pn=0,ps"
+";if(String&&String.prototype){j='1.1';if(j.match){j='1.2';if(tm.setUTCDate){j='1.3';if(s.isie&&s.ismac&&s.apv>=5)j='1.4';if(pn.toPrecision){j='1.5';a=new Array;if(a.forEach){j='1.6';i=0;o=new Objec"
+"t;tcf=new Function('o','var e,i=0;try{i=new Iterator(o)}catch(e){}return i');i=tcf(o);if(i&&i.next)j='1.7'}}}}}if(s.apv>=4)x=screen.width+'x'+screen.height;if(s.isns||s.isopera){if(s.apv>=3){v=s.n."
+"javaEnabled()?'Y':'N';if(s.apv>=4){c=screen.pixelDepth;bw=s.wd.innerWidth;bh=s.wd.innerHeight}}s.pl=s.n.plugins}else if(s.isie){if(s.apv>=4){v=s.n.javaEnabled()?'Y':'N';c=screen.colorDepth;if(s.apv"
+">=5){bw=s.d.documentElement.offsetWidth;bh=s.d.documentElement.offsetHeight;if(!s.ismac&&s.b){tcf=new Function('s','tl','var e,hp=0;try{s.b.addBehavior(\"#default#homePage\");hp=s.b.isHomePage(tl)?"
+"\"Y\":\"N\"}catch(e){}return hp');hp=tcf(s,tl);tcf=new Function('s','var e,ct=0;try{s.b.addBehavior(\"#default#clientCaps\");ct=s.b.connectionType}catch(e){}return ct');ct=tcf(s)}}}else r=''}if(s.p"
+"l)while(pn<s.pl.length&&pn<30){ps=s.fl(s.pl[pn].name,100)+';';if(p.indexOf(ps)<0)p+=ps;pn++}s.resolution=x;s.colorDepth=c;s.javascriptVersion=j;s.javaEnabled=v;s.cookiesEnabled=k;s.browserWidth=bw;"
+"s.browserHeight=bh;s.connectionType=ct;s.homepage=hp;s.plugins=p;s.td=1}if(vo){s.pt(s.vl_g,',','vo2',vb);s.pt(s.vl_g,',','vo1',vo)}if(s.usePlugins)s.doPlugins(s);var l=s.wd.location,r=tfs.document."
+"referrer;if(!s.pageURL)s.pageURL=l.href?l.href:l;if(!s.referrer&&!s._1_referrer){s.referrer=r;s._1_referrer=1}if((vo&&vo._t)||!s.m_m('d')){s.m_m('g');if(s.lnk||s.eo){var o=s.eo?s.eo:s.lnk;if(!o)ret"
+"urn '';var p=s.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:'';if((oc.indexOf(\"s_gs(\")>=0&&oc.indexOf(\".s_oc(\")<0)||oc.indexOf(\".tl(\")>=0)return ''}ta=n?o.target:1;h=s.oh(o);i=h.indexOf('?');h=s.linkLeaveQueryString|"
+"|i<0?h:h.substring(0,i);l=s.linkName;t=s.linkType?s.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 tr"
+"k=0;if(s.trackInlineStats){if(!p){p=s.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:'')}}if(!trk&&!qs)return '';s.sampled=s.vs(sed);if(trk){if(s.sampled)code=s.mr(sess,(vt?'&t='+s.ape(vt):'')+s.hav()+q+(qs?qs:s.rq(s.un)),0"
+",id,ta);qs='';s.m_m('t');if(s.p_r)s.p_r();s.referrer=''}s.sq(qs);}else{s.dl(vo);}if(vo)s.pt(s.vl_g,',','vo1',vb);s.lnk=s.eo=s.linkName=s.linkType=s.wd.s_objectID=s.ppu=s.pe=s.pev1=s.pev2=s.pev3='';"
+"if(s.pg)s.wd.s_lnk=s.wd.s_eo=s.wd.s_linkName=s.wd.s_linkType='';if(!id&&!s.tc){s.tc=1;s.flushBufferedRequests()}return code};s.tl=function(o,t,n,vo){var s=this;s.lnk=s.co(o);s.linkType=t;s.linkName"
+"=n;s.t(vo)};if(pg){s.wd.s_co=function(o){var s=s_gi(\"_\",1,1);return s.co(o)};s.wd.s_gs=function(un){var s=s_gi(un,1,1);return s.t()};s.wd.s_dc=function(un){var s=s_gi(un,1);return s.t()}}s.ssl=(s"
+".wd.location.protocol.toLowerCase().indexOf('https')>=0);s.d=document;s.b=s.d.body;if(s.d.getElementsByTagName){s.h=s.d.getElementsByTagName('HEAD');if(s.h)s.h=s.h[0]}s.n=navigator;s.u=s.n.userAgen"
+"t;s.ns6=s.u.indexOf('Netscape6/');var apn=s.n.appName,v=s.n.appVersion,ie=v.indexOf('MSIE '),o=s.u.indexOf('Opera '),i;if(v.indexOf('Opera')>=0||o>0)apn='Opera';s.isie=(apn=='Microsoft Internet Exp"
+"lorer');s.isns=(apn=='Netscape');s.isopera=(apn=='Opera');s.ismac=(s.u.indexOf('Mac')>=0);if(o>0)s.apv=parseFloat(s.u.substring(o+6));else if(ie>0){s.apv=parseInt(i=v.substring(ie+5));if(s.apv>3)s."
+"apv=parseFloat(i)}else if(s.ns6>0)s.apv=parseFloat(s.u.substring(s.ns6+10));else s.apv=parseFloat(v);s.em=0;if(String.fromCharCode){i=escape(String.fromCharCode(256)).toUpperCase();s.em=(i=='%C4%80"
+"'?2:(i=='%U0100'?1:0))}s.sa(un);s.vl_l='dynamicVariablePrefix,visitorID,vmk,visitorMigrationKey,visitorMigrationServer,visitorMigrationServerSecure,ppu,charSet,visitorNamespace,cookieDomainPeriods,"
+"cookieLifetime,pageName,pageURL,referrer,currencyCode';s.va_l=s.sp(s.vl_l,',');s.vl_t=s.vl_l+',variableProvider,channel,server,pageType,transactionID,purchaseID,campaign,state,zip,events,products,l"
+"inkName,linkType';for(var n=1;n<51;n++)s.vl_t+=',prop'+n+',eVar'+n+',hier'+n+',list'+n;s.vl_l2=',tnt,pe,pev1,pev2,pev3,resolution,colorDepth,javascriptVersion,javaEnabled,cookiesEnabled,browserWidt"
+"h,browserHeight,connectionType,homepage,plugins';s.vl_t+=s.vl_l2;s.va_t=s.sp(s.vl_t,',');s.vl_g=s.vl_t+',trackingServer,trackingServerSecure,trackingServerBase,fpCookieDomainPeriods,disableBuffered"
+"Requests,mobile,visitorSampling,visitorSamplingGroup,dynamicAccountSelection,dynamicAccountList,dynamicAccountMatch,trackDownloadLinks,trackExternalLinks,trackInlineStats,linkLeaveQueryString,linkD"
+"ownloadFileTypes,linkExternalFilters,linkInternalFilters,linkTrackVars,linkTrackEvents,linkNames,lnk,eo,_1_referrer';s.va_g=s.sp(s.vl_g,',');s.pg=pg;s.gl(s.vl_g);if(!ss)s.wds()",
w=window,l=w.s_c_il,n=navigator,u=n.userAgent,v=n.appVersion,e=v.indexOf('MSIE '),m=u.indexOf('Netscape6/'),a,i,s;if(un){un=un.toLowerCase();if(l)for(i=0;i<l.length;i++){s=l[i];if(!s._c||s._c=='s_c'){if(s.oun==un)return s;else if(s.fs&&s.sa&&s.fs(s.oun,un)){s.sa(un);return s}}}}w.s_an='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
w.s_sp=new Function("x","d","var a=new Array,i=0,j;if(x){if(x.split)a=x.split(d);else if(!d)for(i=0;i<x.length;i++)a[a.length]=x.substring(i,i+1);else while(i>=0){j=x.indexOf(d,i);a[a.length]=x.subst"
+"ring(i,j<0?x.length:j);i=j;if(i>=0)i+=d.length}}return a");
w.s_jn=new Function("a","d","var x='',i,j=a.length;if(a&&j>0){x=a[0];if(j>1){if(a.join)x=a.join(d);else for(i=1;i<j;i++)x+=d+a[i]}}return x");
w.s_rep=new Function("x","o","n","return s_jn(s_sp(x,o),n)");
w.s_d=new Function("x","var t='`^@$#',l=s_an,l2=new Object,x2,d,b=0,k,i=x.lastIndexOf('~~'),j,v,w;if(i>0){d=x.substring(0,i);x=x.substring(i+2);l=s_sp(l,'');for(i=0;i<62;i++)l2[l[i]]=i;t=s_sp(t,'');d"
+"=s_sp(d,'~');i=0;while(i<5){v=0;if(x.indexOf(t[i])>=0) {x2=s_sp(x,t[i]);for(j=1;j<x2.length;j++){k=x2[j].substring(0,1);w=t[i]+k;if(k!=' '){v=1;w=d[b+l2[k]]}x2[j]=w+x2[j].substring(1)}}if(v)x=s_jn("
+"x2,'');else{w=t[i]+' ';if(x.indexOf(w)>=0)x=s_rep(x,w,t[i]);i++;b+=62}}}return x");
w.s_fe=new Function("c","return s_rep(s_rep(s_rep(c,'\\\\','\\\\\\\\'),'\"','\\\\\"'),\"\\n\",\"\\\\n\")");
w.s_fa=new Function("f","var s=f.indexOf('(')+1,e=f.indexOf(')'),a='',c;while(s>=0&&s<e){c=f.substring(s,s+1);if(c==',')a+='\",\"';else if((\"\\n\\r\\t \").indexOf(c)<0)a+=c;s++}return a?'\"'+a+'\"':"
+"a");
w.s_ft=new Function("c","c+='';var s,e,o,a,d,q,f,h,x;s=c.indexOf('=function(');while(s>=0){s++;d=1;q='';x=0;f=c.substring(s);a=s_fa(f);e=o=c.indexOf('{',s);e++;while(d>0){h=c.substring(e,e+1);if(q){i"
+"f(h==q&&!x)q='';if(h=='\\\\')x=x?0:1;else x=0}else{if(h=='\"'||h==\"'\")q=h;if(h=='{')d++;if(h=='}')d--}if(d>0)e++}c=c.substring(0,s)+'new Function('+(a?a+',':'')+'\"'+s_fe(c.substring(o+1,e))+'\")"
+"'+c.substring(e+1);s=c.indexOf('=function(')}return c;");
c=s_d(c);if(e>0){a=parseInt(i=v.substring(e+5));if(a>3)a=parseFloat(i)}else if(m>0)a=parseFloat(u.substring(m+10));else a=parseFloat(v);if(a>=5&&v.indexOf('Opera')<0&&u.indexOf('Opera')<0){w.s_c=new Function("un","pg","ss","var s=this;"+c);return new s_c(un,pg,ss)}else s=new Function("un","pg","ss","var s=new Object;"+s_ft(c)+";return s");return s(un,pg,ss)};

// IP check:
s.restrictedAddresses = "213.125.36.82,81.18.240.134,81.89.133.149,216.139.219.45,202.51.170.6,66.230.202.37,81.89.133.150,81.3.6.130,193.93.175.200,72.9.104.178,64.235.53.60,216.151.147.33,69.94.133.36,115.124.103.35,85.214.137.114,66.199.175.26,66.11.155.242,84.45.45.98,88.208.222.90,77.73.102.87,112.140.184.249,210.52.223.40,83.233.30.119,82.149.231.66,187.45.182.178,89.207.130.76,84.20.5.145,216.7.188.180,109.73.160.142,216.151.1.166,69.147.236.106,94.103.100.197,72.249.0.93,178.32.92.249,85.153.34.10,151.1.182.141,208.118.245.219,202.87.33.91";

if (typeof(AS_WA.platenumber) != "undefined" && AS_WA.platenumber == "05jbk9") {
	s.c_w("s_norequest", "1", 0);
}else{
	s.c_w("s_norequest", "", 0);
}

if (typeof(AS_WA.ipaddress) != "undefined" && AS_WA.ipaddress != "") {
	s.arrRestrictedAddresses = s.restrictedAddresses.split(",");
	var length = s.arrRestrictedAddresses.length;
	for (var i=0;i<length;i++) {
		if (s.arrRestrictedAddresses[i] == AS_WA.ipaddress) {
			s.c_w("s_norequest", "1", 0);
		}
	}
}
var noRequest = s.c_r("s_norequest");
// Send the request to Omniture:
if (typeof(noRequest) != "undefined" && noRequest != "1") {
	var s_code = s.t();
	if (s_code) 
		document.write(s_code);
}