// Expanding images script copyright Matthew LaCerais MLacerais@osc.state.ny.us // Distributed by hypergurl http://www.hypergurl.com
// Permission to use script granted if above credits are left intact
<!--

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 i = (-1 * (((xMousePos/340) - (425/340)) * ((xMousePos/340) - (425/340)))) + 1;
    if (i < .4) i = .4;
    if (i > 2) i = 2;
    picture1.width=(290 * i);
    picture1.height=(230 * i);

    i = (-1 * (((xMousePos/340) - (575/340)) * ((xMousePos/340) - (575/340)))) + 1;
    if (i < .4) i = .4;
    if (i > 2) i = 2;
    picture2.width=(290 * i);
    picture2.height=(230 * i);

    i = (-1 * (((xMousePos/340) - (720/340)) * ((xMousePos/340) - (720/340)))) + 1;
    if (i < .4) i = .4;
    if (i > 2) i = 2;
    picture3.width=(290 * i);
    picture3.height=(230 * i);

    i = (-1 * (((xMousePos/340) - (825/340)) * ((xMousePos/340) - (825/340)))) + 1;
    if (i < .4) i = .4;
    if (i > 2) i = 2;
    picture4.width=(290 * i);
    picture4.height=(230 * i);

    i = (-1 * (((xMousePos/340) - (975/340)) * ((xMousePos/340) - (975/340)))) + 1;
    if (i < .4) i = .4;
    if (i > 2) i = 2;
    picture5.width=(290 * i);
    picture5.height=(230 * 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;
    }
}

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) {

        // Netscape
        document.captureEvents(Event.MOUSEMOVE);
        document.onmousemove = doNothing;

    } else if (document.all) {

        // Internet Explorer
        document.onmousemove = doNothing;

    } else if (document.getElementById) {

        // Netcsape 6
        document.onmousemove = doNothing;
    }
}
//--> 
