     var bName = navigator.appName;
     var bVer = parseInt(navigator.appVersion);
     var browser = "";
     var vP = "";

     
     if ((bName == "Netscape")||(document.layers)){
         if (bVer < 5){ 
            browser = "ns" + bVer;
            bName = "Netscape";}
         else{
            // Netscape or of the many Netscape clones... Seem to work as well as ie6.
            //alert('ns~ie6'); 
            browser = "ie6";
            bName = "Microsoft Internet Explorer";} 
         }
     else{
         if (bName == "Microsoft Internet Explorer"){
            if ((document.all) && navigator.appVersion.indexOf("5.")!=-1){
               bVer = 5;}
            if (bVer >= 4){ 
               browser = "ie" + bVer;}
            else{
               browser = "ie3";}
         }
         else{
            if (navigator.appName == "Opera"){
               browser = "ie6";
               bName = "Microsoft Internet Explorer";
            }
         }
     }
     //alert("browser " + browser);
// ----------
function doCSSstyle(vPath){
     vP = vPath;
     if (bName == "Netscape"){
        document.write('<link rel="stylesheet" href="'+vP+'incl/nsmain.css" type="text/css">'); 
         }
     else{
        document.write('<link rel="stylesheet" href="'+vP+'incl/main.css" type="text/css">');
     }
}
// ---------
 function DoBanr1(){
       Html = '<tr><td width="98%" align="center" valign="middle" '
            + 'style="font-family:Lucida Calligraphy,times new roman,times;font-style:italic;font-weight:bold;font-size:25px;">'
            + 'Atlantic&nbsp;Highlands Yacht&nbsp;Club'
            + '</td></tr>';
       document.write(Html);

}
// ---------
// ** Script to write the banner on level 2         ** //
// ** type pages..."Atlantic Highlands Yacht Club"  ** //          ** // 
 function DoBanr2(){
    Html = '<tr><td width="98%" align="center" valign="middle">'
            + '<img src="'+vP+'img/ahb2d.gif" width="473" height="56" />'
            + '</td></tr>';
    if (screen.width < 640){
       DoBanr1();
    }
    else{
       document.write(Html);
    }
 }
 function DoBanr2w(){
    Html = '<tr><td width="98%" align="center" valign="middle">'
         + '<img src="'+vP+'img/ahw9d.gif" width="473" height="56" />'
         + '</td></tr>';
    if (screen.width < 640){
       DoBanr1();
    }
    else{
       document.write(Html);
    }
 }
// ** Script to write the banner on level 3         ** //
// ** type pages..."A H Y C code flags              ** // 
 function DoBanr3(){
    Html = '<tr><td width="98%" align="center" valign="middle">'      
         + '<img src="'+vP+'img/code_a_anm.gif" width="50" height="50" />'
         + '<img src="'+vP+'img/code_h_anm.gif" width="50" height="50" />'
         + '<img src="'+vP+'img/code_y_anm.gif" width="50" height="50" />'
         + '<img src="'+vP+'img/code_c_anm.gif" width="50" height="50" />'
         + '</td></tr>';
    if (screen.width < 640){
       DoBanr1();
    }
    else{
       document.write(Html);
    }
 }
// ** Script to write the colage banner 4         ** //
//                                                ** // 
 function DoBanr4(){
    if (screen.width < 650) {
       banrImg = 'colage2s.gif"';
       banrSize = ' width="467" height="102"';
       }
    else {
       banrImg = 'colage2.gif"';
       banrSize = ' width="530" height="102"';
    }

    Html = '<tr><td class="banr" width="98%" align="center" valign="middle" background="'+vP+'img/blustripe.gif">'      
         +  '<img src="'+vP+'img/' + banrImg + banrSize + '/><br>'
         +  '<span style="font-family:tahoma,arial,sans serif;color:#ffffff;font-size:15px;">'
         +  '<b>Atlantic Highlands Yacht Club</b></span>'           
         +  '</td></tr>';
    if (screen.width < 640){
       DoBanr1();
    }
    else{
       document.write(Html);
    }
 }
