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

   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, Helvetica";
HM_GL_FontSize           = 7;
HM_GL_FontBold           = false;
HM_GL_FontItalic         = false;
HM_GL_FontColor          = "#000000";
HM_GL_FontColorOver      = "#ffffff";
HM_GL_BGColor            = "#979887";
HM_GL_BGColorOver        = "#002266";
HM_GL_ItemPadding        = 1;

HM_GL_BorderWidth        = 1;
HM_GL_BorderColor        = "#000000";
HM_GL_BorderStyle        = "solid";
HM_GL_SeparatorSize      = 1;
HM_GL_SeparatorColor     = "#000000";
HM_GL_ImageSrc           = "null";
HM_GL_ImageSrcLeft       = "null";
HM_GL_ImageSize          = 0;
HM_GL_ImageHorizSpace    = 0;
HM_GL_ImageVertSpace     = 0;

HM_GL_KeepHilite         = true;
HM_GL_ClickStart         = false;
HM_GL_ClickKill          = 0; //10;
HM_GL_ChildOverlap       = 20;
HM_GL_ChildOffset        = 6;
HM_GL_ChildPerCentOver   = 15;
HM_GL_TopSecondsVisible  = -1;
HM_GL_StatusDisplayBuild = 0;
HM_GL_StatusDisplayLink  = 1;
HM_GL_UponDisplay        = null;
HM_GL_UponHide           = null;

//HM_GL_RightToLeft      = true;
HM_GL_CreateTopOnly      = HM_NS4 ? true : true;
HM_GL_ShowLinkCursor     = true;
// the following function is included to illustrate the improved JS expression handling of
// the left_position and top_position parameters
// you may delete if you have no use for it

function HM_f_CenterMenu(topmenuid) {
	var TheMenu = HM_DOM ? document.getElementById(topmenuid) : HM_IE4 ? document.all(topmenuid) : eval("window." + topmenuid);
	var TheMenuWidth = HM_DOM ? parseInt(TheMenu.style.width) : HM_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
	var TheWindowWidth = HM_IE ? document.body.clientWidth : window.innerWidth;
	return ((TheWindowWidth-TheMenuWidth) / 2);
}

function findPosImg(nvn) {
	var elm = document.images[nvn];
	if ( document.layers ) return elm;
	     // NS4 images contain x and y values
	var rd = { x:0 ,y:0 };
	do { rd.x += parseInt( elm.offsetLeft );
	     rd.y += parseInt( elm.offsetTop );
	     elm = elm.offsetParent;
	} while ( elm );
	return rd
}

