var tmptext = ''
$(document).ready(function() { 
	$('#topimages').cycle('fade');
	$('#partnerslogo').cycle({fx: 'scrollDown', timeout: 5000});
	
	$('#subemail').addClass('inputHint');
	$('#subemail').focus(function() { 
		if( $(this).hasClass('inputHint') ) {
			tmptext = $(this).val();
			$(this).val('');
			$(this).removeClass('inputHint');
		}
	});
	$('#subemail').blur(function() { 
		if( $.trim($(this).val()) == '' ) {
			$('#subemail').addClass('inputHint');
			$(this).val(tmptext);
		}
	});
	$('#subscribenews').click(function() { 
		var se = $('#subemail');
		if( $.trim(se.val()) != '' && !se.hasClass('inputHint') ) {
			return true;
		}
		return false;
	});
	
	$('#LeftMenu').accordion({ 
		header: 'div.LeftMenuTitle', 
		//active: false, 
		active: '.selected',
		selectedClass: 'active',
		alwaysOpen: false, 
		animated: false, 
		autoheight: false 
	});

	var theDay = new Date(2009,9,24,9,0,0); 
	//newYear = new Date(newYear.getFullYear() + 1, 1 - 1, 1); 
	$('#countdown').countdown({until: theDay}); 
});
