var $j = jQuery.noConflict();

$j(function(){

	$j('.footernav li').not('.footernav li:last').append('&nbsp;&nbsp;&#92;&nbsp;&nbsp;');
	$j('.testimonial, .teaser').prepend('<div class="topleft"/>').prepend('<div class="bottomleft"/>').prepend('<div class="topright"/>').prepend('<div class="bottomright"/>');

	setEqualHeight($j('.teaser'));
	
	var hash = window.location.hash;
	if(hash){
		$j('#nav li').removeClass('current_page_item').each(function(){
			if ($j(this).children('a[href*='+hash+']').text()){
				$j(this).addClass('current_page_item');
			}
		});	
	};
	if ($j('#nav li').children('a[href*=#]').text()){
		$j('#nav li').click(function(){
		$j('#nav li').removeClass('current_page_item')
		$j(this).addClass('current_page_item');
		});			
	}
});

function setEqualHeight(columns)  {  
 var tallestcolumn = 0;  
 columns.each(function(){  
	currentHeight = $j(this).height();
 	if(currentHeight > tallestcolumn) {  
 		tallestcolumn  = currentHeight;  
	 	}  
	});  
	columns.height(tallestcolumn);  
} 
