var site = function() {
	this.navLi = $('#nav li').children('ul').hide().end();
	this.dsimage = $('img.dropshadow');
	this.init();
};

site.prototype = {
 	
 	init : function() {
 		this.setMenu();
		this.setDropshadows(); 
 	},
 	
 	// Enables the slidedown menu, and adds support for IE6
 	
 	setMenu : function() {
 
		$.each(this.navLi, function() {
	 		if ( $(this).children('ul')[0] ) {
	 			$(this).append('<span class="hasChildren" />');
	 		}
	 	});
 	
	 	this.navLi.hover(function() {
	 		// mouseover
			// $(this).find('> ul').stop(true, true).slideDown('slow', 'easeOutBounce');
			$(this).find('> ul').stop(true, true).slideDown('slow');
			// $(this).find('> ul').stop(true, true).show('slow');
			
	 	}, function() {
	 		// mouseout
	 		$(this).find('> ul').stop(true, true).hide(); 		
		});
 	}, 

	setDropshadows : function() {
		$.each(this.dsimage, function() {
			$(this).wrap('<div class="dropshadow" />');
		});
	}
 
}
new site();
