<!--



function Is ()
{       
   var agt=navigator.userAgent.toLowerCase();

        
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);

    this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    this.nav2 = (this.nav && (this.major == 2));
    this.nav3 = (this.nav && (this.major == 3));
    this.nav4 = (this.nav && (this.major == 4));
    this.nav4up = (this.nav && (this.major >= 4));
    this.navonly = (this.nav && ((agt.indexOf(";nav") != -1) ||
                          (agt.indexOf("; nav") != -1)) );
    this.nav6 = (this.nav && (this.major == 5));
    this.nav6up = (this.nav && (this.major >= 5));
    this.gecko = (agt.indexOf('gecko') != -1);

    this.ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    this.ie3    = (this.ie && (this.major < 4));
    this.ie4    = (this.ie && (this.major == 4) && (agt.indexOf("msie 4")!=-1) );
    this.ie4up  = (this.ie  && (this.major >= 4));
    this.ie5    = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    this.ie5_5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
    this.ie5up  = (this.ie  && !this.ie3 && !this.ie4);
    this.ie5_5up =(this.ie && !this.ie3 && !this.ie4 && !this.ie5);
    this.ie6    = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) );
    this.ie6up  = (this.ie  && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5);

                this.aol   = (agt.indexOf("aol") != -1);
    this.aol3  = (this.aol && this.ie3);
    this.aol4  = (this.aol && this.ie4);
    this.aol5  = (agt.indexOf("aol 5") != -1);
    this.aol6  = (agt.indexOf("aol 6") != -1);
    this.aol7  = (agt.indexOf("aol 7") != -1);
    this.aol8  = (agt.indexOf("aol 8") != -1);
    this.aol9  = (agt.indexOf("aol 9") != -1);
    this.aol6up = ( this.aol6 || this.aol7 || this.aol8 || this.aol9 );

    this.opera  = (agt.indexOf("opera") != -1);
    this.opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
    this.opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
    this.opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
    this.opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
    this.opera6 = (agt.indexOf("opera 6") != -1 || agt.indexOf("opera/6") != -1);
    this.opera5up = (this.opera && !this.opera2  && !this.opera3 && !this.opera4);
    this.opera6up = (this.opera && this.opera5up && !this.opera5);

    this.webtv = (agt.indexOf("webtv") != -1);

    this.TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1));
    this.AOLTV = this.TVNavigator;

    this.hotjava    = (agt.indexOf("hotjava") != -1);
    this.hotjava3   = (this.hotjava && (this.major == 3));
    this.hotjava3up = (this.hotjava && (this.major >= 3));

        if (this.nav2 || this.ie3) this.js = 1.0;
    else if (this.nav3) this.js = 1.1;
    else if (this.opera5up) this.js = 1.3;
    else if (this.opera) this.js = 1.1;
    else if ((this.nav4 && (this.minor <= 4.05)) || this.ie4) this.js = 1.2;
    else if ((this.nav4 && (this.minor > 4.05)) || this.ie5) this.js = 1.3;
    else if (this.hotjava3up) this.js = 1.4;
    else if (this.nav6 || this.gecko) this.js = 1.5;
                        else if (this.nav6up) this.js = 1.5;
        else if (this.ie5up) this.js = 1.3

        else this.js = 0.0;

        this.DOMW3C = ( this.ie6up || this.nav6up || this.gecko || this.opera6up || this.aol6up );

        this.win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
            this.win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));

        this.win16 = ((agt.indexOf("win16")!=-1) ||
               (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) ||
               (agt.indexOf("windows 16-bit")!=-1) ); 

    this.win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
                    (agt.indexOf("windows 16-bit")!=-1));

                    this.win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
    this.winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
    this.win32 = (this.win95 || this.winnt || this.win98 ||
                    ((this.major >= 4) && (navigator.platform == "Win32")) ||
                    (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));

    this.winme = ((agt.indexOf("win 9x 4.90")!=-1));
    this.win2k = ((agt.indexOf("windows nt 5.0")!=-1));

    this.os2   = ((agt.indexOf("os/2")!=-1) ||
                    (navigator.appVersion.indexOf("OS/2")!=-1) ||  
                    (agt.indexOf("ibm-webexplorer")!=-1));

    this.mac    = (agt.indexOf("mac")!=-1);
        if (this.mac && this.ie5up) this.js = 1.4;
    this.mac68k = (this.mac && ((agt.indexOf("68k")!=-1) ||
                               (agt.indexOf("68000")!=-1)));
    this.macppc = (this.mac && ((agt.indexOf("ppc")!=-1) ||
                                (agt.indexOf("powerpc")!=-1)));

    this.sun   = (agt.indexOf("sunos")!=-1);
    this.sun4  = (agt.indexOf("sunos 4")!=-1);
    this.sun5  = (agt.indexOf("sunos 5")!=-1);
    this.suni86= (this.sun && (agt.indexOf("i86")!=-1));
    this.irix  = (agt.indexOf("irix") !=-1);        this.irix5 = (agt.indexOf("irix 5") !=-1);
    this.irix6 = ((agt.indexOf("irix 6") !=-1) || (agt.indexOf("irix6") !=-1));
    this.hpux  = (agt.indexOf("hp-ux")!=-1);
    this.hpux9 = (this.hpux && (agt.indexOf("09.")!=-1));
    this.hpux10= (this.hpux && (agt.indexOf("10.")!=-1));
    this.aix   = (agt.indexOf("aix") !=-1);          this.aix1  = (agt.indexOf("aix 1") !=-1);   
    this.aix2  = (agt.indexOf("aix 2") !=-1);   
    this.aix3  = (agt.indexOf("aix 3") !=-1);   
    this.aix4  = (agt.indexOf("aix 4") !=-1);   
    this.linux = (agt.indexOf("inux")!=-1);
    this.sco   = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1);
    this.unixware = (agt.indexOf("unix_system_v")!=-1);
    this.mpras    = (agt.indexOf("ncr")!=-1);
    this.reliant  = (agt.indexOf("reliantunix")!=-1);
    this.dec   = ((agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) ||
                  (agt.indexOf("dec_alpha")!=-1) || (agt.indexOf("alphaserver")!=-1) ||
                  (agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1));
    this.sinix = (agt.indexOf("sinix")!=-1);
    this.freebsd = (agt.indexOf("freebsd")!=-1);
    this.bsd = (agt.indexOf("bsd")!=-1);
    this.unix  = ((agt.indexOf("x11")!=-1) || this.sun || this.irix || this.hpux ||
                 this.sco ||this.unixware || this.mpras || this.reliant ||
                 this.dec || this.sinix || this.aix || this.linux || this.bsd || this.freebsd);

    this.vms   = ((agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1));
}

