var imgPath = '/main/img/';

var overMenu = false;



function showMenu(id){

	overMenu = true;

	

	if($(id).style.display != 'block')

	{

        $('words1').style.display = 'none';
        $('words2').style.display = 'none';
        $('words3').style.display = 'none';
        $('words4').style.display = 'none';
        $('words5').style.display = 'none';
        $('words6').style.display = 'none';
        $('words7').style.display = 'none';
        $('words8').style.display = 'none';
        $('words9').style.display = 'none';
        $('words10').style.display = 'none';
        $('words11').style.display = 'none';
        $('words12').style.display = 'none';
        $('words13').style.display = 'none';
        $('words14').style.display = 'none';
        $('words15').style.display = 'none';
        $('words16').style.display = 'none';
        $('words17').style.display = 'none';
        $('words18').style.display = 'none';
        $('words19').style.display = 'none';
        $('words20').style.display = 'none';
        $('words21').style.display = 'none';
        $('words22').style.display = 'none';
        $('words23').style.display = 'none';
        $('words24').style.display = 'none';
        $('words25').style.display = 'none';
        $('words26').style.display = 'none';
        $('words27').style.display = 'none';
        $('words28').style.display = 'none';
        $('words29').style.display = 'none';
        $('words30').style.display = 'none';
        $('words31').style.display = 'none';
        $('words32').style.display = 'none';
        $('words33').style.display = 'none';
        $('words34').style.display = 'none';
        $('words35').style.display = 'none';
        $('words40').style.display = 'none';


        

		$(id).style.display = 'block';

	}

}



function hideMenu(id){

	overMenu = false;

	doHideMenu(id);

}



function doHideMenu(id) {

	if(!overMenu){

		$(id).style.display = 'none';

	}

}





function setOverMenu (e) {

	overMenu = true;

}



//Event.observe(window, 'load', function() {

//	$$('.menus').each( function(p) { p.observe('mouseout', setOffMenu); } )

//	$$('.menus').each( function(p) { p.observe('mouseover', setOverMenu); } )

//	$$('.menus').each( function(p) { Event.observe(p, 'mouseover', setOverMenu); } )

//});



// PRELOAD IMAGES

var imgButton0 = new Image(39, 35);
imgButton0.src = imgPath+'buttons/button-01-offorange.gif';

var imgButton1 = new Image(39, 35);
imgButton1.src = imgPath+'buttons/button-01-orange.gif';

var imgButton2 = new Image(39, 35);
imgButton2.src = imgPath+'buttons/button-01-orange.gif';

var imgButton3 = new Image(39, 35);
imgButton3.src = imgPath+'buttons/button-03-downloads.gif';

var imgButton4 = new Image(39, 35);
imgButton4.src = imgPath+'buttons/button-04-logos.gif';

var imgButton5 = new Image(39, 35);
imgButton5.src = imgPath+'buttons/button-05-styles.gif';

var imgButton6 = new Image(39, 35);
imgButton6.src = imgPath+'buttons/button-06-bell.gif';

var imgButton7 = new Image(39, 35);
imgButton7.src = imgPath+'buttons/button-07-ycp.gif';

var imgButton8 = new Image(39, 35);
imgButton8.src = imgPath+'buttons/button-08-react.gif';

var imgButton9 = new Image(39, 35);
imgButton9.src = imgPath+'buttons/button-09-ihrf.gif';

var imgButton10 = new Image(39, 35);
imgButton10.src = imgPath+'buttons/button-10-salinger.gif';

var imgButton11 = new Image(39, 35);
imgButton11.src = imgPath+'buttons/button-11-jfs.gif';

var imgButton12 = new Image(39, 35);
imgButton12.src = imgPath+'buttons/button-12-fs.gif';

var imgButton13 = new Image(39, 35);
imgButton13.src = imgPath+'buttons/button-13-jfsmov.gif';

var imgButton14 = new Image(39, 35);
imgButton14.src = imgPath+'buttons/button-14-lightbombing.gif';

var imgButton15 = new Image(39, 35);
imgButton15.src = imgPath+'buttons/button-15-stylesmov.gif';

var imgButton16 = new Image(39, 35);
imgButton16.src = imgPath+'buttons/button-16-livingroom.gif';

var imgButton17 = new Image(39, 35);
imgButton17.src = imgPath+'buttons/button-17-shadows.gif';

var imgButton18 = new Image(39, 35);
imgButton18.src = imgPath+'buttons/button-18-privee.gif';

var imgButton19 = new Image(39, 35);
imgButton19.src = imgPath+'buttons/button-19-schuur.gif';

var imgButton20 = new Image(39, 35);
imgButton20.src = imgPath+'buttons/button-20-stucard.gif';

var imgButton21 = new Image(39, 35);
imgButton21.src = imgPath+'buttons/button-21-play.gif';

var imgButton22 = new Image(39, 35);
imgButton22.src = imgPath+'buttons/button-22-reagenz.gif';

var imgButton23 = new Image(39, 35);
imgButton23.src = imgPath+'buttons/button-23-stucard.gif';

var imgButton24 = new Image(39, 35);
imgButton24.src = imgPath+'buttons/button-24-flyers.gif';

var imgButton25 = new Image(39, 35);
imgButton25.src = imgPath+'buttons/button-25-dsk.gif';

var imgButton26 = new Image(39, 35);
imgButton26.src = imgPath+'buttons/button-26-oldnews.gif';

var imgButton27 = new Image(39, 35);
imgButton27.src = imgPath+'buttons/button-27-velvetique.gif';

var imgButton28 = new Image(39, 35);
imgButton28.src = imgPath+'buttons/button-28-ocad.gif';

var imgButton29 = new Image(39, 35);
imgButton29.src = imgPath+'buttons/button-29-moka.gif';

var imgButton30 = new Image(39, 35);
imgButton30.src = imgPath+'buttons/button-30-moja.gif';

var imgButton31 = new Image(39, 35);
imgButton31.src = imgPath+'buttons/button-31-stuartreid.gif';

var imgButton32 = new Image(39, 35);
imgButton32.src = imgPath+'buttons/button-32-globemail.gif';

var imgButton33 = new Image(39, 35);
imgButton33.src = imgPath+'buttons/button-33-co-bb.gif';

var imgButton34 = new Image(39, 35);
imgButton34.src = imgPath+'buttons/button-34-flash.gif';

var imgButton35 = new Image(39, 35);
imgButton35.src = imgPath+'buttons/button-35-tanzfestival.gif';

var imgButton40 = new Image(39, 35);
imgButton40.src = imgPath+'buttons/button-40-bento.gif';