

/*
For making changes in the script you just have to 
change the values of the following variables.
*/


/* Properties to check 

Whatever the properties you want to check on client's browser,
assign them a value of 1 else make it other than 1.


Only those properties will be checked that are set to 1.
*/


//	For browser type
var CHK_IE		= 1;		// Internet Explorer
var CHK_NN		= 1;		// Netscape Navigator
var CHK_MOZ		= 0;		// Mozilla
var CHK_OPERA	= 0;		// Opera
var CHK_SAFARI	= 1;		// Safari

//	For Colordepth and Screen Resolution
var CHK_COLORDEPTH	= 1;  // pertains to color depth (16bit, 24bit, etc.)
var CHK_RESOLUTION	= 1;  // pertains to pixel resolution of the user


// If you want to prompt with a customized message set the 
// variable "CUSTOM_MESSAGE" to 1 and assign your custom message
// to the variable "MESSAGE". if variable "CUSTOM_MESSAGE" is not 
// equal to 1 default message will be prompted.

var CUSTOM_MESSAGE = 1;
var MESSAGE = "This website is optimized for Internet Explorer 5, Netscape Navigator 6 and newer. To see the site properly you should have at least 1024x768 pixel screen resolution and your monitor should be able to display millions of colors. If you see this message your current set-up does not meet one of these criteria.";

// Browser versions

// For checking a particular version or above assign the version no. to the 
// corresponding variable, value must be Numerical.

var IE_VERSION		= 5;	// Internet Explorer
var NN_VERSION		= 4;	// Netscape Navigator
var MOZ_VERSION		= 4;	// Mozilla
// Version of safari couldn't be tracked.
// Only one version of Opera can be tracked. Tracking the version dynamically
// would not be possible.

// will check for screen resolution if var CHK_RESOLUTION is set to 1
// minimum screen width to be checked
var wid = 1024;

// minimum screen height to be checked
var hgt = 768;

// will check for COLOR DEPTH if var CHK_COLORDEPTH is set to 1
// Minimum colordepth in bits
var clr = 16;


/* 
To redirect to any other file just change the value of 
	variable "act_alert" from 'Y' to any other value and assign the path
	of the file to which you have to redirect to variable "redirect_url".
For restoring it to give alert change the value back to 'Y'.
  'Y' is to be in caps only between Singe quotes only. i.e. 'Y'
*/
var act_alert='Y';
var redirect_url="http://www.tradebooster.com"

/* Customizing expiry of the cookie;

There are two ways to define expiry of the cookie.

1) Define no. of days from the time of setting the cookie for the first time.
	
For this just set the value of the variable "chk_exp_by_days" to 'Y'.
'Y' is to be in caps only between Singe quotes only. i.e. 'Y'.

After that assign no. of days for expiry of the cookie to the variable
"days".
 
 Example:
	var chk_exp_by_days = 'Y';
	var days = 180;
	
2) Define exact date on which cookie has to be expired.

To set expiry on to a particular date just change the value of the 
variable "chk_exp_by_days" from 'Y' to any other value and assign 
the values of following three variables to set the date.

Exmaple : To set " 20 October 2003" we can write as

		var chk_exp_by_days = 'N'; 
			// first set this variable to any value other than 'Y'
		
		var day_of_expiry = 20;		// (DD)
		var month_of_expiry = 10;	// (MM)
		var year_of_expiry = 2003;	// (YYYY)
		
*/

var chk_exp_by_days = 'Y';

var days = 180;

var day_of_expiry = 1;		// (DD)
var month_of_expiry = 3;	// (MM)
var year_of_expiry = 2004;	// (YYYY)


