/*
Prime/Caseys HR - Global JS

Handles:
** 1) Making the photos on the homepage opaque with a hover state
** 2) Once the user clicks on the text input field for subscribing, the text is removed so they can enter their email
*/

HR = {
	
	photoOpaque: function(target){

		$(target.images).css('opacity',target.default_opacity);
		$(target.images).hover(
			function(){
				$(this).css('opacity',1);
			},
			function(){
				$(this).css('opacity',target.default_opacity);
			}
		);
		
	},

	subscribeTextReplace: function(params){
		
		var val = $(params.target).val();
		$(params.target).focus(function(){
			if($(this).val() == val){
				$(this).val('');
			}
		});
		
	}

}
