$(function(){

	$('div#content ul#slider').cycle();
	$('div#content ul li ul.slider').cycle();
	$('div#content div#homePage ul.slider').cycle();

	//Caption Sliding (Partially Hidden to Visible)
	$('.boxgrid.caption').hover(function(){
		$(this).addClass('greenBorder');
		$('.cover h3', this).addClass('greenText');
		$(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160});
		
	}, function() {
		$(this).removeClass('greenBorder');
		$('.cover h3', this).removeClass('greenText');
		$(".cover", this).stop().animate({top:'120px'},{queue:false,duration:160});
	});
	
	 /*----- Fix Search Field */
	$(':input[title]').each(function() {
	  var $this = $(this);
	  if($this.val() === '') {
	    $this.val($this.attr('title'));
	  }
	  $this.focus(function() {
	    if($this.val() === $this.attr('title')) {
	      $this.val('');
	    }
	  });
	  $this.blur(function() {
	    if($this.val() === '') {
	      $this.val($this.attr('title'));
	    }
	  });
	});

	
});
