
	
	
var ns4 = document.layers ?  true:false
var ie4 = document.all ? true:false
var ns6 = ( navigator.userAgent.indexOf("Gecko") > 0 ) ? true:false

var able = false

if ( document.images ) { initialiseimages() } else { window.location='menu_flat.html' }

function initialiseimages(){
	
		homepageoff=new Image();
        homepageoff.src="images/hompage.gif";
        homepageon=new Image();
        homepageon.src="images/hompage-on.gif";
		
		voiceoveroff=new Image();
        voiceoveroff.src="images/voiceover.gif";
        voiceoveron=new Image();
        voiceoveron.src="images/voiceover-on.gif";
				
		contactoff=new Image();
        contactoff.src="images/contact.gif";
        contacton=new Image();
        contacton.src="images/contact-on.gif";
		
		corporateoff=new Image();
        corporateoff.src="images/corporate.gif";
        corporateon=new Image();
        corporateon.src="images/corporate-on.gif";
					
		homepage2off=new Image();
        homepage2off.src="images/hompage.gif";
        homepage2on=new Image();
        homepage2on.src="images/hompage-on.gif";
		
		voiceover2off=new Image();
        voiceover2off.src="images/voiceover.gif";
        voiceover2on=new Image();
        voiceover2on.src="images/voiceover-on.gif";
				
		contact2off=new Image();
        contact2off.src="images/contact.gif";
        contact2on=new Image();
        contact2on.src="images/contact-on.gif";
		
		corporate2off=new Image();
        corporate2off.src="images/corporate.gif";
        corporate2on=new Image();
        corporate2on.src="images/corporate-on.gif";
				

		
}

function changeOn(name){
	if (able) {
		document.images[name].src=eval(name + "on").src;
	}
}

function changeOff(name){
	if (able) {
		document.images[name].src=eval(name + "off").src;
	}
}
function change2On(name){
	if (able) {
		document.images[name].src=eval(name + "on").src;
	}
}

function change2Off(name){
	if (able) {
		document.images[name].src=eval(name + "off").src;
	}
}

var timer = ""
var timeout = 1000 // Milliseconds before graphic reverts back
var step = 5 // Speed of movement (higher = faster)

function chkPulse(x) {
	if ( able ) {
		same = x
		px = parseInt(pulse.left)
		if ( px > (same-step) && px < (same+step) ) {
			px = same ; pulse.left = px ; return
		}
		if ( px < same ) {
			px += step
		} else if ( px > same ) {
			px -= step
		}
		pulse.left = px
		setTimeout("chkPulse(same)",10)
	}
}

function init() {
	if (ie4) { 
		pulse = document.all["pulseDiv"].style
	} else if (ns4) {
		pulse = document.layers["pulseDiv"]
	} else if (ns6) {
		pulse = document.getElementById("pulseDiv").style
	}
	able = true;
}

