/* Copyright: Virgin net || Author: Laurent Muchacho */function Browser(){var b=navigator.appName;if(b.indexOf('Netscape')!=-1)this.b="ns";else if((b=="Opera")||(navigator.userAgent.indexOf("Opera")>0))this.b="opera";else if(b=="Microsoft Internet Explorer")this.b="ie";if((!b)||(!document.getElementById)){top.location.href="http://www.virgin.net/customers/incompatible.html";}this.version=navigator.appVersion;this.v=parseInt(this.version);this.ns=(this.b=="ns"&&this.v>=4);this.ns4=(this.b=="ns"&&this.v==4);this.ns6=(this.b=="ns"&&this.v==5);this.ie=(this.b=="ie"&&this.v>=4);this.ie4=(this.version.indexOf('MSIE 4')>-1);this.ie5=(this.version.indexOf('MSIE 5')>-1);this.ie55=(this.version.indexOf('MSIE 5.5')>-1);this.ie6=(this.version.indexOf('MSIE 6.0')>-1);this.opera=(this.b=="opera");this.safari=(this.version.indexOf('Safari')>-1);this.dom=(document.createElement&&document.appendChild&&document.getElementsByTagName)?true:false;this.def=(this.ie||this.dom);var ua=navigator.userAgent.toLowerCase();this.win=(ua.indexOf("win")>-1);this.mac=(ua.indexOf("mac")>-1);if(ua.indexOf("win")>-1)this.platform="win32";else if(ua.indexOf("mac")>-1)this.platform="mac";else this.platform="other";}is=new Browser();


// to load multiple function at the same time without conflict
function initOn(){
	window.onload = initGo;
}

function initGo(){
	for(var i = 0;i < init.length;i++)
		eval(init[i]);
}

function initAdd(func){
	init[init.length] = func;
}

var init = new Array();	

//sCookie: will set a cookie on the client machine the parameters are cN = cookie name, cV = cookie value, nD = the number of days the cookie will remain on the client machine
var now = new Date();
function sCookie(cN,cV,nD){
    var exp = new Date();
    if (nD==null || nD==0) nD=1;
    exp.setTime(now.getTime() + 3600000*24*nD);
    document.cookie = cN + "=" + escape(cV) + ";expires="+exp.toGMTString()+"; path=/";
};
//getCookie: get a cookie from the client machine and return its value it return false if it can't find the cookie
function gCookie(cN){
	var c = document.cookie;
	if (c.indexOf(cN) != -1){
		var startPos = c.indexOf(cN) + cN.length+1 ;
		var endPos = c.indexOf(";",startPos);
		if (endPos == -1) endPos = c.length;
		return unescape(c.substring(startPos,endPos));
	}else{
		return false; // the cookie couldn't be found! it was never set before, or it expired.
	}
};
function cCookie(cN, cV){
    var exp = new Date();
    exp.setTime(now.getTime() -1);
    document.cookie = cN + "=" + escape(cV) + ";expires="+exp.toGMTString()+"; path=/";
}
function QueryString(param){
	var loca = document.location.href;
	if(loca.indexOf('?' + param + '=')>-1 || loca.indexOf('&' + param + '=')>-1){
		var qString = loca.split('?');
		var keyVal = qString[1].split('&');
		for(var i=0;i<keyVal.length;i++){
			if(keyVal[i].indexOf(param + '=')==0){
				var val = keyVal[i].split('=');
				return val[1];
			}
		}
		return false;
	}else{
		return false;
	}
};

// Cookie tracking starts here
if(QueryString('buspart')){
    var tV = gCookie('vm_buspart');
    // alert(tV)
    if(tV){cCookie('vm_buspart',tV)}    
    buspart = QueryString('buspart');
    tV = sCookie('vm_buspart',buspart,30)
    // alert(gCookie('vm_buspart'))
}

// Hitbox code

var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}
var hbx=_hbEvent("pv");hbx.vpc="HBX0200u";hbx.gn="a.telewest.co.uk";

//BEGIN EDITABLE SECTION
//CONFIGURATION VARIABLES
hbx.acct="DM561111LHMN";//ACCOUNT NUMBER(S)
hbx.pn="PUT+PAGE+NAME+HERE";//PAGE NAME(S)
hbx.mlc="CONTENT+CATEGORY";//MULTI-LEVEL CONTENT CATEGORY
hbx.pndef="title";//DEFAULT PAGE NAME
hbx.ctdef="full";//DEFAULT CONTENT CATEGORY

hbx.lt="auto";//LINK TRACKING


// Hitbox ends



