// JavaScript Document
	$(document).ready(function(){
		//$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
		
		$("ul.topnav li .trigger").hover(function() { //When trigger is clicked...
			
			//Following events are applied to the subnav itself (moving subnav up and down)
			//$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click
	 		$(this).parent().find("ul.subnav").show();
			$(this).parent().hover(function() {
			}, function(){	
				//$(this).parent().find("ul.subnav").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up
				$(this).parent().find("ul.subnav").hide();
			});
	 
			//Following events are applied to the trigger (Hover events for the trigger)
			}).hover(function() { 
				$(this).addClass("subhover"); //On hover over, add class "subhover"
			}, function(){	//On Hover Out
				$(this).removeClass("subhover"); //On hover out, remove class "subhover"
		});

		var element = $('.nav')
		element.hover(function(){
			var url = this.src;
			if (url.search(/_over.jpg/) == -1)
				this.src = url.replace(/.jpg/, "_hover.jpg");
			},
			function(){
				var url = this.src;
				this.src = url.replace(/_hover.jpg/, ".jpg");
			}
		);
		
		var today = new Date();
		var offset;
		
		if (today.getMonth() >= 3 && today.getMonth() < 9){
			offset = +12;
		} else {
			offset = +13;
		}
		var options1 = {
			format: '%I:%M:%S %p', // 12-hour
			utc: true,
			utc_offset: offset
		}
		$('#jclock1').jclock(options1);

		var options2 = {
			format: '%A %B %d, %Y', // 12-hour
			utc: true,
			utc_offset: offset
		}
		$('#jclock2').jclock(options2);
	});