var is;
var isIE3Mac = false;

if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) &&
(parseInt(navigator.appVersion)==3))
       isIE3Mac = true;
else   is = new Is();

function HspLinkNs477 (newUrl, oldUrl) {
	if ( isIE3Mac ) {
		if ( oldUrl != null && oldUrl != '' ) 
			newUrl = oldUrl;
	}
	else if ( is.nav && !is.nav6up ) {
		if ( oldUrl != null && oldUrl != '' ) 
			newUrl = escape(oldUrl);
		else
			newUrl = escape(newUrl);
	}
	location.href = newUrl;
}

function loadCenterFrame (newUrl, oldUrl) {
	if ( isIE3Mac ) {
		if ( oldUrl != null && oldUrl != '' ) 
			newUrl = oldUrl;
	}
	else if ( is.nav && !is.nav6up ) {
		if ( oldUrl != null && oldUrl != '' ) 
			newUrl = escape(oldUrl);
		else
			newUrl = escape(newUrl);
	}
	top.frames['centerFrame'].location.href = newUrl;
	top.frames['centerFrame'].focus();
}


function HspGetElementById(doc, id) {
   if ( isIE3Mac ) {
   }
   else if ( is.DOMW3C ) {       return doc.getElementById(id);
   }
   else if ( is.nav || is.opera ) { 	   return doc.layers[id];
   }
   else if ( is.ie ) {       return doc.all[id];
   }
   return null;
}

function hideDIV (doc,divName) {
   if ( isIE3Mac ) {
   }
   else if ( is.DOMW3C && !is.ie ) {
   	doc.getElementById(divName).style.visibility = "hidden";
   }
   else if ( is.nav || is.opera ) {
   	  doc.layers.divName.left = 5400;
      doc.layers.divName.visibility = 'hide';
   
   }
   else if ( is.ie ) {
   	showDIV(doc, divName);
      doc.all[divName].style.visibility = 'hidden';
   }
}


