/*$(function () {
	$.sifr({path:'fonts'});
	$('h6').sifr({font:'test',height:'48'});
});
	
	
     var headline_count;
     var headline_interval;
     var old_headline = 0;
     var current_headline = 0;*/

	 var t = 0;
		
$(document).ready(function(){
	

// scroll news
	
	/*var wait = 0;
	
	headline_count = $("div.headline").size();
	$("div.headline:eq("+current_headline+")").css('top', '5px');
       
    headline_interval = setInterval(headline_rotate,5000);
    
	
	$('#scrollup').hover(function() {
		if (wait == 0){
			clearInterval(headline_interval);
		}
    }, function() {
	   if (wait == 0){
		   wait = 1;
		   setTimeout("headline_interval = setInterval(headline_rotate,5000);wait = 0;headline_rotate();",5000);
	   }
    });*/


// menu popup

	$('a[rel="dbPopWin"]').click(
		function()
		{
			return $.dbPopWin( $(this).attr('href'), { dbPopWinWidth: 790, dbPopWinHeight: 400 } );
		}
	);

// menu autori

	$('#autori')
		.mouseover( function() {
		clearTimeout(t);
		$('#autorisub').css("display","block");
	})
	.mouseout( function() {
		t = setTimeout(function(){
		$('#autorisub').css("display","none");                                            
        }, 200); // time
	}); 		
		
	$('#autorisub')
		.mouseover( function() {
       
	    clearTimeout(t);
		$('#autori a').addClass("onautorisub");
		$('#autorisub').css("display","block");
	})
    
	.mouseout( function() {
    	
		$('#autori a').removeClass("onautorisub");
		t = setTimeout(function(){
        $('#autorisub').css("display","none");                                            
        }, 200); // time
	}); 		
		
}); // document.ready
		

	/*function headline_rotate() {
    	current_headline = (old_headline + 1) % headline_count;
        $("div.headline:eq(" + old_headline + ")")
        	.animate({top: -205},"slow", function() {
            $(this).css('top', '205px');
        });
        $("div.headline:eq(" + current_headline + ")")
        	.animate({top: 5},"slow");  
        	old_headline = current_headline;
	}*/
