$( document ).ready( function(){
	
	$('.blink')
		.focus( function(){
			if ( $( this ).val() == $( this ).attr('title') ) {
				 $( this ).attr({ 'value': '' });
				 $( this ).addClass('black');
			}
		})
		.blur( function(){
			if ( $( this ).val() == '' ) {
				$( this ).attr({ 'value': $( this ).attr('title') });
				$( this ).removeClass('black');
			}
		});
	
	
	$('#showcases .projectbox a')
		.hover( function(){
				if($(this).find('.projectinfo').is(':hidden')){
					$('.projectinfo').fadeOut(200);		 
					$(this).find('.projectinfo').fadeIn(200);		 
				}
		});
	
	$('#showcases')
		.mouseleave( function(){
			$('.projectinfo').fadeOut(200);		 
				
		});
		
		
	$('a.oldnew')
		.click( function(){
				if($(this).find('span').html() == "old"){
					$(this).find('span').html('new');		 
					$('.website1').hide();		 
					$('.website2').show();		 
				}
				else{
					$(this).find('span').html('old');		 
					$('.website2').hide();		 
					$('.website1').show();	 
				}
				
				return false;
		});
		
		
});
function closeMenu()
{
        $("div.dropDownMenu").fadeOut(200);
        $("#buttons a").removeClass("selected");
}

