Cufon.replace('#main_nav li', { fontFamily: 'Whitney-Semibold'})
	/*('.arrow_callout h2', { fontFamily: 'Lubalin'})*/
	('#second_title_bar h1', { fontFamily: 'Lubalin Bold'})
	('.context_item_content h2', { fontFamily: 'Lubalin'})
	('.redarrow', { fontFamily: 'Lubalin Bold'})

	('.lubalin', { fontFamily: 'Lubalin'})
	('.lubalin_bold', { fontFamily: 'Lubalin Bold'})

	('footer h2', { fontFamily: 'Lubalin Bold'})
	('.arrow_pagination', { fontFamily: 'Lubalin'}
);


function heightFix() {
	var asideHeight = $("aside").height();
	var newHeight = asideHeight - 215;
	var mainColHeight = $('#current_exhibits .primary').outerHeight(true) + 155;
	var preFooterHeight = 382;
	var newPreFooterHeight = preFooterHeight;
	if(newHeight < mainColHeight ) {
	  newHeight = mainColHeight;
  } else {
    newPreFooterHeight = preFooterHeight + (newHeight - mainColHeight);
  }
  $('#pre_footer').height(newPreFooterHeight);
  
	$("#arrow_callouts").height(newHeight);
}



$(function(){
	$('#image_gallery').image_slider();
	$("#rotator_right").click(function(){ clearInterval(theInt); $('#image_gallery').trigger("nextImage"); return false; });
	$("#rotator_left").click(function(){ clearInterval(theInt); $('#image_gallery').trigger("prevImage"); return false; });
  rotateContent();
	heightFix();
	
	//clear search box when you click on it
	$("#search_primary").click(function(){
		$(this).val('');
	});
	
	
});	

