/**
* PlayerDetect
*
* @author			Fabrício Ribeiro Silva
* @version			1.0
* @created			2008/06/05
* @modification		2008/06/19
*
* Copyright (c) 2008 FARS
*
* Application Variables
* */
/* Variables */
var majVersion = new String();
var revVersion = new String();

var majRVersion = new String();
var revRVersion = new String();

/**
* Function	: PlayerDetect
* Definition: Contructor Function
* */
function PlayerDetect (pMajVersion,pRevVersion,pMajRVersion,pRevRVersion){
	this.majVersion = parseInt(pMajVersion);
	this.revVersion = parseInt(pRevVersion);
	
	this.majRVersion = parseInt(pMajRVersion); //9
	this.revRVersion = parseInt(pRevRVersion); //45
}

/**
* Prototypes
* */
PlayerDetect.prototype = {
	/**
	* Function	: PlayerDetect
	* Definition: Get the necessary values and validate
	* entry		: Void
	* exit		: Void
	* */
	PlayerDetect: function(pURLRedirect, pBlnCheck, pBlnCheckRev) {
		if(pBlnCheck != "true"){
			if(this.majVersion == this.majRVersion){
				if(pBlnCheckRev == "true"){
					if(this.revVersion >= this.revRVersion){
					}else{
						window.location = pURLRedirect;
					}
				}
			}else{
				window.location = pURLRedirect;
			}
		}
	}
}