if (document.images) {

		nav_caremaintenanceon = new Image();
    nav_caremaintenanceon.src = "images/nav_caremaintenance_on.gif";
    nav_caremaintenanceoff = new Image();
    nav_caremaintenanceoff.src = "images/nav_caremaintenance_off.gif";
		nav_colourpaletteon = new Image();
    nav_colourpaletteon.src = "images/nav_colourpalette_on.gif";
    nav_colourpaletteoff = new Image();
    nav_colourpaletteoff.src = "images/nav_colourpalette_off.gif";
    nav_companyon = new Image();
    nav_companyon.src = "images/nav_company_on.gif";
    nav_companyoff = new Image();
    nav_companyoff.src = "images/nav_company_off.gif";
		nav_contactuson = new Image();
    nav_contactuson.src = "images/nav_contactus_on.gif";
    nav_contactusoff = new Image();
    nav_contactusoff.src = "images/nav_contactus_off.gif";
		nav_governmentcontractson = new Image();
    nav_governmentcontractson.src = "images/nav_governmentcontracts_on.gif";
    nav_governmentcontractsoff = new Image();
    nav_governmentcontractsoff.src = "images/nav_governmentcontracts_off.gif";
    
    nav_greenlivingon = new Image();
    nav_greenlivingon.src = "images/nav_greenliving_on.gif";
    nav_greenlivingoff = new Image();
    nav_greenlivingoff.src = "images/nav_greenliving_off.gif";
		nav_homeon = new Image();
    nav_homeon.src = "images/nav_home_on.gif";
    nav_homeoff = new Image();
    nav_homeoff.src = "images/nav_home_off.gif";
    nav_mediacentreon = new Image();
    nav_mediacentreon.src = "images/nav_mediacentre_on.gif";
    nav_mediacentreoff = new Image();
    nav_mediacentreoff.src = "images/nav_mediacentre_off.gif";
		nav_newreleaseson = new Image();
    nav_newreleaseson.src = "images/nav_newreleases_on.gif";
    nav_newreleasesoff = new Image();
    nav_newreleasesoff.src = "images/nav_newreleases_off.gif";
		nav_specificationson = new Image();
    nav_specificationson.src = "images/nav_specifications_on.gif";
    nav_specificationsoff = new Image();
    nav_specificationsoff.src = "images/nav_specifications_off.gif";
    
    
		nav_sustainabilityon = new Image();
    nav_sustainabilityon.src = "images/nav_sustainability_on.gif";
    nav_sustainabilityoff = new Image();
    nav_sustainabilityoff.src = "images/nav_sustainability_off.gif";
    nav_faqon = new Image();
    nav_faqon.src = "images/nav_faq_on.gif";
    nav_faqoff = new Image();
    nav_faqoff.src = "images/nav_faq_off.gif";
    
    nav_nextpageon = new Image();
    nav_nextpageon.src = "images/nav_nextpage_on.gif";
    nav_nextpageoff = new Image();
    nav_nextpageoff.src = "images/nav_nextpage_off.gif";
    nav_prevpageon = new Image();
    nav_prevpageon.src = "images/nav_prevpage_on.gif";
    nav_prevpageoff = new Image();
    nav_prevpageoff.src = "images/nav_prevpage_off.gif";
    
    subnav_chelseaon = new Image();
    subnav_chelseaon.src = "images/subnav_chelsea_on.gif";
    subnav_chelseaoff = new Image();
    subnav_chelseaoff.src = "images/subnav_chelsea_off.gif";
		subnav_chelseaqon = new Image();
    subnav_chelseaqon.src = "images/subnav_chelseaq_on.gif";
    subnav_chelseaqoff = new Image();
    subnav_chelseaqoff.src = "images/subnav_chelseaq_off.gif";
    subnav_classicson = new Image();
    subnav_classicson.src = "images/subnav_classics_on.gif";
    subnav_classicsoff = new Image();
    subnav_classicsoff.src = "images/subnav_classics_off.gif";
		subnav_comoon = new Image();
    subnav_comoon.src = "images/subnav_como_on.gif";
    subnav_comooff = new Image();
    subnav_comooff.src = "images/subnav_como_off.gif";
		subnav_cordon = new Image();
    subnav_cordon.src = "images/subnav_cord_on.gif";
    subnav_cordoff = new Image();
    subnav_cordoff.src = "images/subnav_cord_off.gif";
    
    subnav_galaxyon = new Image();
    subnav_galaxyon.src = "images/subnav_galaxy_on.gif";
    subnav_galaxyoff = new Image();
    subnav_galaxyoff.src = "images/subnav_galaxy_off.gif";
		subnav_kakaduon = new Image();
    subnav_kakaduon.src = "images/subnav_kakadu_on.gif";
    subnav_kakaduoff = new Image();
    subnav_kakaduoff.src = "images/subnav_kakadu_off.gif";
    subnav_kimberleyson = new Image();
    subnav_kimberleyson.src = "images/subnav_kimberleys_on.gif";
    subnav_kimberleysoff = new Image();
    subnav_kimberleysoff.src = "images/subnav_kimberleys_off.gif";
		subnav_persuadeon = new Image();
    subnav_persuadeon.src = "images/subnav_persuade_on.gif";
    subnav_persuadeoff = new Image();
    subnav_persuadeoff.src = "images/subnav_persuade_off.gif";
		subnav_renegadeon = new Image();
    subnav_renegadeon.src = "images/subnav_renegade_on.gif";
    subnav_renegadeoff = new Image();
    subnav_renegadeoff.src = "images/subnav_renegade_off.gif";
    
    subnav_renewon = new Image();
    subnav_renewon.src = "images/subnav_renew_on.gif";
    subnav_renewoff = new Image();
    subnav_renewoff.src = "images/subnav_renew_off.gif";
		subnav_reunionon = new Image();
    subnav_reunionon.src = "images/subnav_reunion_on.gif";
    subnav_reunionoff = new Image();
    subnav_reunionoff.src = "images/subnav_reunion_off.gif";
    subnav_riaon = new Image();
    subnav_riaon.src = "images/subnav_ria_on.gif";
    subnav_riaoff = new Image();
    subnav_riaoff.src = "images/subnav_ria_off.gif";
		subnav_selectionson = new Image();
    subnav_selectionson.src = "images/subnav_selections_on.gif";
    subnav_selectionsoff = new Image();
    subnav_selectionsoff.src = "images/subnav_selections_off.gif";
		subnav_spritzon = new Image();
    subnav_spritzon.src = "images/subnav_spritz_on.gif";
    subnav_spritzoff = new Image();
    subnav_spritzoff.src = "images/subnav_spritz_off.gif";
    subnav_superthoron = new Image();
    subnav_superthoron.src = "images/subnav_superthor_on.gif";
    subnav_superthoroff = new Image();
    subnav_superthoroff.src = "images/subnav_superthor_off.gif";
    
		  
}