function showDIV (doc, divName) {
   var div;
   if ( isIE3Mac ) {
   }
   else if ( is.DOMW3C && !is.ie ) {
      div = doc.getElementById(divName);
      if (div != null) {
         div.style.visibility = 'visible';
         div.style.display = 'inline';
      }
   }
   else if ( is.nav || is.opera ) {
      div = doc.layers[divName];
      if (div != null) {
         div.left = 0;
         div.visibility = 'show';
         div.style.display = 'inline';
      }
   }
   else if ( is.ie ) {
      div = doc.all[divName];
      if (div != null) {
         div.style.visibility = 'visible';
         div.style.display = 'inline';
      }
   }
   doc.currentDIV = divName;
}
         
function toggleDivs (doc, divName1, divName2) { 
   if ( isIE3Mac ) {
   }
   else if ( is.DOMW3C && !is.ie ) {
      if ( doc.getElementById(divName1).style.visibility == "visible" ) {
         hideDIV(doc,divName1);
         showDIV(doc,divName2);
      } else {
         hideDIV(doc,divName2);
         showDIV(doc,divName1);
      }
   }
   else if ( is.nav || is.opera ) {
      if ( doc.layers[divName1].visibility == 'show' ) {
         hideDIV(doc,divName1);
         showDIV(doc,divName2);
      } else {
         hideDIV(doc,divName2);
         showDIV(doc,divName1);
      }
   }
   else if ( is.ie ) {       if ( doc.all[divName1].style.visibility == 'visible' ) {
         hideDIV(doc,divName1);
         showDIV(doc,divName2);
      } else {
         hideDIV(doc,divName2);
         showDIV(doc,divName1);
      }
   }
}

function resizeCalendar (doc) {
   var newWidth = (document.getElementById('HEADING').style.width) / 4;
   if (newWidth <= 0) { newWidth = 90;    }
   MENU_POS['left'] = [newWidth, 0];
}


function resizeMenu (menuDoc) {
   var wd, ht;
   var doc = TOP.frames['centerFrame'].document;
      if (doc.width)
      wd = doc.width
   else if (doc.body.scrollWidth)
      wd = doc.body.scrollWidth
   else if (doc.documentElement.scrollWidth)
      wd = doc.documentElement.scrollWidth
   else 
      wd = screen.width - 10;

   if (doc.height)
      ht = doc.height
   else if (doc.body.scrollHeight)
      ht = doc.body.scrollHeight
   else if (doc.documentElement.scrollHeight)
      ht = doc.documentElement.scrollHeight
   else ht = screen.height;

   var frm = TOP.frames['topFrame'];
   wd = (wd-frm.MENU_POS['block_left'][0]*2) / frm.MENU_ITEMS.length;
   frm.MENU_POS['left'] = [wd, 0];
   frm.MENU_POS['width'] = [wd, 0];
}


function hideDESC (doc, descId) {
   if ( isIE3Mac ) {
   }
   else if ( is.DOMW3C && !is.ie ) {       doc.getElementById(descId).style.visibility = "hidden";
   }
   else if ( is.nav || is.opera ) {       doc.layers[descId].left = 5400;
      doc.layers[descId].visibility = 'hide';
   }
   else if ( is.ie ) {       doc.all[descId].style.visibility = 'hidden';
   }
}


function showDESC (doc, descId) {
   if ( isIE3Mac ) {
   }
   else if ( is.DOMW3C && !is.ie ) { 	   doc.getElementById(descId).style.visibility = "visible";
   }
   else if ( is.nav || is.opera ) {       doc.layers[descId].left = 0;
      doc.layers[descId].visibility = 'show';
   }
   else if ( is.ie ) {       doc.all[descId].style.visibility = 'visible';
   }
}

function showOrHide (doc, myMonth, showMonth) {
   if ( showMonth == myMonth ) {
      showDIV(doc, myMonth);
   } else {
      hideDIV(doc, myMonth);
   }
}

