
// preload navigation images:

        if (document.images) {

		about_on = new Image();
                about_on.src = "images/about_on.gif";
                about_off = new Image();
                about_off.src = "images/about_off.gif";
                
                services_on = new Image();
		services_on.src = "images/services_on.gif";
		services_off = new Image();
                services_off.src = "images/services_off.gif";
                
                schemes_on = new Image();
		schemes_on.src = "images/schemes_on.gif";
		schemes_off = new Image();
                schemes_off.src = "images/schemes_off.gif";
                
                news_on = new Image();
		news_on.src = "images/news_on.gif";
		news_off = new Image();
                news_off.src = "images/news_off.gif";
                
                contact_on = new Image();
		contact_on.src = "images/contact_on.gif";
		contact_off = new Image();
                contact_off.src = "images/contact_off.gif";
                
                
                search_on = new Image();
		search_on.src = "images/search_on.gif";
		search_off = new Image();
                search_off.src = "images/search_off.gif";
                
                
                terms_on = new Image();
		terms_on.src = "images/terms_on.gif";
		terms_off = new Image();
                terms_off.src = "images/terms_off.gif";
                
                
                privacy_on = new Image();
		privacy_on.src = "images/privacy_on.gif";
		privacy_off = new Image();
                privacy_off.src = "images/privacy_off.gif";
                
                
		login_on = new Image();
		login_on.src = "images/login_on.gif";
		login_off = new Image();
		login_off.src = "images/login_off.gif";
		
		home_on = new Image();
		home_on.src = "images/home_on.gif";
		home_off = new Image();
		home_off.src = "images/home_off.gif";

                
                

		// added for home features bit
		
		csarrow_on = new Image();
		csarrow_on.src = "images/csarrow_on.gif";
		csarrow_off = new Image();
		csarrow_off.src = "images/csarrow_off.gif";
		
		csarrow_left_on = new Image();
		csarrow_left_on.src = "images/csarrow_left_on.gif";
		csarrow_left_off = new Image();
		csarrow_left_off.src = "images/csarrow_left_off.gif";

              
                
}
                        
function hiLite(imgID,changeID) {
                        
        if (document.images) {
        document.images[imgID].src = eval(changeID + ".src");
        return true;
        }
}


//dropdown menu js for Internet Explorer
sfHover = function() {
	var sfEls = document.getElementById("nav");
	if(!sfEls) return false;
    sfEls = sfEls.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);

function hideSelectBox(){
    document.getElementById('quickLinks').style.visibility = 'hidden';
}
function showSelectBox(){
    document.getElementById('quickLinks').style.visibility = 'visible';
}
timerStop = 0;
timerCount = 0;
currentPanel = '';
function timeEvent(){
	//console.debug('timed event fired');
	//keep a track of the timer count - it gets reset by the the hiLite function
	realCount = timerCount;	
	
	if(timerStop==0){
		/* turn off*/;
		lastCount = (timerCount==0) ? 4 : timerCount-1;
		//console.debug('time finished - '+realCount+' working with  - '+timerCount);

		timerCount = (realCount==4) ? 0 : realCount+1;
		//console.debug('time finished - '+timerCount+' stop - '+timerStop);
		timerStop = 0;
		nextBlock(); // for case study scroller
	}
//	console.debug('time finished - '+timerCount+' stop - '+timerStop);
	window.setTimeout('timeEvent()',10000);
}




