﻿ /*<script>*/  

// Check if registered user is member of one of the groups assigned to the current entry-node
function userCheck(currentGroups) {
	if (currentGroups==""  || userRoles =="*ALL*") return true;

	var  currentGroupsArray = currentGroups.split(",");
	var  userRolesArray = userRoles.split(",");
 	var group, role;

	for (var i=0; i < currentGroupsArray.length; i++)
	{
       group =	currentGroupsArray[i];
       
   	   for (var j=0; j < userRolesArray.length; j++)
       {
          role = userRolesArray[i];
	   }
	   
	   if(group==role) return true;
	}
	return false;
}

// 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/mnu_sel.jpg";
	} else {
		return "images/mnu_bg.jpg";
	}
}

// Mainmenu-entry border
function mbo(id) {
	if (isInPath(id)) {
		return "";
	} else {
		return "";
	}
}

// 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="13px";
	fontstyle="normal";
	fontfamily="Arial, Verdana";
	overfilter="";
	outfilter="";
	itemheight="23px";
	onborder="1px solid #FF0000";
	menubgimage="images/mnu_bg.jpg";
}

with(style_sub=new mm_style())
{
	offcolor="#3C5070";
	bordercolor="#FFFFFF";
	borderstyle="solid";
	borderwidth="0";
	padding="3";
	fontsize="13px";
	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 strBorder;
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('Certifikácia systémov manažérstva','','');
strShowMenu="";
strLink="";
strTarget=""; 
strBGColor=mbc(1000);
strBorder=mbo(1000);
strBGImage=mbi(1000);  
strShowMenu=';showmenu=1000';  
aI("text="+strName+strShowMenu+";url="+strLink+";target="+strTarget+";offborder="+strBorder+";offbgcolor="+strBGColor+";bgimage="+strBGImage);  
strName=mt('Tlakové zariadenia a zváranie','','');
strShowMenu="";
strLink="";
strTarget=""; 
strBGColor=mbc(2000);
strBorder=mbo(2000);
strBGImage=mbi(2000);  
strShowMenu=';showmenu=2000';  
aI("text="+strName+strShowMenu+";url="+strLink+";target="+strTarget+";offborder="+strBorder+";offbgcolor="+strBGColor+";bgimage="+strBGImage);  
strName=mt('Vzdelávanie','','');
strShowMenu="";
strLink="";
strTarget="";
strBGColor=mbc(3000);
strBorder=mbo(3000);
strBGImage=mbi(3000);  
strShowMenu=';showmenu=3000';  
aI("text="+strName+strShowMenu+";url="+strLink+";target="+strTarget+";offborder="+strBorder+";offbgcolor="+strBGColor+";bgimage="+strBGImage);  
}
  
strID = "1000";
with(milonic=new menuname(strID))
{
style=style_sub;
strShowMenu="";
strSubName=st('Manažérstvo kvality - EN ISO 9001','','');
strTarget=""; 
strID='1100';
strBGColor=sbc(1100,2);  
strLink="mnu1100.htm";
strShowMenu='';
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);

strShowMenu="";
strSubName=st('Environmentálne manažérstvo - EN ISO 14001','','');
strTarget=""; 
strID='1200';
strBGColor=sbc(1200,2);  
strLink="mnu1200.htm";
strShowMenu='';
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);

strShowMenu="";
strSubName=st('Energetické manažérstvo - ISO 50001 / EN 16001','','');
strTarget=""; 
strID='1950';
strBGColor=sbc(1950,2);  
strLink="mnu1950.htm";
strShowMenu='';
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);

strShowMenu="";
strSubName=st('Manažérstvo BOZP - BS 18001 OHSAS','','');
strTarget=""; 
strID='1300';
strBGColor=sbc(1300,2);  
strLink="mnu1300.htm";
strShowMenu='';
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);

strShowMenu="";
strSubName=st('Automobilový priemysel - ISO/TS 16949, VDA 6.1','','');
strTarget=""; 
strID='1400';
strBGColor=sbc(1400,2);  
strLink="mnu1400.htm";
strShowMenu='';
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);

strShowMenu="";
strSubName=st('Potraviny a krmivá - HACCP, EN ISO 22000, FSSC 22000, IFS, IFS Logistics, GMP, BRC','','');
strTarget=""; 
strID='1500';
strBGColor=sbc(1500,2);  
strLink="mnu1500.htm";
strShowMenu='';
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);

strShowMenu="";
strSubName=st('Manažérstvo informačnej bezpečnosti - SMIB (ISMS) - ISO/IEC 27001','','');
strTarget=""; 
strID='1600';
strBGColor=sbc(1600,2);  
strLink="mnu1600.htm";
strShowMenu='';
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);

strShowMenu="";
strSubName=st('Manažérstvo služieb informačných technológií (ITSM) - ISO/IEC 20000-1','','');
strTarget=""; 
strID='1700';
strBGColor=sbc(1700,2);  
strLink="mnu1700.htm";
strShowMenu='';
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);

