/* Constants */
rootDirectory = "/cms";
var FILE_EXT = ".php";
defaultFileList = "index" + FILE_EXT;


// Browser Detection
var isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
var NS4 = (document.layers) ? true : false;
var IEmac = ((document.all)&&(isMac)) ? true : false;
var IE4plus = (document.all) ? true : false;
var IE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
var IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
var ver4 = (NS4 || IE4plus) ? true : false;
var NS6 = (!document.layers) && ((navigator.userAgent.indexOf('Netscape')!=-1) || (navigator.userAgent.indexOf('Gecko')!=-1))?true:false;
var IsBrowserSafari = (navigator.userAgent.indexOf('Safari') != -1)


function PINT_cmsInit()
	{
	var fileName  = PINT_GetCurrentFileName();
	var directory = PINT_GetCurrentDirectory();
	// don't focus text inputs on controls frames (don't focus in moz except for login page since it moves page in a frame)
	if ((document.all || (directory == 'login')) && (document.location.href.indexOf("mode=controls") == -1)) focusFirstTextInput();
	}

function cleanup(){}

safeAddOnload("PINT_cmsInit()");

