document.write("<SPAN ID='StartMenu' STYLE='display:none;'></SPAN>");
var aDefMSColor  = new Array(3);
var aCurMSColor  = new Array(3);
var LastMSMenu = "MS_Free";
var x = 0;
var y = 0;
var x2 = 0;
var y2 = 0;
var x3 = 0;
var y3 = 0;
var x4 = 0;
var y4 = 0;
var scFlag = false;
//var scrollcount = 0;
//var Strict_Compat = false;
var ToolBar_Supported = true;
var Frame_Supported   = false;
var MaxMenu = 30;
		
aDefMSColor[0]	= aCurMSColor[0]  = "#e1c586";	// bgcolor;
aDefMSColor[1]	= aCurMSColor[1]  = "#5e3doa";	// text font color
aDefMSColor[2]  = aCurMSColor[2]  = "#ffffff";	// mouseover font color
	//window.onresize  = resizeToolbar;
	//window.onscroll  = scrollbaroptions;

//function drawToolbar()
//{
//	ToolbarLoaded = true;
//
//	MSMenuWidth     = Math.max(idMSMenuPane.offsetWidth, 300);
//	ToolbarMinWidth = (25+18) + MSMenuWidth;

//	idMSMenuPane.style.backgroundColor  = aDefMSColor[0];
//	resizeToolbar();
	
//}

//function resizeToolbar()
//{
//	scFlag = false;
//	scrollcount = 0;
//	if (ToolBar_Supported == false) return;

//	w = Math.max(ToolbarMinWidth, document.body.clientWidth) - ToolbarMinWidth;
//	if (w < 350){
//	w = 350;}
//	if (document.all("idMSMenuCurve"))
//	{	
//		idMSMenuCurve.style.left  = (25+w) + 'px';
//		idMSMenuPane.style.left   = (25+w+18) + 'px';
//		idMSMenuPane.style.width  = MSMenuWidth  + 'px';
//		slika.style.width  = (25+w+18) + MSMenuWidth  + 'px';
//		Tab1.style.width = (25+w+18) + MSMenuWidth  + 'px';
//	}
//}

//function scrollbaroptions()
//{
//	scrollcount ++;
//	if (scrollcount < 3)
//	{
//		scFlag = true;
//	}else{
//		scrollcount = 0;
//		scFlag = false;
//	}	
//}

//function mouseMenu(id, MenuIDStr) 
//{
//	IsMouseout = (id.toUpperCase().indexOf("OUT") != -1);

//	if (IsMouseout)
//	{
//		color = aDefMSColor[1];
//	}
//	else
//	{
//		color =aDefMSColor[2];
//	}
//	window.event.srcElement.style.color = color;
//}

/*{function doMenu(MenuIDStr) 
{
	var thisMenu = document.all(MenuIDStr);
	if (ToolbarMenu == null || thisMenu == null || thisMenu == ToolbarMenu) 
	{
		window.event.cancelBubble = true;
		return false;
	}
	// Reset dropdown menu
	window.event.cancelBubble = true;
	ToolbarMenu.style.display = "none";
	ToolbarMenu = thisMenu;

	// Set dropdown menu display position
	x  = window.event.srcElement.offsetLeft +
	 	 window.event.srcElement.offsetParent.offsetLeft;

	if (MenuIDStr == LastMSMenu)
		x += (window.event.srcElement.offsetWidth - thisMenu.style.posWidth);
	x2 = x + window.event.srcElement.offsetWidth;
	y  = 	idRow1.offsetHeight;
	
		 
	thisMenu.style.top  = y;
	thisMenu.style.left = x;
	thisMenu.style.clip = "rect(0 0 0 0)";
	thisMenu.style.display = "block";
	thisMenu.style.zIndex = 102;

	// delay 2 millsecond to allow the value of ToolbarMenu.offsetHeight be set
	window.setTimeout("showMenu()", 2);
	return true;
}
*/
/*function showMenu() 
{
	if (ToolbarMenu != null) 
	{ 
		y2 = y + ToolbarMenu.offsetHeight;

		ToolbarMenu.style.clip = "rect(auto auto auto auto)";
		x2 = x + ToolbarMenu.offsetWidth;
	}
}
*/
/*function hideMenu()
{
	if (ToolbarMenu != null && ToolbarMenu != StartMenu) 
	{
		// Don't hide the menu if the mouse move between the menu and submenus
		cY = event.clientY + document.body.scrollTop;
		cX = event.clientX + document.body.scrollLeft; 
		if (document.body.offsetWidth > x && scFlag) {
			cX = x + 9;
		}
		if ( (cX >= (x+5) && cX<=x2) &&
			(cY > (y-10) && cY <= y2))
		{
			window.event.cancelBubble = true;
			return; 
		}
		ToolbarMenu.style.display = "none";
		ToolbarMenu = StartMenu;
		window.event.cancelBubble = true;
	}
}
*/
function mouseMenuD(id, MenuIDStr, MenuPic) 
{
	IsMouseout = (id.toUpperCase().indexOf("OUT") != -1);

	if (IsMouseout)
	{
		if (mouseMenuD.arguments.length > 2){
			if (window.event.srcElement.contains(window.event.toElement)){ 
					return;
			}
			color = "#5e3d0a";//boja fonta
			colorb = "#e1c586";
			window.event.srcElement.style.borderColor = "#e1c586";//border color
		}else{
		color = "white";
		colorb = "#000000";
		}
	}
	else
	{
		color = "#000000";
		colorb = "#FFCC00";
		if (mouseMenuD.arguments.length > 2){
			color = "#ffffff";//boja fonta prilikom skrola
			colorb = "#e1c586";//pozadina prilikom skrola
			window.event.srcElement.style.borderColor = "e1c586";
		}
	}
	window.event.srcElement.style.color = color;
	window.event.srcElement.style.backgroundColor = colorb;
}