// Define OOP for Site
var site = function() {
	this.navLi = $('#nav li').children('ul').css('display','none').end();		// end() returns '#nav li' and not the children
	this.init();
};

site.prototype = {
	init : function() {
		this.setMenu();
	},
	
	// Enables the slide down menu, and adds support for IE6
	setMenu : function(){
		// Show/Hide Menus
		this.navLi.hover(function(){  
			$(this).find('> ul').stop(true,true).slideDown(250);	//stop(true,true) ensures the animation finishes everytime
			$(this).find('a').addClass('hovered');
		}, function() {
			$(this).find('>ul').stop(true,true).fadeOut(250);
			$(this).find('a').removeClass('hovered');
		});	
	}	
}

new site();

$(function(){
	$('#footer-top .col:last-child').css({'border':'none'})
	//$('#nav').css({'z-index':1000});
	/*var zIndexNumber = 1000;
	$('div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	})*/
});
