$(function()
{  
    //event handler for package image rollover
    $("#package").hover(
    function()
    {
        $(this).attr('src','images/materials_over.png');
    },
    function()
    {
        $(this).attr('src','images/materials.png');
    });

    
    //event handlers for contact us click and mouseout
    $(".contact").hover(
    function () { 
       $(this).attr('src','images/contact_down.png');   
    },
    function () { 
       $(this).attr('src','images/contact_up.png'); 
    });



    //event handler for table arrows 
    $(".arrow").hover(
    function () { 
       $(this).attr('src','images/arrow2.png');   
    },
    function () { 
       $(this).attr('src','images/arrow1.png'); 
    });

     //Pop Windows (2 types large and small)
     //--------------------------------------------------------------------------------------------
     //table anchor event handlers
     //opens pop window
     //NOTE: second param window title will cause javascript error in IE8, (maybe 7 and 6 too) if it 
     //contains white space or special characters
     
     //Pop Window large
    $('a.window').click(function(){
        this.blur();
        window.open(this.href, "SchoolWisePress", "width=747,height=914,status=no,location=no,toolbar=no,menubar=no,scrollbars=yes,resize=yes,top=25,left=400");
        return false;
    });
    
    //Pop Window small
    $('a.windowsmall').click(function(){
        this.blur();
        window.open(this.href, "SchoolWisePress", "width=747,height=603,status=no,location=no,toolbar=no,menubar=no,scrollbars=yes,resize=yes,top=100,left=400");
        return false;
    }); 
});



