IK_UserAgent = navigator.userAgent;
      IK_DOM = (document.getElementById) ? true : false;
      IK_NS4 = (document.layers) ? true : false;
       IK_IE = (document.all) ? true : false;
      IK_IE4 = IK_IE && !IK_DOM;
      IK_Mac = (navigator.appVersion.indexOf("Mac") != -1);
     IK_IE4M = IK_IE4 && IK_Mac;

IK_IsSafari = ((IK_DOM)&&
               (parseInt(navigator.productSub)>=20020000)&&
               (navigator.vendor.indexOf("Apple Computer")!=-1));
if(IK_IsSafari) {
	IK_BrowserPattern = /Safari\/(\d+)/;
	IK_Matches = IK_UserAgent.match(IK_BrowserPattern);
	if (IK_Matches&&IK_Matches[1]) IK_BrowserVersion = (IK_Matches[1]-0);
	else IK_BrowserVersion = 0;
}

IK_Opera = (window.opera) ? true : false;
if(IK_IsSafari||IK_Opera) {
	IK_IE=IK_NS4=IK_IE4=IK_IE4M=false;
	if(IK_IsSafari) IK_Mac=true;
}
IK_IE5M = (IK_IE&&IK_Mac&&IK_DOM);

if(IK_Opera) {
    IK_BrowserPattern = /Opera(\/| )(\d+.*)/;
    IK_VersionSupported = 7;
}

IK_Konqueror = (IK_UserAgent.indexOf("Konqueror")!=-1);
if(IK_Konqueror) {
    IK_BrowserPattern = /(Konqueror\/)(\d+.*)/;
    IK_VersionSupported = 3.2;
}

if(IK_Opera || IK_Konqueror) {
    if (IK_UserAgent.match) {
       IK_Matches = IK_UserAgent.match(IK_BrowserPattern);
       if (IK_Matches&&IK_Matches[2]) {
          IK_BrowserVersion = parseFloat(IK_Matches[2]);
       } else IK_BrowserVersion = 0;
       IK_IsMenu = (IK_BrowserVersion >= IK_VersionSupported);
    } else {
       IK_BrowserVersion = 0;
       IK_IsMenu = false;
    }
} else {
    IK_BrowserVersion = 0;
    IK_IsMenu = !IK_IE4M && !IK_IE5M && (IK_DOM || IK_NS4 || IK_IE4 );
}

if(window.event + "" == "undefined") event = null;
// function IK_f_PopUp(){return false};
// function IK_f_PopDown(){return false};
popUp = IK_f_PopUp;
popDown = IK_f_PopDown;

// Configuration block. The following 6 variables should be configured 
// to match your default preferences. You can then override the settings
// on a page by page basis by providing values for the variables in any
// JavaScript segment that is loaded BEFORE this one. These variables 
// are the ONLY variables you should alter in this file. 

if(typeof(window.IK_ScriptDir)=="undefined")
	IK_ScriptDir = "./menu_files/";
if(typeof(window.IK_ImageDir)=="undefined")
	IK_ImageDir = "./menu_files/";
if(typeof(window.IK_ConfigDir)=="undefined")
	IK_ConfigDir = "./menu_files/";
if(typeof(window.IK_ConfigFiles)=="undefined")
	IK_ConfigFiles = "./menu_files/hmcentral.js";
if(typeof(window.IK_ConfigType)=="undefined")
	IK_ConfigType = "default";
if(typeof(window.IK_FramesEnabled)!="boolean")
	IK_FramesEnabled = false;

// Custom functions. We recommend that you delete any of these
// End custom functions

IK_IsMenu=(IK_Konqueror&&IK_FramesEnabled)?false:IK_IsMenu;
if(IK_IsMenu) {
	IK_BrowserString = IK_NS4 ? "NS4" : IK_Opera ? "OPR" : IK_DOM ? "DOM" : "IE4";
	IK_aConfigs = IK_ConfigFiles.split(',');
	IK_WriteString = '<scr'+'ipt src="' + IK_ScriptDir + 'IK_Script' + IK_BrowserString + '.js" type="text/javascript">'+"\n"+'<\/scr'+'ipt>'+"\n";
	document.write(IK_WriteString);
	for(var i=0; i<IK_aConfigs.length; i++) {
		IK_WriteString = '<scr'+'ipt src="' + IK_ConfigDir + IK_aConfigs[i] + '" type="text/javascript">'+"\n"+'<\/scr'+'ipt>'+"\n";
		if(IK_aConfigs[i]) document.write(IK_WriteString);
	}
	if(IK_ConfigType=="arrays") {
		IK_WriteString = '<scr'+'ipt src="' + IK_ScriptDir + 'IK_ConvertArrays.js" type="text/javascript">'+"\n"+'<\/scr'+'ipt>'+"\n"
		document.write(IK_WriteString);
	}
}

