	  $(document).ready(function(){



	    $("#offices-worldwide-box a").fancybox({
	      'width' : 640,
	      'height' : 390,
	      'autoScale' : false,
	      'transitionIn' : 'elastic',
	      'transitionOut' : 'elastic',
	      'type' : 'iframe'
	    });

	    $("a.fancymap").fancybox({
	      'width' : 425,
	      'height' : 350,
	      'autoScale' : false,
	      'transitionIn' : 'elastic',
	      'transitionOut' : 'elastic',
	      'type' : 'iframe'
	    });


		$("a#gallery-fulltime-call").fancybox({'loop': true});
		$("a#gallery-meeting-call").fancybox({'loop': true});



	    $('#form-box input[type="text"]').each(function(index, domEle) {
 	      $(this).focus(function() {
	        $('label[for="'+ domEle.name +'"]').hide();
	      });
	      $(this).blur(function() {
		    if ($(this).val() == '') {
	          $('label[for="'+ domEle.name +'"]').show();
		    }
		  });
  	    });

		$('#headers').cycle({
		  speed: 3000,
		  timeout: 15000
		});
	   	   
	   
		$(function () {
		  var counter = 0,
		  divs = $('#testimonial1, #testimonial2, #testimonial3, #testimonial4, #testimonial5');
		  function showDiv () {
		    divs.hide()
		    .filter(function (index) { return index == counter % 5; })
		    .show('fast')
		    counter++;
		  };
		  showDiv();
		  setInterval(function () {
		    showDiv();
		  }, 13 * 1000);
		});

		$("a.slideshow").fancybox({
		  'loop': true,
		  'transitionIn' : 'elastic',
		  'transitionOut' : 'elastic',
		  'speedIn' : 600, 
		  'speedOut' : 200, 
		  'overlayShow' : true
		});

		$("a.fancybox-iframe").fancybox({
		  'width' : 652,
		  'height' : 460,
		  'autoScale' : false,
		  'transitionIn' : 'elastic',
		  'transitionOut' : 'elastic',
		  'type' : 'iframe',
		  'scrolling': 'no'
		});

		$("a.fancybox-form-iframe").fancybox({
		  'width' : 500,
		  'height' : 310,
		  'autoScale' : false,
		  'transitionIn' : 'elastic',
		  'transitionOut' : 'elastic',
		  'type' : 'iframe',
		  'scrolling': 'no'
		});


		$(function() {
		  $("#datepicker").datepicker({ 
		    minDate: 0, 
		    maxDate: "+6M +10D",
		    numberOfMonths: 2,
		    stepMonths: 2,
		    onClose: function(dateText, inst) {
		        if (dateText != '') {
		          $('label[for="datepicker"]').hide();
		        }
		      }
		    });

		});


		$('#error-ok').click(function() {
		  $('#form-getinfo #error-container').hide();
		});
		


		$("#form-getinfo").validate({
		  invalidHandler: function(form, validator) {
		    var errors = validator.numberOfInvalids();
		    if (errors) {
		      var message = 'All fields are required.<br />You left ' + errors + ' fields empty. They have been highlighted.';
		      if ($("#form-getinfo #email").hasClass('error') && $("#form-getinfo #email").val() != '') {
		        if (errors > 1) {
		          message += '<br />Also make sure your email address is entered correctly.';
		        } else {
		          var message = 'Please make sure your email address is entered correctly.';
		        }
		      }
		      $("#form-getinfo #error-container #show-errors").html(message);
		      $("#form-getinfo #error-container").show();
		    } else {
		      $("#form-getinfo #error-container").hide();
		    }
		  },
		  errorPlacement: function(error, element) {
		    // i don't want specific messages
		  },
		  debug: false
		});

	  });

