//create todays date
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1;//January is 0!
var yyyy = today.getFullYear();
if(mm<10){mm='0'+mm};//add a 0 to month if less than 10
if(dd<10){dd='0'+dd};//add a 0 to day if less than 10
//var todaysDate = mm+"/"+dd+"/"+yyyy;
var todaysDate = yyyy+"-"+mm+"-"+dd;
//document.write(todaysDate);

// jQuery Functions
var $j = jQuery.noConflict();

function fader(item) {
	$j(item).hover(function(){
		$j(this).stop().fadeTo(500, 0.5);
	},function(){
		$j(this).stop().fadeTo(500, 1.0);
	});
}

$j(document).ready(function() {	
	
	fader(".fade");
	
	fader(".exBorder3");
	
	// Colorbox
	$j("a[rel=colorbox]").colorbox();
	
	// Sortable Table
	$j("#searchtable").show();
	$j("#table1").advancedtable({searchField: "#search", loadElement: "#loader", searchCaseSensitive: false, ascImage: "images/up.png", descImage: "images/down.png"});
	

});
