/* Author: 

*/

$(function(){
   $("#content_brief").slides({play: 5000});


	// $('.columns').columnize({
	// 		columns: 2,
	// 		lastNeverTallest: true,
	// 		doneFunc: function(){
	// 				$('.columns .last>img').detach().prependTo('.columns .last');
	// 		}
	// });
	

	$("body#index #content nav a").click(function(){

		$("body#index #content nav ul li").removeClass("selected");
		$(this).parent().addClass("selected");		
		
		show = $(this).data('show');

		$("body#index #content article").hide();
		$("body#index #content article#"+show+"").show();
		
		if(!$("body#index #content article#"+show+" div").hasClass('columns')){

			// $("body#index #content article#"+show+" div").addClass('columns').columnize({
			// 					columns: 2,
			// 					lastNeverTallest: true,
			// 					doneFunc: function(){
			// 							$('.columns .last>img').detach().prependTo('.columns .last');
			// 					}
			// 			});
		}
		
		
		return false;
	});
	
 });






















