if($('#featured_posts')){

	$$('#featured_posts li span').each(function(a,b){ 
		var top = 114 - a.getHeight();;
		a.tween('margin-top', top);
	});

}

var search_value = 'Search...';
$('s').value = search_value;

$('s').addEvents({
    'focus': function(){
        if(this.value == search_value){
        	this.value = '';
        }
    },
    'blur': function(){
       if(this.value == ''){
       	this.value = search_value;
       }
    }
});

if($('featured_posts')){

	$('toggle_reviews').addEvent('click', function(e){
		
		e.stop();
		
		if(this.hasClass('hide')){
	
			$$('#featured_posts li span').each(function(a,b){ 
				a.tween('display', 'none');
			});
			
			//hide the reviews
			this.removeClass('hide');
			this.addClass('show');
			this.set('text','Show featured reviews?');
			$('featured_posts').tween('display','none');
			
	
		}else{
		
			//show the reviews
			$$('#featured_posts li span').each(function(a,b){ 
				a.tween('display', 'block');
			});
			
			//hide the reviews
			this.removeClass('show');
			this.addClass('hide');
			this.set('text','Hide featured reviews?');
			$('featured_posts').tween('display','block');
		
		}
		
	});

}
