jQuery.fn.sihNav = function(options) {
	var settings = jQuery.extend({
		zIndex: 50
	}, options);
	
	
	$("#navigation li.top:not(.active)").hover(
		function(){ 
			$(this).addClass("hover");
			//$("#navigation li.active").removeClass("hover");

			$("ul", this).css("z-index",settings.zIndex++).fadeIn("fast", function() {
				//$("#navigation li.active ul").hide();
			}); 

		}, 
		function() { 
			var pointerItem = this;
			//$("#navigation li.active").addClass("hover");
			//$("#navigation li.active ul").css("z-index",settings.zIndex++).fadeIn("fast", function() {
				$("ul", pointerItem).hide(); 
			//})

			$(pointerItem).removeClass("hover");
	
		} 
	);
	
	$("#navigation li.top").click( function(){ 
		//console.log($(this).children().attr('href'));
		location.href = $(this).children().attr('href');
	});
	
		
	$("#navigation li.active ul").fadeIn("fast");
	
	// if possible, return "this" to not break the chain
	return this;
};
