var S_sbt=new Date();S_BTi=S_sbt.getTime(); 
var S_STi=0,S_ULi=0,S_LTi=0,S_FTi=0,S_ITi=0,S_Y='NA',S_mx=0,S_my=0,S_bug='';
function S_domReady()
	{
//S_bug=S_bug+" begin_domReady";alert(S_bug);

	if(document.addEventListener)
		{
//S_bug=S_bug+" addEventListener";alert(S_bug);
		document.addEventListener("DOMContentLoaded", S_BTfn, false);
		}
	else
		{
//S_bug=S_bug+" use_interactive";alert(S_bug);
		document.onreadystatechange = function()
			{
//S_bug=S_bug+" readystate:"+document.readyState;alert(S_bug);
			if(document.readyState == "interactive" || document.readyState == "complete") 
				{
//S_bug=S_bug+" interactive";alert(S_bug);
				S_BTfn();
				}
			}
		}
//S_bug=S_bug+" end_domReady";alert(S_bug);
	}

if(navigator.cookieEnabled) S_domReady();

function S_BTfn()
	{
//S_bug=S_bug+" begin_BTfn";alert(S_bug);
	var S_sbt=new Date();S_BTi=S_sbt.getTime();
//S_bug=S_bug+" S_BTib="+S_BTi;alert(S_bug);
	S_spp();
//S_bug=S_bug+" end_BTfn";alert(S_bug);
	}

function S_mm(e)
	{
	if(!e) e=window.event;
	if(e)
		{
		S_Y=e.clientY;
		if (e.pageX || e.pageY){ S_mx = e.pageX; S_my = e.pageY;}
		else if (e.clientX || e.clientY){S_mx = e.clientX + document.body.scrollLeft;S_my = e.clientY + document.body.scrollTop;}
		}
	}

function S_sul()
	{
	var el=document.createElement("img");
	if(S_LTi!=100)
		{
		var d2 = new Date();
		S_LTi = d2.getTime();
		var S_width="NA";
		if (document.body.clientWidth) {S_width = document.body.clientWidth;}
		el.src="http://www.seconds.com/seconds.png?TTi="+S_TTi+"&S_SearchCount="+S_SearchCount+"&S_SearchTime="+S_SearchTime+"&BTi="+S_BTi+"&ULi="+S_LTi+"&PNa="+S_PageName+"&Width="+S_width+"&Y="+S_Y+"&S_MicroTime="+S_MicroTime+"&MSx="+S_mx+"&MSy="+S_my+"&RFR="+document.referrer;
		}
//S_bug=S_bug+" S_sul";alert(S_bug);
	}

if (window.addEventListener)	
	{
	document.addEventListener("mousemove",S_mm,false);
	}
else if (window.attachEvent)
	{
	document.attachEvent("onmousemove",S_mm);
	}

window.onunload = S_sul;

var S_OLDic=0,S_OLDfc=0,S_IMs="yes",S_IFs="yes", S_PIS=0, S_FIS=0, S_PIC=0, S_FIC=0,S_soj=0,S_noj=0;
var S_globalI=0, S_globalFC=0, S_globalF=0, S_globalIC=0;

//S_bug=S_bug+" begin_shr";alert(S_bug);
S_shr = false;
if (window.XMLHttpRequest)
	{
//S_bug=S_bug+" XHR";alert(S_bug);
	S_shr = new XMLHttpRequest();
	if (S_shr.overrideMimeType) 
		{
		S_shr.overrideMimeType('text/html');
//S_bug=S_bug+" overrideMimeType";alert(S_bug);
		}
	else
		{
//S_bug=S_bug+" don't overrideMimeType";alert(S_bug);
		}
//S_bug=S_bug+" end_FF_shr";alert(S_bug);
	}
else if (window.ActiveXObject)
	{
//S_bug=S_bug+" AXO";alert(S_bug);
	try 
	{
	S_shr = new ActiveXObject("Msxml2.XMLHTTP"); 
	} 
	catch (e)
	 	{
//S_bug=S_bug+" notMsxml2";alert(S_bug);
		try
			{ 
//S_bug=S_bug+" tryMicrosoft";alert(S_bug);				
			S_shr = new ActiveXObject("Microsoft.XMLHTTP");
//if(S_shr!=null) alert (" createdMicrosoft"); 
			} 
		catch (e) {alert("Unable to create AJAX object");}
		}
//S_bug=S_bug+" end_IE_shr";alert(S_bug);
	}

function S_Cimg()
	{
//S_bug=S_bug+" begin_Cimg";alert(S_bug);
	var anc = document.getElementById("scnds");
	if(anc!=null)
		{
		var ia = anc.getElementsByTagName("img");
//S_bug=" "+S_bug+" "+ia[0]+" ";alert(S_bug);

//		if(ia[0].complete) //Line 81
                if(ia[0]!=null) //Line 81
			{
//S_bug=S_bug+ia[0]+" visible";alert(S_bug);
			anc.style.visibility="visible";
			}	
		else 
			{
//S_bug=S_bug+" blank";alert(S_bug);
			anc.innerHTML="";
			}
		}
//S_bug=S_bug+" end_Cimg";alert(S_bug);
	}

