// JavaScript Document
function correctbulletsmac(strMTop) {
if (navigator.platform.indexOf("Mac")>-1)
{
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className=='bullet')
alltags[i].style.marginTop=strMTop;
}
}
}

function getIframeLayerHeight(iframe,id) {
	if ((iframe.contentDocument || iframe.contentWindow.document).layers)
     return (iframe.contentDocument || iframe.contentWindow.document).layers[id].clip.height;

   else if ((iframe.contentDocument || iframe.contentWindow.document).getElementById)
     return (iframe.contentDocument || iframe.contentWindow.document).getElementById(id).offsetHeight;

   else if ((iframe.contentDocument || iframe.contentWindow.document).all)
     return (iframe.contentDocument || iframe.contentWindow.document).all[id].offsetHeight;  // or clientHeight for IE4

   else
     return -1;
}

function getLayerHeight(id) {
   if (document.layers)
     return document.layers[id].clip.height;

   else if (document.getElementById)
     return document.getElementById(id).offsetHeight;

   else if (document.all)
     return document.all[id].offsetHeight;  // or clientHeight for IE4

   else
     return -1;
} 

function myMax(anumber, another)
{
  if (anumber > another)
  {
    return anumber;
  }
  return another;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function setLeftRightCols() {
	//creates liquid left and right columns to the 
	d=document;xMax=0;yMax=0;
	if(d.getElementById){
	 if(d.documentElement&&d.documentElement.clientHeight){
	  xMax=d.documentElement.clientWidth;
	  yMax=d.documentElement.clientHeight;
	 }else{
	  xMax=(d.all)?d.body.clientWidth:window.innerWidth;
	  yMax=(d.all)?d.body.clientHeight:window.innerHeight;
	 }
	}else if(d.layers){
	 xMax=window.innerWidth;
	 yMax=window.innerHeight;
	}
	var maincolumnwidth = 800;
	var leftcolumn = document.getElementById('leftcolumn');
	var leftcolumnwidth = (xMax-maincolumnwidth)/2;
	leftcolumn.style.width=leftcolumnwidth+'px';
	leftcolumn.style.left=(leftcolumnwidth*-1)+'px';
	leftcolumn.style.visibility='visible';
	var rightcolumn = document.getElementById('rightcolumn');
	rightcolumn.style.width=leftcolumnwidth+'px';
	rightcolumn.style.left=maincolumnwidth+'px';
	if (maincolumnwidth<(xMax)) {
	leftcolumn.style.visibility='visible';
	rightcolumn.style.visibility='visible';}
	else {
	leftcolumn.style.visibility='hidden';
	rightcolumn.style.visibility='hidden';}
}

