imgPath = "/tryaolfree/wr6_cntrl/images/";
imgArray = new Array();
imgArray[0] = new Array('header_music.gif','text_music.gif')
imgArray[1] = new Array('header_express.gif','text_express.gif');
imgArray[2] = new Array('header_comm.gif','text_comm.gif');
imgArray[3] = new Array('header_addonsec.gif','text_addonsec.gif');


function sh(w) {
	document.getElementById("iH3").style.backgroundImage = "url(" + imgPath + imgArray[w][0] + ")";
	document.getElementById("iH4").style.backgroundImage = "url(" + imgPath + imgArray[w][1] + ")";
}

function hd(w) {
	document.getElementById("iH3").style.backgroundImage = "url(" + imgPath + "header_builtinsec.gif)";
	document.getElementById("iH4").style.backgroundImage = "url(" + imgPath + "text_builtinsec.gif)";
}

scrollbar = "no";
resize = "no";
function wr6_openWin(wdth,hght,tp,lft,url,wName,scrollbar,resize) {
	xWin  = window.open(url,wName,"width=" + wdth + ",height=" + hght + ",top=" + tp + ",left=" + lft + ",scrollbars=" + scrollbar +",resizable=" + resize);
	document.body.onclick = function() { try { xWin.close(); } catch(err) { } }
}

function wr6_goAim() {
	getPopUp=0;
	document.forms[0].goaim.value="1";
	document.forms[0].submit();
}

function wr6_cancel() {
	getPopUp=0;
	document.forms[0].cancel="1";
	document.forms[0].submit();
}

function wr6_selectIt(fName,which) {
	document.forms[0].elements[fName][which].checked=true;
	return;
}

function wr6_t4Exit(sn,code) {
	document.applets[0].WebRegComplete(sn,code);
}

function wr6_t4cShowHelp() {
	document.getElementById("sidebar").style.display = "block";
}

function wr6_t4Stop(code) {
	document.applets[0].StopPosting(code);
	setTimeout("document.applets[0].WebRegComplete('','2')", 60000);
}

function submitGCPDPixel () {
	// used to display the poindexter img for the Get Connected link click
	var d = new Date();
	var rid = d.getTime();
	url = "<IMG height=1 width=1 border=0 src='https://https.edge.ru4.com/smartserve/ad?placement=pl-0336-002&invocation=4000&rid=" + rid +"'>"
	document.write(url);
}

/// connection speed methods
x = new Date();
xTime = x.getTime();
var kbps;

function wr6_markTime(actionMethod) {
	y = new Date();
	yTime = y.getTime();
	tTime = (yTime-xTime)/1000;
 
	kbps = Math.floor(50/tTime);
 	eval(actionMethod + "(" + kbps + ")");
}

function wr6_getConnSpeed(actionMethod) {
	x=document.body.appendChild(document.createElement("img"));
	x.onload=function() { wr6_markTime(actionMethod); }
	x.width="1";
	x.height="1";
	x.src="https://free.aol.com/static/gr/speed.jpg?z=" + Math.floor(Math.random()*1000);
}

// end connection speed methods
