// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function fixHeights() {     
  // sidebar_height = $("leftcol").getDimensions()["height"];
  // main_height = $("rightcol").getDimensions()["height"];
  // 
  // if(sidebar_height > main_height) {
  //   $("rightcol").setStyle("height: " + sidebar_height + "px;");
  // } else {
  //   $("leftcol").setStyle("height: " + main_height + "px;");
  // }
  
}

document.observe("dom:loaded", function() {
var i = 0;  
$$('#leftcol h2').each(function(e) {
	if(i == 0) $(e).addClassName('first_heading');
	i++;
})
});

function toggleAccessPolicy(e) {
	
	if($F(e) == 2) {
		$("public_directory").hide();
	} else {
		$("public_directory").show();
	}
	
}

function solePractitioner() {
	
	$("not_employed").checked = false
	
}

function notEmployed() {
	
	$("sole").checked = false
	
}