jQuery(window).load(function() {
	//jQuery('#middle div').fadeIn('slow');
});
jQuery(document).ready(function() {
	jQuery('#text-418083231 h3').wrapInner('<a href="http://www.flickr.com/photos/drewcovi/" target="_blank"></a>');	
	jQuery('#text-408340211 div a').attr('target','_blank');	
	jQuery('.projects a').css('opacity','.7').hover(
		function(){
		jQuery(this).css({'color':'#fff','background-color':'#030303','opacity' : '1.0'});
		},
		function(){
		jQuery(this).css({'color':'#8D8C8C','background-color':'#000',"opacity" : ".7"});
		}
	);
	jQuery('.page-template-portfolio-php #logo .swf').flash({
		swf: templateDir+'/swf/logo.swf',
		width: 117,
		height: 117,
		wmode: 'transparent',
		loop: true
	});
	jQuery('.project #logo .swf').flash({
		swf: templateDir+'/swf/logo.swf',
		width: 117,
		height: 117,
		wmode: 'transparent',
		loop: true
	});
	jQuery('#gallery img').each(function(){
		if(!this.complete){
			jQuery(this).load(function(){jQuery(this).animate({'opacity':1},300)}); 
		}else{
			jQuery(this).animate({'opacity':1},300);
		}
	});
	jQuery('.page-template-portfolio-php h1 #subhead, .page-template-project-php h1 #subhead').html('pixel by pixel.');
	jQuery('#about h1 #subhead').html('never stop evolving.');
	jQuery('#tips h1 #subhead').html('my idea of fun.');
	jQuery('.blogroll li:last-child').css('margin-right','0');
	jQuery('input[name="your-email"]').val('email');
	jQuery('textarea[name="your-message"]').val('message');
	jQuery('input[name="your-email"]').focus(function(){ jQuery(this).val()=='email'?jQuery(this).val(''):null;});
	jQuery('textarea[name="your-message"]').focus(function(){jQuery(this).val()=='message'?jQuery(this).val(''):null;});
	jQuery('input[name="your-email"]').blur(function(){jQuery(this).val()==''?jQuery(this).val('email'):null;});
	jQuery('textarea[name="your-message"]').blur(function(){jQuery(this).val()==''?jQuery(this).val('message'):null;});

});
