	function bombOut() {
		//alert("Warning: Your browser may not be able to handle this site! Please upgrade your browser to the latest version of Internet Explorer, Firefox, Mozilla or Netscape.\n\nSorry for any inconvenience.\n\n        - The OrderlyQ Team.");
	}

 var isIE=false;
 var appVer=navigator.appVersion.toLowerCase();
 if(appVer.indexOf("msie")!=-1) {
     isIE=true;
 }

function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
   {
   for(var i=0; i<document.images.length; i++)
      {
	  var img = document.images[i]
	  var imgName = img.src.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	     {
		 var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 var imgStyle = "display:inline-block;" + img.style.cssText 
		 if (img.align == "left") imgStyle = "float:left;" + imgStyle
		 if (img.align == "right") imgStyle = "float:right;" + imgStyle
		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	     + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
		 img.outerHTML = strNewHTML
		 i = i-1
	     }
      }
   }

   if(isIE)
   	window.attachEvent("onload", correctPNG);

   function writeNavBottom() {
	document.write('</td></tr></table>');
   }
   function writeNavTop(winId, page) {
	document.write('<form action="dummy.html" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-bottom:0px;" name="hidden"><input type="hidden" name="winId" value="'+winId+'"><input type="hidden" name="counter" value="50"></form>');
	document.write('<table width="100%" height="100%" border=0 cellpadding=0 cellspacing=0 style="padding-top:0px;padding-bottom:0px;margin-top:0px;margin-bottom:0px">');
	document.write('<tr><td colspan=1 width="100%" height=60>');
	document.write('<iframe width="100%" height=60 src="/top.html?winId='+winId+'" scrolling=no border=0 frameborder=0></iframe>');
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write(' <td valign="top" width="100%" height="100%">');

}

function anchor(text) {
	if(!isOuter)
		document.write('<a name="'+text+'">');
}

function writeOuterStyle() {
document.write('<style type="text/css">');
document.write('<!--');
document.write('html,body {');
if(isIE)
	document.write('overflow:hidden;');
document.write('margin-top:0px;padding-top:0px;margin-left:0px;padding-left:0px;margin-bottom:0px;padding-bottom:0px;margin-right:0px;padding-right:0px');
document.write('}');
document.write('-->');
document.write('</style>');
}
