/* Constants */
//rootDirectory = "/pint";
rootDirectory = "";
//defaultFile = "index.php";
defaultFile = "";

/* Execute Pre Page Load Functions */
PINT_PrintCSS();
PINT_LoadMenuConfig();

function init()
	{
	var fileName  = PINT_GetCurrentFileName();
	var directory = PINT_GetCurrentDirectory();

	PINT_RORolloverInit( "aboutimg", "aboutimg", PINT_GetRootDirectory() + "/images/HNR_about.gif", "About USD", (PINT_IsDefaultFile(fileName) && directory == "about" ? false : true) );
	PINT_RORolloverInit( "admissionsimg", "admissionsimg", PINT_GetRootDirectory() + "/images/HNR_admissions.gif", "Admissions", (PINT_IsDefaultFile(fileName) && directory == "admissions" ? false : true) );
	PINT_RORolloverInit( "academicsimg", "academicsimg", PINT_GetRootDirectory() + "/images/HNR_academics.gif", "Academics", (PINT_IsDefaultFile(fileName) && directory == "academics" ? false : true) );
	PINT_RORolloverInit( "newsimg", "newsimg", PINT_GetRootDirectory() + "/images/HNR_news.gif", "News and Events", (PINT_IsDefaultFile(fileName) && directory == "news" ? false : true) );
	PINT_RORolloverInit( "administrationimg", "administrationimg", PINT_GetRootDirectory() + "/images/HNR_administration.gif", "Administration", (PINT_IsDefaultFile(fileName) && directory == "administration" ? false: true) );
	PINT_RORolloverInit( "athleticsimg", "athleticsimg", PINT_GetRootDirectory() + "/images/HNR_athletics.gif", "Athletics", (PINT_IsDefaultFile(fileName) && directory == "athletics" ? false : true) );
	PINT_RORolloverInit( "givingimg", "givingimg", PINT_GetRootDirectory() + "/images/HNR_giving.gif", "Giving", (PINT_IsDefaultFile(fileName) && directory == "giving" ? false : true) );
	
	PINT_MenuInit( "aboutimg", "abouta", "HM_Menu1" );
	PINT_MenuInit( "admissionsimg", "admissionsa", "HM_Menu2" );
	PINT_MenuInit( "academicsimg", "academcisa", "HM_Menu3" );
	PINT_MenuInit( "newsimg", "newsa", "HM_Menu4" );
	PINT_MenuInit( "administrationimg", "administrationa", "HM_Menu5" );
	PINT_MenuInit( "athleticsimg", "athleticsa", "HM_Menu6" );
	PINT_MenuInit( "givingimg", "givinga", "HM_Menu7" );	
	}

function cleanup(){}

window.onload = init;
window.onunload = cleanup;	

