jQuery(document).ready(function(){
	if((jQuery.browser.msie && jQuery.browser.version < 7)){
		jQuery(".stufe1").bind("mouseover",function(){
			jQuery(".stufe1").siblings("ul").css("display","none");
			jQuery(this).siblings("ul").css("display","block");
			
		});					   
		/*jQuery(".stufe1").bind("mouseout",function(){
			jQuery(this).siblings("ul").css("display","none");
		});	*/				   
		jQuery(".stufe2").bind("mouseover",function(){
			jQuery(".stufe2").siblings("ul").css("display","none");
			jQuery(this).siblings("ul").css("display","block");
		});					   
		/*jQuery(".stufe2").siblings("ul").bind("mouseout",function(){
			jQuery(this).css("display","none");
		});					  */ 
		/*jQuery("#menu ul").bind("mouseover",function(){
			jQuery(this).css("display","block");
		});	*/
		jQuery("#header").bind("mouseout",function(){		
			jQuery(".stufe1").siblings("ul").fadeOut("slow");								  
		});	
		jQuery("#mainbox").bind("mouseout",function(){		
			jQuery(".stufe1").siblings("ul").fadeOut("slow");								  
		});	
	}
	jQuery(".ecoToggle").bind("click",function(handle){
		showEcoPlus(this,handle);
	});
	/*jQuery(".ecoToggle").bind("mouseout",function(handle){
		hideEcoPlus(this);
	});*/
	
});
var currentId = '';
function hideEcoPlus(ele){
	//var id = $(ele).attr("rel");
	$(ele).fadeOut();
	currentId = '';
}

function showEcoPlus(ele,handle){
	var id = $(ele).attr("rel");
	if(currentId){
		hideEcoPlus("#"+currentId);
	}
	currentId = id;
	$("#"+id).css({position:"absolute",top:"600px",left:"1000px"});
	$("#"+id).fadeIn();
	setTimeout('hideEcoPlus("#'+id+'")',10000); 
}

/*$(document).ready(function(){
		$("#nav-one li").hover(
			function(){ $("ul", this).fadeIn("fast"); }, 
			function() { } 
		);
		if (document.all) {
			$("#nav-one li").hoverClass ("sfHover");
		}
	});
	
	$.fn.hoverClass = function(c) {
		return this.each(function(){
			$(this).hover( 
				function() { $(this).addClass(c);  },
				function() { $(this).removeClass(c); }
			);
		});
	};	
	*/
