// JavaScript Document                                                                  

	function showVoditel() {
		alert("test");
		$("#voditel").show("normal");
	}
 	$(document).ready(function() {
	

					
					function hideHints() {
						var i;
						for (i=1; i<7; i++) {
								$("#hint"+i).css({"display":"none"});				
						}
					}
					 $(".dropdownmenu").each(function(i){
												var num = i+1; 
												//$(".dropdownmenu").eq(i).css({"left":$(".menuitem").get(i).offsetLeft+"px"});
												//alert();
											 });
					
                                         	
					 $(".menuitem").each(function (i) {
												 var num = i+1;
												$(this).hover( function() {    	$("#dropdownmenu"+num, this).css({"display":"block"});},
																function() {
																			$("#dropdownmenu"+num, this).css({"display":"none"});}
													);
											}); 
					$("#area1").click(function(event) {
							hideHints();
							$("#hint1").css({"left":event.pageX, "top":event.pageY,"display":"block"});
					});
					$("#close1").click(function(event) {
							$("#hint1").css({"display":"none"});
					});
					
					$("#area2").click(function(event) {
							hideHints();
							$("#hint2").css({"left":event.pageX, "top":event.pageY,"display":"block"});
					});
					$("#close2").click(function(event) {
							$("#hint2").css({"display":"none"});
					});
					
					$("#area3").click(function(event) {
							hideHints();
							$("#hint3").css({"left":event.pageX, "top":event.pageY,"display":"block"});
					});
					$("#close3").click(function(event) {
							$("#hint3").css({"display":"none"});
					});
					
					$("#area4").click(function(event) {
							hideHints();
							$("#hint4").css({"left":event.pageX, "top":event.pageY,"display":"block"});
					});
					$("#close4").click(function(event) {
							$("#hint4").css({"display":"none"});
					});
					
					$("#area5").click(function(event) {
							hideHints();
							$("#hint5").css({"left":event.pageX, "top":event.pageY,"display":"block"});
					});
					$("#close5").click(function(event) {
							$("#hint5").css({"display":"none"});
					});
					
					$("#area6").click(function(event) {
							hideHints();
							$("#hint6").css({"left":event.pageX, "top":event.pageY,"display":"block"});
					});
					$("#close6").click(function(event) {
							$("#hint6").css({"display":"none"});
					});
					$(".virt_avto").toggle( function(event) {$("#voditel").show("normal")},
											function(event) {$("#voditel").hide("normal")});
					
					});
