//Defaultwerte
    
jQuery(document).ready(function() {

    //Anzeige Googlemaps
    if(jQuery("#showGoogleMap").length>0) {
       jQuery("#showGoogleMap").click(function() {
           jQuery(".googleMap").css('visibility','visible');
           jQuery("#showGoogleMap").css('display','none');
       });

       jQuery("#googleMapContainer").click(function() {
           jQuery(".googleMap").css('visibility','visible');
           jQuery("#showGoogleMap").css('display','none');
       });
    }

    //Typo3 leere Linktags im Content-Container deaktivieren
    if(jQuery("#contentContainer").length>0) {
        jQuery("#contentContainer a").each(function(i) {
            if(jQuery(this).html() == '') {
                jQuery(this).css('display','none');
            }
        });

    }


    if(jQuery("#subnavigation").length>0) {
        jQuery("#subnavigation").css('display','none');
        jQuery("#subnavigation").animate({
					opacity: 0.3
				  }, 200 );
    }


    if(jQuery("#wbm").length>0) {
        jQuery("#wbm").animate({
					opacity: 0.9
				  }, 200 );
    }
    


    if(jQuery("#contentContainer").length>0 && jQuery("#subnavigation a").length>0) {
        
        if(jQuery.browser.msie) {
           
        } else {
            jQuery("#contentContainer").css('position','relative');
            jQuery("#contentContainer").css('top','-10px');
        }

        jQuery("#subnavigation").css('display','block');
        jQuery("#subnavigation").css('background-color','#666');

        jQuery("#subnavigation").animate({
					opacity: 0.6
				  }, 2000 );
    }

    if(jQuery("#headerBgrdColor").length>0) {
        jQuery("#headerBgrdColor").animate({
					opacity: 0.5
				  }, 1200 ).animate({
					opacity: 0.9
				  }, 1200 );
        
        if(jQuery("#navigation a").length>0) {
         jQuery("#navigation a").each(function(i) {
             jQuery("#navigation a")[i].onmouseover = function() {
                jQuery("#headerBgrdColor").animate({
					opacity: 0.7
				  }, 300 );
             }

             jQuery("#navigation a")[i].onmouseout = function() {
                jQuery("#headerBgrdColor").animate({
					opacity: 0.9
				  }, 100 );
             }
				
			});


          }

         if(jQuery("#subnavigation a").length>0) {
         jQuery("#subnavigation a").each(function(i) {
             jQuery("#subnavigation a")[i].onmouseover = function() {
                jQuery("#headerBgrdColor").animate({
					opacity: 0.7
				  }, 300 );
             }

             jQuery("#subnavigation a")[i].onmouseout = function() {
                jQuery("#headerBgrdColor").animate({
					opacity: 0.9
				  }, 100 );
             }

			});


          }

       }
       
    })


