/* Copyright: Virgin net */var d=document;function Page(name){this.name=name;this.fn_load=new Array();};Page.prototype.load=function(fn_name){this.fn_load[this.fn_load.length]=fn_name;};Page.prototype.loader=function(){for(var i=0;i<this.fn_load.length;i++){eval(this.fn_load[i]);}};var page=new Page('page');var cursor=new Object();function mouseMove(e){cursor.x=(is.ns)?e.pageX:event.x+document.body.scrollLeft;cursor.y=(is.ns)?e.pageY:event.y+document.body.scrollTop;return true;};var now=new Date();var todayDate=now.getDate();var todayDay=now.getDay();var week_days=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');var week_dayNum_abrev=new Array('st','nd','rd','th');function get_week_day_abrev(dayNum){var abrv=(dayNum.toString().match(/1$/))?week_dayNum_abrev[0]:(dayNum.toString().match(/2$/))?week_dayNum_abrev[1]:(dayNum.toString().match(/13$/))?week_dayNum_abrev[3]:(dayNum.toString().match(/3$/))?week_dayNum_abrev[2]:week_dayNum_abrev[3];return abrv;};function addDays(myDate,days){return new Date(myDate.getTime()+days*24*60*60*1000);};var todayMonth=now.getMonth();function Month(name,numOfDay){this.name=name;this.dayNum=numOfDay;this.numOfDay=getNumOfDay;};function getNumOfDay(year){var requestedYear=(year)?new Year(year):todayYear;if(requestedYear.leapYear&&this.dayNum==28){return 29;}else{return this.dayNum;}};var month=new Array();month[month.length]=new Month('January',31);month[month.length]=new Month('February',28);month[month.length]=new Month('March',31);month[month.length]=new Month('April',30);month[month.length]=new Month('May',31);month[month.length]=new Month('June',30);month[month.length]=new Month('July',31);month[month.length]=new Month('August',31);month[month.length]=new Month('September',30);month[month.length]=new Month('October',31);month[month.length]=new Month('November',30);month[month.length]=new Month('December',31);function Year(yearNum){this.yearNum=(yearNum<1900)?yearNum+1900:yearNum;var leapNum=new Number((this.yearNum-4)/4);this.leapYear=(leapNum.toString().indexOf('.')==-1)?true:false;};var todayYear=new Year(now.getYear());function getO(id,css){var o=(is.ie&&is.mac)?d.all[id]:(is.ns4)?d.layers[id]:(d.getElementById&&css)?d.getElementById(id).style:(d.getElementById)?d.getElementById(id):(css)?d.all[id].style:d.all[id];return o;};function flipImg(imgName,nest){var obj=createImgObj(imgName,nest);var imgSrc=obj.src;var iN=imgSrc.split('/');var iName=iN[iN.length-1].split('.');if(iName[0].indexOf("_sel")==-1){var imgOn=(iName[0].indexOf("_on")>-1)?true:false;var state=imgSrc.replace('.gif','_on.gif');if(imgOn){state=imgSrc.replace('_on.gif','.gif');}obj.src=state;return true;}};var preloadedImg=[];function preloadImg(imgO){if(typeof imgO.preloaded=='undefined'){imgO.preloaded=true;var imgSrc=imgO.src;pAImgL=preloadedImg.length;preloadedImg[pAImgL]=new Image();preloadedImg[pAImgL].src=imgSrc.replace('.gif','_on.gif');}};function createImgObj(imgId,nest){var obj=(is.ns4&&nest)?d.layers[nest].document.images[imgId]:d.images[imgId];return obj;};function getImgO(imgId){return d.images[imgId];};function writeInO(o,sTxt){if(is.ns4){o.document.open();o.document.write(sTxt);o.document.close();}else{o.innerHTML=sTxt;}};function getWidth(o){var w=(is.ns4)?o.clip.width:o.offsetWidth;return w;};function getHeight(o){var h=(is.ns4)?o.clip.height:o.offsetHeight;return h;};function getAbsX(elt){return parseInt(elt.x)?elt.x:getAbsPos(elt,"Left");};function getAbsY(elt){return parseInt(elt.y)?elt.y:getAbsPos(elt,"Top");};function getAbsPos(elt,which){iPos=0;while(elt!=null){iPos+=elt["offset"+which];elt=elt.offsetParent;}return iPos;};function apply_clip(obj,top,right,bottom,left){if(is.ns4){obj.clip.top=parseInt(top);obj.clip.right=parseInt(right);obj.clip.bottom=parseInt(bottom);obj.clip.left=parseInt(left);}else{obj.clip='rect('+parseInt(top)+'px '+parseInt(right)+'px '+parseInt(bottom)+'px '+parseInt(left)+'px)';}};function get_clip(obj,which){var clipArray=new Array();if(is.ns4){clipArray['top']=obj.clip.top;clipArray['right']=obj.clip.right;clipArray['bottom']=obj.clip.bottom;clipArray['left']=obj.clip.left;}else{var re=/px,/gi;var objClip=obj.clip.replace(re,"px");var splitClip=objClip.split("rect(")[1].split(")")[0].split("px");clipArray['top']=splitClip[0];clipArray['right']=splitClip[1];clipArray['bottom']=splitClip[2];clipArray['left']=splitClip[3];}return parseInt(clipArray[which]);};function apply_opacity(obj,opacity){if(is.ie){if(is.ie5){obj.style.filter='alpha(opacity='+opacity+')';}else{obj.filters.alpha.opacity=opacity;}return true;}else if(is.dom){obj.style.MozOpacity=(opacity/100);return true;}};function get_opacity(obj){if(is.ie){if(is.ie5){var ft=obj.style.filter;ft=ft.replace(/([\w-_]+\()*([\w-_]+\=)/,'');ft=ft.replace(/\)/,'');return ft;}else{return obj.filters.alpha.opacity;}}else if(is.dom){return obj.style.MozOpacity*100;}};function get_randomVal(maxNum){return Math.round(Math.random()*(maxNum));};function img(){var str='<img';var altFlag=true;for(var i=0;i<arguments.length;i++){str+=' '+arguments[i];if(arguments[i].indexOf('alt=')>-1){altFlag=false;}}if(altFlag){str+=' alt=""';}str+='>';return str;};function spacer(){var str='<img src="http://www.virgin.net/pix/dot.gif"';var altFlag=true;for(var i=0;i<arguments.length;i++){str+=' '+arguments[i];if(arguments[i].indexOf('alt=')>-1){altFlag=false;}}if(altFlag){str+=' alt=""';}str+='>';return str;};function posAbs(){return 'position:absolute';};function left(L){var iMargin=(typeof sMrg=='undefined')?0:sMrg;return 'left:'+(iMargin+L);};function Top(T){return 'top:'+T;};function width(W){return 'width:'+W;};function height(H){return 'height:'+H;};function bgC(hex){return 'background-color:#'+hex;};function visi(val){return 'visibility:'+val;};function getDim(str){var a=str.split(':');return a[1];};function writeCss(){var str="";if(arguments[0]=='start'){str='<style type="text/css">';return str;}if(arguments[0]=='end'){str='</style>';return str;}str=arguments[0]+' {';var W=false;var H=false;var C=true;for(var i=1;i<arguments.length;i++){if(arguments[i].indexOf('width')!=-1){W=getDim(arguments[i]);}if(arguments[i].indexOf('height')!=-1){H=getDim(arguments[i])}if(arguments[i].indexOf('clip')!=-1){C=false;}var arg;if(arguments[i].toLowerCase().indexOf('opacity')!=-1){if(!is.ns4&&!is.ie4){arg=arguments[i]+';';}}else if(arguments[i].indexOf('background-color')>-1){if(is.ns4){arg='layer-'+arguments[i]+';'+arguments[i]+';';}else{arg=arguments[i]+';';}}else{arg=arguments[i]+';';}str+=arg;}if(W&&H&&C){str+='clip:rect(0 '+W+' '+H+' 0);';}str+='}';return str;};function writeStyle(){var str="";str+='<style type="text/css">'+arguments[0]+' {';for(var i=1;i<arguments.length;i++){var arg=(arguments[i].indexOf('background-color')>-1&&is.ns4)?'layer-'+arguments[i]+';'+arguments[i]:arguments[i];str+=arg+';';}str+='}</style>';d.write(str);};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;}};function get_location(loca,param){var strLocation=(loca)?loca:document.location.href;if(strLocation.indexOf('?')>-1){var aLocation=strLocation.split('?');strLocation=aLocation[0]+'?';if(aLocation[1].indexOf("&")>-1){aaLoca=aLocation[1].split("&");for(var i=0;i<aaLoca.length;i++){if(aaLoca[i].indexOf(param)==-1){if(i>0){strLocation+='&';}strLocation+=aaLoca[i];}}strLocation+='&';}else{if(aLocation[1].indexOf(param)==-1){strLocation+=aLocation[1]+'&';}}}else{strLocation+='?'}return strLocation;};function setCookie(cN,cV,nD){var exp=new Date();if(nD==null||nD==0)nD=1;exp.setTime(now.getTime()+3600000*24*nD);d.cookie=cN+"="+escape(cV)+";expires="+exp.toGMTString();};function getCookie(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;}};function tab_headline(label){var str='<table cellpadding="0" cellspacing="0" border="0" width="100%">'+'<tr height="15">'+'<td bgcolor="'+mCol+'" class="TxtBldFour"><nobr>&nbsp;'+label+'&nbsp;&nbsp;&nbsp;</nobr></td>'+'<td bgcolor="'+mCol+'">'+img('src="http://www.virgin.net/skins/pix/hdr_45degree.gif"','width="20"','height="15"')+'</td>'+'<td width="100%">'+spacer('width="1"','height="1"')+'</td>'+'</tr>'+'<tr>'+'<td bgcolor="'+mCol+'" colspan="3">'+spacer('width="1"','height="1"')+'</td>'+'</tr>'+'</table>'+spacer('height="10"')+'<br>';d.write(str);}