$(document).ready(function() { 

// PAGE FADING

// Initial fade
$('#mask').delay(600).fadeOut(800);

// Capture link
$('a').click(function(){
  var url = $(this).attr('href');
  var urltar = $(this).attr('target');
  
  if (urltar == '_blank' || url == '#'){
	  	return true;
	} {
		$('#wrapper').fadeOut(300, function(){
    	document.location.href = url;
  		});
	}
  return false;
});

// LAST MENU ITEM
$('.menu li:last').addClass('last');

// INNER FORM LABELS 
	$('.subscribe #FullName , .subscribe #EmailAddress').each(function() {
		var default_value = this.value;
		$(this).focus(function() {
			if(this.value == default_value) {
				this.value = '';
			}
		});
		$(this).blur(function() {
			if(this.value == '') {
				this.value = default_value;
			}
		});
	});

// EMPTY ELEMENTS HIDE
$('img[src^="?Action"]').css('display', 'none'); 

$('iframe[src="http://player.vimeo.com/video/?title=0&byline=0&portrait=0"]').css('display', 'none');



});

