/* Constants */
var defaultFileList = "index.htm";

PINT_BrowserDetection("browserupgrade.htm");

function init()
	{
	var fileName  = PINT_GetCurrentFileName();
	var directory = PINT_GetCurrentDirectory();

	//PINT_FirstFocus()
		
	if (directory != "popup")
		{
		PINT_CSSMenus("nav");
		PINT_CSSMenus("iconnav");
		}
	setTimeout('PINT_sifr()', 1);
	document.cookie = "hasJavascriptAndCookies=1";
	}

function cleanup(){}

window.onload = init;
window.onunload = cleanup;

function PINT_sifr(){
	if(typeof sIFR == "function"){
		sIFR.replaceElement(named({sSelector:"h2", sFlashSrc:themeRootDirectory + "/flash/fonts/tradegothic.swf", sColor:"#ffffff", sWmode:"transparent", sFlashVars:"textalign=right"}));
		sIFR.replaceElement(named({sSelector:"h5", sFlashSrc:themeRootDirectory + "/flash/fonts/tradegothic.swf", sColor:"#000000", sWmode:"transparent"}));
	}
}
