// This file contains intellectual property and artistic creations 
// by Dennis Sandow and is copyright 2000-2010 by the author. 
// For use only on websites maintained by Dennis Sandow, or with
// specific permission.  Do not remove this notice.

// Performs 3 separate jobs
// 1. Declare Coment array.  Populated on individual pages.
// 2. constructs a fat-border grey table around a Coment['..'].
//   opt 2nd arg returns grey table (for nesting in other popup). Else table is written directly.
// 3. Carries the text of the default ReadMe message to all pages on the site.

//uppercase=target page (rotating). lowercase=nested below target page (fixed).

// SEE extensive notes in menusupport.js

if ( typeof UseComments == udf || typeof KillComments != udf ) UseComments='';

//if (ValidateOpener() && ( opener.location.href.indexOf('longXXhillnj.us') >= 0 || opener.location.href.indexOf('longXXhillnj.org') >= 0 ) ) {
// 7/2/7 errors trying to read opener.location  abandoned for now.
// if ( ValidateOpener() && typeof snatchOpener != udf && snatchOpener 
//   ) opener.close();
// in non-main,mas pages, set --31 UseComments=1

var Coment= new Array();
function Comment(arg){
  if ( ! UseComments || typeof Coment[arg] == udf || ! Coment[arg] ) return;
  if( arg == 'plag' ) 
    Coment['plag']='Fidelity (Plagerism) Note:<br>'+Coment['plag'] ;
  ComShell='<table cellpadding=4 border=7 width=100% bgcolor=#cccccc><tr><td align=left class=v10><B>'+Coment[arg]+'</B></td></tr></table>';
  if ( arguments[1] ) return ComShell;
  document.write(ComShell);
};

// lComment makes an in-line comment for lakeappl.htm
// Normally writes in-line, but if arg[1] exists, return the string.
function lComment(arg){
  if ( ! UseComments || typeof Coment[arg] == udf || ! Coment[arg] ) return;
  ComShell='<span style="background-color:#cccccc">'+Coment[arg]+'</span>';
  if ( arguments[1] ) return ComShell;
  document.write(ComShell);
};

Coment['Intro']='Comments and personal opinions of the Webmaster are '+
  'freely included where appropriate, and are set off in grey boxes such as this.'
Mesage['TRBRM']='This website is a non-official site providing '+
  'a full range of information to the residents of Long Hill Township.'+
  '<p>All information on this site is gathered from the public domain '+
  'using OPRA requests, information from other public and private sources, '+
  'and word-of-mouth.'+
  '<p>This site mimics the layout, style and content of the "official" '+
  'Township Website, which was named "Best Municipal Website" in NJ in '+
  '2001 and again in 2002, abandoned in 2003, subsequently '+
  'renamed and "dumbed-down" in 2004 and "vanilla-plated" and further "dumbed-down" in 2008.&nbsp; '+
  '<p>The content of that former website is updated irregularly on this website.&nbsp; '+
  'Many of the more volatile pages are not yet up to date, but '+
  'the Webmaster-in-exile will continue to update pages and to use this site to '+
  'maximize communication with, and awareness by, the public.'+
  '<p>'+Comment('Intro',1);
// Set up to display a default ReadMe popup.  See misc.js+genPinkBox()
if (UseComments) trButtonAddMsg='<a href="javascript:void(0)" onmouseout="xnd()" '+
    'onMouseover="return HintPop(\'TRBRM\',\'About this website\')" '+
    'class=v10>Read&nbsp;Me</a>'; 
