
function loadPage(i){


	//var siteName =  "http://localhost/_hostmann/"
	var siteName =  "http://www.drukinkt.nl/";
	//var siteName =  "http://www.mso-online.nl/_hostmann/"
	//var siteName =  "http://www.studiowatermerk.nl/_develop/_drukinkt/"
	//var siteName =  "http://www.dajazzman.nl/drukinkt/";

	if (i == 'home')		 	 { location.href = siteName + "index.php"}

	if (i == 'menuItem1_1'){ location.href = siteName + "page/index.php?page=over_ons.php"}
	if (i == 'menuItem1_2'){ location.href = siteName + "page/index.php?page=waarom.php"}

	if (i == 'menuItem2_1'){ location.href = siteName + "page/index.php?page=vellen_offset.php"}
	if (i == 'menuItem2_2'){ location.href = siteName + "page/index.php?page=klein_offset.php"}
	if (i == 'menuItem2_3'){ location.href = siteName + "page/index.php?page=kettingformulieren.php"}
	if (i == 'menuItem2_4'){ location.href = siteName + "page/index.php?page=uv_inkten.php"}
	if (i == 'menuItem2_5'){ location.href = siteName + "page/index.php?page=mengkleuren.php"}
	if (i == 'menuItem2_6'){ location.href = siteName + "page/index.php?page=speciaal_inkten.php"}

	if (i == 'menuItem3_1'){ location.href = siteName + "page/index.php?page=overdruk_vernis.php"}
	if (i == 'menuItem3_2'){ location.href = siteName + "page/index.php?page=was_hulpmiddelen.php"}
	if (i == 'menuItem3_3'){ location.href = siteName + "page/index.php?page=additieven.php"}
	if (i == 'menuItem3_4'){ location.href = siteName + "page/index.php?page=goud_silver.php"}
	if (i == 'menuItem3_5'){ location.href = siteName + "page/index.php?page=vochtwater.php"}

	if (i == 'dealers')		 			{ location.href = siteName + "page/index.php?page=dealers.php"}
	if (i == 'aanbiedingen')		{ location.href = siteName + "page/index.php?page=aanbiedingen.php"}
	if (i == 'bestelformulier')	{ location.href = siteName + "page/index.php?page=bestelformulier.php"}
	if (i == 'contact')					{ location.href = siteName + "page/index.php?page=contact.php"}

	if (i == 'privacy')					{ location.href = siteName + "page/index.php?page=privacy.php"}
	if (i == 'copyright')				{ location.href = siteName + "page/index.php?page=copyright.php"}
	if (i == 'disclaimer')			{ location.href = siteName + "page/index.php?page=disclaimer.php"}
}

		  function InitMenu(){

    		 	var bar = menuBar.children

		    	 for(var i=0;i < bar.length;i++){

          		var menu=eval(bar[i].menu)


          		menu.style.visibility = "hidden"

          		bar[i].onmouseover = new Function("ShowMenu("+bar[i].id+")")

          		var Items = menu.children

          		for(var j=0; j<Items.length; j++){

              	var menuItem = eval(Items[j].id)

	              if(menuItem.cmd != null) {
                   menuItem.onclick = new Function("Do("+menuItem.id+")")
                }

              	menuItem.onmouseover = new Function("highlight("+Items[j].id+")")


            }



   				}
   		}

		  function ShowMenu(obj){
     			HideMenu(menuBar)
     			var menu = eval(obj.menu)
     			var bar = eval(obj.id)
     			bar.className="barOver"
     			menu.style.visibility = "visible"
     			menu.style.pixelTop =  obj.getBoundingClientRect().top + obj.offsetHeight + Bdy.scrollTop
     			menu.style.pixelLeft = obj.getBoundingClientRect().left + Bdy.scrollLeft -2

   		}

   		function HideMenu(obj){

          if(obj.hasChildNodes()==true)
              {
                 var child = obj.children

                 for(var j =0;j<child.length;j++)
                  {
                     if (child[j].className=="barOver")
                     {var bar = eval(child[j].id)
                      bar.className="Bar"}

                     if(child[j].menu != null)
                       {
                          var childMenu = eval(child[j].menu)
                          if(childMenu.hasChildNodes()==true)
                               HideMenu(childMenu)

                           childMenu.style.visibility = "hidden"
                         }
                  }

              }
   		}

		  function highlight(obj){
     		var PElement = eval(obj.parentElement.id)

     		if(PElement.hasChildNodes() == true){
     			  var Elements = PElement.children
       			for(var i=0;i<Elements.length;i++){
          			TE = eval(Elements[i].id)
          			TE.className = "menuItem"
       			}
      	}
     		obj.className="ItemMouseOver"
     		window.defaultStatus = obj.title
     		ShowSubMenu(obj)
   		}

			function Do(obj){
        var cmd = eval(obj).cmd
    		window.navigate(cmd)
		  }

		  function ShowSubMenu(obj){
     		PMenu = eval(obj.parentElement.id)
     		HideMenu(PMenu)
     		if(obj.menu != null){
     				var menu = eval(obj.menu)
     				menu.style.visibility = "visible"
     				menu.style.pixelTop =  obj.getBoundingClientRect().top + Bdy.scrollTop
     				menu.style.pixelLeft = obj.getBoundingClientRect().right + Bdy.scrollLeft
     				if(menu.getBoundingClientRect().right > window.screen.availWidth )
       			menu.style.pixelLeft = obj.getBoundingClientRect().left - menu.offsetWidth
    		}
  		}

			function ResetMenu(){
	     	HideMenu(menuBar)
			}

