/*HM_Loader.js
* by Peter Belesis. v4.0.8 010405
* Copyright (c) 2001 Peter Belesis. All Rights Reserved.
*/

// alert ('HM_Loader geladen');


// -----------------------------------------  
//korrekturbreite, um die die navigation geschoben werden muss (weisser rand links und rechts)
function correction() {
	var site = 950; // breite der seite (tabellen)
	// fensterbreite auslesen ( http://www.quirksmode.org/viewport/compatibility.html#%23link2 )
	var x;
	if (self.innerWidth) // all except Explorer
	{ // alert ('all except Explorer');
			x = self.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
			// Explorer 6 Strict Mode
	{ // alert ('Explorer 6 Strict Mode');
			x = document.documentElement.clientWidth;
	}
	else if (document.body) // other Explorers
	{ //alert ('other Explorers');
			x = document.body.clientWidth;
	}
	var fensterbreite = x;
	
	cw = 0;  // nicht 'var' setzen, da die variabel auch in anderen datei gelten muss
	if (fensterbreite > site )  cw = ((fensterbreite - site ) / 2);
	
//	alert ('fensterbreite: ' + fensterbreite + '\nsite: '+ site + '\nKorrektur um: ' + cw + ' pixel');
	return cw;
	
	}
// -----------------------------------------  



   HM_DOM = (document.getElementById) ? true : false;
   HM_NS4 = (document.layers) ? true : false;
    HM_IE = (document.all) ? true : false;
   HM_IE4 = HM_IE && !HM_DOM;
   HM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
  HM_IE4M = HM_IE4 && HM_Mac;
HM_IsMenu = (HM_DOM || HM_NS4 || (HM_IE4 && !HM_IE4M));

HM_BrowserString = HM_NS4 ? "NS4" : HM_DOM ? "DOM" : "IE4";


if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;



HM_GL_MenuWidth          = 150;
HM_GL_FontFamily         = "Verdana,Arial,sans-serif";
HM_GL_FontSize					 = (HM_NS4) ? 7 : 8;
HM_GL_FontBold           = true;
HM_GL_FontItalic         = false;
HM_GL_FontColor          = "white"; // "black";
HM_GL_FontColorOver      =  "white"; // "red";
HM_GL_BGColor            = "#990000"; // "#F5F5F5";
HM_GL_BGColorOver        = "FF0000"; //  "#d6e0e1";
HM_GL_ItemPadding        = 2;

HM_GL_BorderWidth        = 1;
HM_GL_BorderColor        =  "#990000"; //"white"; //   "#336666";
HM_GL_BorderStyle        = "solid";
HM_GL_SeparatorSize      = 1;
HM_GL_SeparatorColor     = "#990000"; //  "#336666";
HM_GL_ImageSrc           = "http://www.unicorns.ch/images/design/tri.gif";
HM_GL_ImageSrcLeft       = "triL.gif";
HM_GL_ImageSize          = 10;
HM_GL_ImageHorizSpace    = 5;
HM_GL_ImageVertSpace     = 2;

HM_GL_KeepHilite         = true;
HM_GL_ClickStart         = false;
HM_GL_ClickKill          = false;
HM_GL_ChildOverlap       = 7;
HM_GL_ChildOffset        = 4;
HM_GL_ChildPerCentOver   = null;
HM_GL_TopSecondsVisible  = .2;
HM_GL_StatusDisplayBuild = false;
HM_GL_StatusDisplayLink  = false;
HM_GL_UponDisplay        = null;
HM_GL_UponHide           = null;

//HM_GL_RightToLeft      = true;
HM_GL_CreateTopOnly      = HM_NS4 ? true : false;
HM_GL_ShowLinkCursor     = true;

if(HM_IsMenu) {
//	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='http://www.unicorns.ch/cgi/HM_Array.js' TYPE='text/javascript'><\/SCR" + "IPT>");
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='http://www.unicorns.ch/cgi/HM_Array.php' TYPE='text/javascript'><\/SCR" + "IPT>");

	if (HM_BrowserString!='DOM') { alert ( 'Also doch noch!\n Welchen Internet-Browser (inkl. Version) und welches Betriebsystem verwendest du? \nbitte schick mir ein mail! mlehner@unicorns.ch\n\nVielen Dank'); }
	//	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='http://www.unicorns.ch/cgi/HM_ScriptDOM.js' TYPE='text/javascript'><\/SCR" + "IPT>");
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='http://www.unicorns.ch/cgi/HM_Script"+ HM_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}


//end