
$(document).ready(function(){

	 
	$("#visualFrame ul").cycle({ 
     fx:     'fade',     
    delay: 3000,
	timeout: 3000
});

$('#planerPic').click(function(){
	window.location.href="/freizeitangebote/burgen-schloesser.html?showPlaner=1";
});
$('div#mainLogo').click(function(){
	window.location.href="/";
});
$('#planerpic').click(function(){
	window.location.href="/freizeitangebote/burgen-schloesser.html?showPlaner=1";
});
$('a#planerlink').click(function(e){
	e.preventDefault();
	alert('click');
	window.location.href="/freizeitangebote/burgen-schloesser.html?showPlaner=1";
});

$('ul#navigation_top>li:first').children('a').html('<img src=\'/fileadmin/templates/images/ico_home.png\' alt=\'Home\' />');
	$.get('/fileadmin/templates/ajax/search_planer.php',function(data){
		$('ul#navigation_top').append(data);
		
		$('#searchFieldTop').keypress(function(event){
			if(event.keyCode==13){
				var search=escape($(this).val());
				var newLoc = "/freizeitangebote/ausflugslokale.html?search[keyword]="+search+"&search[regio]=0&search[allCat]=1"
				window.location.href=newLoc;
			}
		});
		
		
	});




if($.browser.msie!=true){
	$(".showI").hover(
		function() {
	$(this).animate({"opacity": "0"}, "slow");
	},
	function() {
	$(this).animate({"opacity": "1"}, "slow");
	});

	
	 
	//$('#blume img').stop().animate({'clip':'rect(10px 200px 150px 20px)'}, 1000)
	$("#blume img").hide();
	$("#blume img").fadeIn(5000);
}


$('.boxgrid.caption').hover(function(){
					$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
				}, function() {
					$(".cover", this).stop().animate({top:'175px'},{queue:false,duration:160});
				});


$('.boxgrid.thecombo').hover(function(){
					$(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300});
				}, function() {
					$(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
				});


});

function showPlaner(){
	window.location.href="/freizeitangebote/burgen-schloesser.html?showPlaner=1";
}