function moveDIV (doc, divName, loc) {
   if ( isIE3Mac ) {
   }
   else if ( is.DOMW3C && !is.ie ) { 	  doc.all[divName].style.top = loc;
   }
   else if ( is.nav || is.opera ) {       doc.layers[divName].top = loc;
   }
   else if ( is.ie ) { 	   doc.all[divName].style.top = loc;
   }
}
         
function showAndHilite(doc, month, days) {
   hideAllMonthsExcept(doc, month);
   
   if ( lastHilite != '' ) {
      var eachDay = lastHilite.split(',');
      for (var day in eachDay ) {
         var theDay = doc.getElementById(eachDay[day]);
         theDay.style.backgroundColor = "inherit";
      }
   }
   var eachDay = days.split(',');
   for (var day in eachDay ) {
      var theDay = doc.getElementById(eachDay[day]);
      theDay.style.backgroundColor = "#CCFFFF";
   }
   lastHilite = days;
}


function setHeading(doc, hd) {
	var tmpMonth = doc.currentDIV;
	hideDIV(doc, "PRINTHEADING");
	hideDIV(doc, "HEADING");
	showDIV(doc, hd);
	moveDIV(doc, hd, 0);
	showDIV(doc, tmpMonth);
}


function HazelStMail (doc, name, domain, subject) {
	if ( subject != null ) {
      subject = '?subject=' + subject;
   } else {
      subject = ''
   }
   mailWin = window.open('mai'+'lto:'+name+"@"+domain+subject);
	if (mailWin) mailWin.close();
}

function getText(node) {
   var txt = '';
   if (node.nodeType == 3) {
      txt += node.nodeValue;
   }
   for (var i=0; i < node.childNodes.length; i++) {
      txt += getText(node.childNodes[i]);
   }
   return txt;
}
function clearElement(node) {
   while (node.hasChildNodes()) {
      node.removeChild(node.firstChild);
   }
}
function setText(node, txt) {
   clearElement(node);
   var txtNode = document.createTextNode(txt);
   node.appendChild(txtNode);
}
function HazelStMailDivs (doc, ids) {

   for ( var i=0; i < ids.length; i++) {
      var theDiv, newDiv, parent;
      if ( (is.DOMW3C || is.ie5up) )
      {
         theDiv = doc.getElementById('id_' + ids[i]);
         if ( theDiv == null ) { theDiv = doc.getElementsByName('id_' + ids[i]); theDiv = theDiv[0]; }
         if ( theDiv ) {
            var tits = theDiv.title.split(',');
            newDiv = doc.createTextNode(tits[0]+'@'+tits[1]+'.'+tits[2]);
            parent = theDiv.parentNode;
            parent.replaceChild(newDiv, theDiv);
         }
      }
      else
      if ( is.nav ) {
         theDiv = doc.layers['layer_' + ids[i]];
      }
   }
}


function HazelSt (doc) {
if ( !isIE3Mac ) {
   if ( is.DOMW3C && !is.ie5up )
   {
//      doc.addEventListener('click', HazelStClick, false);
      doc.addEventListener('click', HazelStClick, false);
      doc.addEventListener('mousedown', HazelStClick, false);
      doc.addEventListener('mouseup', HazelStClick, false);
      doc.addEventListener('mousemove', MouseMove, false);
      doc.addEventListener('keydown', HazelStPress, false);
   }
	else if (is.nav) {
		doc.captureEvents( Event.MOUSEDOWN | Event.MOUSEHOVER | Event.KEYDOWN );
      doc.onmousedown=HazelStClick;
      doc.onmouseup=HazelStClick;
      doc.onmousemove=MouseMove;
      //doc.onmousehover=HazelStClick;
      //TOP.onblur=HazelStBlur;
      doc.onkeydown=HazelStPress;
      //TOP.onblur=HazelStBlur;
	}
	else if ( is.ie5up ) {
      doc.onclick=HazelStClick;
      doc.onmousedown=HazelStClick;
      doc.onmouseup=HazelStClick;
      doc.onkeydown=HazelStPress;
      doc.onmousemove=MouseMove;
      //doc.onmousehover=HazelStClick;
      //TOP.onblur=HazelStBlur;
	}
}
}

