$(document).ready(function(){
	
	$(".grow").hide();
	$(".grow").slideDown("slow");
	
	$(".fade-in").hide();
	$(".fade-in-slow").fadeIn(2000);
	$(".fade-in-med").fadeIn(1500);
	$(".fade-in-fast").fadeIn(1000);
	
	
	$(".more").hide();
	$(".showmore").click(function(){
			$(".more").slideToggle("slow");
			$(".showmore .choices").toggle();
	});
	
});

/* Contact Form Validation */
function validate(form)
{
	if( form.cfName.value == "" || form.cfEmail.value == "" || form.cfComments.value == "" ) 
   { 
	  document.getElementById('message').innerHTML = 'Please fill out name, email and a message.';
	  document.getElementById('message').style.display = 'block';
	  return false; 
   }
}

/* Homepage Works Section */
    
      
    //<![CDATA[
    
    
    $(document).ready(function () {
    
        //Append a div with hover class to all the LI
        $('#navMenu li').append('<div class="hover"><\/div>');
    
    
        $('#navMenu li').hover(
            
            //Mouseover, fadeIn the hidden hover class	
            function() {
                
                $(this).children('div').fadeIn('2000');	
            
            }, 
        
            //Mouseout, fadeOut the hover class
            function() {
            
                $(this).children('div').fadeOut('5000');	
            
        }).click (function () {
        
            //Add selected class if user clicked on it
            $(this).addClass('selected');
            
        });
    
    });
    
    //]]>
    
	
	$(document).ready(function() {
										
										
		

								   
			$('#js-container').jsquares();
				   
				   

			$(".fancybox,.inner,").fancybox();
			
			$(".iframe").fancybox({
				'width'				: '100%',
				'height'			: '100%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
								   
								   
			

			
		});

	

