(function($) { // Making $ accessible even in noConflict
  $(document).ready(function(){
    // Adding placeholders for form fields
    if($.fn.placeholder)
    {
      $(".placeholder").placeholder();
    }
    
    // if($.fn.jcarousel)
    // {
    //   $('#header-experts > ul').jcarousel();
    // }
    
    if($.fn.slideshow)
    {
      $('#header-experts .images').slideshow({
        timeout: 4000,
        fadetime: 1000,
        type: 'sequence'
      });
    }
    
    // Setting up action url for contact form
    var contactForm = $("#contact-form").attr('action', '/contact-form-mailer.php');

    // Adding basic validation to contact form
    if($.fn.checkRequired)
    {
      contactForm.checkRequired();
    }
		
		$("#area").change(function () {
			window.location = this.value;
		});
  });
})(jQuery);
