var $j = jQuery.noConflict();

$j(document).ready(function($){
	/* !Ducting Specifications Colorbox ========== */
	$('.prodSpec').colorbox();
	/* !primary-nav ============================== */
	$('#primary-nav > li').hover(function(){
		$(this).toggleClass('hover').children('ul').show();
		$('> a', $(this)).css({backgroundPosition: "0 0"}).stop().animate({backgroundPosition:"(0 -40px)"}, {duration:200});
	}, function(){
		$(this).toggleClass('hover').children('ul').fadeOut(110);
		$('> a', $(this)).stop().animate({backgroundPosition:"(0 0)"}, {duration:300});
	});
	/* !secondary-nav ============================== */
	$('ul#secondary-nav li a').hover(function(){
		$(this).addClass('hover');
		//$(this).parent('li').css({backgroundPosition: "0 -29px"}).stop().animate({backgroundPosition:"(0 0)"}, {duration:0});
	}, function(){
		$(this).removeClass('hover');
		//$(this).parent('li').stop().animate({backgroundPosition:"(0 -29px)"}, {duration:0});
	});
	
	/* !buckets ============================== */
	$('.bucket ul li a').hover(function(){
		$(this).css({backgroundPosition: "0 30px"}).stop().animate({backgroundPosition:"(0 0)"}, {duration:200});
	}, function(){
		$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:200});
	});
	
	/* !buckets rollover banner change ============================== */
	$('div.bucket').hover(function(){
		$('#banner-home').addClass($(this).attr('id'));
	},function(){
		$('#banner-home').removeClass($(this).attr('id'));
	});
	
});


var getDate=new Date()
var getYear=getDate.getYear()
if (getYear < 1000)
getYear+=1900
var getDay=getDate.getDay()
var getMonth=getDate.getMonth()+1
if (getMonth<10)
getMonth="0"+getMonth
var getCurrentDay=getDate.getDate()
if (getCurrentDay<10)
getCurrentDay="0"+getCurrentDay
theDate = getMonth+"/"+getCurrentDay+"/"+getYear