if(HM_IsMenu) {
	HM_Array1 = [  
		[
		93,		// menu width
		//findPosImg('menu_modetrends').x,		// left_position
		//findPosImg('menu_modetrends').y + 22,	// top_position
		0,
		22,
		,      // font_color
		,   // mouseover_font_color
		,   // background_color
		,    // mouseover_background_color
		,     // border_color
		,    // separator_color
		0,			// top_is_permanent
		0,          // top_is_horizontal
		0,          // tree_is_horizontal
		0,          // position_under
		1,          // top_more_images_visible
		1,          // tree_more_images_visible
		"null",     // evaluate_upon_tree_show
		"null",     // evaluate_upon_tree_hide
		,
		"menu_modetrends"],          //right-to-left
		["&nbsp;Aktuelle Trends","/modetrends/modetrends.php?Kollektion=Aktuell",1,0,0],
		["&nbsp;Damenmode","/modetrends/modetrends.php?Kollektion=Damen",1,0,0],
		["&nbsp;Herrenmode","/modetrends/modetrends.php?Kollektion=Herren",1,0,0],
		["&nbsp;Young Fashion","/modetrends/modetrends.php?Kollektion=Jugend",1,0,0],
		["&nbsp;Kids Fashion","/modetrends/modetrends.php?Kollektion=Kinder",1,0,0],
		["&nbsp;Pflegetips","/modetrends/modetrends.php?Kollektion=Tips",1,0,0],
		["&nbsp;Unsere Marken","/modetrends/marken.php",1,0,0]
	];
	
	HM_Array2 = [  
		[
		93,		// menu width
		//findPosImg('menu_modetrends').x,		// left_position
		//findPosImg('menu_modetrends').y + 22,	// top_position
		9,
		22,
		,      // font_color
		,   // mouseover_font_color
		,   // background_color
		,    // mouseover_background_color
		,     // border_color
		,    // separator_color
		0,			// top_is_permanent
		0,          // top_is_horizontal
		0,          // tree_is_horizontal
		0,          // position_under
		1,          // top_more_images_visible
		1,          // tree_more_images_visible
		"null",     // evaluate_upon_tree_show
		"null",     // evaluate_upon_tree_hide
		,
		"menu_standorte"],          //right-to-left
		["&nbsp;Feldbach","/standorte/standorte.php?City_Code=feldbach",1,0,0],
		["&nbsp;Fürstenfeld","/standorte/standorte.php?City_Code=fuerstenfeld",1,0,0],
		["&nbsp;Gleisdorf","/standorte/standorte.php?City_Code=gleisdorf",1,0,0],
		["&nbsp;Gnas","/standorte/standorte.php?City_Code=gnas",1,0,0],
		["&nbsp;Hartberg","/standorte/standorte.php?City_Code=hartberg",1,0,0],
		["&nbsp;Mühldorf/Feldb.","/standorte/standorte.php?City_Code=muehldorf",1,0,0]
	];
	//	["&nbsp;Seiersberg","/standorte/standorte.php?City_Code=seiersberg",1,0,0],
	//	["&nbsp;Klagenfurt","/standorte/standorte.php?City_Code=klagenfurt",1,0,0]
					
	HM_Array3 = [  
		[102,		// menu width
		//findPosImg('menu_unternehmen').x + 9,		// left_position
		//findPosImg('menu_unternehmen').y + 22,	// top_position
		9,
		22,
		,      // font_color
		,   // mouseover_font_color
		,   // background_color
		,    // mouseover_background_color
		,     // border_color
		,    // separator_color
		0,			// top_is_permanent
		0,          // top_is_horizontal
		0,          // tree_is_horizontal
		0,          // position_under
		1,          // top_more_images_visible
		1,          // tree_more_images_visible
		"null",     // evaluate_upon_tree_show
		"null",     // evaluate_upon_tree_hide
		,
		"menu_unternehmen"],          //right-to-left
		["&nbsp;Leitbild","/unternehmen/ueberuns.php",1,0,0],
		["&nbsp;&Ouml;ffnungszeiten","/unternehmen/oeffnungszeiten_overview.php",1,0,0],
		["&nbsp;Links","/unternehmen/links.php",1,0,0],
		["&nbsp;Jobs","/unternehmen/jobs.php",1,0,0]
	];
	
	HM_Array4 = [  
		[102,		// menu width
		//findPosImg('menu_unternehmen').x + 9,		// left_position
		//findPosImg('menu_unternehmen').y + 22,	// top_position
		9,
		22,
		,      // font_color
		,   // mouseover_font_color
		,   // background_color
		,    // mouseover_background_color
		,     // border_color
		,    // separator_color
		0,			// top_is_permanent
		0,          // top_is_horizontal
		0,          // tree_is_horizontal
		0,          // position_under
		1,          // top_more_images_visible
		1,          // tree_more_images_visible
		"null",     // evaluate_upon_tree_show
		"null",     // evaluate_upon_tree_hide
		,
		"menu_ihremeinung"],          //right-to-left
		["&nbsp;Einträge ansehen","/ihremeinung/meinung.php",1,0,0],
		["&nbsp;Eintrag hinzufügen","/ihremeinung/meinung_add.php",1,0,0]
	];
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' src='/includes/HM_Script"+ HM_BrowserString +".js' type='text/javascript'><\/SCR" + "IPT>");
}

//end
