var imageSet = new Object();

$(function(){
    
$("a.videoteaser-playmovie").overlay({

        // use the Apple effect for overlay
        effect: 'apple',        
        
        expose: '#789',                
        
        onLoad: function(content) {
            // find the player contained inside this overlay and load it
            this.getOverlay().find("a.player").flowplayer(0).load();
        },
        
        onClose: function(content) {
            $f().unload();
        }
    });                
    
    // install flowplayers
    $("a.player").flowplayer("/fileadmin/templates/swf/flowplayer-3.2.5.swf");    
    
});


function registerOverLink(id,noImg,roImg) {

    
    imageSet[id] = new Object();
    imageSet[id] = {no:noImg,ro:roImg};
    

    $('#'+id).bind('mouseover',function() {
        
        $('#'+id+' img').attr('src',imageSet[id].ro)
        
    });

    $('#'+id).bind('mouseout',function() {
        
        $('#'+id+' img').attr('src',imageSet[id].no)
        
    });
    
    $('#'+id).bind('mouseout',function() {
        
        $('#'+id+' img').attr('src',imageSet[id].no)
        
    });
    
        
}
