// JavaScript Document
//JavaScript Document

jQuery(document).ready(function(){
	jQuery("#navigation ul li a").hover(function() {
		jQuery(this).parent().find("ul").slideDown('fast').show(); 
		jQuery(this).parent().hover(function() {
			}, function(){	
				jQuery(this).parent().find("ul").slideUp('slow');
			});
	});
})

/*var menuShown;
jQuery(document).ready(function(){
	jQuery("#navigation ul li a").hover(function() {
		jQuery(this).parent().find("ul").show();
		jQuery(this).parent().hover(function() {
	}, function(){
		menuShown=jQuery(this).parent().find("ul").hide();
	 //window.setTimeout("hideMenu()",500)
		});
	}); 
})*/

//to keep fade effect in highlight's teaser image
jQuery(document).ready( 
    function(){    
     jQuery('#slideshow').innerfade({ speed: 500, timeout: 5000, type: 'sequence', containerheight: '358px' }); 
     jQuery('#slideshow-destination').innerfade({ speed: 500, timeout: 5000, type: 'sequence', containerheight: '358px' }); 
     jQuery('#slideshow-gallery').innerfade({ speed: 500, timeout: 5000, type: 'sequence', containerheight: '358px' }); 

     } 
   ); 


//to keep fade effect in content image
jQuery(document).ready( 
    function(){    
     jQuery('#image-slide').innerfade({ speed: 500, timeout: 5000, type: 'sequence', containerheight: '355px' }); 
     } 
   ); 

//enable lighbox effect
jQuery(document).ready(function() {
jQuery(".lightbox-2").lightbox({
			    fitToScreen: true,
				fileLoadingImage: '/system/layout/images/loading.gif',
				fileBottomNavCloseImage: '/system/layout/images/closelabel.gif',
				strings : { image: 'Bild ' , of : ' von ' , prevLinkText: '&laquo;  Zur&uuml;ck' , nextLinkText : 'Weiter &raquo;',
							closeTitle : 'SchlieÃŸen Bildergalerie', prevLinkTitle : 'vorheriges Bild', nextLinkTitle : 'nÃ¤chstes Bild'
							}
});
});

jQuery(document).ready(function() {
	jQuery("#content_home .item:nth-child(1)").addClass("alt");
	jQuery("#content_home .item:nth-child(5)").addClass("alt");
})


jQuery(document).ready(function() {
	jQuery("#content-destination .item:nth-child(1)").addClass("alt");
jQuery("#content-destination .item:nth-child(5)").addClass("alt");

})