var isMouseDown=false;
function MouseMove (evt) {
   evt = TOP.getEvent(window,evt);
   if ( isMouseDown )
   {
      _stopPropagation(evt);
      return false;
   }
   return true;
}

function HazelStClick(evt) {

   evt = TOP.getEvent(window,evt);

   if (evt.type == 'mousedown') isMouseDown = true;
   if (evt.type == 'mouseup') isMouseDown = false;

   if ( isIE3Mac ) {
   }
   else if ( is.DOMW3C && !is.ie ) {
      if ( evt.button == 2 || evt.button == 3) {
         _stopPropagation(evt);
         //evt.preventDefault();
         //evt.stopPropagation();
   		if (evt.type == 'mousedown') alert(localCopyrightMessage(evt.srcElement,getEvtWindow(window,evt)));
	   	return false;
   	}
   }
   else if ( is.nav ) {
    	if (evt.which == 3) {
         _stopPropagation(evt);
			alert(localCopyrightMessage(evt.srcElement,getEvtWindow(window,evt)));
			return false;
		}
	}
	else if ( is.ie ) {
     		
      if ( evt.button == 2 || evt.button == 3) {
         _stopPropagation(evt);
			if (evt.type == 'mousedown') alert(localCopyrightMessage(evt.srcElement,null));
         //evt.cancelBubble = true;
         //evt.returnValue = false;
			return false;
      }
	} else if ( is.opera ) {
		alert("Is Opera");
      return false;
	}
   return true;
}
function HazelStPress (evt) {

   evt = TOP.getEvent(window,evt);

   if ( isIE3Mac ) {
   }
   else if ( is.DOMW3C && !is.ie ) {
        	if ( evt.which == 67 || evt.which == 88 ) {
         evt.preventDefault();
         evt.stopPropagation();
   		alert(localCopyrightMessage(evt.srcElement));
	   	return false;
   	}
   }
   else if ( is.nav ) {
         alert(localCopyrightMessage(evt.srcElement));
			return false;
			}
	else if ( is.ie ) {
      	if ( evt.keyCode == 67 || evt.keyCode == 88 ) {
         evt.returnValue = false;
			alert(localCopyrightMessage(evt.srcElement));
			return false;
		}
	} else if ( is.opera ) {
		alert("Is Opera");
	}
   return true;
}



function HSS (doc, clss, style, text) {
   if ( !is.nav ) {
      return "<div style='" + style + "'>" + text + "</div>";
   }
   else {
      return text;
   }
}

function HSSe (e) {
   if (!e) e = window.event;
   e.preventDefault();
   e.stopPropagatoin();
   return false;
}

function obtainCGI (name) {
	var infoPassed = location.search;
	infoPassed = infoPassed.replace(/\?/,"");
	infoPassed = infoPassed.replace(/\page=/,"");
	return infoPassed.toString();
}

function loadGallery (url) {
   var galleryName = TOP.domainName + '_Gallery';
   var wdw = TOP.open(url, galleryName,'directories=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no',true);
	wdw.focus();
}

function loadJpg (doc, pic) {
   _loadImg(doc, pic, '.jpg')
}
function loadCpy (doc, pic) {
   _loadImg(doc, pic, '.c.png') //  NS 4.03 can not handle PNG (and because Beverly and Bill are ossified, we have to support that!)
//   _loadImg(doc, pic, '.c.jpg')
}
function _loadImg (doc, key, img) {
   var path = doc.URL;
   var prefix = '/';
   if (is.ie) prefix = '';
   if ( path.search('^file:') != -1 ) prefix = '';
   path = path.replace(/\\/g,'/');    path = path.replace(/^\w+:\.\.\/./, '');
   path = path.replace(/^.*[_.]com(\/.)/, '$1');
   path = path.replace(/\/[^\/]*/g, '../');
   path = path.replace(/\.\.\/%?/, '');
   
   if ( is.nav4 && navigator.mimeTypes['image/png'] == null ) {
      alert('No MIME type image/png!');
      path = path.replace(/\.png$/, '.jpg');
   }
   doc.images["img_"+key].src = prefix + path + 'img/i_' + key + img;
}



function getEvent (wdw, evt) {
   if ( evt ) return evt;
   if ( wdw.event ) return wdw.event;
   for ( var i=0; i < wdw.frames.length; i++) {
      if ( (evt = wdw.frames[i].event) != null ) return evt;
      if ( (evt = TOP.getEvent(wdw.frames[i],evt)) != null ) return evt;
   }
   return evt;
}

