(function($){
	
	if ( typeof ietest == 'undefined' ) var ietest = {};

	ietest.globalPublicVars = function () {
		var config = {
			'var1':'1',
			'var2':2
		}
		
		var setVar = function(varName,varData){
			config[varName] = varData;
		}
		
		var getVar = function(varName){
			return config[varName];
		}
		
		return {
			setVar:setVar,
			getVar:getVar
		}
	}()

	ietest.IeSniffing = function(){
		var ieSniff = $.browser.msie, ieVersionSniff = $.browser.version, ie6Sniff = false, ie7Sniff = false, ieType = '';

		var init = function (){
	        if (ieSniff && ieVersionSniff < 7) {
				ieType = 'IE6';
			} else if (ieSniff && ieVersionSniff == 7) {
				ieType = 'IE7';
			}
		}()
		
		return {
			ieType:ieType
		}
	}();
	
  // Colorfades bei Hauptnavigation
  $("#hdCont .ct li a").animate({backgroundColor:"#919681"},10);
  $("#hdCont .ct li a").hover(function() {$(this).animate({backgroundColor:"#333"}, 750)}, function(){$(this).animate({backgroundColor:"#919681"},750)});

  // Colorfades bei Produktueberschriften
  $("#ctCont .head h2").animate({color:"#919681"},750);
  $("#ctCont .head h2").hover(function() {$(this).animate({color:"#333"}, 750)}, function(){$(this).animate({color:"#919681"},750)});
  
	// Akkordion bei Produkten
	$("#ctCont .detail").css("display","none");
	
	$("#ctCont .head").click(function() {
	
		// Rueckbau
    $("#ctCont .detail").hide("slow");
		$("#ctCont .head h2").animate({
      fontSize: '2.6em',
marginLeft: '100px'
      }, 250, function() {});
/*	$("#ctCont .head img.preview").animate({
      width: '40px',
	height: '30px'
      }, 250, function() {});
 */

	  $("#ctCont .head img.preview").fadeIn();

     
    // Oeffnen  
		$(this).children("h2").animate({
      fontSize: '4.8em',
marginLeft: '0px'
      }, 250, function() {
  /*  	$(this).parent().children("img.preview").animate({
      width: '80px',
	height: '60px'
      }, 250, function() {});
*/
});

  $(this).children("img.preview").fadeOut();
    
    $(this).next().show("slow");
      
		return false;
	});
	
	
})(jQuery);

