// JavaScript Document


jQuery(document).ready(function() {
	
$('#slidescontainer').fadeIn();
	
$('.unit div').hover(
  function () {
	  
     $(this).animate({ paddingBottom:'143px'},{queue:false,duration:400});
	 
  }, 
  function () {
   $(this).animate({ paddingBottom:'0'},{queue:false,duration:400});
  }
  ).stop();
  
  $(".myBox").click(function(){ window.location=$(this).find("a").attr("href"); return false; });
  $(".myBox1").click(function(){ window.location=$(this).find("a").attr("href"); return false; });
  
  
  
$('#slider').cycle({ 
		fx:     'scrollVert', 
		speed:  'slow', 
		timeout: 10000,
		next:   '.bottom-arrow-gallery a', 
		prev:   '.top-arrow-gallery a'
		});



  $('.thebigimage').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 10000,
	cleartype:true,
	 cleartype:  1,
	 height: 'auto',
	  pager:  '#slider li', 
	   pagerEvent: 'click',
    pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '#slider li:eq(' + idx + ') a'; 
	}


	});


  
  });

