function send_mail(nm,domain,extension,subject) {    // hide from crawlers...
 
     var dot = ".";
	 var str = "mailt" + "o:" ;   
	 var nm;
	 var domain;
	var extension;
	str += nm + "@"+ domain + dot +  extension + "?subject=" + subject;
	window.location = str;
}
var newwindow;

if (document.images) {
   hand_on = new Image();
   hand_on.src = "http://www.panil.org/images/rightpoint_white.gif";
   hand_off = new Image();
   hand_off.src = "http://www.panil.org/images/rightpoint_white_off.gif";
}

/* -------------------------------------------------------------------------- */
 function changeImages() {
   if (document.images) {
     document[changeImages.arguments[0]].src = eval(changeImages.arguments[1] + ".src");
   }
 }
/* -------------------------------------------------------------------------- */
  function create_mail() {
     var at = "&#64;";  // hide this symbol from crawlers
     var dot = ".";
     var i1 = 0
// subject:
     var subject = "Save Mt. View Cemetery";
//body of email::
     var body = "I sincerely urge the Planning Commission to reconsider the June 11 staff" +
        " decision and to require  an Environmental Impact Report (EIR) for the proposed" +
        " mausoleum at Mountain View Cemetery.   An EIR is needed in order to document and" + 
        " understand the problems this project presents in violation of the" +
        " original Olmsted design for the entire cemetary.\n\n" +
        " Mt. View Cemetery is a national treasure and a project of this" + 
        " scope and scale should not be undertaken without a complete" + 
        " understanding of the impacts on this historic design.\n\n"
        " Thank you for your consideration."
// "to" fields:
     var to= new Array(); 
     i1 = 0;
     to[i1] = "to1" + at + "gabrielacrane" + dot + "com (Leslie Gould);";  
//  "cc" fields:
     var cc= new Array();  
     i1 = 0;
// cc[++i1] = "citymanager" + at + "oaklandnet" + dot + "com (Oakland City Manger); ";
//     city council 
     cc[i1] = "cc0" + at + "gabrielacrane" + dot + "com (Leslie Gould);";  
     cc[++i1] = "cc1"   + at + "gabrielacrane" + dot + "com (Leslie Gould);";  
 
//     planning commission:
    cc[++i1]= "cc2"    + at + "gabrielacrane"       + dot + "com (Nicole Franklin); ";
    cc[++i1]= "cc3"            + at + "gabrielacrane" + dot + "com (Leslie Gould);";  
    cc[++i1]= "cc4" + at  + "gabrielacrane" + dot + "com (Leslie Gould);";  
    cc[++i1]= "cc5"              + at  + "gabrielacrane" + dot + "com (Leslie Gould);";  
    cc[++i1]= "cc6"            + at + "gabrielacrane" + dot + "com (Leslie Gould);";  
    cc[++i1]= "cc7"       + at + "gabrielacrane" + dot + "com (Leslie Gould);";  
    cc[++i1]= "cc8"            + at + "gabrielacrane" + dot + "com (Leslie Gould);";  
//    cc[++i1]= "aemudge"            + at + "stoel"       + dot + "com (Jerry Brown);";

 
   

//  "bcc" fields:  
     var bcc= new Array();   // enter size of array here
     i1 = 0;
     bcc[i1] = "bcc1"+ at + "gabrielacrane" + dot + "com (Leslie Gould);";  
     bcc[++i1] = "bcc2"+ at + at + "gabrielacrane" + dot + "com (Leslie Gould);";  
     var str = "mailt" + "o:" ;   // hide this "key word" from crawlers...
     for ( x=0; x<to.length; x++) {
        str += to[x]; 
     } 
     str += "?cc=";
     for ( x=0; x<cc.length; x++) {
        str += cc[x] ; 
     } 
     str += "&bcc="
     for ( x=0; x<bcc.length; x++) {
        str += bcc[x]; 
     } 
     str += "&subject=" + escape(subject) ;
     str += "&body= " + escape(body) ;
	 alert(str);
     window.location = str;
  }