// ** Script to write the mount mitchel banner 5  ** //
//                                                ** // 
 function DoBanr5(){   
    Html = '<tr><td class="banr" width="98%" align="center" valign="middle" background="'+vP+'img/blustripe.gif">'      
         +  '<img src="'+vP+'img/nix.gif" width="300" height="8" /><br />'
         +  '<img src="'+vP+'img/ahhill2.jpg" width="475" height="102" /><br />'
         +  '<span style="font-family:tahoma,arial,sans serif;color:#ffffff;font-size:15px;">'
         +  '<b>Atlantic Highlands Yacht Club</b></span>'
         +  '</td></tr>';
    if (screen.width < 640){
       DoBanr1();
    }
    else{
       document.write(Html);
    }
 }
// ** Script to write the Surface Tension at WTC banner 6  ** //
//                                                         ** // 
 function DoBanr6(){   
    Html = '<tr><td class="banr" width="98%" align="center" valign="middle" background="'+vP+'img/blustripe.gif">'      
         +  '<img src="'+vP+'img/nix.gif" width="300" height="4" /><br />'
         +  '<img src="'+vP+'img/stbigflag.jpg" width="470" height="152" /><br />'
         +  '<span style="font-family:tahoma,arial,sans serif;color:#ffffff;font-size:15px;">'
         +  '<b>Atlantic Highlands Yacht Club</b></span>'
         +  '</td></tr>';
    if (screen.width < 640){
       DoBanr1();
    }
    else{
       document.write(Html);
    }
 }
// ** Script to dancing flag banner 7        ** //

 function DoBanr7(){    
    Html = '<tr><td width="98%" align="center" valign="middle"><center>'
         + '<span style="font-family:bookman old style,times new roman;font-size:20px;color:#000080;"><b>'
         + '<i>Atlantic Highlands Yacht Club</i></b></span><br />'      
         + '<img src="'+vp+'img/dancingflags.gif" width="490" height="33" /></center>'
         + '</td></tr>';
    if (screen.width < 640){
       DoBanr1();
    }
    else{
       document.write(Html);
    }
 }
// ** Script to write the colage banner 8         ** //
//    Navigation Instruments                      ** // 
 function DoBanr8(){
    if (screen.width < 650) {
       banrImg = 'colage3s.gif"';
       banrSize = ' width="467" height="102"';
       }
    else {
       banrImg = 'colage3.gif"';
       banrSize = ' width="533" height="102"';
    }

    Html = '<tr><td class="banr" width="98%" align="center" valign="middle" background="'+vP+'img/blustripe.gif">'      
         + '<img src="'+vP+'img/' + banrImg + banrSize + ' /><br />'
         + '<span style="font-family:tahoma,arial,sans serif;color:#ffffff;font-size:15px;">'
         + '<b>Atlantic Highlands Yacht Club</b></font>'
         + '</td></tr>';
    if (screen.width < 640){
       DoBanr1();
    }
    else{
       document.write(Html);
    }
 }
 function DoBanr9() {
    if (screen.width < 650) {
       Html = '<tr><td width="98%" align="center" valign="middle">'
            + '<img src="'+vP+'img/ahb2d.gif" width=473 height=56 />'
            + '</td></tr>';
    }
    else {

    Html = '<tr><td class="banr" width="98%" align="center" valign="middle" background="'+vP+'img/blustripe.gif">'      
         +  '<img src="'+vP+'img/colage4.gif" width="533" height="102" /><br />'
         +  '<span style="font-family:tahoma,arial,sans serif;color:#ffffff;font-size:15px;">'
         +  '<b>Atlantic Highlands Yacht Club</b></span>'
         +  '</td></tr>';
    }

    if (screen.width < 640){
       DoBanr1();
    }
    else{
       document.write(Html);
    }
 }
// ** Script to write the page footer  ** //
 function DoFooter(){
    //setOuterDiv();
    if (bName == "Netscape"){
       Html = '<center><div align="center">'
            + '<p><font color="#b60a0a" SIZE=2><b>Our site looks best with Internet Explorer 4.0 or higher.</b></font></p>';       
       }
    else{
       Html = '<center><div class="foot">';
    }
    document.write(Html);
    Html = '<hr size="2" COLOR="#b60a0a">'
         + 'AHYC<span class="star"> * </span>'
         + 'Box 123<span class="star"> * </span>' 
         + 'Atlantic Highlands, NJ<span class="star"> * </span>' 
         + '07716<span class="star"> * </span>' 
         + '(732) 291-1118'   
         + '<br /> <br /></div></center>';    
    document.write(Html);
 }
 
