$( document ).ready( function(){
	$('.blink')
		.focus(function(){
			if ( $(this).attr('value') == $(this).attr('title') ) {
				$(this).attr({ 'value': '' })
			}
		})
		.blur(function(){
			if ( $(this).attr('value') == '' ) {
				$(this).attr({ 'value': $(this).attr('title') })
			}
		})
		
  // Homepage Slider Code
		
	$(function(){
		function slide_to(idx) {
				var step = 580;
				var new_left = idx * -1 * step;
				$('.slider-img').animate({left: new_left + 'px'}, 1500);
				$('.slider-links a').removeClass('active').eq(idx).addClass('active');
		}
    
		var count=0;
		
		$('.slider-img a').each(function(){
			count++;
			if(count==1)
  		  $('.slider-links').append('<a href="#" class="active">Portfolio Item '+count+'</a>');
			else
  		  $('.slider-links').append('<a href="#">Portfolio Item '+count+'</a>');
		});
		
		
		$('.slider-links a').click(function () {
				slide_to($('.slider-links a').index(this));
				return false;
		});
	});

		
});