/*
 * custom jQuery Code
 * Author:         PStevenson
 * Author Email:   PeterStevenson@hotmail.com
 * Author URL:     P-Stevenson.com
 * Copyright:      Copyright (C) PStevenson. All rights reserved.
 */

jQuery(document).ready(function(){
	
	/* JQUERY UI EFFECTS */		
	$('#golfLogo').mouseenter(function(){$(this).animate({opacity:0.65},{queue:false,duration:200});});
	$('#golfLogo').mouseleave(function(){$(this).animate({opacity:1},{queue:false,duration:200});});
	
	if($.browser.msie && ($.browser.version=='7.0')){
		//IE7 breaks with these calls
		}
	else{
		$('#content .iconLinkArea a').mouseenter(function(){$(this).animate({opacity:0.85},200);});
		$('#content .iconLinkArea a').mouseleave(function(){$(this).animate({opacity:1},750);});
		}
		
	$('#content .iconLinkArea a').mouseenter(function(){$('.iconTitle',this).animate({'bottom':'75px'},200);});
	$('#content .iconLinkArea a').mouseleave(function(){$('.iconTitle',this).animate({'bottom':'15px'},750,'easeOutBounce');});
	
	$('#newsArea #directions').hide();
	$('#newsArea #directions').slideToggle(1250,'easeOutBounce');
	$('#newsArea #directions').mouseenter(function(){$(this).animate({height:'56px'},{queue:false,duration:100});});
	$('#newsArea #directions').mouseleave(function(){$(this).animate({height:'66px'},{queue:false,duration:175});});
		
	$('.fadeFocus').focus(function(){$(this).effect("highlight", {color:'#febf04'}, 1500);});
	
	//MAKES NEWS ITEM COLUMNS HAVE EQUAL HEIGHTS
	$('.newsItem').each(function(){
		$(this).css({'height':$(this).height()});
		});
	$('.newsImageWrap').css({'float':'left','height':'100%'});
	
	/* END JQUERY UI EFFECTS */
	
	});
