$(document).ready(function(){
    
    
    
     // Cloud shifting animation on all page backgrounds
 	/*
 	var shift = +900;
 	var shift2 = +30;
  	function shiftClouds() {
    $('#header').css({
      backgroundPosition: '' + shift + 'px '+shift2+'px'
    });
    shift -= 1;
    
    //if(shift == 800)
    	//shift2 -= 2;
    	


 	 }
	*/
  
  	//var timer = setInterval(shiftClouds, 50);
    
    
    
    /*
    $("#contact").click(function() {
    	$("#contactbox").centerInClient();
        $("#contactbox").fadeIn('slow');
		$('#contactclose').bind("click", function(e){ 
			$("#contactbox").fadeOut('slow'); 
		});
    });
	*/
	
	/*
	$("#about").click(function() {
        //$("#content").hide();
        //$("#aboutbox").show();
    });
    
    $('#aboutclose').click(function(){ 
		//$("#aboutbox").hide();
		//$("#content").show();
	});
	*/
    
    var addy = 'mailto:'+$('.obfuscated').html().replace('at',"@").replace('dot',".").replace(/\s+/g,'');
	$('.obfuscated').attr("href", addy).html('Contact me');
	
    
    //$('#email').hint();
    //$('#message').hint();
   
});
