jQuery(function($) {
	function rand ( n )
	{
	  return ( Math.floor ( Math.random ( ) * n + 1 ) );
	}
	startImages = new Array("01.jpg","04.jpg", "05.jpg", "06.jpg", "07.jpg", "08.jpg", "09.jpg", "10.jpg", "11.jpg", "12.jpg", "13.jpg", "14.jpg");
	nr = rand(12)-1;
	jQuery("#top2 img#random").attr("src","/files/image/top/frontpage/"+startImages[nr]);
	jQuery("#top2 img#random").fadeIn();
	var activeImage = "random";
	jQuery(".rollover").hover(function(){
		if(jQuery(this).attr("id")!=activeImage){
		activeImage=$(this).attr("id");
		jQuery("#top2 img").fadeOut("fast");
		jQuery("#top2 img#"+$(this).attr("id")).fadeIn();
		//return false;
		}
	});
	
	$("a#topimage2, div#submenu").mouseover(function(){
      $("#submenu").show();
    });
    $("a#topimage2, div#submenu").mouseout(function(){
      $("#submenu").hide();
    });

});
