// ******************************************************* Set whichBrowser ************************************************
whichBrowser=""
browserVer="0"

// Set numbers array
numbers = new Array()
numbers[0] = 0; numbers[1] = 1; numbers[2] = 2; numbers[3] = 3
numbers[4] = 4; numbers[5] = 5; numbers[6] = 6; numbers[7] = 7
numbers[8] = 8; numbers[9] = 9; numbers[10] = "."
		

	if(document.getElementById) { whichBrowser = "DOM1" }
	if(navigator.appName=="Microsoft Internet Explorer") { whichBrowser = "IE" }
	if((navigator.appName=="Netscape") && (navigator.userAgent.search("Firefox") == -1)) { whichBrowser = "Netscape" }
	if(navigator.userAgent.search("Firefox") != -1){ whichBrowser = "Firefox" }

	if(whichBrowser=="IE"){
	X = navigator.appVersion.search("MSIE")
	X += 5
		if(X != -1) { browserVer = navigator.appVersion.substr(X,8) }
	Y = browserVer.search(";")
		if(Y != -1) { browserVer = browserVer.substr(0,Y) }
	}
	
	if(whichBrowser=="Netscape"){
	// If this is Netscape or Mozilla
	Y = navigator.userAgent.search("Netscape")	// If this is Netscape
		if(Y != -1) { 
			verSubString = navigator.userAgent.substr(Y,navigator.userAgent.length)		// Complete version string
			Y																			// Location of the word "Netscape"
			Y2 = verSubString.search("/")												// Location of "/" after "Netscape"
			Y3 = Y + Y2 + 1																// Location of version number

			browserVerSubstr = navigator.userAgent.substr(Y3,navigator.userAgent.length)  // Get substring
			Y4 = browserVerSubstr.search(" ")					// Get location of trailing spaces

			if(Y4 != -1){ browserVer = navigator.userAgent.substr(Y3,Y4) }	// Version number
			else { browserVer = browserVerSubstr }
			
//message = "userAgent:  " + navigator.userAgent + "\n"
//message += "verSubString:  " + verSubString + "\n"
//message += "Y: " + Y + "\n"
//message += "Y2:  " + Y2 + "\n"
//message += "Y3:  " + Y3 + "\n"
//message += "Y4: " + Y4 + "\n"
//message += "browserVerSubstr: " + browserVerSubstr + "\n"
//message += "whichBrowser: " + whichBrowser + "\n"
//message += "browserVer:  " + browserVer
//alert(message)


			if(browserVer < 6.2) { location.href="http://www.hollyandjeremy.com/notDom1Compliant.html" }
		}
		// If this isn't Netscape, but still has "Mozilla"
		// in the userAgent string, this must be Mozilla.
		else if(navigator.userAgent.search("Mozilla") != -1){
		whichBrowser = "Mozilla"
				
		Y = navigator.userAgent.search("rv:")
		verSubString = navigator.userAgent.substr(Y+3,navigator.userAgent.length)
		
			// Step through the version substring, saving the contents to 
			// the browserVer variable.  Stop with a character that is not
			// a number or a decimal point is encountered.
			
			browserVer = ""
			for(i=0; i < verSubString.length; i++){
			BREAK = 1
				for(j=0; j < numbers.length; j++){
					if(verSubString.charAt(i) == numbers[j]) { browserVer += verSubString.charAt(i); BREAK=0 }
				}
			if(BREAK==1) { break }
			} // End for
		} // End else
	} // End If ... Netscape
	
	if(whichBrowser=="Firefox"){
		n = navigator.userAgent.search("Firefox")
		browserVer = navigator.userAgent.substr(n+8,navigator.userAgent.length)
	} // End if(whichBrowser=="Firefox")

// If browser is not at all Dom1 compliant, take user to error page
if(!document.getElementById) { location.href="http://www.hollyandjeremy.com/notDom1Compliant.html" }
if(location.href.search("notDom1Compliant.html") == -1){
	if((whichBrowser == "IE") && (browserVer < 5.5)) { location.href="http://www.hollyandjeremy.com/notDom1Compliant.html" }
}
// ************************************************ End of Browswer version check *******************************************