jQuery(document).ready(function() {
	//generate random number
	var randomnumber=Math.floor(Math.random()*jQuery("#hero").children().length);
	jQuery(function() {
		//hide all the images (if not already done)
		jQuery("#hero > img").hide();
	
		//set timeout for image to appear (set at 500ms)
		setTimeout(function(){
		   //fade in the random index of the image collection
		   jQuery("#hero > img:eq(" + randomnumber + ")").fadeIn();
		}, 200);       
	});

	jQuery("#twitter").tweet({
		query: "jdilla+OR+j+dilla+OR+dilla",
		count: 5,
		avatar_size: 48,
		loading_text: "loading tweets..."
	});
	
});

jQuery(document).ready(function($) {
		
		$('input').focus(function() {
			var value=$(this).val();
			$(this).val("");
		});
		$('input').blur(function() {
			if($(this).val()=="") {
				$(this).val(value);
			}
		});
		
		$('.your-message textarea').focus(function() {
			var value=$(this).val();
			$(this).val("");
		});
		
		$('.your-message textarea').blur(function() {
			if($(this).val()=="") {
				$(this).val(value);
			}
		});
		
});


