﻿ /*<script xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:lscxsl="urn:schemas-lisocon-de:xslt:Menu">*/


// Check if actual assortment is part of assortments of menuentry
function ass(assortments) {
	if (assortments=="" || actAssortment=="" || actAssortment=="*ALL*") return true;
	var lastPos, pos, assortment;
	lastPos=0;
	do {
		pos=assortments.indexOf("|");
		if (pos>-1) {
			assortment=assortments.substring(lastPos,pos-1);
			if (actAssortment.indexOf(assortment)>-1) return true;
			assortments=assortments.substring(pos+1);
		}
	} while (pos>-1);
	return false;
}

// Check if actual menu entry is in actual path of selected entries
function isInPath(id) {
	if (MenuIDLevel1==id || MenuIDLevel2==id || MenuIDLevel3==id || MenuIDLevel4==id || MenuIDLevel5==id) {
		return true;
	} else {
		return false;
	}
}

// Mainmenu-entry title
function mt(title,color,size) {
	if (size!="")
		return "<font style='font-size:"+size+"px' color='"+color+"'>"+title+"</font>";
	else if (color!="")
		return "<font color='"+color+"'>"+title+"</font>";
	else
		return title;
}

// Mainmenu-entry color
function mc(id) {
	if (isInPath(id)) {
		return "#FFFFFF";
	} else {
		return "#FFFFFF";
	}
}

// Mainmenu-entry background-color
function mbc(id) {
	if (isInPath(id)) {
		return "#CC3300";
	} else {
		return "#3C5070";
	}
}

// Mainmenu-entry background-image
function mbi(id) {
	if (isInPath(id)) {
		return "images/MenuBGSelected.jpg";
	} else {
		return "images/MenuBG.jpg";
	}
}

// Submenu-entry title
function st(title,color,size) {
	if (size!="")
		return "<font style='font-size:"+size+"px' color='"+color+"'>"+title+"</font>";
	else if (color!="")
		return "<font color='"+color+"'>"+title+"</font>";
	else
		return title;
}

// Submenu-entry color
function sc(id) {
	if (isInPath(id)) {
		return "#3C5070";
	} else {
		return "#3C5070";
	}
}

// Submenu-entry background-color
function sbc(id, level) {
	if (isInPath(id)) {
		return "#FCA12B";
	} else {
		if (level > 2)
			return "#E1E5E6";
		else
			return "#E1E5E6";
	}
}

timegap=100                  // The time delay for menus to remain visible
followspeed=5                // Follow Scrolling speed
followrate=40                // Follow Scrolling Rate
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=-45;            // Sub menu left offset
closeOnClick = true;
_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over

with(style_main=new mm_style()){
	offbgcolor="#3C5070";
	offcolor="#FFFFFF";
	bordercolor="#FFFFFF";
	borderstyle="solid";
	borderwidth="0";
	rawcss="padding-left:16px;padding-right:16px";
	fontsize="13";
	fontstyle="normal";
	fontfamily="Arial, Verdana";
	overfilter="Alpha(opacity=90)";
	outfilter="";
	itemheight="23px";
	onborder="1px solid #FF0000";
	menubgimage="images/MenuBG.jpg";
}

with(style_sub=new mm_style())
{
	offcolor="#3C5070";
	bordercolor="#FFFFFF";
	borderstyle="solid";
	borderwidth="0";
	padding="3";
	fontsize="13";
	fontstyle="normal";
	fontfamily="Arial, Verdana";
	overfilter="Alpha(opacity=90)";
	outfilter="";
	separatorsize="3";
	separatorcolor="#E1E5E6";
	onborder="1px solid #FCA12B";
	itemheight="21px";
	offborder="1px solid #3C5070";
}

var strID;
var strName;
var strSubName;
var strShowMenu;
var strBGColor;
var strBGImage;
var strLink;
var strTarget;

with(milonic=new menuname("Main Menu"))
{
	style=style_main;
	position="relative";
	alwaysvisible=1;
	orientation="horizontal";
	menuwidth="100%";
	menualign="left";


  strName=mt('Home','','');
  strShowMenu="";
  strLink="index.html";
  strTarget="";
  strBGColor=mbc(178);
  strBGImage=mbi(178);
  aI("text="+strName+strShowMenu+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor+";bgimage="+strBGImage);

  strName=mt('T&Uuml;V NORD Group','','');
  strShowMenu="";
  strLink="http://www.tuev-nord.com";
  strTarget="_blank";
  strBGColor=mbc(23201);
  strBGImage=mbi(23201);
  strShowMenu='';
  aI("text="+strName+strShowMenu+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor+";bgimage="+strBGImage);

}





drawMenus();
  /*</script>*/