jQuery(function($) {
	$('a.lightbox').lightBox();
});

$(document).ready(function(){
	/* 
	$("#CatNavi li").hover(
		function(){ $("ul", this).fadeIn("slow"); }, 
		function() { } 
	);
	if (document.all) {
		$("#CatNavi li").hoverClass ("sfHover");
	}
	*/
	
	// jQuery Hoverboxes
	
	/* Suche ganz gleich anzeigen 
	$('#box_search').hover(
		function(){ $('#box_search .dropdown').fadeIn("fast"); }, 
		function() { $('#box_search .dropdown').fadeOut("fast"); } 
	);
	*/
	
	$('#box_cart').hover (
		function() { $('#box_cart .dropdown').fadeIn("fast"); }, 
		function() { $('#box_cart .dropdown').fadeOut("slow"); } 
	);
	$('#boxAdmin').hover(
		function(){ $('#boxAdmin .dropdown').fadeIn("fast"); }, 
		function() { $('#boxAdmin .dropdown').fadeOut("fast"); } 
	);
});

$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};