function getEvtWindow (wdw, evt) {
      for ( var i=0; i < wdw.frames.length; i++) {
      if ( (evt = wdw.frames[i].event) != null ) return wdw.frames[i];
      if ( (wdw = getEvtWindow(wdw.frames[i],evt)) != null ) return wdw.frames[i];
   }
   return wdw;
}

function localCopyrightMessage (div) {
   var xdiv = div;
      if ( is.ie ) {
      while ( xdiv != null ) {
         if ( xdiv.getAttribute && xdiv.getAttribute('name') == 'copyrightRegion' && xdiv.getAttribute('content') != null ) 
            return xdiv.getAttribute('content');
         xdiv = xdiv.parentElement;       }
   }
      else if ( is.DOMW3C && !is.ie ) {
      for ( var i=0; i < window.frames.length; i++) {          var xdiv;
         var wdw = window.frames[i];
         xdiv = wdw.document.getElementsByName('copyrightRegion'); //NS4.03 requires it here; if('=') not the same as if('==').
         if ( xdiv ) {
            for (var j=0; j < xdiv.length; j+=1) {
               if ( xdiv[j].getAttribute && xdiv[j].getAttribute('content') != null ) return xdiv[j].getAttribute('content');
            }
         }
      }
   }
   if ( TOP.copyrightMessage ) return TOP.copyrightMessage;
   return 'Copyright 2002 Hazel Street Productions. WARNING! All content contained within the Hazel Street Mall web site is protected by copyright laws unless otherwise noted. Unauthorized use of the artist\'s and writer\'s material within this website is strictly prohibited.';
}

var curPrintMonth;
function beforeprint (doc) {
	doc.curPrintMonth = doc.currentDIV;
	moveDIV(curPrintMonth, 60);
	hideDIV(doc, "HEADING");
	showDIV(doc, "PRINTHEADING");
}
function afterprint (doc) {
	moveDIV(doc, curPrintMonth, 200);
	hideDIV(doc, "PRINTHEADING");
	showDIV(doc, "HEADING");
	doc.currentDIV = doc.curPrintMonth;
}

if ( !isIE3Mac ) {
	if (is.nav) {
		document.captureEvents(Event.MOUSEDOWN);
		document.captureEvents(Event.MOUSEHOVER);
	}
	if ( is.ie5up ) {
					}
	if ( is.opera ) {
			}
}



function getSourceElement(evt) {
   evt = TOP.getEvent(window,null);
   if ( is.ie ) {
      return evt.srcElement;
   } else {
      return evt.target;
   }
}
function HspPayPal (doc, id) {
   var theForm = doc.getElementById(id);
   theForm.business.value = TOP.PayPalBusiness;
}

function _stopPropagation (evt) {

   evt = TOP.getEvent(TOP,evt);

   if ( isIE3Mac ) {
   }
   else if ( is.DOMW3C && !is.ie ) {
      if ( evt != null )
      {
         evt.preventDefault();
         evt.stopPropagation();
      }
     	return false;
   }
   else if ( is.nav ) {
      return false;
	}
	else if ( is.ie ) {
      if ( evt != null )
      {
         evt.cancelBubble = true;
         evt.returnValue = false;
      }
		return false;
	} else if ( is.opera ) {
      if ( evt != null )
      {
         evt.preventDefault();
         evt.stopPropagation();
      }
      return false;
	}
}
function HspPopUp (href, targ, mod, disabledDest) {

   if ( targ == null || targ == '' )
      targ = 'hazelst_child';
   if ( mod == 'C' )
      mod = 'location=no,menubar=no,status=no,toolbar=no';

   var newWdw;
   if ( mod != null && mod != '' )
      newWdw = window.open(href, targ, mod);
   else
      newWdw = window.open(href, targ);

   try {
		newWdw.focus();
	} catch (err) {
         if ( !disabledDest || (disabledDest == 0) )
            loadCenterFrame(href);
         else
            window.location = href;
	}
   
   //if ( is.ie ) window.back();
   return '';
}

var latestHiLite = '';
var latestFld = null;

