function addPercent20(strText){
	strText = strText.replace(" ", "%20");
	return strText;}

function DetermineSize(sizeid, pixid){

	var sheight=0;
	var makeheight=320;

	sheight = GetHeight();
		   
	if (sheight < 700){
		document.all(pixid).border="0";
		makeheight = 1;}
	else {
		document.all(pixid).border="2";
		if (sheight < 900){
			makeheight = 340;}
		else {
			makeheight = 500;}}

	makeheight = 355; // temp try hardcoded
	
	//document.all[sizeid].height = makeheight;
	d = document.getElementById(sizeid);
	d.height = makeheight;
	return;}
	
function CheckResolution(){

	var sheight = GetHeight();
	return; // do not do the alerts anymore 11/2/10
	if (sheight < 600){
        	// Note line breaks do not work for Firefox
		alert("Apologies: Monitor resolution of at " + String.fromCharCode(13) + "least 800X600 required to view site.");}
	else if (sheight < 700) {
		alert("Site best viewed at a resolution of at least 1024 x 768.");}

	return;}

function GetHeight(){

	var sheight2=0;
	if (self.screen) {     // for NN4 and IE4
	        sheight2 = screen.height;}
	else if (self.java) {   // for NN3 with enabled Java
	       var jkit = java.awt.Toolkit.getDefaultToolkit();
	       var scrsize = jkit.getScreenSize();       
	       sheight2 = scrsize.height; }

	return sheight2;}
		
function GetWidth(){

	var swidth2=0;
	if (self.screen) {     // for NN4 and IE4
	        swidth2 = screen.width}
	else if (self.java) {   // for NN3 with enabled Java
	       var jkit = java.awt.Toolkit.getDefaultToolkit();
	       var scrsize = jkit.getScreenSize();       
	       swidth2 = scrsize.width; }

	return swidth2;}
		

function GoHome(){
if (top.location.href == location.href)
    {top.location.href = "../../index.php";}}

function AddHome(){
if (top.location.href==location.href){
   document.write("<center><FONT size='0' face='Verdana, Arial, Helvetica, sans-serif'><br>");
   document.write("<a href='../../index.php' target='_parent'>Home</a><br><br></FONT></center>");}}


function CheckResolutionx() {
    if (document.all) 
        alert('Document height = ' +  document.body.offsetHeight);
    else if (document.layers)
        alert('Document height = ' +  document.body.document.height);
}

// Get the height of the entire document
// --------------------------------------------------------------------
//screen.getDocumentHeight = docHeight();

function docHeight() {
	var body = screen.getBody();
	var innerHeight = (defined(self.innerHeight)&&!isNaN(self.innerHeight))?self.innerHeight:0;
	if (!document.compatMode || document.compatMode=="CSS1Compat") {
		var topMargin = parseInt(CSS.get(body,'marginTop'),10) || 0;
		var bottomMargin = parseInt(CSS.get(body,'marginBottom'), 10) || 0;
		return Math.max(body.offsetHeight + topMargin + bottomMargin,
			document.documentElement.clientHeight,
			document.documentElement.scrollHeight, screen.zero(self.innerHeight));}

	return Math.max(body.scrollHeight, body.clientHeight, screen.zero(self.innerHeight));}






