// JavaScript Document


jQuery(document).ready(function() {
	



	$('#slidesforproducts').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
	cleartypeNoBg: true ,
    timeout: 6000,
	  pager:  '#insidepagerimages', 
	   pagerEvent: 'click',
	   pause:   1,
	   pauseOnPagerHover: true,
	   pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '#insidepagerimages a:eq(' + idx + ') img'; 
    } 
});


		$('#eventsimagesslide').cycle({ 
    fx:     'fade', 
    speed:  '3000', 
    timeout: 1000,
    next:   '.next-about a', 
    prev:   '.prev-about a',
    pager:  '#pager ul', 
    pauseOnPagerHover: true,
	pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '#pager li:eq(' + idx + ') a'; 
	}
	

	});






	$('#insidepagerimages').cycle({ 
    fx:     'scrollLeft', 
	cleartypeNoBg: true ,
    speed:  'slow', 
    timeout: 0,
	 cleartype:  1,
	 next:'#slideright a',
	 prev:'#slideleft a'



	});

	
	
	
	
		$('#slidesbiz').cycle({ 
    fx:     'fade', 
	cleartypeNoBg: true ,
    speed:  'slow', 
    timeout: 8000
	});	
	
	
$('#factoryslide').cycle({ 
    fx:     'scrollHorz', 
    speed:  'slow', 
	cleartypeNoBg: true ,
    timeout: 6000
	});		

$("#biznav li").hover(
	   function () {
$(this).find("ul").stop(true, true).slideDown();	  
						   },
		function () {
$(this).find("ul").stop(true, true).slideUp();

		});		
		
		
	
$('#slides2').fadeOut(300);
	
	$('#slides').cycle({ 
    fx:     'scrollVert', 
    speed:  'slow', 
	cleartypeNoBg: true ,
    timeout: 6000,
	next:   '.bottom a', 
    prev:   '.top a'

	});
	
	

	$("#contactform").submit(function(){
							   
	if ($("#Name").val() == "") {
        $("#hideme").slideDown()
        return false;
      }
	if ($("#Email").val() == ""  || $("#Email").val().indexOf("@") == -1) {
        $("#hideme").slideDown()
        return false;
      }
	  
	if ($("#Phone").val() == "") {
        $("#hideme").slideDown()
        return false;
      }	  
			   
				   
	});
	
	
	$('#slides2').cycle({ 
    fx:     'scrollVert', 
    speed:  'slow', 
	cleartypeNoBg: true ,
    timeout: 6000,
	next:   '.bottom a', 
    prev:   '.top a'

	});
	
	
	$('#bottomslide').cycle({ 
    fx:     'fade', 
	cleartypeNoBg: true ,
    speed:  'slow', 
    timeout: 4000

	});	
								
$('#rightgroup').click(function() {
		
  $('#slides').fadeOut(300);
  $('#slides2').delay(300).fadeIn();
  
});

$('#leftgroup').click(function() {
		
  $('#slides2').fadeOut(300);
  $('#slides').delay(300).fadeIn();
  
});


$(".smallimageadjust").hover(
						   
	   function () {
      $(this).stop().animate({"opacity": "1"}, "slow");
						   },
		function () {
      $(this).stop().animate({"opacity": "0"}, "slow");
						   }				   
						   
    );
	
	
$(".whitecontainer li a").hover(
						   
	   function () {
      $(this).parent().stop().animate({"paddingLeft": "50px"}, "800");
						   },
		function () {
      $(this).parent().stop().animate({"paddingLeft": "28px"}, "800");
						   }				   
						   
    );	
	
$("#contentcontainer li a").hover(
						   
	   function () {
      $(this).parent().stop().animate({"paddingLeft": "50px"}, "800");
						   },
		function () {
      $(this).parent().stop().animate({"paddingLeft": "28px"}, "800");
						   }				   
						   
    );		
	
$(".imagezindex").hover(
						   
	   function () {
      $(this).stop().animate({"opacity": "1"}, "slow");
						   },
		function () {
      $(this).stop().animate({"opacity": "0"}, "slow");
						   }				   
						   
    );	
	
	
	      $('.lightbox').lightbox();
	  $('#pane2').jScrollPane({showArrows:true});
	   $(".litext").textShadow();
	   $(".shadowed").textShadow();
	   $(".shadowedblack").textShadow();
	
  });


