	/**************************************************************************
	**_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_**
	**_- Classe GoldenPainel _- por Fernando Arroyo _- GoldenLight _-_-_-_-_-**
	**_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_**
	**************************************************************************/

	var GoldenPainel=function(){
		/*_- + Configurações do Painel -_*/
			this.Config={
				Ajax:true,
				ArquivoConteudo:"",
				AlvoResultado:"",
				Retorno:function(){
					return false;
				}
			}
		/*_- - Configurações do Painel -_*/
		
		/*_- + Configurações -_*/
			this.DefinirAjax=function(valor){
				this.Config.Ajax=valor;
			}
			this.DefinirArquivoConteudo=function(valor){
				this.Config.ArquivoConteudo=valor;
			}
			this.DefinirAlvoResultado=function(valor){
				this.Config.AlvoResultado=valor;
			}
		/*_- - Configurações -_*/
		
		/*_- + Parametrização -_*/
			this.Parametrizacao=function(){
				ParametrosGoldenPainel=new GoldenParametros;
				ParametrosGoldenPainel.DefinirParametro("Ajax",this.Config.Ajax);
				ParametrosGoldenPainel.DefinirParametro("ArquivoConteudo",this.Config.ArquivoConteudo);
				ParametrosGoldenPainel.DefinirParametro("AlvoResultado",this.Config.AlvoResultado);
				ParametrosGoldenPainel.DefinirParametro("Retorno",this.Config.Retorno());
			}
		/*_- - Parametrização -_*/
		
		/*_- + Acessar Conteúdo -_*/
			this.Pagina=function(Pagina){
				this.Parametrizacao();
				$.ajax({
					type: "POST",
					url: ParametrosGoldenPainel.AcessarParametro("ArquivoConteudo"),
					data: Pagina,
					success: function(resultadoObtido){
						$(".__GoldenPainelRolagem__").scrollLeft(0);
						$(ParametrosGoldenPainel.AcessarParametro("AlvoResultado")).attr("innerHTML",resultadoObtido);
					}
				});
			}
		/*_- - Acessar Conteúdo -_*/
		
		/*_- + Interatividade Conteúdo -_*/
			this.Rolar=function(direcao){
				switch(direcao){
					case "esquerda":
						$(".__GoldenPainelRolagem__").animate({
							scrollLeft: ($(".__GoldenPainelRolagem__").scrollLeft()+192)
						},300);
						$(".__GoldenPainelRolagem__").animate({
							scrollLeft: ($(".__GoldenPainelRolagem__").scrollLeft()+152)
						},600);
						$(".__GoldenPainelRolagem__").animate({
							scrollLeft: ($(".__GoldenPainelRolagem__").scrollLeft()+172)
						},900);
					break;
					case "direita":
						$(".__GoldenPainelRolagem__").animate({
							scrollLeft: ($(".__GoldenPainelRolagem__").scrollLeft()-152)
						},300);
						$(".__GoldenPainelRolagem__").animate({
							scrollLeft: ($(".__GoldenPainelRolagem__").scrollLeft()-192)
						},600);
						$(".__GoldenPainelRolagem__").animate({
							scrollLeft: ($(".__GoldenPainelRolagem__").scrollLeft()-172)
						},900);
					break;
				}
			}
		/*_- - Interatividade Conteúdo -_*/
	}