function CSimuladorDeSeguro() {
	this.PaginaAtual = -1;
	this.Url = "";
	
	
	this.Reset = function() {
		this.PaginaAtual = 0;
		this.Url = "";	
	}
	
	
		
	
	this.Init = function(Url) {
		var self;
		self = this;
		self.PaginaAtual = 0;
		self.Url = Url;
	}
	
	this.Fechar = function() {
		var self;
		self = this;		
		document.getElementById("divWorkplaceSeguro").style.display = "none";
		self.Reset();
	}
	
	this.PaginaAnterior = function() {
		var self;
		var objAjax;
		var hldTrataRetorno = function(valor) {
			//Ao receber a nova página analisa se deve ou não colocar os dados
			//de ambientes passados		
			document.getElementById("divWorkplaceSeguro").innerHTML = valor;
			document.getElementById("divWorkplaceSeguro").style.display = "block";		
		}		
		self = this;
		self.PaginaAtual = self.PaginaAtual - 1;
		objAjax = new Ajax();
		switch(self.PaginaAtual) {
			case 1:
				objAjax.doGet(self.Url + "/static/simuladores/simuladordeseguro/simuladordeseguro01.html",hldTrataRetorno);
				break;
			case 2:
				objAjax.doGet(self.Url + "/static/simuladores/simuladordeseguro/simuladordeseguro02.html",hldTrataRetorno);
				break;
			case 3:
				objAjax.doGet(self.Url + "/static/simuladores/simuladordeseguro/simuladordeseguro03.html",hldTrataRetorno);
				break;
			case 4:
				objAjax.doGet(self.Url + "/static/simuladores/simuladordeseguro/simuladordeseguro04.html",hldTrataRetorno);
				break;
		}

	
	}	
	
	this.PaginaProxima = function() {
		var self;
		var objAjax;
		var hldTrataRetorno = function(valor) {
			//Ao receber a nova página analisa se deve ou não colocar os dados
			//de ambientes passados		
			document.getElementById("divWorkplaceSeguro").innerHTML = valor;
			document.getElementById("divWorkplaceSeguro").style.display = "block";		
		}		
		self = this;
		self.PaginaAtual = self.PaginaAtual + 1;
		objAjax = new Ajax();
		switch(self.PaginaAtual) {
			case 1:
				objAjax.doGet(self.Url + "/static/simuladores/simuladordeseguro/simuladordeseguro01.html",hldTrataRetorno);
				break;
			case 2:
				objAjax.doGet(self.Url + "/static/simuladores/simuladordeseguro/simuladordeseguro02.html",hldTrataRetorno);
				break;
			case 3:
				objAjax.doGet(self.Url + "/static/simuladores/simuladordeseguro/simuladordeseguro03.html",hldTrataRetorno);
				break;
			case 4:
				objAjax.doGet(self.Url + "/static/simuladores/simuladordeseguro/simuladordeseguro04.html",hldTrataRetorno);
				break;
		}
		
		
	}
}
