//
//                                            footer.js
//
//   Copyright (C) 2007 David Rhodes, All rights reserved. No part of this file may be 
//   sold, reproduced, or utilized in any form or by any means, electronic or mechanical, 
//   including photocopying, recording, broadcasting or by any other information 
//   storage and retrieval system without written permission from David Rhodes,  
//   1715 Del Mar Road, Crescent City, CA. 
//
//   This file contains utilities used in the footer of each page.  Change in one file 
//   and you have changes in all files.  This file is changed to update the:
//       - Copyright.
//       - Webmaster e-mail address
//   
//    Additionally, this file contains a method for automatically changing the modification date.
//  

//
//    modificationDate
//
//    This provides a method for automatically generating a modification date update
//
//
function modificationDate() {

   var modDate = new Date(document.lastModified)
   var modYear = modDate.getYear()
   var montharray= new Array("January","February","March","April","May","June","July","August","September","October","November","December") ;


  if(modYear<1000) modYear+=1900
       
  return(montharray[modDate.getMonth()] + " " + 
                  modDate.getDate() + ", " + (modYear+"").substring(0,4))
}
//
//    webmasterAddress
//
//    Change the webmasterAddress here and it changes everywhere on the site.
//    Also, this is broken up so that web crawlers have trouble locating the webmaster address 
//    to send out spam to the webmaster.
//
function webmasterMail() {
    
    var id = "webmaster" ;                                  // webmaster id.

    return('<A HREF="mailto:' + id + '@' + 'southridgecommunity.com">' + id + '</a>') ;  
                                                                         
}
function DaveMail() {
    return ("mailto:dave@southridgecommunity.com?subject=Message from the South Ridge Community website.") ;
}

//
//    copyright
//
//    Change the copyright here and it changes everywhere on the site.
//
function copyright() {
    return("Copyright 2007") ;
}
//
//
//     footer
//
function footer() {
		document.write('<center><hr>') ;
		document.write('<font size="medium">Support the website by placing a custom advertisement.</font><br/><a href="../Sponsor/NewRegistration.php"><img src="../images/buttons/Sponsor.gif" border="0"></a><br />' );
        document.write('All Rights Reserved, crescentcitywebs.com: ' + copyright() + '<br />' );
		document.write('Questions and comments may be directed to ' + webmasterMail() + '<br>') ;
		document.write('Last Modified: ' + modificationDate() + '<br /></center>') ;	
}