//=================================================================================
//	101Smart Ltd - SmartWebb V4.0
//	(c) 2006 101Smart Ltd
//	http://www.101ltd.com
//=================================================================================

// Determine browser.
isMinNS6 = (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 5) ? 1 : 0;
isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 4 && parseFloat(navigator.appVersion) < 5) ? 1 : 0;
isMinIE4 = ((document.all) && !isMinNS6) ? 1 : 0;
isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0;

var objWnd = null;

//-----------------------------------------------------------------------------
// Standard functions.
//-----------------------------------------------------------------------------

function showPage(strURL, lngHeight, lngWidth)
{
	window.focus();
	if (!window.objWnd == null && !window.objWnd.closed)
	{
		window.objWnd.close();
	}
	// Load detail in a new window
	var lngWidthX = ((screen.width - lngWidth) / 2);
	var lngHeightY = ((screen.height - lngHeight) / 2);
	var strSettings = "left=" + lngWidthX + ",top=" + lngHeightY + ",resizable,scrollbars=yes,height=" + lngHeight + ",width=" + lngWidth;
	// return opened window object
	window.objWnd = window.open(strURL, 's4_pop', strSettings);
	window.objWnd.focus();
	return window.objWnd;
}

function rollOver(objSrc, strClass) 
{
	if (isMinIE4)
	{
		objSrc.parentElement.parentElement.className = strClass;
	}
	return true;
}

