<!--

/*winIE = ((navigator.appName.indexOf("Microsoft") != -1) && 
  (navigator.appVersion.indexOf("Windows") != -1)) && 
  (parseFloat(navigator.appVersion) >= 4) ? true : false;


minPlayer = 7;

function Flash_checkForPlugIn() {
if (winIE){
  if (!Flash_checkForActiveX()){location.href="index_alt.shtml";
     }
}

else {
  var plugin = (navigator.mimeTypes &&
  navigator.mimeTypes["application/x-shockwave-flash"]) ?
  navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
  if (plugin) {
    var pluginversion = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) 
    if(pluginversion >= minPlayer) {return true;}
    else {
             location.href="index_alt.shtml";
    }
  }
  return false;
}

}


if(winIE) {
  document.write(
    '<script language=VBScript>' + '\n' +
    'Function Flash_checkForActiveX()' + '\n' +
    'Dim hasPlayer, playerversion' + '\n' +
    'hasPlayer = false' + '\n' +
    'playerversion = 10' + '\n' +
    'Do While playerversion >= minPlayer' + '\n' +
    'On Error Resume Next' + '\n' +
    'hasPlayer = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" & playerversion & \"\")))' + '\n' +
    'If hasPlayer = true Then Exit Do' + '\n' +
    'playerversion = playerversion - 1' + '\n' +
    'Loop' + '\n' +
    'Flash_checkForActiveX = hasPlayer' + '\n' +
    'End Function' + '\n' +
    '<\/script>'
  );
}

Flash_checkForPlugIn();*/


function resizecols() {
	
		col1 = document.getElementById('hpcol1');
		col2 = document.getElementById('hpcol2');
		col3 = document.getElementById('hpcol3');

		htdiff1 = 23; // col1 top - col2 top
		htdiff2 = 0; // col1 padding-bottom
		sizearr = new Array();
		sizearr.push(col1.offsetHeight + htdiff1);
		sizearr.push(col2.offsetHeight);
		if (col3) {
			sizearr.push(col3.offsetHeight);
		}

		sizearr.sort(function(a,b){return b - a})
		col1.style.height = ((sizearr[0] - htdiff1) - htdiff2) + 'px';
		//col2.style.height = sizearr[0] + 'px';
		if (col3) {
			//col3.style.height = sizearr[0] + 'px';
		}
}



	
	window.onload=function() {
		if (document.getElementById) {
			resizecols();
		}
	}







function newseventsview(id1,id2,id3) {
	thisicon = document.getElementById(id1);
	viewthis1 = document.getElementById(id2);
	if (id3) {
		viewthis2 = document.getElementById(id3);
	}

	if (viewthis1.style.display == "none") {
		viewthis1.style.display = "block";
		if (id3) {
			viewthis2.style.display = "none";
		}
		thisicon.src = "/conservatory/images/icon_more.gif";
	}
	else {
		viewthis1.style.display = "none";
		if (id3) {
			viewthis2.style.display = "block";
		}
		thisicon.src = "/conservatory/images/icon_less.gif";
	}
}

//-->
