<!-- START OF SmartSource Data Collector TAG -->
<!-- Copyright 2002 NetIQ Corporation -->
<!-- V6.0a -->
<!-- $DateTime: 2003/03/30 13:47:08 $ -->
<!-- $Revision: #21 $ -->

<!-- dcstexlw310000o2iu55v0isg_8f3c  is the unique SDC ID in use for www.allianzengineering.co.uk/energy -->
<!-- It is a custom key prepended to custom log files, created from hits to the site, -->
<!-- which are re-mapped and directed to the SDC server, for web page instrumenting & data collection -->

var gImages=new Array;
var gIndex=0;
var DCS=new Object();
var WT=new Object();
var DCSext=new Object();

var gDomain="www.allianzcornhilltrends.co.uk";
var gDcsId="dcstexlw310000o2iu55v0isg_8f3c";

if (gDcsId==""){
	var gTagPath=gDomain;
}
else{
	var gTagPath=gDomain+"/"+gDcsId;
}

function browserType() {
	var os = "Unknown";

	var agt=navigator.userAgent.toLowerCase();

	this.name = navigator.appName
	    this.major = parseInt(navigator.appVersion);
	    this.minor = parseFloat(navigator.appVersion);
	    this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
	                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
	                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
	    this.nav2 = (this.nav && (this.major == 2));
	    this.nav3 = (this.nav && (this.major == 3));
	    this.nav4 = (this.nav && (this.major == 4));
	    this.nav4up = (this.nav && (this.major >= 4));
	    this.navonly      = (this.nav && ((agt.indexOf(";nav") != -1) ||
	                          (agt.indexOf("; nav") != -1)) );
	    this.nav6 = (this.nav && (this.major == 5));
	    this.nav6up = (this.nav && (this.major >= 5));
	    this.gecko = (agt.indexOf('gecko') != -1);
	    this.ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
	    this.ie3    = (this.ie && (this.major < 4));
	    this.ie4    = (this.ie && (this.major == 4) && (agt.indexOf("msie 4")!=-1) );
	    this.ie4up  = (this.ie  && (this.major >= 4));
	    this.ie5    = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
	    this.ie5_5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
	    this.ie5up  = (this.ie  && !this.ie3 && !this.ie4);
	    this.ie5_5up =(this.ie && !this.ie3 && !this.ie4 && !this.ie5);
	    this.ie6    = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) );
	    this.ie6up  = (this.ie  && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5);
	    this.aol   = (agt.indexOf("aol") != -1);
	    this.aol3  = (this.aol && this.ie3);
	    this.aol4  = (this.aol && this.ie4);
	    this.aol5  = (agt.indexOf("aol 5") != -1);
	    this.aol6  = (agt.indexOf("aol 6") != -1);
	    this.opera = (agt.indexOf("opera") != -1);
	    this.opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
	    this.opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
	    this.opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
	    this.opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
	    this.opera5up = (this.opera && !this.opera2 && !this.opera3 && !this.opera4);
	    this.webtv = (agt.indexOf("webtv") != -1);
	    this.TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1));
	    this.AOLTV = this.TVNavigator;
	    this.hotjava = (agt.indexOf("hotjava") != -1);
	    this.hotjava3 = (this.hotjava && (this.major == 3));
	    this.hotjava3up = (this.hotjava && (this.major >= 3));
	    this.DOM = (document.getElementById ? true : false);
	this.screenWidth = window.screen.width
	this.screenHeight = window.screen.height
	this.java = navigator.javaEnabled()
	if(navigator.userAgent.indexOf('Win')!=-1) {
		if(navigator.userAgent.indexOf('95')!=-1) os = "Windows95"; 
		else if(navigator.userAgent.indexOf('98')!=-1) os = "Windows95"; 
		else if(navigator.userAgent.indexOf('Win')!=-1) os = "Windows3.1 or NT";
	}
	else if(navigator.userAgent.indexOf('Mac')!=-1) os = "Macintosh";
	this.os = os



    // check on version of javascript
    if (this.nav2 || this.ie3) this.js = 1.0;
    else if (this.nav3) this.js = 1.1;
    else if (this.opera5up) this.js = 1.3;
    else if (this.opera) this.js = 1.1;
    else if ((this.nav4 && (this.minor <= 4.05)) || this.ie4) this.js = 1.2;
    else if ((this.nav4 && (this.minor > 4.05)) || this.ie5) this.js = 1.3;
    else if (this.hotjava3up) this.js = 1.4;
    else if (this.nav6 || this.gecko) this.js = 1.5;
    // NOTE: In the future, update this code when newer versions of JS
    // are released. For now, we try to provide some upward compatibility
    // so that future versions of Nav and IE will show they are at
    // *least* JS 1.x capable. Always check for JS version compatibility
    // with > or >=.
    else if (this.nav6up) this.js = 1.5;
    // NOTE: ie5up on mac is 1.4
    else if (this.ie5up) this.js = 1.3

    // HACK: no idea for other browsers; always check for JS version with > or >=
    else this.js = 0.0;


    gVersion = this.js;

    return os;
}