/* -------------------------------------------------------------------------- */
function getMeta (tagname) {
  var MetaTagList;
  var ListLength; 
  if (document.all){
	MetaTagList=document.all.tags("meta"); 
  }
  else if (document.documentElement){
	MetaTagList=document.getElementsByTagName("meta"); 
  }

  ListLength = MetaTagList.length; 
  alert(ListLength);
  alert(MetaTagList[ListLength].name.toUpperCase );
  tagname = tagname.toUpperCase();
  for (var m = 0; m == ListLength; m++) {
    alert(MetaTagList[m].content);
    if (MetaTagList[m].name.toUpperCase == tagname) {
      return(MetaTagList[m].content);
    }
  }
  return '';
}
/* -------------------------------------------------------------------------- */
function lastModified() { 
     var date_modified = document.lastModified;
     var d = date_modified.length-8;
    /* var str1 = "<style type=\"text/css\">";
     str1 += " #date{ color : #999999; font-family: Arial, Helvetica, sans-serif; font-size: 10px;"; 
     str1 += " font-weight:bold}  </style> <hr size=\"1\" width=\"100%\">";
     str1 += " <table border=\"0\" cellpadding=\"4\" width=\"100%\" ><tr>";
     str1 += "<td  align=\"left\"width=\"33%\"><div id=\"date\">Webmaster: <br>";
     str1 += "<a href=\"mailto:gcrane@gabrielacrane.com\">";
     str1 += "<span style=\"color:#6666ff; font-size:10px;font-weight:bold;text-decoration:underline;\">";
     str1 += "Gabriela Crane</span></a></div></td>";
     str1 += "<td align=\"center\"  valign=\"top\" width=\"33%\"><div id=\"date\">";
     
     str1 += "<span style=\"color:#6666ff; font-size:10px;font-weight:bold;text-decoration:underline;\">";
     str1 += "SupportNet Inc.</span></a>, <br>(510) 763-2358</div> </td>";
     str1 += " <td align=\"right\"  valign=\"top\" width=\"33%\"><div id=\"date\">";
     str1 += "Last modified:<br> " + date_modified.substring(0,d) + "</div></td></tr></table><br><br>"; 
     document.write(str1);*/
}
/* -------------------------------------------------------------------------- */
function poptastic(url)
{ 
	newwindow=window.open(url,'popup','height=500,width=720,left=2,top=2,resizable=yes,scrollbars=yes,toolbar=yes');
	if (window.focus) {newwindow.focus()}
}
/* -------------------------------------------------------------------------- */
function popup(url)
    { 
      newwindow=window.open(url,'popup','height=770,width=750,left=20,top=2,resizable=yes,scrollbars=yes,toolbar=yes');
      if (window.focus) {
        newwindow.focus()
      }
    }
/* -------------------------------------------------------------------------- */
function printWindow(){
   version = parseInt(navigator.appVersion);
   if (version >= 4) window.print();
}
/* -------------------------------------------------------------------------- */
function show(whatbutton,sub)
{  var mybutton = document.all.item(whatbutton)
  var myobj = document.all.item(sub)
  if (myobj.style.display=="none")
  {
    myobj.style.display = ""
    mybutton.innerText = "-"
  }
  else
  {
    myobj.style.display = "None"
    mybutton.innerText = "+"
  }
}

