$().ready(function() {
//Javscript is working so ignore all CSS-Styles, needed if not
 //   $('body').removeClass('nojs');
 
    $('#menue li a[title="Pauschalreisen"]').attr('target','_blank');
   
  
   
// Slideshows Mainpage
    $('#slideshow').cycle({
        pause: 1,
        timeout:  8000,
        fx: 'scrollHorz',
        next: '.forward', 
        prev: '.backward'
    });
// switch theme-images on mouseover
    $('.slide .teaser a').hover(function() {
        newimg = '<img src="'+$(this).attr('href')+'" class="overlay">';
        $(this).parent().parent().parent().find('.overlay').remove();
        $(this).parent().parent().parent().find('.image').after(newimg);    
        $(this).parent().parent().parent().find('.overlay').animate({opacity:1},200);    
    },function(){
        $(this).parent().parent().parent().find('.overlay').animate({opacity: 1}, 500).animate({opacity: 0}, 500, function(){$(this).remove();});
    }).click(function(){
        $(this).trigger('hover');
        return false;
    });

// nav-hover
    $('.slide .backward, .slide .forward').hover(function() {
        $(this).stop().animate({opacity:1},100);
    },function(){
        $(this).stop().animate({opacity:.7},100);
    });



/*    
// Main Menue
    $('#menue li').hover(
        function(){
            $('.highlight', this).stop().animate({top: "91px"}, 200,
                function(){
                    $(this).parent().find('span span').animate({color: "#eee"}, 200)
                }
            );
        },
        function(){
            $('.highlight').stop().animate({top: "100px"}, 200 );
            $('#menue span span').stop().animate({color: "#666"}, 100 );    
    }); 


    $('#footer_wrap2').hover(
        function(){
            $(this).stop().animate({backgroundColor: '#333'}, 400,
                function(){$('ul a', this).animate({fontSize: "11px", color: "#eee"}, 200)}
            );
        },
        function(){
            $('ul a', this).stop().animate({fontSize: "10px", color: "#999"}, 200,
                function(){$('#footer_wrap2').animate({backgroundColor: '#fff'}, 400)}
            );

    }); 

*/

//ready function    
});

