function size(picture,w,h) { 
picture.width=w; 
picture.height=h; 
}

function resizeImage(e) { 
if (document.layers){  
	var xMousePos = e.pageX; 
	var xMousePosMax = window.innerWidth+window.pageXOffset; 
}else if (document.all){ 
	var xMousePos = window.event.x+document.body.scrollLeft; 
} else if (document.getElementById){ 
	var xMousePos = e.pageX; 
	var xMousePosMax = window.innerWidth+window.pageXOffset; 
} 

var i = (-1 * (((xMousePos/340) - (250/340)) * ((xMousePos/340) - (250/340)))) + 1; 
if (i < .4) i = .4; 
if (i > 2) i = 2; 
picture1.width=(170 * i); 
picture1.height=(125 * i); 
i = (-1 * (((xMousePos/340) - (420/340)) * ((xMousePos/340) - (420/340)))) + 1;
 if (i < .4) i = .4; 
if (i > 2) i = 2; 
picture2.width=(170 * i); 
picture2.height=(125 * i); 
i = (-1 * (((xMousePos/340) - (525/340)) * ((xMousePos/340) - (525/340)))) + 1; 
if (i < .4) i = .4;
 if (i > 2) i = 2; 
picture3.width=(170 * i); 
picture3.height=(125 * i); 
i = (-1 * (((xMousePos/340) - (600/340)) * ((xMousePos/340) - (600/340)))) + 1; 
if (i < .4) i = .4; 
if (i > 2) i = 2; 
picture4.width=(170 * i); 
picture4.height=(125 * i);
 i = (-1 * (((xMousePos/340) - (680/340)) * ((xMousePos/340) - (680/340)))) + 1; 
if (i < .4) i = .4;
 if (i > 2) i = 2; 
picture5.width=(170 * i); 
picture5.height=(125 * i);
 }

function handleMouse() { 
if (document.layers){ 
	document.captureEvents(Event.MOUSEMOVE); 
	document.onmousemove = resizeImage; 
} else if (document.all) {
	document.onmousemove = resizeImage; 
} else if (document.getElementById) {
	document.onmousemove = resizeImage; 
} 
} 

function doNothing(e) { var i = 0.4; 
	picture1.width=(170 * i); 
	picture1.height=(125 * i); 
	picture2.width=(170 * i); 
	picture2.height=(125 * i); 
	picture3.width=(170 * i); 
	picture3.height=(125 * i); 
	picture4.width=(170 * i);
	picture4.height=(125 * i); 
	picture5.width=(170 * i); 
	picture5.height=(125 * i); 
} 


function ignoreMouse() {
	if (document.layers){ 
		document.captureEvents(Event.MOUSEMOVE); 
		document.onmousemove = doNothing; 
	} else if (document.all){ 
		document.onmousemove = doNothing; 
	} else if (document.getElementById) {
		document.onmousemove = doNothing; 
	}
} 
//--> 
