$(document).ready(function(){
	var obj = new Site.Application();
});

function customAlert(msg)
{
	var alert = document.getElementById("alert"); 
	
	if (typeof msg != "undefined")
	{
		alert.childNodes[1].childNodes[1].innerHTML = msg;
		alert.style.display = "block";
	}
	else
	{
		alert.childNodes[1].childNodes[1].innerHTML = "";
	}
}

;(function(window) 
{
	window.Site = Site = new Object();

	Site.Application = function() 
	{
        var self;
        
		(this.Init = function() 
		{
			self = this;
			
			Cufon.replace("#navigation > li > a", {
													"textShadow": '#88bbc8 3px 3px',
													"hover": { "color": "#aeff00" } 
												});
			
			Cufon.replace("a.green-button span.center");
			Cufon.replace("a.blue-button span.center");
			Cufon.replace("a.dark-green-button", {
													"hover": { "color": "#293e00" }  
												});
			Cufon.replace(".lobster");
			Cufon.replace("label, h2");
			
			if (typeof homepage == "undefined")
			{
				$("input#date").datepicker({
					"showOn": "both",
					"buttonImage": staticUrl + "img/calendar.png",
					"buttonImageOnly": true
				});
				$('input#track2').timepicker({
	    		   hours: { starts: 6, ends: 12 },
	    		   minutes: { interval: 10 },
	    		   showPeriodLabels: false,
	    		   minuteText: 'Min'
	    		});
			}
			
		})();
	}
	
})(window);
/* End Of File */
