var page = (function(){
	
	return {
		
		setBlockQuote : function(){
			$('.quotes').each(function(i,el){
					$(el).children().wrapAll('<div class="quoted"></div>');
					$(el).prepend('<div class="quoted-left">&nbsp;</div>');
			});			
		},
		
		setSearchFocus : function(){
			var el = $('#criteria');
			var text = el.val();
			
			el.focus(function(){
				$(this).val('');
			})

			el.blur(function(){
				if(el.val().length == 0){
					el.val(text);
				}
			})
		},
		
		setBreadcrumbRoot : function(){			
			$('.breadcrumbs ul li:first a').addClass('root');
		},
		
		setLastItemClass : function(){
			$('.list-items li:last-child').addClass('item-last');
		}
	}
})();

$(document).ready(function(){
	page.setBlockQuote();
	page.setSearchFocus();
	page.setBreadcrumbRoot();
	page.setLastItemClass();
});