// added by John Wood
function dcsMultiTrack(){

if (arguments.length%2==0){

for (var i=0;i<arguments.length;i+=2){

if (arguments[i].indexOf('WT.')==0){

WT[arguments[i].substring(3)]=

arguments[i+1];

}

else if (arguments[i].indexOf('DCS.')==0){

DCS[arguments[i].substring(4)]=

arguments[i+1];

}

else if (arguments[i].indexOf('DCSext.')==0){

DCSext[arguments[i].substring(7)]=

arguments[i+1];

}

}

var dCurrent=new Date();

DCS.dcsdat=dCurrent.getTime();

dcsTag(gTagPath);

}

}

// End dcsMultiTrack Function
// added by John Wood



function dcsVar(){
	var dCurrent=new Date();
	WT.tz=dCurrent.getTimezoneOffset()/60*-1;
	WT.bh=dCurrent.getHours();
	WT.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;
	if (typeof(screen)=="object"){
		WT.cd=screen.colorDepth;
		WT.sr=screen.width+"x"+screen.height;
	}
	if (typeof(navigator.javaEnabled())=="boolean"){
		WT.jo=navigator.javaEnabled()?"Yes":"No";
	}
	WT.ti=document.title;
	WT.js="Yes";

    WT.os=browserType();


	if (typeof(gVersion)!="undefined"){
		WT.jv=gVersion;
	}
//	WT.sp="@@SPLITVALUE@@";
	DCS.dcsuri=window.location.pathname;
	DCS.dcsqry=window.location.search;
	if ((window.document.referrer!="")&&(window.document.referrer!="-")){
		if (!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){
			DCS.dcsref=window.document.referrer;
		}
	}
	DCS.dcssip=window.location.hostname;
	DCS.dcsdat=dCurrent.getTime();
}

function A(N,V){
	return "&"+N+"="+escape(V);
}

function dcsCreateImage(dcsSrc){
	if (document.images){
		gImages[gIndex]=new Image;
		gImages[gIndex].src=dcsSrc;
		gIndex++;
	}
	else{
		document.write('<IMG BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1" SRC="'+dcsSrc+'">');
	}
}

function dcsMeta(){
	var myDocumentElements;
	if (document.all){
		myDocumentElements=document.all.tags("meta");
	}
	else if (document.documentElement){
		myDocumentElements=document.getElementsByTagName("meta");
	}
	if (typeof(myDocumentElements)!="undefined"){
		for (var i=1;i<=myDocumentElements.length;i++){
			myMeta=myDocumentElements.item(i-1);
			if (myMeta.name){
				if (myMeta.name.indexOf('WT.')==0){
					WT[myMeta.name.substring(3)]=myMeta.content;
				}
				else if (myMeta.name.indexOf('DCSext.')==0){
					DCSext[myMeta.name.substring(7)]=myMeta.content;
				}
				else if (myMeta.name.indexOf('DCS.')==0){
					DCS[myMeta.name.substring(4)]=myMeta.content;
				}
			}
		}
	}
}
//var P="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+TagImage+"/dcs.gif?";
//www.allianzcornhilltrends.co.uk/dcs.gif
//var P="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://194.34.174.11/dcs.gif?";
function dcsTag(TagImage){
	var P="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+TagImage+"/dcs.gif?";
	for (N in DCS){
		if (DCS[N]) {
			P+=A(N,DCS[N]);
		}
	}
	for (N in WT){
		if (WT[N]) {
			P+=A("WT."+N,WT[N]);
		}
	}
	for (N in DCSext){
		if (DCSext[N]) {
			P+=A(N,DCSext[N]);
		}
	}
	if (P.length>2048&&navigator.userAgent.indexOf('MSIE')>=0){
		P=P.substring(0,2040)+"&WT.tu=1";
	}
	dcsCreateImage(P);
}

dcsVar();
dcsMeta();
dcsTag(gTagPath);