/* -------------------------------------------------------------------------- */
function writeContent(contactname, name, addr, ext){
     var date_modified = document.lastModified;
     var d = date_modified.length-8;
     var str1 = "<hr size=\"1\">";
     str1 += " <table border=\"0\" cellpadding=\"4\" width=\"80%\" align=\"center\"><tr>";
     str1 += "<td  align=\"center\"width=\"33%\"><div class=\"small_text\">Webmaster: <br>" ;
     str1 += "<a href=\"mailto:gcrane@gabrielacrane.com";
     str1 += "?subject=Attn: PANIL Web Site - Technical";
     str1 += "&body=There is a problem with page " + document.location + "%0A%0APlease describe the problem here:%0A%0A\">";
     str1 += "<span style=\"color:#6666ff; font-size:10px;font-weight:bold;text-decoration:underline;\">";
     str1 += " Gabriela Crane</span></a></div></td>";
     str1 += "<td align=\"center\"  valign=\"top\" width=\"33%\" class=\"small_text\"> ";
     str1 += "Content manager:<BR> <a href=\"mailt\" + \"o:\" + \"name\" + \"@\" + \"addr\" + \"ext\" "; 
     str1 += "?subject=Attn: PANIL Web Site - Content";
     str1 += "&body=There is a problem with page " + document.location + "%0A%0APlease describe the problem here:%0A%0A\">";
     str1 += "<span style=\"color:#6666ff; font-size:10px;font-weight:bold;text-decoration:underline;\">";
     str1 += contactname + "</span></a></td>";
     str1 += " <td align=\"center\"  class=\"small_text\" valign=\"top\"> ";
     str1 += "Last modified: <br>" + document.lastModified.substring(0,10) + "</td></tr></table><BR>";
     document.write(str1);
}
/* -------------------------------------------------------------------------- */
function writeContentPub(contactname, contactemail, pubDate){
     var date_modified = document.lastModified;
     var d = date_modified.length-8;
     var str1 = "<hr size=\"1\">";
     str1 += " <table border=\"0\" cellpadding=\"4\" width=\"90%\" align=\"center\"><tr>";
     str1 += "<td  align=\"left\"width=\"33%\"><div id=\"date\">Webmaster: <br>" ;
     str1 += "<a href=\"mailto:gcrane@gabrielacrane.com";
     str1 += "?subject=Attn: PANIL Web Site - Technical";
     str1 += "&body=There is a problem with page " + document.location + "%0A%0APlease describe the problem here:%0A%0A\">";
     str1 += "<span style=\"color:#6666ff; font-size:10px;font-weight:bold;text-decoration:underline;\">";
     str1 += "Gabriela Crane</span></a></div></td>";
     str1 += "<td align=\"center\"  valign=\"top\" width=\"33%\"><div id=\"date\">";
     str1 += "Content manager:<BR> <a href=\"mailto:" + contactemail 
     str1 += "?subject=Attn: PANIL Web Site - Content";
     str1 += "&body=There is a problem with page " + document.location + "%0A%0APlease describe the problem here:%0A%0A\">";
     str1 += "<span style=\"color:#6666ff; font-size:10px;font-weight:bold;text-decoration:underline;\">";
     str1 += contactname + "</span></a></td>";
     str1 += " <td align=\"right\"  valign=\"top\" width=\"33%\"><div id=\"date\">";
     str1 += "Publication:  " + pubDate + "<BR>";
     str1 += "Last modified: " + date_modified.substring(0,d) + "</div></td></tr></table><BR>";
     document.write(str1);
}
/* -------------------------------------------------------------------------- */
function writeFooter(){
  var date_modified = document.lastModified;
  var d = date_modified.length-8;
  document.write(" <hr size=\"1\" width=\"80%\"> <table border=\"0\" cellpadding=\"4\" width=\"90%\" align=\"center\" ><tr> <td  align=\"left\"><div id=\"date\">Webmaster: <br><a href=\"mailto:gcrane@gabrielacrane.com\"><span style=\"color:#6666ff; font-size:10px;font-weight:bold;text-decoration:underline;\">Gabriela Crane</span></a></div></td><td align=\"center\"  valign=\"top\">  </td><td align=\"right\"  valign=\"top\" width=\"33%\"><div id=\"date\">Last modified: " + document.lastModified.length-8 + "</div></td></tr></table><br><br>");
}
