$(document).ready(function(){
	
/*
 	$('.slideshow').cycle(
 	{
 		fx:			'fade',
 		timeout:	10000,
 		speed:		1200,
 		cleartypeNoBg: true,
 		cleartype:     !$.support.opacity

  	});
*/


/* Portfolio scroller */
$(function()  {
	$("div.scrollable").scrollable({
		clickable:false,
		size: 7
	});
}); 


/* Contact Us Form */

$('#contact').click(function() {
	$('#contact-us-box').slideToggle(400);
})

$('.close').click(function () {
	$('#contact-us-box').slideToggle(400);
})


$('#contact-us').ajaxForm(function(data){
		if (data==1){	
			$('#contact-form').html("<div id='message'></div>");
	        $('#message').html("<h2>Thanks!</h2>").append("<p>We will be in touch soon.</p>").hide().fadeIn(500)
	        $('#contact-us').resetForm();
	        $('#contact-us-box').slideToggle(1000).fade();	
		}
		else if (data==2){
			$('#contact-form').html("<div id='message'></div>");
	        $('#message').html("<h2 class='alert'>Sorry</h2>").append("<p>There was some trouble connecting to the server, please try again.</p>").fadeIn(500)		
		}
		else if (data==3)
		{
			$('#contact-form').append("<div id='message'></div>");
	        $('#message').html("<h2 class='alert'>Sorry</h2>").append("<p>Your email address appears to be incorrect.</p>").fadeIn(500)
			
		}
});


/* End Contact Us Form */



  	
}) /* end document */

  
  
  

