//--------------------------------- SVG MENU ROOT --------------------------------------
if (_IE) {
	document.write('<DIV ID="RootMenu" STYLE="visibility:visible;position:absolute;top:'+ root_menu_startposition_y +'px;left:'+ root_menu_startposition_x +'px;height:141px;width:180px;z-index:10;">');
	document.write('<EMBED NAME="menu" SRC="menu.svg" WIDTH="180px" HEIGHT="141px" ALT="" PLUGINSPAGE="http://www.adobe.com/svg/viewer/install/" TYPE="image/svg-xml" WMODE="transparent"></EMBED>');
	document.write('</DIV>');
}
//---------------------------------- HTML MENU ROOT ------------------------------------
else {
	document.write('<DIV ID="RootMenu" STYLE="visibility:visible;position:absolute;top:'+ root_menu_startposition_y +'px;left:'+ root_menu_startposition_x +'px;height:144px;width:180px;z-index:10;">');

	document.write('<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="180px" HEIGHT="144px">');
	document.write('<TR>');
	document.write('<TD COLSPAN="2" ROWSPAN="2" WIDTH="176px" HEIGHT="140px">');
	
	//Menutable
	document.write('<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="176px" HEIGHT="139px">');

	document.write('<TR>');
	document.write('<TD WIDTH="6px" HEIGHT="5px" BACKGROUND="bgimages/menutable_top_left.gif">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	document.write('<TD HEIGHT="5px" BACKGROUND="bgimages/menutable_top_center.gif">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	document.write('<TD WIDTH="4px" HEIGHT="5px" BACKGROUND="bgimages/menutable_top_right.gif">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	document.write('</TR>');

	document.write('<TR>');
	document.write('<TD WIDTH="6px" BACKGROUND="bgimages/menutable_middle_left.gif">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	document.write('<TD>');
	document.write('<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="166px" HEIGHT="130px" BGCOLOR="#F0E9F5">');
	document.write('<TR>');
	document.write('<TD HEIGHT="26px" VALIGN="MIDDLE">');
	//Menuitem Nr 1
		document.write('<DIV ID="Menupoint_1" STYLE="background-color:#F0E9F5;visibility:visible;position:relative;width:166px;height:26px;cursor:hand;" ONMOUSEOVER="elementColor(\'Menupoint_1\',\'#FFFFFF\');openCloseSubmenu_level_1(\'Level1Menu\',\'Level1MenuHotArea\',\'1\',\'close\');openCloseSubmenu_level_2(\'Level2_1Menu\',\'Level2_1MenuHotArea\',\'1\',\'0\',\'close\');openCloseSubmenu_level_2(\'Level2_2Menu\',\'Level2_2MenuHotArea\',\'1\',\'1\',\'close\');" ONMOUSEOUT="elementColor(\'Menupoint_1\',\'#F0E9F5\');" ONMOUSEUP="newLocation(\'test.denec.ee/benediktiinlased\');">');
		document.write('<TABLE WIDTH="100%" HEIGHT="26px" CELLPADDING="0" CELLSPACING="0" BORDER="0">');
		document.write('<TR>');
		document.write('<TD WIDTH="26px" ALIGN="CENTER" VALIGN="MIDDLE">');
		document.write('<IMG SRC="menuimages/Menumonastery.png" BORDER="0">');
		document.write('</TD>');
		document.write('<TD ALIGN="LEFT" VALIGN="MIDDLE">');
		document.write('<A HREF="#">Monastery</A>');
		document.write('</TD>');
		document.write('</TR>');
		document.write('</TABLE>');
		document.write('</DIV>');
	document.write('</TD>');
	document.write('</TR>');
	
	document.write('<TR>');
	document.write('<TD HEIGHT="26px" VALIGN="MIDDLE">');
	//Menuitem Nr 2
		document.write('<DIV ID="Menupoint_2" STYLE="background-color:#F0E9F5;visibility:visible;position:relative;width:166px;height:26px;cursor:hand;" ONMOUSEOVER="elementColor(\'Menupoint_2\',\'#FFFFFF\');openCloseSubmenu_level_1(\'Level1Menu\',\'Level1MenuHotArea\',\'1\',\'open\');" ONMOUSEOUT="elementColor(\'Menupoint_2\',\'#F0E9F5\');">');
		document.write('<TABLE WIDTH="100%" HEIGHT="26px" CELLPADDING="0" CELLSPACING="0" BORDER="0">');
		document.write('<TR>');
		document.write('<TD WIDTH="26px" ALIGN="CENTER" VALIGN="MIDDLE">');
		document.write('<IMG SRC="menuimages/Menucamera.png" BORDER="0">');
		document.write('</TD>');
		document.write('<TD ALIGN="LEFT" VALIGN="MIDDLE">');
		document.write('<A HREF="#">My Photos</A>');
		document.write('</TD>');
		document.write('<TD WIDTH="10px" ALIGN="LEFT" VALIGN="MIDDLE">');
		document.write('<IMG SRC="menuimages/Menuthreeangle.png" BORDER="0">');
		document.write('</TD>');
		document.write('</TR>');
		document.write('</TABLE>');
		document.write('</DIV>');
	document.write('</TD>');
	document.write('</TR>');
	
	document.write('<TR>');
	document.write('<TD HEIGHT="26px" VALIGN="MIDDLE">');
	//Menuitem Nr 3
		document.write('<DIV ID="Menupoint_3" STYLE="background-color:#F0E9F5;visibility:visible;position:relative;width:166px;height:26px;cursor:hand;" ONMOUSEOVER="elementColor(\'Menupoint_3\',\'#FFFFFF\');openCloseSubmenu_level_1(\'Level1Menu\',\'Level1MenuHotArea\',\'1\',\'close\');openCloseSubmenu_level_2(\'Level2_1Menu\',\'Level2_1MenuHotArea\',\'1\',\'0\',\'close\');openCloseSubmenu_level_2(\'Level2_2Menu\',\'Level2_2MenuHotArea\',\'1\',\'1\',\'close\');" ONMOUSEOUT="elementColor(\'Menupoint_3\',\'#F0E9F5\');" ONMOUSEUP="newLocation(\'www.dizionario.tln.edu.ee\');">');
		document.write('<TABLE WIDTH="100%" HEIGHT="26px" CELLPADDING="0" CELLSPACING="0" BORDER="0">');
		document.write('<TR>');
		document.write('<TD WIDTH="26px" ALIGN="CENTER" VALIGN="MIDDLE">');
		document.write('<IMG SRC="menuimages/Menubook.png" BORDER="0">');
		document.write('</TD>');
		document.write('<TD ALIGN="LEFT" VALIGN="MIDDLE">');
		document.write('<A HREF="#">Dictionary Est-Ita</A>');
		document.write('</TD>');
		document.write('</TR>');
		document.write('</TABLE>');
		document.write('</DIV>');
	document.write('</TD>');
	document.write('</TR>');
	
	document.write('<TR>');
	document.write('<TD HEIGHT="26px" VALIGN="MIDDLE">');
	//Menuitem Nr 4
		document.write('<DIV ID="Menupoint_4" STYLE="background-color:#F0E9F5;visibility:visible;position:relative;width:166px;height:26px;cursor:hand;" ONMOUSEOVER="elementColor(\'Menupoint_4\',\'#FFFFFF\');openCloseSubmenu_level_1(\'Level1Menu\',\'Level1MenuHotArea\',\'1\',\'close\');openCloseSubmenu_level_2(\'Level2_1Menu\',\'Level2_1MenuHotArea\',\'1\',\'0\',\'close\');openCloseSubmenu_level_2(\'Level2_2Menu\',\'Level2_2MenuHotArea\',\'1\',\'1\',\'close\');" ONMOUSEOUT="elementColor(\'Menupoint_4\',\'#F0E9F5\');" ONMOUSEUP="newLocation(\'denec.ee/sytiste\');">');
		document.write('<TABLE WIDTH="100%" HEIGHT="26px" CELLPADDING="0" CELLSPACING="0" BORDER="0">');
		document.write('<TR>');
		document.write('<TD WIDTH="26px" ALIGN="CENTER" VALIGN="MIDDLE">');
		document.write('<IMG SRC="menuimages/Menubook.png" BORDER="0">');
		document.write('</TD>');
		document.write('<TD ALIGN="LEFT" VALIGN="MIDDLE">');
		document.write('<A HREF="#">Juhan S&#252;tiste luulet</A>');
		document.write('</TD>');
		document.write('</TR>');
		document.write('</TABLE>');
		document.write('</DIV>');
	document.write('</TD>');
	document.write('</TR>');
	
	document.write('<TR>');
	document.write('<TD HEIGHT="26px" VALIGN="MIDDLE">');
	//Menuitem Nr 5
		document.write('<DIV ID="Menupoint_5" STYLE="background-color:#F0E9F5;visibility:visible;position:relative;width:166px;height:26px;cursor:hand;" ONMOUSEOVER="elementColor(\'Menupoint_5\',\'#FFFFFF\');openCloseSubmenu_level_1(\'Level1Menu\',\'Level1MenuHotArea\',\'1\',\'close\');openCloseSubmenu_level_2(\'Level2_1Menu\',\'Level2_1MenuHotArea\',\'1\',\'0\',\'close\');openCloseSubmenu_level_2(\'Level2_2Menu\',\'Level2_2MenuHotArea\',\'1\',\'1\',\'close\');" ONMOUSEOUT="elementColor(\'Menupoint_5\',\'#F0E9F5\');" ONMOUSEUP="newLocation(\'test.denec.ee/crop\');">');
		document.write('<TABLE WIDTH="100%" HEIGHT="26px" CELLPADDING="0" CELLSPACING="0" BORDER="0">');
		document.write('<TR>');
		document.write('<TD WIDTH="26px" ALIGN="CENTER" VALIGN="MIDDLE">');
		document.write('<IMG SRC="menuimages/Menufilm.png" BORDER="0">');
		document.write('</TD>');
		document.write('<TD ALIGN="LEFT" VALIGN="MIDDLE">');
		document.write('<A HREF="#">Crop System</A>');
		document.write('</TD>');
		document.write('</TR>');
		document.write('</TABLE>');
		document.write('</DIV>');
	document.write('</TD>');
	document.write('</TR>');
	document.write('</TABLE>');
	document.write('</TD>');
	
	document.write('<TD WIDTH="4px" BACKGROUND="bgimages/menutable_middle_right.gif">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	document.write('</TR>');

	document.write('<TR>');
	document.write('<TD WIDTH="6px" HEIGHT="5px" BACKGROUND="bgimages/menutable_bottom_left.gif">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	document.write('<TD HEIGHT="5px" BACKGROUND="bgimages/menutable_bottom_center.gif">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	document.write('<TD WIDTH="4px" HEIGHT="5px" BACKGROUND="bgimages/menutable_bottom_right.gif">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	document.write('</TR>');

	document.write('</TABLE>');
	//Menutable END
	
	document.write('</TD>');
	
	document.write('<TD ROWSPAN="1" WIDTH="4px" HEIGHT="4px">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	document.write('</TR>');
	
	document.write('<TR>');
	document.write('<TD WIDTH="4px" BACKGROUND="shadows/shadow_1px.png">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	document.write('</TR>');
	
	document.write('<TR>');
	document.write('<TD WIDTH="5px" HEIGHT="4">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	
	document.write('<TD WIDTH="171px" HEIGHT="4" BACKGROUND="shadows/shadow_1px.png">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	
	document.write('<TD WIDTH="4px" HEIGHT="4" BACKGROUND="shadows/shadow_1px.png">');
	document.write('<IMG SRC="bgimages/spacer_1px.gif" BORDER="0">');
	document.write('</TD>');
	document.write('</TR>');
	
	document.write('</TABLE>');
	
	document.write('</DIV>');
}

//---------------------------------- Hot area ------------------------------------

document.write('<DIV ID="RootMenuHotArea" STYLE="visibility:visible;position:absolute;top:' + (0-root_menu_height-menuhotarea_delta) + 'px;left:' + (0-root_menu_width-menuhotarea_delta) + 'px;width:' + (root_menu_width+menuhotarea_delta) + 'px;height:' + (root_menu_height+menuhotarea_delta) + 'px;z-index:1;" ONMOUSEOVER="openCloseSubmenu_level_1(\'Level1Menu\',\'Level1MenuHotArea\',\'2\',\'close\');openCloseSubmenu_level_2(\'Level2_1Menu\',\'Level2_1MenuHotArea\',\'1\',\'0\',\'close\');">');
document.write('</DIV>');