
// =================================================================================
// Include File:	jc_BrowserInfo.asp   
	// ****    Copyright © 2000-2004 PromoNet Interactive, Inc.    ****
    // ****              http://www.ecommproject.com               ****
	// ****            All Rights Reserved World Wide.             ****
	// ****Permission is granted to use this code in your projects,**** 
	// ****     as long as this copyright notice is included.      ****
	// ****     If you change this script, please remove the       ****
	// ****     copyright;  This script is provided as-is	       ****
	// ****				with no warrantees or guarantees.	       ****
//================================================================================
// Modification History                                         
// Date			Modified By			Modification Desc                      
// ---------------------------------------------------------------------------------
// 24 Apr 2000	Andrea Williams		Modified isIE4; not tested
// 07 May 2001	Andrea Williams		Added some functions; isIE4 is now tested
//									Updated Copyright Info
// 20 Nov 2001	Andrea Williams		Added msieVersion
// 25 Feb 2003	Andrea Williams		Bug fix applied to canUseImageObjects
// 17 Aug 2004	Andrea Williams		Added Is()
// ---------------------------------------------------------------------------------
// ==================================================================================
<!--
	// ================================================================
	// Function:	Is
	// Purpose:		Returns Object that will allow querying of the 
	//				browser info
	// Version:		1.0
	// ================================================================
	function Is() {
		var strAgent	= navigator.userAgent.toLowerCase();
		var objVersion  = navigator.appVersion;
		this.major = parseInt(objVersion);
		this.minor = parseFloat(objVersion);
		this.ns    = ((strAgent.indexOf('mozilla')   !=   -1) && ((strAgent.indexOf('spoofer')   ==   -1) && (strAgent.indexOf('compatible') ==   -1)));
		this.ns4   = (this.ns && (this.major      ==    4));
		this.ns6   = (this.ns && (this.major      >=    5) && (this.major      <=    6));
		this.ns7   = (this.ns && (this.major      >=    7));
		this.ie    = (strAgent.indexOf("msie")       !=   -1);
		this.ie3   = (this.ie && (this.major      < 4));
		this.ie4   = (this.ie && (this.major      ==    4) && (strAgent.indexOf("msie 4.0")   !=   -1));
		this.ie5   = (this.ie && (this.major      ==    4) && (strAgent.indexOf("msie 5.0")   !=   -1));
		this.ie55  = (this.ie && (this.major      ==    4) && (strAgent.indexOf("msie 5.5")   !=   -1));
		this.ie6  = (this.ie && (strAgent.indexOf("msie 6.0")!=-1) );
	}

	var is = new Is();
	
		
	// ================================================================
	// Function:	canUseImageObjects
	// Purpose:		Determines which browsers can support image OBJECTS
	//				Returns TRUE if Browser supports using image OBJECTS
	// Version:		1.1
	// ****     Copyright © 2000-2003 PromoNet Interactive, Inc.   ****
	// ****	           All Rights Reserved World Wide.             ****
	// ****Permission is granted to use this code in your projects,**** 
	// ****      as long as this copyright notice is included.     ****
	// ================================================================
	function canUseImageObjects () {
		if (navigator.userAgent.indexOf("Mozilla/4.0") != -1)	{
			return(true);
		}
		else if (navigator.userAgent.indexOf("Mozilla/3.0") != -1)	{
			return(true);
		}
		else if (navigator.userAgent.indexOf("Mozilla/2.0") != -1)	{
			return(false);
		}
		else if (navigator.userAgent.indexOf("MSIE") != -1)	{
			return(true);
		}
	}
//-->
