// JavaScript Document
jQuery(document).ready(function() {

    jQuery('.home-search img:last, .home-submit img:last').hover(
			function() { 
				var linkTo = jQuery(this).parent('a').attr('href');
				jQuery(this).stop().animate({ opacity:0 }, 500);
				jQuery('.home-feature-text a[href="' + linkTo + '"]').stop().animate({ color:"red" }, 250);
			},
			function() { 
				var linkTo = jQuery(this).parent('a').attr('href');
				jQuery(this).stop().animate({ opacity:1 }, 500);
				jQuery('.home-feature-text a[href="' + linkTo + '"]').stop().animate({ color:"#555555" }, 250);
			}
	);
	
	jQuery('.home-feature-text a').hover(
		function() {
			var linkTo = jQuery(this).attr('href');
			jQuery(this).stop().animate({ color:"red" }, 250);
			jQuery('.home-feature a[href="' + linkTo + '"] > img:last').stop().animate({ opacity:0 }, 500);			
		},
		function() {
			var linkTo = jQuery(this).attr('href');
			jQuery(this).stop().animate({ color:"#555555" }, 250);
			jQuery('.home-feature a[href="' + linkTo + '"] > img:last').stop().animate({ opacity:1 }, 500);			
		}
	);
	
	jQuery("a").attr('hideFocus', 'hidefocus');
	
	jQuery("ul#news").liScroll();
	
	
});
