// AE functions
function overMenu(menuItem,menuLink,color){
		menuItem.style.backgroundColor = color
		menuLink.style.color= "#ffffff"
		mainNav.style.borderBottomColor = color
	}
function outMenu(menuItem,menuLink,color,active){
		if (active!=1) {
			menuLink.style.color="Black"
			menuItem.style.backgroundColor = "#cccccc"	
		}	
		mainNav.style.borderBottomColor = color
	}
function overNav(menuItem,menuLink){
		menuItem.style.backgroundColor = "White"
		menuLink.style.color= "Black"
	}
function outNav(menuItem,menuLink,color,active){
		if (active!=1) {
			menuLink.style.color="White"
			menuItem.style.backgroundColor = color	
		}	
	}

function projectgo () {
	var f=document.form1;
					  
  if (f.Itemid.value==0) {
    alert("Please choose a project to view");
    f.Itemid.select();
    f.Itemid.focus();
    //return false; 
   }
    else {
	f.submit();
   }
}
function topicgo () {
var f=document.form2;
					  
  if (f.topicid.value==0) {
    alert("Please choose a topic to browse");
    f.Itemid.select();
    f.Itemid.focus();
    //return false; 
   } 
   else {
	f.submit();
   } 

}
function searchgo () {
var f=document.fsearch;
					  
  if (f.searchword.value.length==0) {
    alert("Please enter a search word");
    f.Itemid.select();
    f.Itemid.focus();
    //return false; 
   } 
   else {
	f.submit();
   } 

}


function adjustLayout() {
  // Get natural heights
  var cHeight = xHeight("content");
  var rHeight = xHeight("sidebar");
  var mHeight = xHeight("mainblock");
	
	// Find the maximum height
  var maxHeight = Math.max(mHeight, Math.max(cHeight, rHeight));
	
  // Assign maximum height content DIV which carries vertical rule
  xHeight("content", maxHeight);
  xHeight("rightcolumn", maxHeight);
  // Show the footer
  //xShow("footer");
}

window.onload =	function () {
adjustLayout();
}

// end
