$(document).ready(function(){

		$(".commissionersRead img").hide();
		$(".btnSubscribe input").hide();
		$(".submitBtn input").hide();
		$(".cancelBtn input").hide();
		$(".searchBtn input").hide();

		
		// NEWSFEED SUBSCRIPTION
		$(".newsfeed input").focus(function () {
			$(".newsfeed").css({backgroundPosition: 'left top'});
			$(".newsfeed input").css({color: '#2d2440'});
			$(".newsfeed input").val("");
		});
		$(".newsfeed input").blur(function() {
			$(".newsfeed").css({backgroundPosition: 'left bottom'});
			$(".newsfeed input").css({color: '#96919f'});
			if ($(".newsfeed input").val() == "")
			{
				$(".newsfeed input").val("Your email here");
			}
		});

		// FORM INPUTS
		$(".submitLong input, .submitShort input").each(function(i) {
			$(this).focus(function () {
				$(this).parent().css({backgroundPosition: 'left top'});
				$(this).css({color: '#2d2440'});
			});
			$(this).blur(function() {
				$(this).parent().css({backgroundPosition: 'left bottom'});
				$(this).css({color: '#96919f'});			
			});
		});


		// FADE IN BUTTONS
		$(".btnSubscribe").hover(function() {
			$(".btnSubscribe input").animate({ opacity: 'show' }, 'fast');
		},function() {
			$(".btnSubscribe input").animate({ opacity: 'hide' }, 'fast');
		});
		$(".commissionersRead").hover(function() {
			$(".commissionersRead img").animate({ opacity: 'show' }, 'fast');
		},function() {
			$(".commissionersRead img").animate({ opacity: 'hide' }, 'fast');
		});
		$(".submitBtn").hover(function() {
			$(".submitBtn input").animate({ opacity: 'show' }, 'fast');
		},function() {
			$(".submitBtn input").animate({ opacity: 'hide' }, 'fast');
		});
		$(".cancelBtn").hover(function() {
			$(".cancelBtn input").animate({ opacity: 'show' }, 'fast');
		},function() {
			$(".cancelBtn input").animate({ opacity: 'hide' }, 'fast');
		});
		$(".searchBtn").hover(function() {
			$(".searchBtn input").animate({ opacity: 'show' }, 'fast');
		},function() {
			$(".searchBtn input").animate({ opacity: 'hide' }, 'fast');
		});
		

		// MENU ITEM FADE IN
		$('.menu li').not('.menu li#selected').each(function(i) {
			var fade = $('> img',this);
			$(this).hover(function() {
				//if ($(this).find("img").is(':animated')) {
				//}
				//else {
				//	$(this).find("img").fadeIn("fast");
				//}
			},function() {
				//$(this).find("img").fadeOut("fast");
			});
		});

		// FIX RESIZE BUG IN IE6
		//$(window).bind("resize", resizeWindow);
		//	function resizeWindow( e ) {
		//	location.reload(); 
		//}
});