var dl=document.location.toString()
if(dl.indexOf('aesl')>-1) top.location='http://www.riversalive.com'  //dl.replace('http://aesl.ces.uga.edu/aascd//riversalive','http://www.riversalive.com')

function Header(b){
  document.write('<table cellspacing=0 cellpadding=0 style="background:white;width:930px;border-top:10px solid #96B566;border-left:10px solid #96B566;border-right:10px solid #96B566;margin:auto;padding:0px">')
//  document.write('<col style="width:252px"><col style="width:1978px">')
  document.write('<tr><td style="width:1px;border:1px solid black"><a href="." style="text-decoration:none"><img src="images/ra/ra_logoSmall.png" height="102px" style="border:none"></a>')
  document.write('    <td style="background:#4C88BE;border:1px solid black">')
  if(b) {
    document.write('  <div style="background:#4C88BE;color:white;text-align:center;font-weight:bold">')
    document.write('    <p style="font-size:140%;margin-top:0px;padding-top:0em">Georgia\'s Annual Waterway Cleanup</p>')
    document.write('    Creating awareness of and involvement in<br>')
    document.write('    the preservation of Georgia\'s water resources')
    document.write('  </div>')
  }
  else {
    document.write('<table id="TopMenu" cellspacing=0 cellpadding=0 style="width:100%;height:100px"><col style="width:25%"><col style="width:25%"><col style="width:25%"><col style="width:25%">')
    document.write(' <tr style="height:50%">')
    document.write(' <td class="SBButton2" onclick="document.location=\'ra_cleanups.asp\'">Locate a cleanup')
    document.write(' <td class="SBButton2" onclick="document.location=\'ra_registration.asp\'">Register and submit<br>&nbsp;cleanup data</a>')
    document.write(' <td class="SBButton2" onclick="document.location=\'ra_about.htm\'">About RA')
    document.write(' <td class="SBButton2" onclick="document.location=\'ra_results.htm\'">Results')
    document.write(' <tr style="height:50%">')
    document.write(' <td class="SBButton2" onclick="document.location=\'ra_links.htm\'">Organizers')
    document.write(' <td class="SBButton2" onclick="document.location=\'ra_board.htm\'">Board')
    document.write(' <td class="SBButton2" onclick="document.location=\'ra_sponsors.htm\'">Sponsorship')
    document.write(' <td class="SBButton2" onclick="document.location=\'ra_education.htm\'">Education')
    document.write('</table>')
  }
  document.write('</table>')
} //Header
//------------------------------------------------------------------------------------------------------------------------
function GotTrash(){
  window.open('gottrash2.aspx?'+rndtime(),'Register','scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,width=970,height=800,top=10,left='+(screen.width/2-475))
}
//------------------------------------------------------------------------------------------------------------------------
function FooterHome(){
  document.write('<div style="background:white;height:8px"></div>')
  document.write('<table style="width:100%;line-height:2em;text-align:center;font-weight:bold">'+
                  '<col style="width:33%">'+
                  '<col style="width:33%">'+
                  '<col style="width:33%">'+
                  '<col style="width:33%">'+
                  '<tr valign="center">'+
                   '<td>phone: 404.675.6240'+
                   '<td>fax: 404.675.6245'+
                   '<td><a href="mailto:riversalive@gaepd.org" style="color:black;text-decoration:none">e-mail</a>'+

                  '<tr valign="center">'+
                   '<td><a href="http://georgiaadoptastream.org/db" style="text-decoration:none;color:white"><span style="font-size:80%;line-height:1.7em">Adopt-A-Stream</span><br><img src="images/ra/aasSmall.png" style="border:none"></a>'+
                   '<td><a href="http://www.dca.state.ga.us/development/EnvironmentalManagement/programs/wastemanage.asp"><img src="images/ra/DCASmall.png" style="border:none"></a>'+
                   '<td><a href="http://www.gaepd.org/Documents/wpb.html"><img src="images/ra/template_r1_c6.jpg" style="border:none"></a>'+
                 '</table>')
  document.write('<div style="background:white;height:8px"></div>')
  document.write('<div style="color:#222;font-size:80%;text-align:center;padding:1em">'+
                 ' The preparation of this website was financed in part through a grant from the U.S. Environmental Protection Agency<br>under provisions of Section 319(h) of the Federal Clean Water Act of 1987, as amended.'+
                 '</div>')

} //FooterHome

function Footer(){
  return
  var sep='<span style="color:silver">|</span>'
  document.write('<center class="Foot" style="font-size:7pt;line-height:2em">')
  document.write('  <hr>')
  document.write('  <a href="index.htm">HOME</a>'+sep)
  document.write('  <a href="http://gaepd.org/">GEORGIA EPD</a>'+sep)
  document.write('  <a href="http://www.dca.state.ga.us/">DEPT OF COMMUNITY AFFAIRS</a>'+sep)
  document.write('  <a href="ra_cleanups.asp">CLEANUPS</a>'+sep)
  document.write('  <br>')
  document.write('  <a href="ra_sponsors.htm">SPONSORSHIP</a>'+sep)
  document.write('  <a href="ra_education.htm">EDUCATION</a>'+sep)
  document.write('  <a href="ra_board.htm">BOARD</a>'+sep)
  document.write('  <a href="http:\\www.riversalive.com\ra_results.htm">RESULTS</a>'+sep)
  document.write('  <a href="ra_about.htm">ABOUT RIVERS ALIVE</a>'+sep)
  document.write('  <a href="ra_links.htm">ORGANIZERS</a>')
  document.write('</center>')
} //Footer

