/*
  JS Grundfunktionen | © 2009 by bauer-innovativ.de
____________________________________________ */

$(document).ready(function(){

	$.fn.bauerInnovativScripts = function(settings) {
		settings = jQuery.extend( {

      setupAnimationsZeit: '500' // Durschnittliche Zeit aller Animationen

  	},settings);
  	
      $("#navi_address").css({
        bottom: "9px",
        left: "85px"
      });
  	
      // starts gallery if it's availible
	    if ( $(".gallery_div").length > 0 ) {
        // div.gallery_preview onHover show border
        $(".gallery_preview").hover( function () {
        		$(this).css('border', '1px solid #fc0');
          }, function() {
        		$(this).css('border', '1px solid transparent');
        	}
        );

        // div.images onClick slide
        $(".images").jCarouselLite({
            btnNext: ".next",
            btnPrev: ".prev"
        });

        // gallery functions
        $(".images a").fancybox({
          'zoomSpeedIn': 0,
          'zoomSpeedOut': 0,
          'overlayShow': true,
          'overlayOpacity': 0.5
        });
	    };

    /* div.leistung:last onLoad reduce height
    $(".leistung:last").css('height', '100px');*/

	};

  // Activate [WEBSITE]Scripts if HTML is ready
  $("html").bauerInnovativScripts();

});






