﻿function ClickDensityCommon(){this.bE;this.clickdensityVersion=2006102401;this.bx;this.bG=null;this.bK;if(window.location.protocol=="https:")this.bE="https://my.clickdensity.com/Default.aspx?version="+this.clickdensityVersion+"&";else this.bE="http://r.clickdensity.com/Default.aspx?version="+this.clickdensityVersion+"&";this.bu=function(url){if((window.location.protocol=="http:")||(window.location.protocol=="https:")){var bF=document.createElement("script");bF.setAttribute("type","text/javascript");bF.setAttribute("src",url);document.getElementsByTagName("head")[0].appendChild(bF);return true;}else{return false;}};this.ad=function(){if(window.location.protocol=="https:")this.bu('https://j.clickdensity.com/abtest.js');else this.bu('http://j.clickdensity.com/abtest.js');if(window.location.protocol=="https:")this.bu('https://j.clickdensity.com/clicks.js');else this.bu('http://j.clickdensity.com/clicks.js');};this.getCookie=function(C){var aP=document.cookie.split("; ");for(var i=0;i<aP.length;i++){var aR=aP[i].split("=");if(C==aR[0])return aR[1];}return null;};this.createSession=function(){var R='';var X='';try{var referrer=document.referrer.split('?');var R=referrer[0];var X=referrer[1]=='undefined'?null:referrer[1];}catch(bg){}this.fontSize=this.aM();var w='siteID='+this.bK+'&srx='+window.screen.width+'&sry='+window.screen.height+'&pageHost='+window.location.hostname+'&referrerPath='+R+'&referrerQS='+X;if(this.bA==null)w+='&page='+escape(window.location.pathname+window.location.search);else w+='&pageID='+this.bx;if(!isNaN(this.fontSize))w+='&fs='+this.fontSize;return this.bH(w);};this.aM=function(){var aF=document.body;var ar;if(typeof(aF.document)=='undefined')ar=aF.ownerDocument;else ar=aF.document;var at=ar.createElement("div");at.style.visibility="hidden";at.style.position="absolute";at.style.left="0px";at.style.top="0px";at.style.height="1px";at.style.width="10em";at.style.margin="0px";at.style.padding="0px";aF.appendChild(at);var aW=parseInt(at.offsetWidth/10);aF.removeChild(at);return aW;};this.bH=function(w){return this.bu(this.bE+w);};this.setSession=function(bI,bz){this.bG=bI;document.cookie="CDSessionID="+bI+"; ";if(this.bx==null)this.bx=bz;if(this.bG>0){this.ad();}return null;}};function clickdensity_init(){try{if(arguments.callee.aV)return;arguments.callee.aV=true;if(typeof(clickdensity_siteID)=='undefined')clickdensity_siteID=siteID;if(typeof(clickdensity_keyElement)=='undefined')clickdensity_keyElement=keyElement;if(typeof(clickdensity_pageID)=='undefined'&&typeof(by)!='undefined')clickdensity_pageID=by;clickdensityCommon=new ClickDensityCommon();if(typeof(clickdensity_pageID)!='undefined')clickdensityCommon.bx=clickdensity_pageID;if(typeof(clickdensity_siteID)!='undefined')clickdensityCommon.bK=clickdensity_siteID;if(typeof(clickdensity_SessionID)!='undefined'){clickdensityCommon.bG=clickdensity_SessionID;if(typeof(clickdensity_aID)!='undefined')if(window.location.protocol=="https:")clickdensityCommon.bu('https://j.clickdensity.com/abtest.js');else clickdensityCommon.bu('http://j.clickdensity.com/abtest.js');}else clickdensityCommon.bG=clickdensityCommon.getCookie("CDSessionID");if(clickdensityCommon.bG==null)clickdensityCommon.createSession();else{if(clickdensityCommon.bG>0){clickdensityCommon.ad();}}}catch(e){}};var clickdensity_DomLoaded={onload:[],loaded:function(){if(arguments.callee.aV)return;arguments.callee.aV=true;for(i=0;i<clickdensity_DomLoaded.onload.length;++i)clickdensity_DomLoaded.onload[i]();},load:function(aS){this.onload.push(aS);if(document.addEventListener)document.addEventListener("DOMContentLoaded",clickdensity_DomLoaded.loaded,null);if(/KHTML|WebKit/i.test(navigator.userAgent))var aQ=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(aQ);delete aQ;clickdensity_DomLoaded.loaded();}},10);var Z=window.onload;if(typeof Z!='function')window.onload=clickdensity_DomLoaded.loaded;else window.onload=function(){Z();clickdensity_DomLoaded.loaded();}}};var bp;var clickdensityCommon;var clickdensityABTest;try{clickdensity_DomLoaded.load(clickdensity_init);}catch(e){} 