<!-- Hide script from old browsers

function refresh() 
{
	setTimeout('window.location.reload();', 120*1000);
}

function popup(url,winWidth,winHeight,sb) 
{
	winTop = (screen.height - winHeight) / 2;
	winLeft = (screen.width - winWidth) / 2;
	window.open(url,"","width=" + winWidth + ",height=" + winHeight + ",top=" + winTop  + ",left=" + winLeft  + ",resizable=no,scrollbars=" + sb + ",toolbar=no");
}

function subCatSelect(id, total) {
	for (i=0; i<=total; i++)
		if (id != i) document.getElementById("sub_cat"+i).style.display='none';
		else document.getElementById("sub_cat"+i).style.display='';
}

function ref(object)
{
	if (document.getElementById)
	{
		return document.getElementById(object);
	}
	else if (document.all)
	{
		return eval('document.all.' + object);
	}
	else
	{
		return false;
	}
}

function toggle(obj, total, bg, imgDir)
{
	for (i=1; i<=total; i++)
	{
		object = ref(obj + i);
		link = ref(obj + i + '_link');
		
		if( !object.style )
		{
			return false;
		}

		if( !link.style )
		{
			return false;
		}
		
		if( object.style.display == 'none' )
		{
			object.style.display = '';
			link.style.background = 'url(' + imgDir + '/minus.gif) ' + bg + ' no-repeat';
		}
		else
		{
			object.style.display = 'none';
			link.style.background = 'url(' + imgDir + '/plus.gif) ' + bg + ' no-repeat';
		}
	}
}

// End hidding script from old browsers -->