//jQuery.noConflict();


jQuery(document).ready(function(){

	jQuery('li.main').hover(function() { 
        jQuery('div', this).css({'display':'block'}); 
        jQuery(this).css('background', 'url(fileadmin/templates/img/nav_top/bg_ecke_rechts.gif) no-repeat right top'); 
        jQuery('> a', this).css({'background' : 'url(fileadmin/templates/img/nav_top/bg_ecke_links.gif) no-repeat left top', 'color' : '#1d2a33'}); 
        jQuery('> a span', this).css({'background' : 'url(fileadmin/templates/img/nav_top/tab_aktiv.gif) no-repeat center 20px','padding-bottom' : '20px'}); 
      },
      
        function() { 
        jQuery('div', this).css('display', 'none'); 
        jQuery(this).css('background', 'none'); 
        jQuery('> a', this).css({'background' : 'none', 'color' : '#ffffff'}); 
        jQuery('> a span', this).css('background', 'none'); 
    });
    
    // MENU_LANDINGPAGES
    jQuery('li.lp_menu').hover(function() { 
        jQuery('div', this).css({'display':'block'}); 
        jQuery(this).css('background', 'none'); 
        jQuery('> a', this).css({'background' : 'none'}); 
        jQuery('> a span', this).css({'background' : 'none'}); 
      },
      
      function() { 
        jQuery('div', this).css('display', 'none'); 
        jQuery(this).css('background', 'none'); 
        jQuery('> a', this).css({'background' : 'none', 'color' : '#ffffff'}); 
        jQuery('> a span', this).css('background', 'none'); 
    });
    
    jQuery('li.main_act').hover(function() { 
        jQuery('div', this).css({'display':'block'}); 
        jQuery(this).css('background', 'url(fileadmin/templates/img/nav_top/bg_ecke_rechts.gif) no-repeat right top'); 
        jQuery('> a', this).css({'background' : 'url(fileadmin/templates/img/nav_top/bg_ecke_links.gif) no-repeat left top', 'color' : '#1d2a33'}); 
        jQuery('> a span', this).css({'background' : 'url(fileadmin/templates/img/nav_top/tab_aktiv.gif) no-repeat center 20px','padding-bottom' : '20px'}); 
      },
		function() {
        jQuery('div', this).css('display', 'none'); 
     });
      
      
 /**** SlideUp/Down if template changes from big teaser to small ****************/
	jQuery('.slideDown').click(function(event){
    	event.preventDefault(); 
      	var $self=$(this);
      	jQuery("#teaser_small").animate({height: "250px"}, 
      	function(){document.location = $self.attr('href');});
    });
      
    jQuery('.slideUp').click(function(event){
      	event.preventDefault();
      	var $self=$(this);
      	jQuery("#teaser_big").animate({height: "110px"}, 
      	function(){document.location = $self.attr('href');});
      });
      
});