$(document).ready(function() {

	// hopefully fix safari onload fckup
	var ignoreMe = document.body.offsetWidth;
	var ignoreMe = document.body.offsetLeft;
			
		$(".content").animate({opacity: 0});

/*

  	$(".inactive").bind("mouseenter",function(){
		var self = this
		$(self).fadeTo("fast",0.75);
    }).bind("mouseleave",function(){
		var self = this
		$(self).fadeTo("fast",1);
    });
*/

  	$("#fokus").bind("mouseenter",function(){
		var self = this;
		$(self).animate({backgroundColor: "#003b9b"},300);
    }).bind("mouseleave",function(){
		var self = this;
		$(self).animate({backgroundColor: "#736656"},300);
		$("#fokus .content").animate({opacity: 0});
    });
  	$("#fokus").bind("click",function(){
		var self = this;
		$("#fokus .content").animate({ opacity: 1.0});
		$(self).animate({backgroundNIXColor: "#000"});
    });

  	$("#magazine").bind("mouseenter",function(){
		var self = this;
		$(self).animate({backgroundColor: "#dd2100"},300);
    }).bind("mouseleave",function(){
		var self = this;
		$(self).animate({backgroundColor: "#5c454b"},300);
		$("#magazine .content").animate({opacity: 0});
    });
  	$("#magazine").bind("click",function(){
		var self = this;
		$("#magazine .content").animate({opacity: 1.0});
		$(self).animate({backgroundNIXColor: "#000"});
    });


  	$("#kernkompetenz").bind("mouseenter",function(){
		var self = this;
		$(self).animate({backgroundColor: "#ff6b00"},300);
    }).bind("mouseleave",function(){
		var self = this;
		$(self).animate({backgroundColor: "#635757"},300);
		$("#kernkompetenz .content").animate({opacity: 0});
    });
  	$("#kernkompetenz").bind("click",function(){
		var self = this;
		$("#kernkompetenz .content").animate({opacity: 1.0});
		$(self).animate({backgroundNIXColor: "#000"});
    });


  	$("#umfeld").bind("mouseenter",function(){
		var self = this;
		$(self).animate({backgroundColor: "#609600"},300);
    }).bind("mouseleave",function(){
		var self = this;
		$(self).animate({backgroundColor: "#563e45"},300);
		$("#umfeld .content").animate({opacity: 0});
    });
  	$("#umfeld").bind("click",function(){
		var self = this;
		$("#umfeld .content").animate({opacity: 1.0});
		$(self).animate({backgroundNIXColor: "#000"});
    });

/*
  	$("#kontakt").bind("mouseenter",function(){
		var self = this
		$(self).animate({backgroundColor: "#c82011"});
    }).bind("mouseleave",function(){
		var self = this
		$(self).animate({backgroundColor: "#c82011"});
    });
*/

  	$("#services").bind("mouseenter",function(){
		var self = this;
		$(self).animate({backgroundColor: "#00a0ff"},300);
    }).bind("mouseleave",function(){
		var self = this;
		$(self).animate({backgroundColor: "#827767"},300);
		$("#services .content").animate({opacity: 0});
    });
  	$("#services").bind("click",function(){
		var self = this;
		$("#services .content").animate({opacity: 1.0});
		$(self).animate({backgroundNIXColor: "#000"});
    });

  	$("#team").bind("mouseenter",function(){
		var self = this;
		$(self).animate({backgroundColor: "#009502"},300);
    }).bind("mouseleave",function(){
		var self = this;
		$(self).animate({backgroundColor: "#806e6b"},300);
		$("#team .content").animate({opacity: 0});
    });
  	$("#team").bind("click",function(){
		var self = this;
		$("#team .content").animate({opacity: 1.0});
		$(self).animate({backgroundNIXColor: "#000"});
    });

  	$("#kundenliste").bind("mouseenter",function(){
		var self = this;
		$(self).animate({backgroundColor: "#ff43cd"},300);
    }).bind("mouseleave",function(){
		var self = this;
		$(self).animate({backgroundColor: "#5a5150"},300);
		$("#kundenliste .content").animate({opacity: 0});
		
    });
  	$("#kundenliste").bind("click",function(){
		var self = this;
		$("#kundenliste .content").animate({opacity: 1.0});
//		$(self).animate({backgroundNIXColor: "#000"});
		$("#hiddenKundenliste").animate({opacity:1, width:"410", height:"547"},300);
    });


  	$("#hiddenKundenliste").bind("mouseenter",function(){
    }).bind("mouseleave",function(){
		var self = this;
		$(self).animate({opacity:0, width:"1", height:"0"},300);
    });



  	$("#kontakt").bind("mouseenter",function(){
		var self = this;
		$(self).animate({backgroundColor: "#806e6b"},300);
    }).bind("mouseleave",function(){
		var self = this;
		$(self).animate({backgroundColor: "#c82011"},300);
		$("#kontakt .content").animate({opacity: 0});
    });
  	$("#kontakt").bind("click",function(){
		var self = this;
		$("#kundenliste .content").animate({opacity: 1.0});
//		$(self).animate({backgroundNIXColor: "#000"});
		$("#hiddenKontakt").animate({opacity:1, width:"368", height:"235"},300);
    });

  	$("#hiddenKontakt").bind("mouseenter",function(){
    }).bind("mouseleave",function(){
		var self = this;
		$(self).animate({opacity:0, width:"1", height:"0"},300);
    });
	
/*
	var effect = function(el, n, o) {
		
		$.extend(o, {
			easing: "easeOutQuint"
		});
		
		$(el).bind("mousedown", function() {
			
			$(this).addClass("current").show(n, o,300, function() {
			});
		});
		
	};
*/


// FLIR
//	FLIR.init();
//	FLIR.auto( [ 'h1', 'h2', 'h3', 'h5', 'a.ducatiButton' ] );	

// ==== sphider suggest
//	initializeSuggestFramework();

});  

