var item;
var timeout = false;
var zindex = 998;

$j(window).load(function() {

		/* Hover */
	$j('#nav li.drop-down').hover(function () {

		var timeout = $j(this).data("timeout");
    if(timeout) clearTimeout(timeout);
		
		$j(this).children('ul').stop(true, true).slideDown(250);
		$j(this).children('ul').css('z-index', zindex);
		$j(this).children('a').addClass('hovered');
		
		zindex++;
		
	}, function () {
		
		$j(this).data("timeout", setTimeout($j.proxy(function() {
			$j(this).children('ul').hide();
			$j(this).children('a').removeClass('hovered');
		}, this), 200));
		
	});
	
	
	$j('#home-banner .item').hover(function(){
		$j(this).stop(true, true).fadeOut(150, function(){
							$j(this).addClass('hovered');
							$j(this).children('a.image').addClass('hovered');
							$j(this).fadeIn(150);
						});
						
	}, function (){
		$j(this).stop(true, true).fadeOut(150, function(){
							$j(this).removeClass('hovered');
							$j(this).children('a.image').removeClass('hovered');
							$j(this).fadeIn(150);
						});
	})
	
	$j('.page').css('min-height', $j(window).height()); 
	
	
	$j('#home-banner').delay(300).fadeIn(1000);
});