function hiLite (wdw, frm, nam, msg) {

   if ( wdw.document.getElementById ) {
      var elm = wdw.document.getElementById(nam+'Caption');
      if ( elm ) {
         elm.style.color = 'red';
         elm.style.fontWeight ='bold';
      }
   }
   wdw.document.location= '#' + nam + 'Anchor';
   var fld = frm.elements[nam];
   if (msg != '') alert(msg); //god-damned IE won't focus on the field unless you "alert" at just the right moment!
   if ( fld )
   {
      if ( fld[0] ) {
         fld[0].focus();
      } else {
         fld.focus();
      }
   }
   latestHiLite = nam;
}

function _allFieldsOk (wdw,frm,verify) {
   if ( verify == null ) verify = wdw.VerifyArray;
   for ( var i=0; i<verify.length; i+=1) {
      var elm = verify[i];
      if ( typeof(elm[0]) == 'string' ) {
         var fld = frm.elements[elm[0]];
         if ( fld.value == '' ) {
            //alert(elm[1]); god-damned IE won't focus on the field unless you "alert" at just the right moment!
            hiLite(wdw, frm, verify[i][0], verify[i][1]);
            return false;
         }
      } else {
         el = elm[0];
         if ( el[0] == '+' ) {
            var isOk = false;
            for ( var j=1; j<el.length; j+=1) {
               var fld = frm.elements[el[1]];
               if ( fld.value != '' ) {
                  isOk = true;
               }
            }
           if ( !isOk ) {
              //alert(elm[1]); god-damned IE won't focus on the field unless you "alert" at just the right moment!
              hiLite(wdw, frm, el[1], verify[i][1]);
              return false;
           }
         } else {
            for ( var j=0; j<el.length; j+=1) {
               var fld = frm.elements[el[0]];
               var isOk = false;
               for ( var k=0; k<fld.length; k+=1 ) {
                  isOk |= fld[k].checked;
               }
               if ( !isOk ) {
                  //alert(elm[1]); god-damned IE won't focus on the field unless you "alert" at just the right moment!
                  hiLite(wdw, frm, el[0], verify[i][1]);
                  return false;
               }
            }
         }
      }
   }

   if ( !wdw.validateForm ) return true;
   return wdw.validateForm(frm);
}

function HspForm (wdw,frm,verify) {

   frm.action= '';
   var gotoAnchor = null;
   if ( !_allFieldsOk(wdw,frm,verify) ) return false;

   var svr;
   if ( frm.formserver ) {
      svr = frm.formserver.value;
   } else {
      svr = document.URL;
      if ( svr.search(/^file:\/\/[a-zA-Z]:/) == 0 ) svr = svr.replace(/^file:\/\/[a-zA-Z]:\\([^\\_]*)_([^\\_]*)\\.*$/, '\/\/$1.$2/');
      svr = svr.replace(/^.*\/\/([^\/]*)\/.*$/,'$1');
   }

   frm.action= 'http:\/\/' + svr + '/cgi-bin/maelForm2.pl';
   frm.submit();
   return true;
}

function HspBekForm (wdw,frm,verify) {

   frm.action= '';
   var gotoAnchor = null;
   if ( !_allFieldsOk(wdw,frm,verify) ) return false;

   var svr;
   if ( frm.formserver ) {
      svr = frm.formserver.value;
   } else {
      svr = document.URL;
      if ( svr.search(/^file:\/\/[a-zA-Z]:/) == 0 ) svr = svr.replace(/^file:\/\/[a-zA-Z]:\\([^\\_]*)_([^\\_]*)\\.*$/, '\/\/$1.$2/');
      svr = svr.replace(/^.*\/\/([^\/]*)\/.*$/,'$1');
   }

   frm.action= 'http:\/\/' + svr + '/cgi-bin/bek.pl';
   frm.submit();
   return true;
}

var NavHistDat = new Array;
function NavHistAddItem (nam,lnk) { // place holder
   eval(lnk);
}
function HspHereIam (doc) {
   if ( NavHistDat.length> 0 ) {
// not perfectly concieved, yet; gdw.2003.01.27
//      NavHistDat[0][0] = doc.title;
//      refreshNavFrame(window.navFrame.NavHist.document);
   }
}

//-->
