var m9623_timerID = null;
var m9623_timerOn = false;
var m9623_timeCount = 1000;
var m9623_mnuCount = 2;
function m9623_showLayer(btntd,btnmnu,bdir,mdir,mpos,xoffset,yoffset)
{
	var td,layer;
	if (btnmnu==0) return;
	td = document.getElementById(btntd);
	layer = document.getElementById(btnmnu);
	if (bdir==0)
	{
		switch(mpos)
		{
			case 0:
			layer.style.left = xoffset;
			break;
			case 1:
			layer.style.left = td.offsetWidth/2 + xoffset;
			break;
			case 2:
			layer.style.left = td.offsetWidth+xoffset;
			break;
		}
		if (mdir==0)
			layer.style.top = td.offsetHeight+yoffset;
		else
			layer.style.top = -layer.offsetHeight-yoffset;
	}
	else
	{
		switch(mpos)
		{
			case 0:
			layer.style.top = yoffset;
			break;
			case 1:
			layer.style.top = td.offsetHeight/2 + yoffset;
			break;
			case 2:
			layer.style.top = td.offsetHeight+yoffset;
			break;
		}
		if (mdir==0)
			layer.style.left = td.offsetWidth+xoffset;
		else
			layer.style.left = -layer.offsetWidth-xoffset;
	}
	layer.style.visibility = "visible";
};
function m9623_hideLayer(btnmnu)
{
	var layer;
	if (btnmnu==0) return;
	layer = document.getElementById(btnmnu);
	layer.style.visibility = "hidden";
};
function m9623_hideAllLayers()
{
	for (i=0; i<m9623_mnuCount; i++)
		m9623_hideLayer("m9623_mbtn_mnu"+i);
};
function m9623_startTime()
{
	if (m9623_timerOn == false)
	{
 		m9623_timerID=setTimeout( "m9623_hideAllLayers()" , m9623_timeCount);
 		m9623_timerOn = true;
 	}
};
function m9623_stopTime()
{
	if (m9623_timerOn)
	{
 		clearTimeout(m9623_timerID);
 		m9623_timerID = null;
 		m9623_timerOn = false;
 	}
};
function m9623_get_menu_tb_css(iMIndex,bTbAutosize,iTbWidth,iTbHeight,bTbBgColor,TbBgColor,bTbBgImage,strTbBgImage,bTbBrSetParts,iTbBrSize,TbBrColor,strTbBrStyle,bTbBrLeft,iTbBrSizeLeft,TbBrColorLeft,strTbBrStyleLeft,bTbBrRight,iTbBrSizeRight,TbBrColorRight,strTbBrStyleRight,bTbBrTop,iTbBrSizeTop,TbBrColorTop,strTbBrStyleTop,bTbBrBottom,iTbBrSizeBottom,TbBrColorBottom,strTbBrStyleBottom)
{
str=".m9623_mnu"+iMIndex+"_tb {";
if(!bTbAutosize)
	str+="width:"+iTbWidth+"px;height:"+iTbHeight+"px;";
if(bTbBgColor)
	str+="background-color:#"+TbBgColor+";";
if(bTbBgImage)
	str+="background-image:url(images/"+strTbBgImage+");"
if(!bTbBrSetParts)
	str+="border:"+iTbBrSize+"px #"+TbBrColor+" "+strTbBrStyle+";";
else{
	if(bTbBrLeft) str+="border-left:"+iTbBrSizeLeft+"px #"+TbBrColorLeft+" "+strTbBrStyleLeft+";";
	if(bTbBrRight) str+="border-right:"+iTbBrSizeRight+"px #"+TbBrColorRight+" "+strTbBrStyleRight+";";
	if(bTbBrTop) str+="border-top:"+iTbBrSizeTop+"px #"+TbBrColorTop+" "+strTbBrStyleTop+";";
	if(bTbBrBottom) str+="border-bottom:"+iTbBrSizeBottom+"px #"+TbBrColorBottom+" "+strTbBrStyleBottom+";";
};
str+="} ";
return str;
};
function m9623_get_menu_line_css(iMIndex,SeperateColor)
{
str=".m9623_mnu"+iMIndex+"_line {height:0px;background-color:#"+SeperateColor+"} ";
return str;
};
function m9623_get_menu_td_css(bNormal,iMIndex,iTdIndex,strTdHorizontal,strTdVertical,iTdPadding,fcolor,ffamily,fsize,fitalic,fbold,funderline,iTdBrSize,TdBrColor,strTdBrStyle,bTdBgColor,TdBgColor,bTdBgImage,strTdBgImage)
{
var sLink;
sLink="{display:block;";
sLink+="text-align:"+strTdHorizontal+";vertical-align:"+strTdVertical+";padding:"+iTdPadding+";";
sLink+="color:#"+fcolor+";font-family:"+ffamily+";font-size:"+fsize+";";
if(fitalic) sLink+="font-style:italic;"; else sLink+="font-style:normal;";
if(fbold) sLink+="font-weight:bold;"; else sLink+="font-weight:normal;";
if(funderline) sLink+="text-decoration:underline;"; else sLink+="text-decoration:none;";
sLink+="border:"+iTdBrSize+"px #"+TdBrColor+" "+strTdBrStyle+";";
if(bTdBgColor) sLink+="background-color:#"+TdBgColor+";";
if(bTdBgImage) sLink+="background-image:url(images/"+strTdBgImage+");";
sLink+="} ";
if(bNormal) str=".m9623_mnu"+iMIndex+"_td"+iTdIndex+" a:link "+sLink+".m9623_mnu"+iMIndex+"_td"+iTdIndex+" a:visited "+sLink;
else str=".m9623_mnu"+iMIndex+"_td"+iTdIndex+" a:hover "+sLink+".m9623_mnu"+iMIndex+"_td"+iTdIndex+" a:active "+sLink;
return str;
};
function m9623_get_menu_tb_td(iMIndex,iTdIndex,bSetAsDivision,strTdLink,strTdTarget,strTdIcon,strTdText,iTdIconAlign)
{
if(bSetAsDivision) {
	str="<tr><td class=\"m9623_mnu"+iMIndex+"_line\"></td></tr>";
	return str;
};
str="<tr><td nowrap class=\"m9623_mnu"+iMIndex+"_td"+iTdIndex+"\">";
str+="<a href=\""+strTdLink+"\"";
if(strTdTarget.length>0) str+=" target=\""+strTdTarget+"\"";
str+=">";
if(strTdIcon.length>0){
if(iTdIconAlign==0) str+="<img src=\"images/"+strTdIcon+"\" border=\"0\">"+strTdText;
else if(iTdIconAlign==1) str+=strTdText+"<img src=\"images/"+strTdIcon+"\" border=\"0\">";
else if(iTdIconAlign==2) str+="<img src=\"images/"+strTdIcon+"\" border=\"0\"><br>"+strTdText;
else if(iTdIconAlign==3) str+=strTdText+"<br><img src=\"images/"+strTdIcon+"\" border=\"0\">";
}
else str+=strTdText;
str+="</a></td></tr>";
return str;
};
function m9623_get_menu(iMIndex)
{
str="<div style=\"position:relative;\">";
str+="<div id=\"m9623_mbtn_mnu"+iMIndex+"\" style=\"position:absolute;visibility:hidden;z-index:100;\">";
if(iMIndex==0) {
str+="<style type=\"text/css\">";str+=m9623_get_menu_tb_css(0,true,"0","0",true,"FFFFFF",false,"",false,"1","C0C0C0","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid");
str+=m9623_get_menu_line_css(0,"C0C0C0");
str+=m9623_get_menu_td_css(true,0,0,"Left","Middle","4","808080","Book Antiqua","14",false,false,false,"0","FFFFFF","dashed",false,"FFFFFF",false,"");
str+=m9623_get_menu_td_css(false,0,0,"Left","Middle","4","FFFFFF","Book Antiqua","14",false,false,false,"0","FFFFFF","solid",true,"8EBC7E",false,"");
str+=m9623_get_menu_td_css(true,0,1,"Left","Middle","4","808080","Book Antiqua","14",false,false,false,"0","FFFFFF","dashed",false,"FFFFFF",false,"");
str+=m9623_get_menu_td_css(false,0,1,"Left","Middle","4","FFFFFF","Book Antiqua","14",false,false,false,"0","FFFFFF","solid",true,"8EBC7E",false,"");
str+=m9623_get_menu_td_css(true,0,2,"Left","Middle","4","808080","Book Antiqua","14",false,false,false,"0","FFFFFF","dashed",false,"FFFFFF",false,"");
str+=m9623_get_menu_td_css(false,0,2,"Left","Middle","4","FFFFFF","Book Antiqua","14",false,false,false,"0","FFFFFF","solid",true,"8EBC7E",false,"");
str+=m9623_get_menu_td_css(true,0,3,"Left","Middle","4","808080","Book Antiqua","14",false,false,false,"0","FFFFFF","dashed",false,"FFFFFF",false,"");
str+=m9623_get_menu_td_css(false,0,3,"Left","Middle","4","FFFFFF","Book Antiqua","14",false,false,false,"0","FFFFFF","solid",true,"8EBC7E",false,"");
str+=m9623_get_menu_td_css(true,0,4,"Left","Middle","4","808080","Book Antiqua","14",false,false,false,"0","FFFFFF","dashed",false,"FFFFFF",false,"");
str+=m9623_get_menu_td_css(false,0,4,"Left","Middle","4","FFFFFF","Book Antiqua","14",false,false,false,"0","FFFFFF","solid",true,"8EBC7E",false,"");
str+=m9623_get_menu_td_css(true,0,5,"Left","Middle","4","808080","Book Antiqua","14",false,false,false,"0","FFFFFF","dashed",false,"FFFFFF",false,"");
str+=m9623_get_menu_td_css(false,0,5,"Left","Middle","4","FFFFFF","Book Antiqua","14",false,false,false,"0","FFFFFF","solid",true,"8EBC7E",false,"");
str+="</style>";
str+="<table class=\"m9623_mnu"+iMIndex+"_tb\" cellspacing=\"2\" cellpadding=\"0\" onMouseOver=\"m9623_stopTime();\" onMouseOut=\"m9623_startTime();\">";str+=m9623_get_menu_tb_td(0,0,false,"http://simuni-lovro.hr/App/App/app1Eng.html","","","Apartment 1",0);
str+=m9623_get_menu_tb_td(0,1,false,"http://simuni-lovro.hr/App/App/app2Eng.html","","","Apartment 2",0);
str+=m9623_get_menu_tb_td(0,2,false,"http://simuni-lovro.hr/App/App/app3Eng.html","","","Apartment 3",0);
str+=m9623_get_menu_tb_td(0,3,false,"http://simuni-lovro.hr/App/App/app4Eng.html","","","Apartment 4",0);
str+=m9623_get_menu_tb_td(0,4,false,"http://simuni-lovro.hr/App/App/app5Eng.html","","","Apartment 5",0);
str+=m9623_get_menu_tb_td(0,5,false,"http://simuni-lovro.hr/App/App/app6Eng.html","","","Apartment 6",0);
str+="</table>";
}
else if(iMIndex==1) {
str+="<style type=\"text/css\">";str+=m9623_get_menu_tb_css(1,false,"6","1",true,"FFFFFF",false,"",false,"1","C0C0C0","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid",false,"0","FFFFFF","solid");
str+=m9623_get_menu_line_css(1,"C0C0C0");
str+=m9623_get_menu_td_css(true,1,0,"Center","Middle","5","808080","Book Antiqua","14",false,false,false,"1","FFFFFF","solid",true,"FFFFFF",false,"");
str+=m9623_get_menu_td_css(false,1,0,"Center","Middle","5","FFFFFF","Book Antiqua","14",false,false,false,"1","FFFFFF","solid",true,"9DCD8D",false,"");
str+=m9623_get_menu_td_css(true,1,1,"Center","Middle","5","808080","Book Antiqua","14",false,false,false,"1","FFFFFF","solid",true,"FFFFFF",false,"");
str+=m9623_get_menu_td_css(false,1,1,"Center","Middle","5","FFFFFF","Book Antiqua","14",false,false,false,"1","FFFFFF","solid",true,"9DCD8D",false,"");
str+=m9623_get_menu_td_css(true,1,2,"Center","Middle","5","808080","Book Antiqua","14",false,false,false,"1","FFFFFF","solid",true,"FFFFFF",false,"");
str+=m9623_get_menu_td_css(false,1,2,"Center","Middle","5","FFFFFF","Book Antiqua","14",false,false,false,"1","FFFFFF","solid",true,"9DCD8D",false,"");
str+="</style>";
str+="<table class=\"m9623_mnu"+iMIndex+"_tb\" cellspacing=\"0\" cellpadding=\"0\" onMouseOver=\"m9623_stopTime();\" onMouseOut=\"m9623_startTime();\">";str+=m9623_get_menu_tb_td(1,0,false,"http://simuni-lovro.hr/App/Foto/fotoSIMEng.html","_self","","Simuni&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",0);
str+=m9623_get_menu_tb_td(1,1,false,"http://simuni-lovro.hr/App/Foto/fotoPAGEng.html","_self","","island Pag",0);
str+=m9623_get_menu_tb_td(1,2,false,"http://simuni-lovro.hr/App/Foto/fotoHREng.html","","","Hrvatska&nbsp;&nbsp;&nbsp;&nbsp;",0);
str+="</table>";
};
str+="</div></div>";
return str;
};
function m9623_get_menutd(iIndex,iMIndex,bOver,bdir,mdir,mpos,xoffset,yoffset,iWidth,iHeight,sHint) {
str="<td id=\"m9623_mbtn_td"+iIndex+"\">";
str+=m9623_get_menu(iMIndex);
str+="<a ";
if (bOver)
	str+="onMouseOver";
else
	str+="onClick";
str+="=\"m9623_hideAllLayers();m9623_showLayer('m9623_mbtn_td"+iIndex+"','m9623_mbtn_mnu"+iMIndex+"',"+bdir+","+mdir+","+mpos+","+xoffset+","+yoffset+");m9623_stopTime();\" onMouseOut=\"m9623_startTime();\" href=\"javascript:void(null);\"";
str+=">";
str+="<img src=\"images/m9623_mbtn"+iIndex+"_0.gif\" name=m9623_mbtn"+iIndex+" border=0 width=\""+iWidth+"\" height=\""+iHeight+"\" alt=\""+sHint+"\">";
str+="</a></td>";
return str;
};
function m9623_gen_td(iIndex,bOver,sLink,sTarget,iWidth,iHeight,sHint) {
str="<td id=\"m9623_mbtn_td"+iIndex+"\">";
str+="<a ";
if (bOver)
	str+="onMouseOver";
else
	str+="onClick";
str+="=\"m9623_hideAllLayers();m9623_stopTime();\" onMouseOut=\"m9623_startTime();\" href=\""+sLink+"\"";
if (sTarget.length >0)
	str+=" target=\""+sTarget+"\"";
str+=">";
str+="<img src=\"images/m9623_mbtn"+iIndex+"_0.gif\" name=m9623_mbtn"+iIndex+" border=0 width=\""+iWidth+"\" height=\""+iHeight+"\" alt=\""+sHint+"\">";
str+="</a></td>";
return str;
};
function m9623_get_table(bHor) {
str="<table id=\"m9623_mbtn_tb\" cellpadding=0 cellspacing=0 border=0>";
str+="<tr>";
str+=m9623_gen_td(0,true,"http://simuni-lovro.hr/App/indexEng.html","","93","40","Home");
if (bHor==false) str+="</tr><tr>";
str+=m9623_get_menutd(1,0,true,0,0,0,3,3,"111","40","Products");
if (bHor==false) str+="</tr><tr>";
str+=m9623_gen_td(2,true,"http://simuni-lovro.hr/App/cijeneEng.html","","79","40","Download");
if (bHor==false) str+="</tr><tr>";
str+=m9623_gen_td(3,true,"http://simuni-lovro.hr/App/gdjeEng.html","","125","40","About us ...");
if (bHor==false) str+="</tr><tr>";
str+=m9623_gen_td(4,true,"http://simuni-lovro.hr/App/KontaktEng.html","","93","40","Button6");
if (bHor==false) str+="</tr><tr>";
str+=m9623_get_menutd(5,1,true,0,0,0,3,3,"107","40","Button5");
if (bHor==false) str+="</tr><tr>";
str+=m9623_gen_td(6,true,"http://www.simuni-lovro.hr\app\infoEng.html","","63","40","Button7");
str+="</tr>";
str+="</table>";
return str;
};
result=m9623_get_table(true);
document.write(result);
