Northwest Habitat Institute
<%
On Error Resume Next
strNavBarURL = "nav_ns.asp" 'default navbar for no-script browsers
'-- get browser type --
strBType = "NS" 'no script support
Set objBCap = Server.CreateObject("MSWC.BrowserType")
'Set objBCap = Server.CreateObject("cyScape.browserObj")
strBrowser = objBCap.Browser
strVersion = objBCap.Version
'Response.Write(strBrowser & " " & strVersion)
If Not IsNumeric(strVersion) Then strVersion = "0"
If objBCap.Script Then
strBType = "JS" 'JavaScript support
strNavBarURL = "./nav_js.asp?section=1"
strFrameURL = "./home/home.asp"
End If
If strBrowser = "Netscape" And strVersion >= "4" Then
strBType = "JS" 'Netscape Navigator 4+
strNavBarURL = "./nav_js.asp?section=1"
strFrameURL = "./home/home.asp"
End If
If strBrowser = "Netscape" And strVersion >= "6" Then
strBType = "JS" 'Netscape Navigator 6+
strNavBarURL = "./nav_js.asp?section=1"
strFrameURL = "./home/home.asp"
End If
If strBrowser = "IE" And strVersion >= "4" Then
strBType = "I4" 'Internet Explorer 4+
strNavBarURL = "nav_i4.asp"
strFrameURL = "./home/home.asp"
End If
'load the specified page into main window if included in Request
strRequestURL = Request.QueryString("pageurl") 'page to load in main window
If Len(strRequestURL) Then strFrameURL = strRequestURL
'load default 'no script' main page if no other page specified
If Len(strFrameURL) = 0 Then strFrameURL = "main_any.asp"
'Added to make refresh work.
'If Session("CurrentPage") <> "null" Then
strFrameURL = Session("CurrentPage")
'Else
'strFrameURL = "./home/home.asp"
'End If
%>
Welcome to the Northwest Habitat Institute!
These pages are designed to be used with a browser that supports frames.
As you can see by this message, your browser doesn't have frame support.
Your choices at this point are to either upgrade your browser, or
go into our site anyway.
You will be able to use most of the pages without problems.
NHI site best viewed
with Microsoft® Internet Explorer