function preload(imgObj,imgSrc) { // function prelaods all images 
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}
function img_act(v) {
	document[v].src = eval(v + "on.src");
}
function img_inact(v) {
	document[v].src = eval(v + "off.src");
}

preload ('enter', '/images/home/enter_on.gif');
preload ('enterOn', '/images/home/enter_off.gif');
preload ('contact', '/images/home/contact_on.gif');
preload ('contactOn', '/images/home/contact_off.gif');
preload ('order', '/images/buttons/order_on.gif');
preload ('orderOn', '/images/buttons/order_off.gif');
preload ('send', '/images/buttons/send_over.gif');
preload ('sendOn', '/images/buttons/send_off.gif');

var imageOn;
function changeImagePageOn(imgName) {
	document.images[imgName].src = eval(imgName+"On.src");
	imageOn = imgName;
}

function changeImage(imgName,imgObj) {
	if (imgName != imageOn){
	document.images[imgName].src = eval(imgObj+".src");
	}
}