﻿if (document.images) {
        img_on1 = new Image();  img_on1.src = "/images/buttons/liftar_ned.png"; 
        img_off1 = new Image();  img_off1.src = "/images/buttons/liftar_upp.png"; 
        img_on2 = new Image();  img_on2.src = "/images/buttons/byggmaskiner_ned.png"; 
        img_off2 = new Image();  img_off2.src = "/images/buttons/byggmaskiner_upp.png"; 
        img_on3 = new Image();  img_on3.src = "/images/buttons/bodar_ned.png"; 
        img_off3 = new Image();  img_off3.src = "/images/buttons/bodar_upp.png"; 
        img_on4 = new Image();  img_on4.src = "/images/buttons/gravmaskiner_ned.png"; 
        img_off4 = new Image();  img_off4.src = "/images/buttons/gravmaskiner_upp.png"; 
        img_on5 = new Image();  img_on5.src = "/images/buttons/utbildning_ned.png"; 
        img_off5 = new Image();  img_off5.src = "/images/buttons/utbildning_upp.png";
        img_on6 = new Image(); img_on6.src = "/images/buttons/sakerhet_ned.png";
        img_off6 = new Image(); img_off6.src = "/images/buttons/sakerhet_upp.png";
       
        }

        function handleOverByggLift() {
         if (document.images) document.CatImgByggLift.src= img_on1.src;
        }

        function handleOutByggLift() {
         if (document.images) document.CatImgByggLift.src=img_off1.src;
        }
        function handleOverByggMaskin() {
         if (document.images) document.CatImgByggMaskin.src= img_on2.src;
        }

        function handleOutByggMaskin() {
         if (document.images) document.CatImgByggMaskin.src=img_off2.src;
        }
        function handleOverBodar() {
         if (document.images) document.CatImgBodar.src= img_on3.src;
        }

        function handleOutBodar() {
         if (document.images) document.CatImgBodar.src=img_off3.src;
        }
        function handleOverAnlaggning() {
         if (document.images) document.CatImgAnlaggning.src= img_on4.src;
        }
        function handleOutAnlaggning() {
         if (document.images) document.CatImgAnlaggning.src=img_off4.src;
        }
        function handleOverUtbildning() {
         if (document.images) document.CatImgUtbildning.src= img_on5.src;
        }
        function handleOutUtbildning() {
         if (document.images) document.CatImgUtbildning.src=img_off5.src;
        }
        function handleOverSaekerhet()
        {
            if (document.images)
                document.CatImgSaekerhet.src=img_on6.src;
        } 
        function handleOutSaekerhet()
        {
            if (document.images)
                document.CatImgSaekerhet.src=img_off6.src;
        }
        
        function ImageMouseOverView(name, direction)
        {
            switch(direction)
            {
                case 'in':
                    name.src = "/Images/buttons/visa-on.png";
                    break;
                case 'out':
                    name.src = "/Images/buttons/visa-off.png";
                break;
            }
        }
        
        function ImageMouseOverSearch(name, direction)
        {
            switch(direction)
            {
                case 'in':
                    name.src = "/Images/buttons/soek-on.png";
                    break;
                case 'out':
                    name.src = "/Images/buttons/soek-off.png";
                break;
            }
        }