function browserTest() {
result = "  ";
if( navigator.userAgent.indexOf( "Galeon" ) != -1 ) result = "Galeon";
else if( navigator.userAgent.indexOf( "Gecko" ) != -1 ) result = "Mozilla";
else if( navigator.userAgent.indexOf( "Konqueror" ) != -1 ) result = "Konqueror";
else if( navigator.userAgent.indexOf( "Opera" ) != -1 ) result = "Opera";
else if( navigator.appName.indexOf( "Netscape" ) != -1 ) result = "Netscape";
else if( navigator.appName.indexOf( "Microsoft" ) != -1 ) result = "Internet Explorer";
else result = "Unknown";
return result;
}


//break out of frames

/*
if (top.location != self.location) {
    	top.location = self.location.href
        if(browserTest()=="Opera"){
            alert("Opera users may need to press the refresh button... I'm searching for a work around...")
        }
}
*/




function killbanner() {

    document.all.yl0.style.visibility=ycH;
    document.all.yl1.style.visibility=ycH;
    document.all.yl2.style.visibility=ycH;
    document.all.yl3.style.visibility=ycH;
    r=1;
    yvS==1;
    yvTI!=1;
    clearTimeout(yvTI);
}

if(screen.width){
 if(screen.width>800) {
             document.write('<link rel="stylesheet" href="./styles/global.css" type="text/css">');
         } else {
             document.write('<link rel="stylesheet" href="./styles/noglobal.css" type="text/css">');
 }
}


//**************************************
//    
// Name: Center Popup Windows
// Description:Center popup windows in t
//     he middle of your browser.
// By: Lewis Moten
//
//This code is copyrighted and has// limited warranties.Please see http://
//     www.Planet-Source-Code.com/xq/ASP/txtCod
//     eId.2634/lngWId.2/qx/vb/scripts/ShowCode
//     .htm//for details.//**************************************
//    


function getbrowserwidth()


    {
    if (navigator.userAgent.indexOf("MSIE") > 0)


        {
        return(document.body.clientWidth);
        }
        else


            {
            return window.outerWidth;
            }
        }

        function getbrowserheight()


            {
            if (navigator.userAgent.indexOf("MSIE") > 0)


                {
                return(document.body.clientHeight);
                }
                else


                    {
                    return(window.outerHeight);
                    }
                }

                var popup = new Object()
                function CenterPopup(URL, width, height)


                    {
                    // get center of browser window
                    var X = getbrowserwidth() / 2
                    var Y = getbrowserheight() / 2
                   
                    popup = window.open(URL, 'PopUp',
                    'status=1 ' +
                    'scrollbars=1 ' +
                    'width=' + width + ' ' +
                    'height=' + height + ' ' +
                    'top=' +  ((Y-height)/2) + ' ' +
                    'left=' + (window.screenLeft + (X - (width/2)))
                    )
                   
                    popup.focus()
                }



