$(document).ready(function() {
	$("div.panel").hide(); 
	
	$("a.openpanel").click(function(){
		$("div.panel").slideUp();
 			this.blur();					
							
	var divid = this.getAttribute('rel');
	var div_visibility = document.getElementById(divid).style.display;
	if (div_visibility =='none') {
	
$("div#"+divid).slideToggle("fast");
//document.getElementById(divid).className='highlight';

	} else {
	$("div#"+divid).slideUp();	
		//document.getElementById(divid).className='';
	}


;
									
	
		
	
	});	
	
	
		$("div.panel2").hide(); 
	
	$("a.openpanel2").click(function(){
		$("div.panel2").slideUp();
 			this.blur();					
								
	var divid = this.getAttribute('rel');
	var div_visibility = document.getElementById(divid).style.display;
	if (div_visibility =='none') {
	
$("div#"+divid).slideToggle("fast");


	} else {
	$("div#"+divid).slideUp();	

	}


;
									
	
		
	
	});	
	
	
	
		$("div.panel3").hide(); 
	
	$("a.openpanel3").click(function(){
		$("div.panel3").slideUp();
 			this.blur();					
								
	var divid = this.getAttribute('rel');
	var div_visibility = document.getElementById(divid).style.display;
	if (div_visibility =='none') {
	
$("div#"+divid).slideToggle("fast");


	} else {
	$("div#"+divid).slideUp();	

	}


;
									
	
		
	
	});	
	
	
	
	 $(".school_tabs h2 a").click(function() {
			
$(".school_tab").hide();	
$(".tab-selected").each(function() {
$(this).removeClass("tab-selected");
$(this).addClass("tab-active"); 
$(this).blur(); 
});

$(this).removeClass("tab-active"); 
$(this).addClass("tab-selected"); 

var $divid = $(this).attr("rel"); 
			
$("#"+$divid).show();			
$("#"+$divid).addClass("selected"); 		
return false;
		});
} )
;
