﻿/*
    function altGoster(obj,e){
        $('#engel_alt').html($(obj).attr("alt"));
    }
    
    $("#engel_A").mouseover(function(){
        $('#engel_alt').css({"height":"50px","width":"50px","position":"absolute"});
       altGoster(this.id,e);
    });
    */

    
    //'top':e.pageY,"left":e.pageX,
    
    /*
$(document).ready(function(){

    $('span').each(function(e){
        if ($(this).attr("id").substr(0,6) == "engel_"){
        
    
        $('#engel_alt').css({"top":e.pageY,"left":e.pageX,"height":"50px","width":"50px","position":"absolute"});
        $('#engel_alt').html($(obj).attr("alt"));
      
        }
    });
}
*/


$(document).ready(function () 
{          
     $('img').each(function(e){
        if ($(this).attr("id").substr(0,6) == "engel_"){
            $(this).mouseover(function(e){
                $('#enge').css({"top":e.pageY-100,"left":22,"display" : "block","border":"1px solid black"})
                $('#enge').html($(this).attr("alt"))
                $('#enge').show();      
            }); 
            $(this).mouseout(function(){
            $('#enge').css({"display":"none"});
            });
        }
    });
}); 
