var $j = jQuery.noConflict();

$j(document).ready(function(){
	$j('#primaryNav li').hover(function(){
		$j(this).addClass('over');
		$j(this).find('ul').toggle();
	}, function(){
		$j(this).removeClass('over');
		$j(this).find('ul').toggle();
	});
	
	
	//Checks if the page is using a full banner, and changes the header bg to the correct image
	if ($j('#banner2').exists()){
		$j('#header').css({
			'background' : 'transparent url(../images/internal1.jpg) no-repeat left top'
		});
	};
	
	$j('#gallery-wrapper a').colorbox();

});

$j.fn.exists = function() {
        	return ( this.is('*') );
};


// Date for form processor
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;

