﻿ /*<script xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:lscxsl="urn:schemas-lisocon-de:xslt:Menu">*/  
// Check if actual region is part of regions of menuentry

function region(regions) {
	if (regions=="" || actRegion=="" || actRegion=="*ALL*") return true;
	var lastPos, pos, region;
	lastPos=0;
	do {
		pos=regions.indexOf("|");
		if (pos>-1) {
			region=regions.substring(lastPos,pos-1);
			if (actRegion.indexOf(region)>-1) return true;
			regions=regions.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 "<span class='navTopMenuEntry'>&nbsp;&nbsp;&nbsp;<font style='font-size:"+size+"px' color='"+color+"'>"+title+"</font>&nbsp;&nbsp;&nbsp;</span>";
	else
		return "<span class='navTopMenuEntry' style='font-size:12px;color:"+color+"'>&nbsp;&nbsp;&nbsp;"+title+"&nbsp;&nbsp;&nbsp;</span>";
}

// Mainmenu-entry background image
function mbi(id,bgImage,bgImageSel) {
	if (isInPath(id)) {
		if (bgImageSel!="")
			return bgImageSel;
		else
			return "";
	} else {
		if (bgImage!="")
			return bgImage;
		else
			return "";
	}
}

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

}

// Submenu-entry title
function st(title) {
	return "<nobr>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+title+"&nbsp;&nbsp;&nbsp;</nobr>";
}

// Submenu-entry background image
function sbi(id) {
	if (isInPath(id)) {
		return "";
	} else {
		return "";
	}
}

timegap=100                  // The time delay for menus to remain visible
followspeed=5                // Follow Scrolling speed
followrate=40                // Follow Scrolling Rate
_subOffsetTop=0              // Sub menu top offset
_subOffsetLeft=-1;            // 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()){
	offcolor="";
	offbgcolor="#F47C20";
	oncolor="";
	onbgcolor="#996633";
	bordercolor="";
	fontsize="10";
	fontstyle="normal";
	fontweight="bold";
	fontfamily="Verdana, Arial";
	padding="3";
	separatorcolor="#FFFFFF";
	separatorsize="1";
}

with(style_sub=new mm_style())
{
	offcolor="#000000";
	offbgcolor="#FFFFFF";
	oncolor="#FFFFFF";
	onbgcolor="#FF8A2E";
	bordercolor="#FF8A2E";
	borderwidth="1";
	fontsize="10";
	fontstyle="normal";
	fontweight="bold";
	fontfamily="Verdana, Arial";
	padding="4";
	separatorcolor="#FF8A2E";
	separatorsize="1";
	overfilter="Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)";
}

var strID;
var strName;
var strSubName;
var strShowMenu;
var strLink;
var strColor;
var strBGImage;

with(milonic=new menuname("Main Menu"))
{
	style=style_main;
	position="relative";
	alwaysvisible=1;
	orientation="horizontal";
	menuwidth="100%";
	menualign="right";
  
strName=mt("&nbsp;&nbsp;&nbsp;Main Page",mc(1000),"");
strShowMenu="";
strLink="index.html";
strBGImage=mbi(1000,"","");
strShowMenu=';showmenu=1000';  
aI("text="+strName+strShowMenu+";url="+strLink+";bgimage="+strBGImage);  

strName=mt("Company",mc(2000),"");
strShowMenu="";
strLink="index.html";
strBGImage=mbi(2000,"","");
strShowMenu=';showmenu=2000';  
aI("text="+strName+strShowMenu+";url="+strLink+";bgimage="+strBGImage);  

strName=mt("Products",mc(3000),"");
strShowMenu="";
strLink="index.html";
strBGImage=mbi(3000,"","");
strShowMenu=';showmenu=3000';  
aI("text="+strName+strShowMenu+";url="+strLink+";bgimage="+strBGImage);  

strName=mt("Support",mc(4000),"");
strShowMenu="";
strLink="index.html";
strBGImage=mbi(4000,"","");
strShowMenu=';showmenu=4000';  
aI("text="+strName+strShowMenu+";url="+strLink+";bgimage="+strBGImage);
  
strName=mt("Download",mc(5000),"");
strShowMenu="";
strLink="index.html";
strBGImage=mbi(5000,"","");
strShowMenu=';showmenu=5000';  
aI("text="+strName+strShowMenu+";url="+strLink+";bgimage="+strBGImage)

strName=mt("Contact Us",mc(6000),"");
strShowMenu="";
strLink="index.html";
strBGImage=mbi(6000,"","");
strShowMenu=';showmenu=6000';  
aI("text="+strName+strShowMenu+";url="+strLink+";bgimage="+strBGImage);
}  

  
strID = "2000";
with(milonic=new menuname(strID))
{
	style=style_sub;
  
strShowMenu="";
strSubName=st("Ekomak Company Profile");
strBGImage=sbi(2100);
strColor='';
strID='2100';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor);  

strShowMenu="";
strSubName=st("References");
strBGImage=sbi(2200);
strColor='';
strID='2200';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor);  

strShowMenu="";
strSubName=st("Ekomak News");
strBGImage=sbi(2300);
strColor='';
strID='2300';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor);  
}
  
strID = "3000";
with(milonic=new menuname(strID))
{
	style=style_sub;
  
strShowMenu="";
strSubName=st("Rotary Screw Air Compressors");
strBGImage=sbi(3100);
strColor='';
strID='3100';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor);  

strShowMenu="";
strSubName=st("Compressed Air Dryers");
strBGImage=sbi(3200);
strColor='';
strID='3200';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor);  

strShowMenu="";
strSubName=st("Compressed Air Tanks");
strBGImage=sbi(3300);
strColor='';
strID='3300';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor);  

strShowMenu="";
strSubName=st("Compressed AirFilters");
strBGImage=sbi(3400);
strColor='';
strID='3400';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor);  

strShowMenu="";
strSubName=st("Other Ekomak Products");
strBGImage=sbi(3500);
strColor='';
strID='3500';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor); 
}
  
strID = "4000";
with(milonic=new menuname(strID))
{
	style=style_sub;
  
strShowMenu="";
strSubName=st("Ekomak Service Companies");
strBGImage=sbi(4100);
strColor='';
strID='4100';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor);  

strShowMenu="";
strSubName=st("Spare Parts");
strBGImage=sbi(4200);
strColor='';
strID='4200';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor); 

strShowMenu="";
strSubName=st("Service Bulletins");
strBGImage=sbi(4300);
strColor='';
strID='4300';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor);  
}

strID = "5000";
with(milonic=new menuname(strID))
{
	style=style_sub;
  
strShowMenu="";
strSubName=st("Technical Documents");
strBGImage=sbi(5100);
strColor='';
strID='5100';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor);  

strShowMenu="";
strSubName=st("Catalogues");
strBGImage=sbi(5200);
strColor='';
strID='5200';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor);  

strShowMenu="";
strSubName=st("Programs");
strBGImage=sbi(5300);
strColor='';
strID='5300';
strLink="index.html";
aI("text="+strSubName+";url="+strLink+";bgimage="+strBGImage+";offcolor="+strColor);
}
  
drawMenus();
  /*</script>*/ 