//------------------------------------------------------------------------------------------------------------------------
    var href

    function AClick(ev){
//      ev=ev || window.event
      if(IE) ev=window.event
      var e=ev.srcElement?ev.srcElement:ev.target
      if(e.tagName=='IMG') e=e.parentNode
      if(e.tagName=='A') if(e.target=='' && e.href.toUpperCase().indexOf('JAVASCRIPT')+e.href.toUpperCase().indexOf('MAILTO')==-2 && !e.onclick) {
        href=e.href
        Unload()
      }
    } //AClick

    function Unload(){
      try{GUnload()}catch(ee){}
      try{parent.frames[0].location="javascript:''"}catch(ee){}
      if(href) document.location=href
    } //Unload

    function addEvent(obj,type,fn) {
      if (obj.addEventListener) obj.addEventListener(type,fn,false)
      else if (obj.attachEvent) {
        obj["e"+type+fn] = fn
	obj[type+fn] = function() {obj["e"+type+fn](window.event)}
	obj.attachEvent( "on"+type, obj[type+fn] )
      }
    } //addEvent

    function removeEvent( obj,type,fn) {
      if (obj.removeEventListener) obj.removeEventListener(type,fn,false)
      else if (obj.detachEvent) {
        obj.detachEvent( "on"+type, obj[type+fn])
	obj[type+fn] = null
	obj["e"+type+fn] = null
      }
    } //removeEvent
//------------------------------------------------------------------------------------------------------------------------
    var BrowserDetect = {
            init: function () {
                    this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
                    this.version = this.searchVersion(navigator.userAgent)
                            || this.searchVersion(navigator.appVersion)
                            || "an unknown version";
                    this.OS = this.searchString(this.dataOS) || "an unknown OS";
            },
            searchString: function (data) {
                    for (var i=0;i<data.length;i++)	{
                            var dataString = data[i].string;
                            var dataProp = data[i].prop;
                            this.versionSearchString = data[i].versionSearch || data[i].identity;
                            if (dataString) {
                                    if (dataString.indexOf(data[i].subString) != -1)
                                            return data[i].identity;
                            }
                            else if (dataProp)
                                    return data[i].identity;
                    }
            },
            searchVersion: function (dataString) {
                    var index = dataString.indexOf(this.versionSearchString);
                    if (index == -1) return;
                    return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
            },
            dataBrowser: [
                    {
                            string: navigator.userAgent,
                            subString: "Chrome",
                            identity: "Chrome"
                    },
                    { 	string: navigator.userAgent,
                            subString: "OmniWeb",
                            versionSearch: "OmniWeb/",
                            identity: "OmniWeb"
                    },
                    {
                            string: navigator.vendor,
                            subString: "Apple",
                            identity: "Safari",
                            versionSearch: "Version"
                    },
                    {
                            prop: window.opera,
                            identity: "Opera"
                    },
                    {
                            string: navigator.vendor,
                            subString: "iCab",
                            identity: "iCab"
                    },
                    {
                            string: navigator.vendor,
                            subString: "KDE",
                            identity: "Konqueror"
                    },
                    {
                            string: navigator.userAgent,
                            subString: "Firefox",
                            identity: "Firefox"
                    },
                    {
                            string: navigator.vendor,
                            subString: "Camino",
                            identity: "Camino"
                    },
                    {		// for newer Netscapes (6+)
                            string: navigator.userAgent,
                            subString: "Netscape",
                            identity: "Netscape"
                    },
                    {
                            string: navigator.userAgent,
                            subString: "MSIE",
                            identity: "Explorer",
                            versionSearch: "MSIE"
                    },
                    {
                            string: navigator.userAgent,
                            subString: "Gecko",
                            identity: "Mozilla",
                            versionSearch: "rv"
                    },
                    { 		// for older Netscapes (4-)
                            string: navigator.userAgent,
                            subString: "Mozilla",
                            identity: "Netscape",
                            versionSearch: "Mozilla"
                    }
            ],
            dataOS : [
                    {
                            string: navigator.platform,
                            subString: "Win",
                            identity: "Windows"
                    },
                    {
                            string: navigator.platform,
                            subString: "Mac",
                            identity: "Mac"
                    },
                    {
                               string: navigator.userAgent,
                               subString: "iPhone",
                               identity: "iPhone/iPod"
                },
                    {
                            string: navigator.platform,
                            subString: "Linux",
                            identity: "Linux"
                    }
            ]

    };
    BrowserDetect.init()

    IE=BrowserDetect.browser=='Explorer'
//------------------------------------------------------------------------------------------------------------------------


