$(function () {
		// create Date object for current location
		d = new Date();
		// obtain local UTC offset and convertto msec
		localOffset = d.getTimezoneOffset()/60;
		//Note that a negative return value from getTimezoneOffset() indicates that the current location isahead of UTC, while a positive value indicates that the location is behind UTC.
		eventOffset = 8;
		//UTC offset of event province, for example, BC PST is -8, http://www.timetemperature.com/tzca/time_zone_codes_canada.shtml 
		offset = eventOffset-localOffset;
		hour = 8 + offset;
		//8 am is the start time
		eventDay = new Date(2011, 11 - 1, 26, hour);
		$('#defaultCountdown').countdown({until: eventDay, format: 'DHMS'});
	});

$(document).ready(function(){
	
	$('ul.navigation li:first-child').each(function(){
		$(this).addClass('first');
	});
	
	$('ul.navigation li:last-child').each(function(){
		$(this).addClass('last');
	});
	
	
	$('a.register_star').hover(
		function(){
			$(this).find('span').fadeOut();
		},
		function(){
			$(this).find('span').fadeIn();
		}
	);

    $('.banner_photos').cycle({ 
	    fx: 'fade',
	    timeout:  5000
	   
	});
});


