﻿        if (document.images) {

            // on
            shadeon = new Image();
            shadeon.src = "../images/shading_on.jpg";
            motorizationon = new Image();
            motorizationon.src = "../images/motorization_on.jpg";
            lightingon = new Image();
            lightingon.src = "../images/lighting_on.jpg";
            greenon = new Image();
            greenon.src = "../images/green_on.jpg";
            portfolioon = new Image();
            portfolioon.src = "../images/portfolio_on.jpg";

            showroomon = new Image();
            showroomon.src = "../images/shrmlk_sm_on.jpg";

            //off

            shadeoff = new Image();
            shadeoff.src = "../images/shading_off.jpg";
            motorizationoff = new Image();
            motorizationoff.src = "../images/motorization_off.jpg";
            lightingoff = new Image();
            lightingoff.src = "../images/lighting_off.jpg";
            greenoff = new Image();
            greenoff.src = "../images/green_off.jpg";
            portfoliooff = new Image();
            portfoliooff.src = "../images/portfolio_off.jpg";

      

        }
        
        
        /* for shading pages */
        /*honeycomb*/
        honeycomb1on = new Image();
        honeycomb1on.src = "../shading/images/honeycomb1_over.gif";
        honeycomb2on = new Image();
        honeycomb2on.src = "../shading/images/honeycomb2_over.gif";
        honeycomb3on = new Image();
        honeycomb3on.src = "../shading/images/honeycomb3_over.gif";
        honeycomb4on = new Image();
        honeycomb4on.src = "../shading/images/honeycomb4_over.gif";
        honeycomb5on = new Image();
        honeycomb5on.src = "../shading/images/honeycomb5_over.gif";
        
        
        honeycomb1off = new Image();
        honeycomb1off.src = "../shading/images/honeycomb1.gif";
        honeycomb2off = new Image();
        honeycomb2off.src = "../shading/images/honeycomb2.gif";
        honeycomb3off = new Image();
        honeycomb3off.src = "../shading/images/honeycomb3.gif";
        honeycomb4off = new Image();
        honeycomb4off.src = "../shading/images/honeycomb4.gif";
        honeycomb5off = new Image();
        honeycomb5off.src = "../shading/images/honeycomb5.gif";
        
        
          /*horizontal*/
        horizontal1on = new Image();
        horizontal1on.src = "../shading/images/horizontal1_over.gif";
        horizontal2on = new Image();
        horizontal2on.src = "../shading/images/horizontal2_over.gif";
        horizontal3on = new Image();
        horizontal3on.src = "../shading/images/horizontal3_over.gif";
        horizontal4on = new Image();
        horizontal4on.src = "../shading/images/horizontal4_over.gif";
        horizontal5on = new Image();
        horizontal5on.src = "../shading/images/horizontal5_over.gif";
        
        
        horizontal1off = new Image();
        horizontal1off.src = "../shading/images/horizontal1.gif";
        horizontal2off = new Image();
        horizontal2off.src = "../shading/images/horizontal2.gif";
        horizontal3off = new Image();
        horizontal3off.src = "../shading/images/horizontal3.gif";
        horizontal4off = new Image();
        horizontal4off.src = "../shading/images/horizontal4.gif";
        horizontal5off = new Image();
        horizontal5off.src = "../shading/images/horizontal5.gif";
        
        
        
          /*pirouette*/
        pirouette1on = new Image();
        pirouette1on.src = "../shading/images/pirouette1_over.gif";
        pirouette2on = new Image();
        pirouette2on.src = "../shading/images/pirouette2_over.gif";
        pirouette3on = new Image();
        pirouette3on.src = "../shading/images/pirouette3_over.gif";
        pirouette4on = new Image();
        pirouette4on.src = "../shading/images/pirouette4_over.gif";
        pirouette5on = new Image();
        pirouette5on.src = "../shading/images/pirouette5_over.gif";
        
        
        pirouette1off = new Image();
        pirouette1off.src = "../shading/images/pirouette1.gif";
        pirouette2off = new Image();
        pirouette2off.src = "../shading/images/pirouette2.gif";
        pirouette3off = new Image();
        pirouette3off.src = "../shading/images/pirouette3.gif";
        pirouette4off = new Image();
        pirouette4off.src = "../shading/images/pirouette4.gif";
        pirouette5off = new Image();
        pirouette5off.src = "../shading/images/pirouette5.gif";


				   /*pleated */
        pleated1on = new Image();
        pleated1on.src = "../shading/images/pleated1_over.gif";
        pleated2on = new Image();
        pleated2on.src = "../shading/images/pleated2_over.gif";
        pleated3on = new Image();
        pleated3on.src = "../shading/images/pleated3_over.gif";
        pleated4on = new Image();
        pleated4on.src = "../shading/images/pleated4_over.gif";
        pleated5on = new Image();
        pleated5on.src = "../shading/images/pleated5_over.gif";
        
        
        pleated1off = new Image();
        pleated1off.src = "../shading/images/pleated1.gif";
        pleated2off = new Image();
        pleated2off.src = "../shading/images/pleated2.gif";
        pleated3off = new Image();
        pleated3off.src = "../shading/images/pleated3.gif";
        pleated4off = new Image();
        pleated4off.src = "../shading/images/pleated4.gif";
        pleated5off = new Image();
        pleated5off.src = "../shading/images/pleated5.gif";
        
        
        
          /*roller */
        roller1on = new Image();
        roller1on.src = "../shading/images/roller1_over.gif";
        roller2on = new Image();
        roller2on.src = "../shading/images/roller2_over.gif";
        roller3on = new Image();
        roller3on.src = "../shading/images/roller3_over.gif";
        roller4on = new Image();
        roller4on.src = "../shading/images/roller4_over.gif";
        roller5on = new Image();
        roller5on.src = "../shading/images/roller5_over.gif";
        
        
        roller1off = new Image();
        roller1off.src = "../shading/images/roller1.gif";
        roller2off = new Image();
        roller2off.src = "../shading/images/roller2.gif";
        roller3off = new Image();
        roller3off.src = "../shading/images/roller3.gif";
        roller4off = new Image();
        roller4off.src = "../shading/images/roller4.gif";
        roller5off = new Image();
        roller5off.src = "../shading/images/roller5.gif";
        
        
          /*roman */
        roman1on = new Image();
        roman1on.src = "../shading/images/roman1_over.gif";
        roman2on = new Image();
        roman2on.src = "../shading/images/roman2_over.gif";
        roman3on = new Image();
        roman3on.src = "../shading/images/roman3_over.gif";
        roman4on = new Image();
        roman4on.src = "../shading/images/roman4_over.gif";
        roman5on = new Image();
        roman5on.src = "../shading/images/roman5_over.gif";
        
        
        roman1off = new Image();
        roman1off.src = "../shading/images/roman1.gif";
        roman2off = new Image();
        roman2off.src = "../shading/images/roman2.gif";
        roman3off = new Image();
        roman3off.src = "../shading/images/roman3.gif";
        roman4off = new Image();
        roman4off.src = "../shading/images/roman4.gif";
        roman5off = new Image();
        roman5off.src = "../shading/images/roman5.gif";
        
        
          /*shutters */
        shutters1on = new Image();
        shutters1on.src = "../shading/images/shutters1_over.gif";
        shutters2on = new Image();
        shutters2on.src = "../shading/images/shutters2_over.gif";
        shutters3on = new Image();
        shutters3on.src = "../shading/images/shutters3_over.gif";
        shutters4on = new Image();
        shutters4on.src = "../shading/images/shutters4_over.gif";
        shutters5on = new Image();
        shutters5on.src = "../shading/images/shutters5_over.gif";
        
        
        shutters1off = new Image();
        shutters1off.src = "../shading/images/shutters1.gif";
        shutters2off = new Image();
        shutters2off.src = "../shading/images/shutters2.gif";
        shutters3off = new Image();
        shutters3off.src = "../shading/images/shutters3.gif";
        shutters4off = new Image();
        shutters4off.src = "../shading/images/shutters4.gif";
        shutters5off = new Image();
        shutters5off.src = "../shading/images/shutters5.gif";

 /*silhouette */
        silhouette1on = new Image();
        silhouette1on.src = "../shading/images/silhouette1_over.gif";
        silhouette2on = new Image();
        silhouette2on.src = "../shading/images/silhouette2_over.gif";
        silhouette3on = new Image();
        silhouette3on.src = "../shading/images/silhouette3_over.gif";
        silhouette4on = new Image();
        silhouette4on.src = "../shading/images/silhouette4_over.gif";
        silhouette5on = new Image();
        silhouette5on.src = "../shading/images/silhouette5_over.gif";
        
        
        silhouette1off = new Image();
        silhouette1off.src = "../shading/images/silhouette1.gif";
        silhouette2off = new Image();
        silhouette2off.src = "../shading/images/silhouette2.gif";
        silhouette3off = new Image();
        silhouette3off.src = "../shading/images/silhouette3.gif";
        silhouette4off = new Image();
        silhouette4off.src = "../shading/images/silhouette4.gif";
        silhouette5off = new Image();
        silhouette5off.src = "../shading/images/silhouette5.gif";
        
        
        /*skylight shades */
        skylight1on = new Image();
        skylight1on.src = "../shading/images/skylight1_over.gif";
        skylight2on = new Image();
        skylight2on.src = "../shading/images/skylight2_over.gif";
        skylight3on = new Image();
        skylight3on.src = "../shading/images/skylight3_over.gif";
        skylight4on = new Image();
        skylight4on.src = "../shading/images/skylight4_over.gif";
        skylight5on = new Image();
        skylight5on.src = "../shading/images/skylight5_over.gif";
        
        
        skylight1off = new Image();
        skylight1off.src = "../shading/images/skylight1.gif";
        skylight2off = new Image();
        skylight2off.src = "../shading/images/skylight2.gif";
        skylight3off = new Image();
        skylight3off.src = "../shading/images/skylight3.gif";
        skylight4off = new Image();
        skylight4off.src = "../shading/images/skylight4.gif";
        skylight5off = new Image();
        skylight5off.src = "../shading/images/skylight5.gif";
        
        
        /*sliding panles */
        slidingpanel1on = new Image();
        slidingpanel1on.src = "../shading/images/slidingpanel1_over.gif";
        slidingpanel2on = new Image();
        slidingpanel2on.src = "../shading/images/slidingpanel2_over.gif";
        slidingpanel3on = new Image();
        slidingpanel3on.src = "../shading/images/slidingpanel3_over.gif";
        slidingpanel4on = new Image();
        slidingpanel4on.src = "../shading/images/slidingpanel4_over.gif";
        slidingpanel5on = new Image();
        slidingpanel5on.src = "../shading/images/slidingpanel5_over.gif";
        
        
        slidingpanel1off = new Image();
        slidingpanel1off.src = "../shading/images/slidingpanel1.gif";
        slidingpanel2off = new Image();
        slidingpanel2off.src = "../shading/images/slidingpanel2.gif";
        slidingpanel3off = new Image();
        slidingpanel3off.src = "../shading/images/slidingpanel3.gif";
        slidingpanel4off = new Image();
        slidingpanel4off.src = "../shading/images/slidingpanel4.gif";
        slidingpanel5off = new Image();
        slidingpanel5off.src = "../shading/images/slidingpanel5.gif";
        
        
         /*soft treatments */
        softtreatment1on = new Image();
        softtreatment1on.src = "../shading/images/softtreatment1_over.gif";
        softtreatment2on = new Image();
        softtreatment2on.src = "../shading/images/softtreatment2_over.gif";
        softtreatment3on = new Image();
        softtreatment3on.src = "../shading/images/softtreatment3_over.gif";
        softtreatment4on = new Image();
        softtreatment4on.src = "../shading/images/softtreatment4_over.gif";
        softtreatment5on = new Image();
        softtreatment5on.src = "../shading/images/softtreatment5_over.gif";
        
        
        softtreatment1off = new Image();
        softtreatment1off.src = "../shading/images/softtreatment1.gif";
        softtreatment2off = new Image();
        softtreatment2off.src = "../shading/images/softtreatment2.gif";
        softtreatment3off = new Image();
        softtreatment3off.src = "../shading/images/softtreatment3.gif";
        softtreatment4off = new Image();
        softtreatment4off.src = "../shading/images/softtreatment4.gif";
        softtreatment5off = new Image();
        softtreatment5off.src = "../shading/images/softtreatment5.gif";
        
          /*solar shades */
        solar1on = new Image();
        solar1on.src = "../shading/images/solar1_over.gif";
        solar2on = new Image();
        solar2on.src = "../shading/images/solar2_over.gif";
        solar3on = new Image();
        solar3on.src = "../shading/images/solar3_over.gif";
        solar4on = new Image();
        solar4on.src = "../shading/images/solar4_over.gif";
        solar5on = new Image();
        solar5on.src = "../shading/images/solar5_over.gif";
        
        
        solar1off = new Image();
        solar1off.src = "../shading/images/solar1.gif";
        solar2off = new Image();
        solar2off.src = "../shading/images/solar2.gif";
        solar3off = new Image();
        solar3off.src = "../shading/images/solar3.gif";
        solar4off = new Image();
        solar4off.src = "../shading/images/solar4.gif";
        solar5off = new Image();
        solar5off.src = "../shading/images/solar5.gif";
        
        
        /*gree solar shades */
        greensolar1on = new Image();
        greensolar1on.src = "../shading/images/greensolar1_over.gif";
        greensolar2on = new Image();
        greensolar2on.src = "../shading/images/greensolar2_over.gif";
        greensolar3on = new Image();
        greensolar3on.src = "../shading/images/greensolar3_over.gif";
        greensolar4on = new Image();
        greensolar4on.src = "../shading/images/greensolar4_over.gif";
        greensolar5on = new Image();
        greensolar5on.src = "../shading/images/greensolar5_over.gif";
        
        
        greensolar1off = new Image();
        greensolar1off.src = "../shading/images/greensolar1.gif";
        greensolar2off = new Image();
        greensolar2off.src = "../shading/images/greensolar2.gif";
        greensolar3off = new Image();
        greensolar3off.src = "../shading/images/greensolar3.gif";
        greensolar4off = new Image();
        greensolar4off.src = "../shading/images/greensolar4.gif";
        greensolar5off = new Image();
        greensolar5off.src = "../shading/images/greensolar5.gif";


