function headBlock()
{
document.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\n");
//document.write("<meta name=\"description\" content=\"George Keshek\">\n");
//document.write("<meta name=\"keywords\" content=\"printing\">\n");
document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">\n");
document.write("<script type=\"text/javascript\" src=\"scripts/tooltip.js\"></script>\n");
document.write("<script type=\"text/javascript\" src=\"scripts/random.js\"></script>\n");
}

function footer()
{
document.write("<br><br><br><div id=\"footer\" style=\"background: transparent; clear: both;\">\n");
document.write("<a style=\"text-decoration: none; color: darkgray;\" target=\"_blank\" href=\"http://empower800.com\" onmouseover=\"doTooltip(event, 'empower800')\" onmouseout=\"hideTip();\" >\n");
document.write("Website Maintained by Empower Internet Services\n");
document.write("</a>\n");
document.write("</div>\n"); 
document.write("<div id='empower800' style=\"z-index: 100; position: absolute; display: none; font-size: 10px; color: white; background-color: red; xheight: 100px; width: 100px; padding: 10px;\">\n");
document.write("<img src=\"images/empower.jpg\">\n");
document.write("Empower Internet Services is dedicated to enabling everyone to use the internet\n");
document.write("</div>\n") ;
analytics("UA-4243903-3");
}

function analytics(key)
{
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write("\n<script src=\""+gaJsHost+"google-analytics.com/ga.js\" type=\"text/javascript\"></script>\n");
document.write("<script type=\"text/javascript\">\n" ) ;
document.write("if( typeof(_gat)=='object' ) {\n" ) ;
document.write("var pageTracker = _gat._getTracker(\""+key+"\");\n" ) ;
document.write("pageTracker._initData();\n" ) ;
document.write("pageTracker._trackPageview();\n" ) ;
document.write("}\n" ) ;
document.write("</script>\n" ) ;
}

//-- do not display this div
function noDisplayDiv(szDivId)
{
   if (document.getElementById) { // DOM3 = IE5, NS6
      document.getElementById(szDivId).style.display = 'none';
   }
   else {
     if (document.layers) { // Netscape 4
        document.szDivId.display = 'none';
     }
     else { // IE 4
        document.all.szDivId.style.display = 'none';
     }
   }
} 

//-- do display this div
function yesDisplayDiv(szDivId)
{
   if (document.getElementById) { // DOM3 = IE5, NS6
      document.getElementById(szDivId).style.display = '';
   }
   else {
     if (document.layers) { // Netscape 4
        document.szDivId.display = '';
     }
     else { // IE 4
        document.all.szDivId.style.display = '';
     }
   }
} 

//-- mail
function mail( who, subject )
{
  if( who.indexOf('@')!= -1 )
    parent.location.href='mailto:'+who+'?subject='+subject;
  else
    parent.location.href='mailto:'+who+'@gkmarketinggroup.com?subject='+subject;
}

//-- reset div heights
function SetSameHeightObject( columnIds )
{
  //-- Input IDs (id attr) of columns to equalize. 
  //-- Script will check if each corresponding column actually exists:
  this.columnswatch=columnIds ;
  var timer ;
  alert(this.columnswatch) ;
}

SetSameHeightObject.prototype.setHeights = SetSameSizeObject_setHeights ;
function SetSameSizeObject_setHeights(reset)
{
  var tallest=0
  var resetit=(typeof reset=="string")? true : false
  for (var i=0; i<this.columnswatch.length; i++)
  {
    if (document.getElementById(this.columnswatch[i])!=null)
    {
      if (resetit)
         document.getElementById(this.columnswatch[i]).style.height="auto" ;
      if (document.getElementById(this.columnswatch[i]).offsetHeight>tallest)
        tallest=document.getElementById(this.columnswatch[i]).offsetHeight ;
    }
  }
  if (tallest>0)
  {
    for (var i=0; i<this.columnswatch.length; i++)
    {
      if (document.getElementById(this.columnswatch[i])!=null)
        document.getElementById(this.columnswatch[i]).style.height=tallest+"px" ;
    }
  }
}

SetSameHeightObject.prototype.resetHeights = SetSameSizeObject_resetHeights ;
function SetSameSizeObject_resetHeights()
{    
  this.setHeights("reset") ;
}

SetSameHeightObject.prototype.doTask = SetSameSizeObject_doTask ;
function SetSameSizeObject_doTask(target, functionref, tasktype)
{ 
  //-- assign a function to execute to an event handler (ie: onunload)
  var tasktype=(window.addEventListener)? tasktype : "on"+tasktype
  if (target.addEventListener)
   target.addEventListener(tasktype, functionref, false) ;
  else if (target.attachEvent)
   target.attachEvent(tasktype, functionref) ;
}

SetSameHeightObject.prototype.do = SetSameSizeObject_do ;
function SetSameSizeObject_do()
{
  this.doTask(window, function(){ this.setHeights() }, "load") ;
  this.doTask(window, function(){if (typeof this.timer!="undefined") clearTimeout(this.timer); this.timer=setTimeout("this.resetHeights()", 200);}, "resize") ;
}

//var setsame = new SetSameHeightObject(["content","menu","contact"]) ;
//setsame.do() ;
