$(document).ready(function(){

	//Featured area has a slow scroll and a pager
	
	$('#featureArea .featureWrap') 
	        .before('<div id="featuredNav">') 
	        .cycle({ 
	            speed:  2000, 
	            timeout: 10000, 
	            pager:  '#featuredNav' 
	        });

	$('#folio #folioItems') 
			.before('<button id="nextbutton">Next</button>')
       		.before('<div id="folioNav">') 
		    .cycle({ 
		    	timeout: 0, 
		    	pager:  '#folioNav',
				next:   '#nextbutton',
		 		pause:  1 
		    });
		
	$('#folio #folioItems .item ul li a').prepend('<span>Click to expand</span>');
	//Social networking icon fades when you hover
			
	$('.social li a').hover(function(){
		$(this).bgFade('fadeIn',
		{
			fadeSpeed: 350
		});
	}, function() {
		$(this).bgFade('fadeOut',
		{
			fadeSpeed: 350
		});
	});
	
	//Fancybox popup on Portfolio
	
	$("#folio li a:has(img)").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200
	});
	
	$("#folioWrap .video-link").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	200, 
		'speedOut'		:	200,
		'hideOnContentClick': false
	});
	
	$('#your-name').focus(function(){
	       if ($(this).val() == "Name") {
           $(this).val('');
        }
    });
    $('#your-name').blur(function(){
        if ($(this).val()==='' ) {
            $(this).val('Name');
        }
    });
	$('#your-company').focus(function(){
	       if ($(this).val() == "Company Name") {
           $(this).val('');
        }
    });
    $('#your-company').blur(function(){
        if ($(this).val()==='' ) {
            $(this).val('Company Name');
        }
    });
	$('#your-email').focus(function(){
	       if ($(this).val() == "Email") {
           $(this).val('');
        }
    });
    $('#your-email').blur(function(){
        if ($(this).val()==='' ) {
            $(this).val('Email');
        }
    });
	$('#your-phone').focus(function(){
	       if ($(this).val() == "Phone") {
           $(this).val('');
        }
    });
    $('#your-phone').blur(function(){
        if ($(this).val()==='' ) {
            $(this).val('Phone');
        }
    });
	$('#your-budget').focus(function(){
	       if ($(this).val() == "Budget") {
           $(this).val('');
        }
    });
    $('#your-budget').blur(function(){
        if ($(this).val()==='' ) {
            $(this).val('Budget');
        }
    });
	$('#your-message').focus(function(){
	       if ($(this).val() == "Message") {
           $(this).val('');
        }
    });
    $('#your-message').blur(function(){
        if ($(this).val()==='' ) {
            $(this).val('Message');
        }
    });


	
});

