/**
 * @author Ejnar
 */
            
/* preloader Function */

            function preloader(a,b){
                
                heavyImage = new Image();
                
                heavyImage.src = a;
                
                heavyImage2 = new Image();
                
                heavyImage2.src = b;
                                               
            };


/* Menu Functions */

            function showmenuzero(){
                hideAll();
                document.getElementById("mainMenuBoxBlock" + 0).style.visibility = "visible";
            };
            function hidemenuzero(){
                document.getElementById("mainMenuBoxBlock" + 0).style.visibility = "hidden";
            };
            
            function showmenu(n, h){
                hideAll();
                document.getElementById("menuBox" + n).style.visibility = "visible";
                document.getElementById("mainMenuBoxBlock" + n).style.visibility = "visible";
                document.getElementById("menuBoxTrigger" + n).style.height = h + "px";
            };
            function hidemenu(n, h){
                document.getElementById("menuBox" + n).style.visibility = "hidden";
                document.getElementById("mainMenuBoxBlock" + n).style.visibility = "hidden";
                document.getElementById("menuBoxTrigger" + n).style.height = "40px";
            };
            function mark(n){
                document.getElementById("menuBoxBlock" + n).style.backgroundColor = "#b7cc28";
            };
            function unmark(n){
                document.getElementById("menuBoxBlock" + n).style.backgroundColor = "white";
            };
            
            function hideAll(){
                hidemenu(1, 40);
                hidemenu(2, 40);
                hidemenu(3, 40);
            };
            
            /* Botton highlight Functions */
            
            function bottonHighlightOn(a) {            	
            	document.getElementById(a).style.backgroundColor = "#c0c0c0";
            };
            
            function bottonHighlightOff(a) {            	
            	document.getElementById(a).style.backgroundColor = "#ffffff";
            };
            

  
