var loadfile='web/js/s_code.js';
function setCookie(name, value, expire )
{document.cookie = name + "=" + escape(value) + ((expire==null ? "":(";expires=" + expire)));}
function getExpireDate(){var expires = new Date();expires.setTime((new Date().getTime()) + 1000*60*60*24*30);return expires;}//expire 30 days
// ConnectionSpeed Detection section
var datasize,startTime=0,endTime=0,date=0,textMessage="",conntype = "",throughput=0;
//Throughput calc function
function calcThroughput() {var dTMil = endTime - startTime;var dTSec = dTMil/1000;var bits = (datasize*10);   // convert Bytes to bits,add start and stop bits
kbits = Math.round(bits/1000);throughput = kbits/(dTSec);throughput = throughput * .93;  // account for IP packet header overhead - averages about 7%
if(throughput > 499)
{		conntype = "HighBroadband";
		throughput = Math.floor(throughput/100)*100;
} 
else if (throughput > 49)
{		conntype = "LowBroadband";
		throughput = Math.floor(throughput/25)*25;
} 
else
{		conntype = "Dialup";
		throughput = Math.round(throughput/5)*5;
	}
;
setCookie("MediaThroughput", throughput, getExpireDate());setCookie("ConnectionType", conntype, getExpireDate());
textMessage = "Time to load: (msec): <B>" + dTSec + "("+dTMil+")"+"</B><BR>kbits:<B> " + kbits + "</B><BR>Throughput (kbps): <B>" + throughput + "</B><BR>Connection Type: <B>" + conntype + "</B>";
return conntype,throughput};
var rand=new Date().getTime();
startTime=rand;datasize=17483
loadfile='"'+loadfile+'?'+startTime+'"';
document.write('<sc'+'ript type="text/javascript" language="JavaScript" src='+loadfile+'><\/sc'+'ript>');
function firetag()
{var s_code=s.t();if(s_code)document.write(s_code)};