function checkFocus(element)
{
	var hf;
	// IE uses activeElement
	if ( document.activeElement ) hf = document.activeElement;
	// Firefox uses focusNode
	else hf = document.focusNode;
	if (hf != element) element.style.border = "0px;"
}

step=2
px=480
function scrollDivRight(id){
	for (i=0;i<=px;i++)
	{
	document.getElementById(id).scrollLeft+=step;
	}
} 

function scrollDivLeft(id){
	for (i=0;i<=px;i++)
	{
	document.getElementById(id).scrollLeft-=step;
	}
} 

function changeWidth(id)
{
	var width = 0;
	var el = document.getElementById(id);
	for (var i = 0; i < el.children.length; ++i)
	{
		width += 108;
	}
	el.style.width = width;
}

function loading() {
if (document.getElementById) {  // DOM3 = IE5, NS6
document.location.href='index2.php';
}
else {
if (document.layers) {  // Netscape 4
document.location.href='index2.php';
}
else {  // IE 4
document.location.href='index2.php';
      }
   }
}

