// JavaScript Document


jQuery(document).ready(function() {
	
	$('#slides').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 3000,
	random: 1

	});

$('#pagerthump').cycle({ 
    fx:     'scrollHorz', 
    speed:  'slow', 
    timeout: 0,
	next:   '#rightarrow a', 
    prev:   '#leftarrow a',
	 cleartype:  1
	});
	
	
	$('#mainimage').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 8000,
	 cleartype:  1,
	  pager:  '#pagerthump li', 
	   pagerEvent: 'mouseover',
    pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '#pagerthump li:eq(' + idx + ') a'; 
	}


	});
	
	
	$('#pagerthump a').click( function () { return false;})

	
	$('#scrolnews').cycle({ 
    fx:     'scrollHorz', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#next', 
    prev:   '#prev'


	});
	
	
		
$('#nav li').hover(
  function () {
	  
     $(this).find("ul").animate({height:'510px', paddingTop:'10px'},{queue:false,duration:400});
	 
  }, 
  function () {
    $(this).find("ul").animate({height:'0px', paddingTop:'0px'},{queue:false,duration:500});
  }
  ).stop();
								
								
	
$('.column li a').hover(
  function () {
	  
     $(this).animate({paddingLeft:'10px'},{queue:false,duration:200});
	 
  }, 
  function () {
    $(this).animate({paddingLeft:'0px'},{queue:false,duration:300});
  }
  );





$("#contactform").submit(function(){
							   
	if ($("#Name").val() == "" || $("#Name").val() == "Name") {
        $("#hideme").slideDown()
        return false;
      }
	if ($("#Email").val() == ""  || $("#Email").val() == "Email") {
        $("#hideme").slideDown()
        return false;
      }
	  
	if ($("#Phone").val() == ""  || $("#Phone").val() == "Phone") {
        $("#hideme").slideDown()
        return false;
      }	  
			   
							   
	});


	
  });


