/*$(document).ready(function() {
	// do stuff when DOM is ready
    $(".nav-image").mouseout(handleOver());
});
*/

function handleOver(link){
    var img = link.getElementsByTagName("img")[0];
    var smallImage = img.src;
    var overImage = smallImage.substring(0, smallImage.lastIndexOf('_'))+"_over.jpg";
    
    img.src=overImage;
    
    var largeImg = document.getElementById("large-nav-image");
     
    var largeImage = smallImage.substring(0, smallImage.lastIndexOf('_'))+"_large.jpg";
    largeImg.src=largeImage;

    //img.style.padding="0px";
    //img.style.paddingTop="5px";

}

function handleOut(link){
    var img = link.getElementsByTagName("img")[0];
    var largeImage = img.src;
    var smallImage = largeImage.substring(0, largeImage.lastIndexOf('_'))+"_small.jpg";

    img.src=smallImage;

    //img.style.padding="20px 25px 10px 35px";
}


/*
function resizeImage(e)
{
	if (document.layers) { //Netscape 
        var xMousePos = e.pageX;
        var xMousePosMax = window.innerWidth+window.pageXOffset;
    } else if (document.all) { // IE
        var xMousePos = window.event.x+document.body.scrollLeft;
	} else if (document.getElementById) {//Netscape
		var xMousePos = e.pageX;
        var xMousePosMax = window.innerWidth+window.pageXOffset;
	}
    var width = 65;
    var height = 65;
    var newWidth = width*2;
    var newHeight = height*2;
	var i = (-1 * (((xMousePos/newWidth) - (newHeight/newWidth) * ((xMousePos/newWidth) - (newHeight/newWidth)))) + 1;
	if (i < .4) i = .4;
	if (i > 2) i = 2;
	//picture1.width=(width * i);
	//picture1.height=(height * i);
	return new array(width*i, height*i);
}

function handleMouse()
{
	if (document.layers) { // Netscape
    	document.captureEvents(Event.MOUSEMOVE);
	    document.onmousemove = resizeImage;
	} else if (document.all) { // Internet Explorer
	    document.onmousemove = resizeImage;
	} else if (document.getElementById) { // Netcsape 6
	    document.onmousemove = resizeImage;
	}
}

*/