strShowMenu="";
strSubName=st('Integrovaný systém manažérstva','','');
strTarget=""; 
strID='1800';
strBGColor=sbc(1800,2);  
strLink="mnu1800.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);

strShowMenu="";
strSubName=st('Nezávislé preverenie stavu, procesov, ...','','');
strTarget=""; 
strID='1900';
strBGColor=sbc(1900,2);  
strLink="mnu1900.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);
}

strID = "1400";
with(milonic=new menuname(strID))
{
style=style_sub;
strShowMenu="";
strSubName=st('ISO/TS 16949','','');
strTarget=""; 
strID='1410';
strBGColor=sbc(1410,3);  
strLink="mnu1410.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);  
strShowMenu="";
strSubName=st('VDA 6.1','','');
strTarget=""; 
strID='1420';
strBGColor=sbc(1420,3);  
strLink="mnu1420.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);  
}



strID = "2000";
with(milonic=new menuname(strID))
{
style=style_sub;
strShowMenu="";
strSubName=st('Certifikácia výrobkov','','');
strTarget=""; 
strID='2100';
strBGColor=sbc(2100,2);  
strLink="";
strShowMenu='2100';
aI("text="+strSubName+";showmenu="+strShowMenu+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);
strShowMenu="";
strSubName=st('Certifikácia personálu vo zváraní','','');
strTarget=""; 
strID='2200';
strBGColor=sbc(2200,2);  
strLink="mnu2200.htm";
strShowMenu='';
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);
strShowMenu="";
strSubName=st('Certifikácia postupov vo zváraní','','');
strTarget=""; 
strID='2300';
strBGColor=sbc(2300,2);  
strLink="mnu2300.htm";
strShowMenu='';
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);
strShowMenu="";
strSubName=st('Certifikácia výrobcov/výroby','','');
strTarget=""; 
strID='2400';
strBGColor=sbc(2400,2);  
strLink="";
strShowMenu='2400';
aI("text="+strSubName+";showmenu="+strShowMenu+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);
strShowMenu="";
strSubName=st('Komplexný technický dozor','','');
strTarget=""; 
strID='2500';
strBGColor=sbc(2500,2);  
strLink="mnu2500.htm";
strShowMenu='';
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);
}

strID = "2100";
with(milonic=new menuname(strID))
{
style=style_sub;
strShowMenu="";
strSubName=st('Tlakové nádoby','','');
strTarget=""; 
strID='2110';
strBGColor=sbc(2110,3);  
strLink="mnu2110.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);  
strShowMenu="";
strSubName=st('Kotly a príslušenstvo','','');
strTarget=""; 
strID='2120';
strBGColor=sbc(2120,3);  
strLink="mnu2120.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);  
strShowMenu="";
strSubName=st('Potrubné systémy','','');
strTarget=""; 
strID='2130';
strBGColor=sbc(2130,3);  
strLink="mnu2130.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);  
strShowMenu="";
strSubName=st('Prebierky hutných materiálov','','');
strTarget=""; 
strID='2140';
strBGColor=sbc(2140,3);  
strLink="mnu2140.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);  
}

strID = "2400";
with(milonic=new menuname(strID))
{
style=style_sub;
strShowMenu="";
strSubName=st('Certifikácia výrobcu podľa EN ISO 3834','','');
strTarget=""; 
strID='2410';
strBGColor=sbc(2410,3);  
strLink="mnu2410.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);  
strShowMenu="";
strSubName=st('Certifikácia výroby DIN 4113','','');
strTarget=""; 
strID='2420';
strBGColor=sbc(2420,3);  
strLink="mnu2420.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);  
strShowMenu="";
strSubName=st('Certifikácia výroby AD 2000 Merkblatt W0 a ES 97/23','','');
strTarget=""; 
strID='2430';
strBGColor=sbc(2430,3);  
strLink="mnu2430.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);  
strShowMenu="";
strSubName=st('Certifikácia výroby DIN 18800/7','','');
strTarget=""; 
strID='2440';
strBGColor=sbc(2440,3);  
strLink="mnu2440.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);  
}



strID = "3000";
with(milonic=new menuname(strID))
{
style=style_sub;
strShowMenu="";
strSubName=st('Pripravované školenia','','');
strTarget=""; 
strID='3100';
strBGColor=sbc(3100,2);  
strLink="mnu3100.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);
strShowMenu="";
strSubName=st('Plán školení','','');
strTarget=""; 
strID='3200';
strBGColor=sbc(3200,2);  
strLink="mnu3200.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);
strShowMenu="";
strSubName=st('Predbežná prihláška','','');
strTarget=""; 
strID='3300';
strBGColor=sbc(3300,2);  
strLink="mnu3300.htm";
aI("text="+strSubName+";url="+strLink+";target="+strTarget+";offbgcolor="+strBGColor);
}

  
drawMenus();
  /*</script>*/ 
