/* I'm a drama setter */
	$(document).ready(function() {
		
		      $('#contact_form').hide(); 
			$('#contact_now').click(function(){ $('#contact_form').slideToggle();
	 });

		$("#contactform").ajaxForm({ target: '#thankyou', 
		beforeSubmit: function() {						
		return $("#contactform").validate({rules: { 
			firstName: "required", email: { required: true, email: true }}, 
			messages: { email: "required!", firstName: "required!"}}).form();
		    },
      success: function() { 
       $('#contact_form').fadeOut('slow'); 

      } 
  });

});

$(function(){
   opts_learn = {
      distances : [90,90],
      leftShifts : [-50,-50],
      bubbleTimes : [300,300],
      hideDelays : [0,0],
      bubbleWidths : [200,200],
      bubbleImagesPath : "assets/images/skins",
      msieFix : true
   };
 opts_plan = {
      distances : [130,130],
      leftShifts : [-50,-50],
      bubbleTimes : [300,300],
      hideDelays : [0,0],
      bubbleWidths : [200,200],
      bubbleImagesPath : "assets/images/skins",
      msieFix : true
   };
   opts_design = {
      distances : [40,40],
      leftShifts : [-50,-50],
      bubbleTimes : [300,300],
      hideDelays : [0,0],
      bubbleWidths : [200,200],
      bubbleImagesPath : "assets/images/skins",
      msieFix : true
   };
   opts_build = {
      distances : [70,70],
      leftShifts : [-50,-50],
      bubbleTimes : [300,300],
      hideDelays : [0,0],
      bubbleWidths : [200,200],
      bubbleImagesPath : "assets/images/skins",
      msieFix : true
   };
	opts_act = {
      distances : [60,60],
      leftShifts : [-30,-30],
      bubbleTimes : [300,300],
      hideDelays : [0,0],
      bubbleWidths : [200,200],
      bubbleImagesPath : "assets/images/skins",
      msieFix : true
   };
   opts_nur = {
      distances : [10,10],
      leftShifts : [-50,-50],
      bubbleTimes : [300,300],
      hideDelays : [0,0],
      bubbleWidths : [200,200],
      bubbleImagesPath : "assets/images/skins",
      msieFix : true
   };
   $('.bubble_learn').codaBubble(opts_learn);
 $('.bubble_plan').codaBubble(opts_plan);
 $('.bubble_design').codaBubble(opts_design);
	 $('.bubble_build').codaBubble(opts_build);
		 $('.bubble_act').codaBubble(opts_act);
			 $('.bubble_nur').codaBubble(opts_nur);
});