<!-- // Detect Client Browser type
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
var isMac = (navigator.userAgent.indexOf("Mac") != -1) ? true : false;

var requiredFlashVersion = 7;
var thisYear = "2009";

function isMacPlatform() {
   return isMac;
}

function paintCopyWrite() {
	paintLn("<div class='copyWrite' id='theCopyWrite'>");
   paintLn("   <font class='pageCopyWriteFont' id='thePageCopyWriteFont'>web design by <a href='http://www.symbology.ca' class='symbology' target='_blank' alt='symbology home'>symbology.ca</a></font>");
	paintLn("</div>");
}

function paintNavMenuEntry(entryURL, currentURL, entryTarget, onMouseOverAction, entryText, paintSeparator) {
   var anchorClass = "";
   var linkID = "the" + entryText + "Link";
   
   if (entryText.toUpperCase() == currentURL.toUpperCase()) {
      anchorClass = "class='root' ";
   }
   
	paintLn("<a href='" + entryURL + "' id='" + linkID + "' " + anchorClass + "target='" + entryTarget + "' onMouseOut='window.status=\"\"; return true;' onMouseOver='" + onMouseOverAction + "'>" + entryText + "</a>");
	if (paintSeparator) paint("&nbsp;<font class='bullet'>&bull;</font>&nbsp;&nbsp;");
}

function paintImageViewBox(imageViewBoxClass, identifier) {
   if (isBrowserRetarded()) imageViewBoxClass = imageViewBoxClass + "IE";
   paintLn("<div class='" + imageViewBoxClass + "' id='" + identifier + "'></div>");
}

function paint(paintData) {
   document.write(paintData);
}

function paintLn(paintData) {
   document.writeln(paintData);
}

function paintBrk(numBreaks) {
   for (var x = 0; x < numBreaks; x++) {
      paintLn("<br>");
   }
}

function paintSpace(numSpaces) {
   for (var x = 0; x < numSpaces; x++) {
      paint("&nbsp;");
   }
}

function setFocus(elementID) {
   if (window.focus) {
      document.getElementById(elementID).focus();
   }
}

function isBrowserRetarded() {
   if (window.attachEvent  && /MSIE (5\.5|6|7|8)/.test(navigator.userAgent)) {
      return true;
   } else {
      return false;
   }
}

function getStyleMod() {
   alert("");
   if (isBrowserRetarded()) {
      return "position:absolute;";
   } else {
      return "position:fixed;";
   }
}

function paintPageTitle(pageTitleImage, pageTitleImageClass, imageWidth, imageHeight) {
   var styleMod = "position:fixed;";
   
   if (isBrowserRetarded()) {
      styleMod = "position:absolute;";
   } 

   paintLn("<img class='" + pageTitleImageClass + "' style='" + styleMod + "' src='" + pageTitleImage + "' width='" + imageWidth + "' height='" + imageHeight + "' border='0' />");
}

function paintPageTitleDiv(pageTitleImage, pageTitleImageClass, imageWidth, imageHeight) {
   var styleMod = "position:fixed;";
   
   if (isBrowserRetarded()) {
      styleMod = "position:absolute;";
   } 

   paintLn("<div class='" + pageTitleImageClass + "' style='" + styleMod + "'>");
   paintLn("   <img src='" + pageTitleImage + "' width='" + imageWidth + "' height='" + imageHeight + "' border='0' />");
   paintLn("</div>");
}

function openPage(pageURL, pageParms) {
	if (pageURL != null) {
		var openPageURL = pageURL;
		
		if (pageParms != null) {
			openPageURL = openPageURL + pageParms;
		}
		
		newWindow = window.open(openPageURL);
		newWindow.focus();
	}
}

function openPage(pageURL) {
	if (pageURL != null) {
		document.URL = pageURL;
	}
}

function openFrame(mainURL, altURL) {

		var bottomFrameSrc = "";
		document.writeln('<frameset rows="220,*"  frameborder="no" border="0" framespacing="0">');
		document.writeln('<frame src="header.html" NAME="topframe" scrolling="NO" noresize>');
				
		if (altURL !=null && altURL.length > 0) {
			bottomFrameSrc = '<frame src="';
			bottomFrameSrc += mainURL;
			bottomFrameSrc += '?main=';
			bottomFrameSrc += altURL;
			bottomFrameSrc += '" name="bottomFrame">';
		} else {
			bottomFrameSrc = '<frame src="';
			bottomFrameSrc += mainURL;
			bottomFrameSrc += '" name="bottomFrame">';
		}
		
		document.writeln(bottomFrameSrc);
		document.writeln('<\/frameset>');
		document.writeln('<noframes>');
		document.writeln('<body>');
		document.writeln('window.location.href="' + altURL + '"');
		document.writeln('</body>');
		document.writeln('</noframes>');
}

function openFrameWithParms(mainURL, altURL, locationSearchString) {

		document.writeln('<frameset rows="220,*"  frameborder="no" border="0" framespacing="0">');
		document.writeln('<frame src="header.html" NAME="topframe" scrolling="NO" noresize>');
		document.writeln('<frame src="' + mainURL + (locationSearchString ? unescape(locationSearchString.substring(1)):'error.html') + '" name="bottomFrame">');
		document.writeln('<\/frameset>');
		
		document.writeln('<noframes>');
		document.writeln('<body>');
		document.writeln('window.location.href="' + altURL + (locationSearchString ? unescape(locationSearchString.substring(1)):'error.html') + '"');
		document.writeln('</body>');
		document.writeln('</noframes>');
}