    var URL_NOTHING = 10;
    var URL_ORGANIZATION = 20;
    var URL_ABOUT_ORGANIZATION = 30;
    var URL_CHAIRMAN = 40;
    var URL_COMMITTEES = 50;
    var URL_COUNCIL = 60;
    var URL_SECRETERY = 70;
    var URL_EVENTS = 80;
    var URL_EVENTS_2005 = 90;
    var URL_FROM_GIMLAIM = 100;
    var URL_USEFULINFORMATION = 110;
    var URL_MEMORY = 120; 
   
   

  	// For menu delays flags

	var isOver;
	var isSelectOver;
	var isCatOver;
	isSelectOver = false;
	isCatOver = false;
			
	var LONG_DELAY;
	var SHORT_DELAY;
	isOver = false;
	LONG_DELAY = 7000;
	SHORT_DELAY = 3000;

 // ***********************************/

// Constants for the absolute paths of links.

	 var PROTOCOL = "http://";
	 var SITE = "127.0.0.1/he-il/";
	 
		function show(num){			
		
		
			var xCord;
			var yCord = 91;
			var location;
						
			//location = (document.body.offsetWidth - 800) / 2;
			//if (location < 0) {
				location = 0;
			//} 		
			
            if (num == 1) {	            
				xCord = location + 531;
		         	document.getElementById('menu1').style.left = xCord;
				document.getElementById('menu1').style.top = yCord;
				document.getElementById('menu1').style.display = 'block';
				document.getElementById('menu1').style.visibility = 'visible';				
				document.getElementById('menu2').style.visibility = 'hidden';				
		
			  }
			else if (num == 2) {
				xCord = location + 429;
				document.getElementById('menu2').style.left = xCord;
				document.getElementById('menu2').style.top = yCord;
				document.getElementById('menu2').style.display = 'block';
				document.getElementById('menu2').style.visibility = 'visible';				
				document.getElementById('menu1').style.visibility = 'hidden';
			}

		}

                    
 
 
		// Make the sub menu table visible
		function stay(obj){
			obj.style.visibility = 'visible';
		}
		



        // Home page menus targets.
		function goToH(URL,PROTOCOL,SITE)
		{
		alert("31213");
		    // *****  Sub Menu 1 *************************************************************
			if (URL == URL_NOTHING ){		    
			    //** Do nothing
			}
			else if (URL == URL_ABOUT_ORGANIZATION){					
			    document.location.href = PROTOCOL + SITE + "/he-il/gimlaim/organization/About_Organization/";
			}
			else if (URL == URL_CHAIRMAN){					
			    document.location.href = PROTOCOL + SITE + "/he-il/gimlaim/organization/Chairman/";
			}
                        					
			else if (URL == URL_COMMITTEES){					
			    document.location.href = PROTOCOL + SITE + "/he-il/gimlaim/organization/Committees/";
			}
     		else if (URL == URL_COUNCIL){					
			    document.location.href = PROTOCOL + SITE + "/he-il/gimlaim/organization/Council/";
			}
			else if (URL == URL_SECRETERY){					
			    document.location.href = PROTOCOL + SITE + "/he-il/gimlaim/organization/Secretery/";
			}
			

		    // Menu number 2
			else if (URL == URL_EVENTS_2005){					
			    document.location.href = PROTOCOL + SITE + "/he-il/gimlaim/events/2005/";
			}				
			
	
              }

                    
        function hideAllMenus(){
			document.getElementById('menu1').style.visibility = 'hidden';
			document.getElementById('menu2').style.visibility = 'hidden';
		}
		
      

//This function redirect to website

  function SelectSiteFunc(){
      var website;      
      website= document.getElementById("selectSite").value;      
      switch(website) {
      case "portal":		
          window.location.href="http://www.mod.gov.il";
          break;
 
      case "izkor":
          window.location.href="http://www.izkor.gov.il";
          break;
  
      case "shikumh":
          window.location.href="http://www.shikum.mod.gov.il";
          break;

      case "mishpahot":
          window.location.href="http://www.mishpahot-hantzaha.mod.gov.il";
          break;

      case "archive":
          window.location.href="http://www.archives.mod.gov.il";
          break;
    
      case "haimash":
          window.location.href="http://www.hachvana.mod.gov.il";
          break;
 
      case "melach":
          window.location.href="http://www.melach.mod.gov.il";
          break;
 
     case "fence":
          window.location.href="http://www.securityfence.mod.gov.il";
          break;

     case "fenceEng":
          window.location.href="http://www.securityfence.mod.gov.il/pages/ENG/default.htm";
          break;

     case "sibat":
          window.location.href="http://www.sibat.mod.gov.il";
          break;

     case "airshow":
          window.location.href="http://www.airshow.mod.gov.il";
          break;

     case "eurosatory":
          window.location.href="http://www.eurosatory.mod.gov.il";
          break;

     case "katzir":
          window.location.href="http://www.katzir.mod.gov.il";
          break;

     case "newyork":
          window.location.href="http://www.goimod.com";
          break;

     case "idf":
          window.location.href="http://www.idf.il";
          break;

     case "state":
          window.location.href="http://www.mfa.gov.il";
          break; 

     case "gov":
          window.location.href="http://www.info.gov.il";
          break; 

     case "knesset":
          window.location.href="http://www.knesset.gov.il";
          break; 

     default:
          window.location.href="pages/general/takala.htm";
	}  
 }      
       
       
  