// © RiversMarshall.com
// You are free to use and modify this script for your own purposes. 
// If you uilize this script as-is, please give credit in your code comments.

var navBrowser = navigator.userAgent;

// Check browser name // Check IE Version // Check Firefox verion
if (navBrowser.indexOf("MSIE") < 0 && navBrowser.indexOf("Gecko") < 0 ) {
	window.alert("NessCustomHomes.com was designed for Firefox 2.0+ and Internet Explorer 6.0+. This site may not function as designed using a different browser.");
	window.alert(navigator.userAgent);
	}
else if (navBrowser.indexOf("MSIE") > 0 && navBrowser.substring (navBrowser.indexOf("MSIE")+5, navBrowser.indexOf (".", navBrowser.indexOf("MSIE") )) < 6) {
	window.alert("NessCustomHomes.com was designed for Firefox 2.0+ and Internet Explorer 6.0+. This site may not function as designed using an older version of IE.");
	}
else if (navBrowser.indexOf("Gecko") > 0 && navBrowser.substring (navBrowser.indexOf("Gecko")+23, navBrowser.indexOf (".", navBrowser.indexOf("Gecko") )) < 2) {
	window.alert("NessCustomHomes.com was designed for Firefox 2.0+ and Internet Explorer 6.0+. This site may not function as designed using an older version of Firefox.");
	} // end if

//var winPopUp = window.open("", "PopUpVerify", "width=100 ,height=100, directories=no, menubar=no, toolbar=no");

// Check for pop-up blocking
//if (winPopUp) {
//	winPopUp.close();
//	}
//else {
//	window.alert("NessCustomHomes.com uses pop-up windows to show larger versions of images. You may need to disable your pop-up blocking to fully use this site.");
//	} // end if