function S_img(srv)
	{
//S_bug=S_bug+" begin_img";alert(S_bug);

	var d3 = new Date();
	S_STi = d3.getTime();
	var S_e=document.getElementById("scnds");
		if(S_e!=null) 
			{
			var qstr = "?S_SearchCount="+S_SearchCount+"&TTi="+S_TTi+"&BTi="+S_BTi+"&LTi="+S_LTi+"&ITi="+S_ITi+"&FTi="+S_FTi+"&STi="+S_STi+"&IMs="+S_IMs+"&IFs="+S_IFs+"&PIS="+S_PIS+"&FIS="+S_FIS+"&PNa="+S_PageName+"&OLDfc="+S_OLDfc+"&fc="+S_globalFC+"&f="+S_globalF+"&OLDic="+S_OLDic+"&ic="+S_globalIC+"&i="+S_globalI+"&IMU="+S_ImageURL+"&SVi="+S_shr.getAllResponseHeaders();
//S_bug=" "+S_bug+" e_good";alert(S_bug);
			var S_speed=(S_STi-S_TTi)/1000;

			S_e.innerHTML = "<a href=\"http://www.seconds.com/seconds.html"+qstr+"\">"+S_speed+"<img  id=\"S_img\" src=\"http://www.seconds.com/seconds.gif"+qstr+"\" title=\"S\" alt=\"S\"></a>";
			S_e.style.visibility="hidden";
			}
		else
			{
//S_bug=S_bug+" e_null";alert(S_bug);
			}
		setTimeout("S_Cimg()",3000);
//S_bug=S_bug+" end_img";alert(S_bug);
	}

function S_spp()
	{
//S_bug=S_bug+" begin_spp";alert(S_bug);
	var j = 0;
	S_PIS=0;
	var f = 0;
	var i = 0;
	S_FIS=0;
	var ic = document.getElementsByTagName("img").length;
	if(S_GetImageData!="yes") ic=0;
	if(ic!=0)
		{
//S_bug=S_bug+" images";alert(S_bug);
		var ia = document.getElementsByTagName("img");
		for (i = 0; i < ic; i++){ if (ia[i].complete)j++; S_PIS+=parseInt(ia[i].fileSize);}
		}
	var fc = document.getElementsByTagName("iframe").length;
	if(S_GetiFrameData=="no") fc=0;
	if(fc!=0)
		{
//S_bug=S_bug+" iframes";alert(S_bug);
		for (var i = 0; i < fc; i++)
			{ 
			try
				{
				var o = window.frames[i];
				if(o.document.body.innerHTML !="")
					{
					var fcc = o.document.getElementsByTagName("img").length;
					var fj = 0;
					if(fcc!=0)
						{
						var faa = o.document.getElementsByTagName("img");
						for (var i = 0; i < fcc; i++){ if (faa[i].complete)fj++; S_FIS+=parseInt(faa[i].fileSize);}
						if(fj==fcc) f++;
						}	
					else
						{
						f++;
						}
					}
				} catch(e){f=fc; i=fc;}
			}
		}
	S_globalI=i;
	S_globalFC=fc;
	S_globalF=f;
	S_globalIC=ic;
	if(fc!=0 && f==fc && (S_FTi==0))
		{
		var d4 = new Date();
		S_FTi = d4.getTime();
		S_FIC = f;
		}
	else if(fc!=0 && f<fc)S_FTi=0;
	if(ic!=0 && j==ic && (S_ITi==0))
		{
		var d3 = new Date();
		S_ITi = d3.getTime();
		S_PIC = j;
		}
	else if(ic!=0 &&j<ic)S_ITi=0;
	if(S_soj==j) S_noj++; 
	else S_noj=0;
	S_soj = j;
	if ((j<ic || f<fc) && S_noj<100)
		{
		if(S_OLDic<ic && j<ic)
			{
			S_IMs="no";
			S_OLDic=ic;
			var td = new Date();
			S_ITi=td.getTime();
			S_PIC=j;
			}
		if(S_OLDfc<fc && f<fc)
			{
			S_IFs="no";
			S_OLDfc=fc;
			var td = new Date();
			S_FTi=td.getTime();
			S_FIC=f;
			}
		setTimeout('S_spp();', 100); 
		}
	else
		{
//S_bug=S_bug+" all_loaded";alert(S_bug);
		var d2 = new Date();
		S_LTi = d2.getTime();
		if (!S_shr || S_GetServerTime!="yes") 
			{
			S_img(false);
			}
		else
			{
			S_shr.onreadystatechange = S_ssc;
			var t=document.location.href;
			var p="&rtv=";
			if(t.search(/q/) == -1) p="?rtv=";
			t= document.location.href + p + Math.random();
			S_shr.open("HEAD", t, true);
			S_shr.send(null);
//S_bug=S_bug+" shr_sent";alert(S_bug);
			}
		}
//S_bug=S_bug+" end_spp";alert(S_bug);
	}

function S_ssc()
	{
//S_bug=S_bug+" begin_ssc";alert(S_bug);
	if (S_shr.readyState == 4) 
		{
//S_bug=S_bug+" readyState";alert(S_bug);
         	if (S_shr.status == 200) 
			{
//S_bug=S_bug+" status";alert(S_bug);
			S_img(true);
		 	}
		}
//S_bug=S_bug+" end_ssc";alert(S_bug);
	}
