 $(document).ready(function(){
  $('div.demo-show2> div').hide();  
  $('div.demo-show2> h2').click(function() {
    var $nextDiv = $(this).next();
    var $visibleSiblings = $nextDiv.siblings('div:visible');
 
    if ($visibleSiblings.length ) {
      $visibleSiblings.slideUp('fast', function() {
        $nextDiv.slideToggle('fast');
      });
    } else {
       $nextDiv.slideToggle('fast');
    }
  });
  
  $('div.demo-show1> div').hide();  
  $('div.demo-show1> h2').click(function() {
    var $nextDiv = $(this).next();
    var $visibleSiblings = $nextDiv.siblings('div:visible');
 
    if ($visibleSiblings.length ) {
      $visibleSiblings.slideUp('fast', function() {
        $nextDiv.slideToggle('fast');
      });
    } else {
       $nextDiv.slideToggle('fast');
    }
  });
  
  $('div.demo-show> div').hide();  
  $('div.demo-show> h2').click(function() {
    var $nextDiv = $(this).next();
    var $visibleSiblings = $nextDiv.siblings('div:visible');
 
    if ($visibleSiblings.length ) {
      $visibleSiblings.slideUp('fast', function() {
        $nextDiv.slideToggle('fast');
      });
    } else {
       $nextDiv.slideToggle('fast');
    }
  });
	
	$('#slides').cycle({ 
    fx:     'fade',
	cleartype: 1,
    speed: 4000,
    timeout: 5000
	});
	
	
	$('#slidethis').cycle({ 
    fx:     'fade',
    timeout: 3000
	});
	
	
	$('#sideslider').cycle({ 
    fx:     'scrollUp', 
    speed:  'slow', 
    timeout: 9000,
	next:   '#gallerynext', 
    prev:   '#galleryprevious'

	});
		    $("#contactform").submit(function(){
							   
	if ($("#Name").val() == "") {
        $("#hideme").slideDown()
        return false;
      }
	if ($("#Job").val() == ""  || $("#Email").val().indexOf("@") == -1) {
        $("#hideme").slideDown()
        return false;
      }
	  
	if ($("#Email").val() == "") {
        $("#hideme").slideDown()
        return false;
      }	  
			   
				   
});

  });


 

