﻿var footer ="";
footer = "<Font class='footer'>"+" EduWave v2.5.1 " +String.fromCharCode(169)+" 2001-2008 <A style='FONT-SIZE: 12px' HREF='http://www.itgsolutions.com' target='_blank'>Integrated Technology Group.</A> All rights reserved.</Font>" 
//footer += "<br><p class='validationclass' align='center'>This release is for QA testing, and it is not tended for Deploying</p>";
document.write(footer);
if (window.navigator.appVersion.indexOf("MSIE")==-1)
{
	window.showModalDialog = function(sURL,vArguments,sFeatures)
	{
		sFeatures = sFeatures.replace(/ /gi,'');
		aFeatures = sFeatures.split(";");
		sWinFeat = "directories=0,menubar=0,titlebar=0,toolbar=0,";
		for ( x=0 ;x< aFeatures.length;x++ )
		{
			aTmp = aFeatures[x].split(":");
			sKey = aTmp[0].toLowerCase();
			sVal = aTmp[1];
			switch (sKey)
			{
				case "dialogheight":
					sWinFeat += "height="+sVal+",";
					pHeight = sVal;
					break;
				case "dialogwidth":
					sWinFeat += "width="+sVal+",";
					pWidth = sVal;
					break;
				case "dialogtop":
					sWinFeat += "screenY="+sVal+",";
					break;
				case "dialogleft":
					sWinFeat += "screenX="+sVal+",";
					break;
				case "resizable":
					sWinFeat += "resizable="+sVal+",";
					break;
				case "status":
					sWinFeat += "status="+sVal+",";
					break;
				case "center":
					if ( sVal.toLowerCase() == "yes" )
					{
					sWinFeat += "screenY="+((screen.availHeight-pHeight)/2)+",";
					sWinFeat += "screenX="+((screen.availWidth-pWidth)/2)+",";
					}
					break;
			}
		}
		modalWin=window.open(String(sURL),"",sWinFeat);
		if (vArguments!=null&&vArguments!='')
		{
			modalWin.dialogArguments=vArguments;
		}
	}
}
//aarbeed 8-2-2006
//Initilize user menu flash object in all pages which has user menu.
//I set this code here because this code must execute in the last of page. 
if (typeof(InitilizeUserMenu) == 'function')
	menu_Interval_id=setInterval(InitilizeUserMenu,10);
	
	
//aqaisi 19-2-2006
//clear flash Objects handlers in the page before trigger the unload handler
//to avoid external interface out of memory line 56 problem.
function nullFlashLoopFunction() { __flash_savedUnloadHandler = null;}
window.onbeforeunload = nullFlashLoopFunction;
//end

/*n = navigator.userAgent;
w = n.indexOf("MSIE");
if( (w > 0) && (parseInt(n.charAt(w+5)) > 5 ))
{
	T=["object","embed"];
	for(j = 0 ; j < 1 ; j++)
	{
		E = document.getElementsByTagName(T[j]);
		for(i = 0 ; i < E.length ; i++)
		{
			P = E[i].parentNode;
			H = P.innerHTML;
			P.removeChild(E[i]);
			P.innerHTML=H;
		}
	}
}*/