$(function(){ 
	//IE6 PNG fix
	if($.browser.msie && $.browser.version.substr(0,1) == 6){
		DD_belatedPNG.fix('.mark-featured, .pointer, #prev, #next, #screen, .close, .social-links a');
	}

	//Blink Fields
  $('.blink').
  focus(function() {
      if(this.title==this.value) {
          this.value = '';
      }
  }).
  blur(function(){
      if(this.value=='') {
          this.value = this.title;
      }
  });
    
  //Animate Home Controls 
  $('.leftButton').hover(function(){
  	$(this).animate({
  		left: '0'
  	},{
  		queue:false,
  		duration:200
  	});
  },
  function(){  
  	$(this).animate({
  		left: '-15px'
  	},{
  		queue:false,
  		duration:200
  	});
  });
  
   $('.rightButton').hover(function(){
  	$(this).animate({
  		right: '0'
  	},{
  		queue:false,
  		duration:200
  	});
  },
  function(){  
  	$(this).animate({
  		right: '-14px'
  	},{
  		queue:false,
  		duration:200
  	});
  });

	//Home Carousel
	$("#featureCarousel").featureCarousel({
  	largeFeatureWidth: 507,
  	largeFeatureHeight: 451,
  	smallFeatureWidth: 348,
  	smallFeatureHeight: 310,
  	carouselSpeed: 1000,
  	counterStyle: 3,
  	sidePadding: 66,
  	smallFeatureOffset: 62,
  	animationEasing: 'easeInOutSine',
  	autoPlay: 8000,
  	pauseOnHover: true,
  	preload: true
  });

  //Home intro title
	$("#prev-intro").delay(1000).slideDown("slow", function(){
    setTimeout( function(){ $("#prev-intro").hide(); }, 5500 );
  });
});
