$(document).ready(function(){
	
	// rounded corners
	$('.hc-search').corner("bottom 5px");
	$('.mainnav').corner("5px");
	
	$('#featured').corner("5px");
	
	// clear subscription field
	$('#ea').focus(function()
	{
		if($(this).val()== 'enter your email address')
		{
			$(this).val('');
		}
	});
	
	
	// navigation scripts
	
	$('.dropdown').each(function () {
		$(this).parent().eq(0).hover(function () {
			$('.dropdown:eq(0)', this).css('z-index','10000');
			$('.dropdown:eq(0)', this).fadeIn(100);
			}, function () {
				$('.dropdown:eq(0)', this).fadeOut(100);
			});
	});
	
	$('.dropdown li a').click(function (){
		$('.dropdown').delay(200).fadeOut(100);
	});
	
	// home rotator
	$('#home-highlight').jqFancyTransitions({
		navigation : true, 
		links : true,
		width : 956,
		height : 295,
		delay : 7420,
		titleOpacity : 0.8,
		titleSpeed : 500,
		position: 'top', 
		direction: 'fountain' 
	});
	
	$('#home-highlight').css("visibility","visible");
	
	if ( $.browser.msie ) {
	    if ($.browser.msie  && parseInt($.browser.version) >= 8) {

		} else {
		  	$('#content').corner("10px");
		}
	 } else {
	    $('#content').corner("10px");
	 }
	
	
	
	
});