/* specialty */
        specialty1on = new Image();
        specialty1on.src = "../shading/images/specialty1_over.gif";
        specialty2on = new Image();
        specialty2on.src = "../shading/images/specialty2_over.gif";
        specialty3on = new Image();
        specialty3on.src = "../shading/images/specialty3_over.gif";
        specialty4on = new Image();
        specialty4on.src = "../shading/images/specialty4_over.gif";
        specialty5on = new Image();
        specialty5on.src = "../shading/images/specialty5_over.gif";
        
        
        specialty1off = new Image();
        specialty1off.src = "../shading/images/specialty1.gif";
        specialty2off = new Image();
        specialty2off.src = "../shading/images/specialty2.gif";
        specialty3off = new Image();
        specialty3off.src = "../shading/images/specialty3.gif";
        specialty4off = new Image();
        specialty4off.src = "../shading/images/specialty4.gif";
        specialty5off = new Image();
        specialty5off.src = "../shading/images/specialty5.gif";
        
        
        /* vertical */
        vertical1on = new Image();
        vertical1on.src = "../shading/images/vertical1_over.gif";
        vertical2on = new Image();
        vertical2on.src = "../shading/images/vertical2_over.gif";
        vertical3on = new Image();
        vertical3on.src = "../shading/images/vertical3_over.gif";
        vertical4on = new Image();
        vertical4on.src = "../shading/images/vertical4_over.gif";
        vertical5on = new Image();
        vertical5on.src = "../shading/images/vertical5_over.gif";
        
        
        vertical1off = new Image();
        vertical1off.src = "../shading/images/vertical1.gif";
        vertical2off = new Image();
        vertical2off.src = "../shading/images/vertical2.gif";
        vertical3off = new Image();
        vertical3off.src = "../shading/images/vertical3.gif";
        vertical4off = new Image();
        vertical4off.src = "../shading/images/vertical4.gif";
        vertical5off = new Image();
        vertical5off.src = "../shading/images/vertical5.gif";
        
        
         /* woven woods */
        wovenwood1on = new Image();
        wovenwood1on.src = "../shading/images/wovenwood1_over.gif";
        wovenwood2on = new Image();
        wovenwood2on.src = "../shading/images/wovenwood2_over.gif";
        wovenwood3on = new Image();
        wovenwood3on.src = "../shading/images/wovenwood3_over.gif";
        wovenwood4on = new Image();
        wovenwood4on.src = "../shading/images/wovenwood4_over.gif";
        wovenwood5on = new Image();
        wovenwood5on.src = "../shading/images/wovenwood5_over.gif";
        
        
        wovenwood1off = new Image();
        wovenwood1off.src = "../shading/images/wovenwood1.gif";
        wovenwood2off = new Image();
        wovenwood2off.src = "../shading/images/wovenwood2.gif";
        wovenwood3off = new Image();
        wovenwood3off.src = "../shading/images/wovenwood3.gif";
        wovenwood4off = new Image();
        wovenwood4off.src = "../shading/images/wovenwood4.gif";
        wovenwood5off = new Image();
        wovenwood5off.src = "../shading/images/wovenwood5.gif";


        /* for Portfolio page */
        portfolio1on = new Image();
        portfolio1on.src = "../portfolio/images/portfolio1_over.gif";
        portfolio2on = new Image();
        portfolio2on.src = "../portfolio/images/portfolio2_over.gif";
        portfolio3on = new Image();
        portfolio3on.src = "../portfolio/images/portfolio3_over.gif";
        portfolio4on = new Image();
        portfolio4on.src = "../portfolio/images/portfolio4_over.gif";
        portfolio5on = new Image();
        portfolio5on.src = "../portfolio/images/portfolio5_over.gif";
        portfolio6on = new Image();
        portfolio6on.src = "../portfolio/images/portfolio6_over.gif";
        portfolio7on = new Image();
        portfolio7on.src = "../portfolio/images/portfolio7_over.gif";
        portfolio8on = new Image();
        portfolio8on.src = "../portfolio/images/portfolio8_over.gif";
        portfolio9on = new Image();
        portfolio9on.src = "../portfolio/images/portfolio9_over.gif";
        portfolio10on = new Image();
        portfolio10on.src = "../portfolio/images/portfolio10_over.gif";
        portfolio11on = new Image();
        portfolio11on.src = "../portfolio/images/portfolio11_over.gif";
        portfolio12on = new Image();
        portfolio12on.src = "../portfolio/images/portfolio12_over.gif";
        portfolio13on = new Image();
        portfolio13on.src = "../portfolio/images/portfolio13_over.gif";
        portfolio14on = new Image();
        portfolio14on.src = "../portfolio/images/portfolio14_over.gif";
        portfolio15on = new Image();
        portfolio15on.src = "../portfolio/images/portfolio15_over.gif";
        portfolio16on = new Image();
        portfolio16on.src = "../portfolio/images/portfolio16_over.gif";
        portfolio17on = new Image();
        portfolio17on.src = "../portfolio/images/portfolio17_over.gif";
        portfolio18on = new Image();
        portfolio18on.src = "../portfolio/images/portfolio18_over.gif";
        portfolio19on = new Image();
        portfolio19on.src = "../portfolio/images/portfolio19_over.gif";
        portfolio20on = new Image();
        portfolio20on.src = "../portfolio/images/portfolio20_over.gif";
        
        portfolio1off = new Image();
        portfolio1off.src = "../portfolio/images/portfolio1.gif";
        portfolio2off = new Image();
        portfolio2off.src = "../portfolio/images/portfolio2.gif";
        portfolio3off = new Image();
        portfolio3off.src = "../portfolio/images/portfolio3.gif";
        portfolio4off = new Image();
        portfolio4off.src = "../portfolio/images/portfolio4.gif";
        portfolio5off = new Image();
        portfolio5off.src = "../portfolio/images/portfolio5.gif";
        portfolio6off = new Image();
        portfolio6off.src = "../portfolio/images/portfolio6.gif";
        portfolio7off = new Image();
        portfolio7off.src = "../portfolio/images/portfolio7.gif";
        portfolio8off = new Image();
        portfolio8off.src = "../portfolio/images/portfolio8.gif";
        portfolio9off = new Image();
        portfolio9off.src = "../portfolio/images/portfolio9.gif";
        portfolio10off = new Image();
        portfolio10off.src = "../portfolio/images/portfolio10.gif";
        portfolio11off = new Image();
        portfolio11off.src = "../portfolio/images/portfolio11.gif";
        portfolio12off = new Image();
        portfolio12off.src = "../portfolio/images/portfolio12.gif";
        portfolio13off = new Image();
        portfolio13off.src = "../portfolio/images/portfolio13.gif";
        portfolio14off = new Image();
        portfolio14off.src = "../portfolio/images/portfolio14.gif";
        portfolio15off = new Image();
        portfolio15off.src = "../portfolio/images/portfolio15.gif";
        portfolio16off = new Image();
        portfolio16off.src = "../portfolio/images/portfolio16.gif";
        portfolio17off = new Image();
        portfolio17off.src = "../portfolio/images/portfolio17.gif";
        portfolio18off = new Image();
        portfolio18off.src = "../portfolio/images/portfolio18.gif";
        portfolio19off = new Image();
        portfolio19off.src = "../portfolio/images/portfolio19.gif";
        portfolio20off = new Image();
        portfolio20off.src = "../portfolio/images/portfolio20.gif";
        

        function imgOn(imgName) {
            if (document.images) {
                document[imgName].src = eval(imgName + "on.src");
            }
        }

        //Function to 'deactivate' images.
        function imgOff(imgName) {
            if (document.images) {
                document[imgName].src = eval(imgName + "off.src");
            }
        }

    



        sfHover = function() {
            var sfEls = document.getElementById("nav").getElementsByTagName("LI");
            for (var i = 0; i < sfEls.length; i++) {
                sfEls[i].onmouseover = function() {
                    this.className += " sfhover";
                }
                sfEls[i].onmouseout = function() {
                    this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
                }
            }
        }
        if (window.attachEvent) window.attachEvent("onload", sfHover);
       

        var win = null;
        function NewWindow(mypage, myname, w, h, scroll) {
            LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
            TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
            settings =
'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',resizable'
            win = window.open(mypage, myname, settings)
        }





