

var mouc=""
var movc="00C000"

function mou(n){n.style.backgroundColor=mouc}
function mov(n){n.style.backgroundColor=movc}


function start()
{
//autosize()

pagecounter()
}


// page autosize

var sizefactor=1
var tw=0
var mw=0


function autosize()
{

if (! document.getElementsByTagName){alert("Your Browser is not compatible with webpage AutoSize(tm)"); return;}

var cw=0

if(top.document.body && typeof(top.document.body.clientWidth)=='number'){cw=top.document.body.clientWidth} // NS7+, IE5+
else if(typeof(top.innerWidth)=='number'){cw=top.innerWidth} // NS4x, 6x, CS7, Opera

if((cw>820)||(cw<778)){

sizefactor=cw/780

var w=0
var ih=0
mw=0
tw=0

for(i=0; i<document.images.length; i++){
document.images[i].width=Math.round(document.images[i].width * sizefactor)
document.images[i].height=Math.round(document.images[i].height * sizefactor)
}

document.body.leftMargin=(document.body.leftMargin * sizefactor)
document.body.rightMargin=(document.body.rightMargin * sizefactor)
document.body.topMargin=(document.body.topMargin * sizefactor)

var size
var eachElement
var fontElement=document.getElementsByTagName("font")
for (i=0; i<fontElement.length; i++)
{
eachElement=fontElement[i]
// NS7, Opera
if (document.defaultView){size=document.defaultView.getComputedStyle(eachElement, null).getPropertyValue("font-size")}
// IE6
else if (eachElement.currentStyle){size=eachElement.currentStyle.fontSize}
size=size.substr(0,size.length-2)
eachElement.style.fontSize=Math.round(size*sizefactor)+"px"
}
}
}


function sizechange()
{
l=document.location
top.location=l
}

// page read counter

function pagecounter()
{

server="www.wvptv.co.uk"

if(counterfile>"a.js"){
counterwidth=parseInt(64*sizefactor,10)
counterheight=parseInt(18*sizefactor,10)
counterfontsize=parseInt(12*sizefactor,10)
cp=document.getElementById('counter')
cp.innerHTML='<IFRAME SRC=\"http:\/\/'+server+'\/cgi-bin\/counter.pl?countfile='+counterfile+'&fsize='+counterfontsize+'px&fcolor=000000&fweight=400&bgcolor=000000&mouseovercolor=FFFFFF&totalcountfile='+totalcounter+'\" FRAMEBORDER=0 ALLOWTRANSPARENCY="true" SCROLLING=NO WIDTH='+counterwidth+' HEIGHT='+counterheight+' marginHeight=0 marginWidth=0><\/IFRAME>'
}
}

