$(document).ready(function(){ 

	// Contact

	$("#contactArea").css('height', '0px');
	$("#contactArea2").css('height', '0px');
	$("#contactArea").css('visibility', 'visible');
	$("#contactArea2").css('visibility', 'visible');

	$("a.contact").toggle( 
				function () { 
 					$("#contactArea").animate({height: "225px"}, {queue:false, duration: 1400, easing: 'easeOutBounce'}) 
 					$("#contactArea2").animate({height: "225px"}, {queue:false, duration: 1400, easing: 'easeOutBounce'}) 
                }, 
                function () { 
					$("#contactArea").animate({height: "0px"}, {queue:false, duration: 1400, easing: 'easeOutBounce'})  
					$("#contactArea2").animate({height: "0px"}, {queue:false, duration: 1400, easing: 'easeOutBounce'})  
				} 
		); 
	


	// Preload
	
	MM_preloadImages('zz_images/beispiel_voriges_over.png','zz_images/beispiel_naechstes_over.png','zz_images/navigation_14px/01_on.png','zz_images/navigation_14px/01_over.png','zz_images/navigation_14px/02_on.png','zz_images/navigation_14px/02_over.png','zz_images/navigation_14px/03_on.png','zz_images/navigation_14px/03_over.png','zz_images/navigation_14px/04_on.png','zz_images/navigation_14px/04_over.png','zz_images/button_download_cv_over.png');
	
	
	// easySlider
	
	$("#slider").easySlider({
				auto: false, 
				continuous: false
			});
	
	
	// fancyBox
	
	$(".fancybox").fancybox(); 
	$("a#arbeitsbeispiele_banner").fancybox({'frameHeight': 800 }); 
	$("a#inline").fancybox({'hideOnContentClick': false, 'frameWidth': 930 });
	$("a.group").fancybox({ 'zoomSpeedIn': 400, 'zoomSpeedOut':400, 'overlayShow': false });
	
	
	
	
	// aToolTip
if ( !($.browser.msie)) {	
     $('a.normalTip').aToolTip();  
     $('a.fixedTip').aToolTip({  
         fixed: true  
     });  
     $('a.clickTip').aToolTip({  
         clickIt: true,  
         tipContent: 'Hello I am aToolTip with content from param'  
     });   
	 
     $('a').aToolTip({  
         clickIt: false,                     // set to true for click activated tooltip  
         closeTipBtn: 'aToolTipCloseBtn',    // you can set custom class name for close button on tooltip  
         fixed: false,                       // Set true to activate fixed position  
         inSpeed: 0,                       // Speed tooltip fades in  
         outSpeed: 100,                      // Speed tooltip fades out  
         tipContent: '',                     // Pass in content or it will use objects 'title' attribute  
         toolTipClass: 'aToolTip',           // Set custom class for tooltip  
         xOffset: 5,                         // x Position  
         yOffset: 5                          // y position  
     });  
}
	
	// Lebenslauf toggle
	
	$("div.bildung").mouseover(function(){
    	$(this).removeClass().addClass("bildung_over");
    }).mouseout(function(){
    	$(this).removeClass().addClass("bildung");		
    });
	
	$("div.arbeit").mouseover(function(){
    	$(this).removeClass().addClass("arbeit_over");
    }).mouseout(function(){
    	$(this).removeClass().addClass("arbeit");		
    });
	
	
	
	
	// greyscale hover effect
	/*
	$(".arbeitsbeispiele").hover(
		function() { $("a.thumb").stop().fadeTo('normal', 0 , function() { $(this).hide() });} , 
		function() { $("a.thumb").stop().fadeTo('normal', 1).show(); }
		);
	*/
	
}); 
