function toEnable()
{
	tot = window.setTimeout(function(){
		$("#clone").remove();
		},2000)
}

function toDisable()
{
	window.clearTimeout(tot);
}

$(document).ready(function(){
	
	$(".slideshow").innerfade({
		containerheight:340,
		timeout:5000,
		type: 'random_start',
		speed:"slow"});
		
	
	$(".bild").innerfade({
		containerheight:340,
		timeout:5000,
		type: 'random_start', 
		speed:"slow"});
	
	tot = null;

	$("#navi > a")
		.mouseover(function(){
			toDisable();
			$("#clone").remove();
			$(this)
				.next("div")
				.clone()
					.hide()
					.attr("id","clone")

					.css("position","absolute")
					.css("top",$(this).offset().top+20)
					.css("left",$(this).offset().left)
					.appendTo("body")
					.mouseover(toDisable)
					.mouseout(toEnable)
					.show()
		})
		.mouseout(toEnable)
});
