function DcsInit(){
    //N Lattimer 30 March 2010 
    //New test webtrends profile created.  By updating the dcsid variable depending on the current URL
    //then should be able to write info to the production or test profile dynamically
    var currentURL = document.URL
    if (currentURL.toLowerCase().indexOf("localhost",0) != -1)
    {
        //Development machines. 
        //Don't write any webtrends data for the test site atm
        this.dcsid="";
    }
    else if (currentURL.toLowerCase().indexOf("testservice",0) != -1)
    {
        
        //Write to test WebTrends profile        
        this.dcsid="dcsp3czp000000gswwuxdv7hf_7t7f";
    }
    else
    {
        //Production site. Write to production WebTrends profile
        this.dcsid="dcshl8rkc10000wcvxbqpvfe0_6y4j";
    }
    
	
	this.domain="webtrends.bdk.com";
	this.enabled=true;
	this.exre=(function(){
		if (window.RegExp){
			return(new RegExp("dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(cfg)|(redirect)|(cip)","i"));
		}
		else{
			return("");
		}
	})();
	this.fpc="WT_FPC";
	this.fpcdom="";
	this.i18n=false;
	this.images=[];
	this.index=0;
	this.qp=[];
	this.re=(function(){
		if (window.RegExp){
			return(this.i18n?{"%25":/\%/g}:{"%09":/\t/g,"%20":/ /g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g,"%22":/\"/g,"%7F":/\x7F/g,"%A0":/\xA0/g});
		}
		else{
			return("");
		}
	})();
	this.timezone=-5;
	this.trackevents=true;
	var t=this;
    (function(){
        if (t.enabled&&(document.cookie.indexOf(t.fpc+"=")==-1)&&(document.cookie.indexOf("WTLOPTOUT=")==-1)){
            document.write("<scr"+"ipt type='text/javascript' src='"+"http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+t.domain+"/"+t.dcsid+"/wtid.js"+"'><\/scr"+"ipt>");
        }
	})();
}
var DCS={};
var WT={};
var DCSext={};
var dcsInit=new DcsInit();
