//
//                                            header.js
//
//
//   This file contains utilities used in the header of each page.  
//   
//
//  
//
//    the_moto
//
//    This provides a method for insert the moto in the header.
//
//
    function the_moto(txt) {

        if (IE) {
            document.all["moto"].innerHTML = txt ;
        } else if (N4) {
            document["moto"].document.write(txt);
            document["moto"].document.close();
        }      

    }


//
//    addToFavorites
//
//    This provides a method for adding this to a Favorites list.
//
//
    var pageName = "Donna ZORN Real Estate";

    function addToFavorites(url)
    {
        if (window.external)
        {
            window.external.AddFavorite(url,pageName)
        }
        else
        { 
            alert("Sorry! Your browser doesn't support this function.");
        }
    }



    N4 = false                                                       ;
    N6 = false                                                       ;
    IE = false                                                       ;

//
//    Browser
//
//    This provides a method for defining the browser.
//
function Browser() {
    browser = navigator.appName                                      ;
    browserNum = parseInt(navigator.appVersion)                      ;
    if ((browser == "Netscape") && (browserNum < 5)) N4 = true       ;
    else if ((browser == "Netscape") && (browserNum > 4)) N6 = true  ;
    else IE = true                                                   ;
}