// Function to 'activate' images.
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");
            
          
        }
}




//new window for gallery pics
function newWindow(imageSource,windowName,winWidth,winHeight) {

// Open window without scrollbars
  windowName = window.open('', '', 'toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,width='+winWidth+',height='+winHeight)
  windowName.document.open();
  windowName.document.writeln("<html><head>") 
  windowName.document.writeln("<title>Clearly Frameless</title>");
  windowName.document.writeln("</head>");
  windowName.document.writeln("<body topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'>");
  windowName.document.writeln("<center><table border=0 cellpadding=0 cellspacing=0 width=100%><tr><td align=center>");
  windowName.document.writeln("<img src='images/" + imageSource + "' border=0>");
  windowName.document.writeln("</td></tr></table></center>");
  windowName.document.writeln("</body></html>");
  windowName.document.close();
  windowName.focus();
}

function getCalendarDate()
{
   var months = new Array(13);
   months[0]  = "January";
   months[1]  = "February";
   months[2]  = "March";
   months[3]  = "April";
   months[4]  = "May";
   months[5]  = "June";
   months[6]  = "July";
   months[7]  = "August";
   months[8]  = "September";
   months[9]  = "October";
   months[10] = "November";
   months[11] = "December";
   var now         = new Date();
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = monthname + 
                    ' ' + 
                    monthday + 
                    ', ' + 
                    year;
   return dateString;
} // function getCalendarDate()

function getClockTime()
{
   var now    = new Date();
   var hour   = now.getHours();
   var minute = now.getMinutes();
   var second = now.getSeconds();
   var ap = "AM";
   if (hour   > 11) { ap = "PM";             }
   if (hour   > 12) { hour = hour - 12;      }
   if (hour   == 0) { hour = 12;             }
   if (hour   < 10) { hour   = "0" + hour;   }
   if (minute < 10) { minute = "0" + minute; }
   if (second < 10) { second = "0" + second; }
   var timeString = hour + 
                    ':' + 
                    minute + 
                    ':' + 
                    second + 
                    " " + 
                    ap;
   return timeString;
} // function getClockTime()


//CSS dropdowns
<!--//--><![CDATA[//><!--

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);

sfHover2 = function() {
	var sfEls2 = document.getElementById("nav2").getElementsByTagName("LI");
	for (var i=0; i<sfEls2.length; i++) {
		sfEls2[i].onmouseover=function() {
			this.className+=" sfhover2";
		}
		sfEls2[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover2\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover2);

//--><!]]>