<!--
function checkframesloaded()
{
	if (top.location.href==self.location)
	{
		findURL = parent.location.href;
		findSlash = findURL.lastIndexOf("/");
		findPeriod = findURL.lastIndexOf("");
		findURL = findURL.substring(findSlash + 1,findPeriod);
		
		findCurrentURL = location.href;
		findCurrentSlash = findCurrentURL.lastIndexOf("/");
		findCurrentPeriod = findCurrentURL.lastIndexOf("");
		findCurrentURL = findCurrentURL.substring(findCurrentSlash + 1,findCurrentPeriod);
		
		if (screen.width <= 800){location.href = "index800.htm?" + findCurrentURL + ".ref";}
		if (screen.width > 800){location.href = "index.htm?" + findCurrentURL + ".ref";}
		
	}
}

//checkframesloaded();

-->
