/*
 *
 * GoldenVitrine
 * Desenvolvedor: Fernando Arroyo
 * GoldenLight [ fernando.arroyo@goldenlight.biz ]
 * 31.08.2009
 *
 */
	
	var GoldenVitrineV2=function(Parametros){
		
		/*
		 * Parâmetros:
		 * 
		 * Itens: array[ [ Nome, Descrição, Imagem, Miniatura ] ]
		 * Alvo: Objeto
		 * 
		 */
		
		GoldenVitrineV2_SomenteLeitura={
			ImagemSelecionada:0
		}
		
		this.Nova=function(){
			
			GoldenVitrine_Funcoes={
				 RolarMiniaturas:this.RolarMiniaturas
				,SelecionarMiniatura:this.SelecionarMiniatura
				,SelecionarDestaque:this.SelecionarDestaque
			}

			/*_-_-_- + Elemento contendo o Botão Subir + -_-_-_*/
				__gV__ElementoPaiSubir = document.createElement("div");
				__gV__ElementoPaiSubir.style.display = "inline-block";
				__gV__ElementoPaiSubir.style.position = "absolute";
				__gV__ElementoPaiSubir.style.top = "10px";
				__gV__ElementoPaiSubir.style.left = "225px";
				__gV__ElementoPaiSubir.style.zIndex = "999999";
				__gV__ElementoPaiSubir.style.width = "13px";
				__gV__ElementoPaiSubir.style.height = "13px";
				__gV__ElementoPaiSubir.style.textAlign = "center";
			/*_-_-_- - Elemento contendo o Botão Subir - -_-_-_*/

			/*_-_-_- + Elemento contendo o Link do Botão Subir + -_-_-_*/
				__gV__ElementoLinkSubir = document.createElement("a");
				__gV__ElementoLinkSubir.setAttribute("href","javascript:void(0);");
				__gV__ElementoLinkSubir.style.textDecoration="none";
				__gV__ElementoLinkSubir.onclick=function(){
					GoldenVitrine_Funcoes.RolarMiniaturas("Subir");
				};
				__gV__ElementoLinkSubir.onmouseover=function(){

				};
				__gV__ElementoLinkSubir.onmouseout=function(){

				};
			/*_-_-_- - Elemento contendo o Link do Botão Subir - -_-_-_*/

			/*_-_-_- + Elemento Botão Subir + -_-_-_*/
				__gV__ElementoBotaoSubir = document.createElement("img");
				__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaBrancaVitrineV2.png");
				__gV__ElementoBotaoSubir.setAttribute("alt","");
				__gV__ElementoBotaoSubir.style.width = "13px";
				__gV__ElementoBotaoSubir.style.height = "13px";
				__gV__ElementoBotaoSubir.style.border = "none";
			/*_-_-_- - Elemento Botão Subir - -_-_-_*/

			/*_-_-_- + Elemento contendo a Faixa de Miniaturas + -_-_-_*/
				__gV__ElementoFaixaMiniaturas = document.createElement("div");
				__gV__ElementoFaixaMiniaturas.setAttribute("id","__GoldenVitrine__FaixaMiniaturas__")
				__gV__ElementoFaixaMiniaturas.setAttribute("class","slide_geral_home_golden_guia")
				__gV__ElementoFaixaMiniaturas.style.display = "inline-block";
				__gV__ElementoFaixaMiniaturas.style.position = "absolute";
				__gV__ElementoFaixaMiniaturas.style.left = "377px";
				__gV__ElementoFaixaMiniaturas.style.top = "0px";
				__gV__ElementoFaixaMiniaturas.style.width = "247px";
				__gV__ElementoFaixaMiniaturas.style.overflow = "hidden";
			/*_-_-_- - Elemento contendo a Faixa de Miniaturas - -_-_-_*/

			/*_-_-_- + Elemento contendo as Miniaturas + -_-_-_*/
				__gV__ElementoMiniaturas = document.createElement("div");
				__gV__ElementoMiniaturas.setAttribute("id","__GoldenVitrine__Miniaturas__")
				__gV__ElementoMiniaturas.style.display = "inline-block";
				__gV__ElementoMiniaturas.style.position = "relative";
				__gV__ElementoMiniaturas.style.float = "left";
				__gV__ElementoMiniaturas.style.overflow = "hidden";
				__gV__ElementoMiniaturas.style.width = "245px";
				__gV__ElementoMiniaturas.style.height = "290px";
			/*_-_-_- - Elemento contendo as Miniaturas - -_-_-_*/

			/*_-_-_- + Elemento contendo o Botão Descer + -_-_-_*/
				__gV__ElementoPaiDescer = document.createElement("div");
				__gV__ElementoPaiDescer.style.display = "inline-block";
				__gV__ElementoPaiDescer.style.position = "absolute";
				__gV__ElementoPaiDescer.style.top = "270px";
				__gV__ElementoPaiDescer.style.left = "225px";
				__gV__ElementoPaiDescer.style.zIndex = "999999";
				__gV__ElementoPaiDescer.style.width = "13px";
				__gV__ElementoPaiDescer.style.height = "13px";
				__gV__ElementoPaiDescer.style.paddingTop = "0px";
				__gV__ElementoPaiDescer.style.textAlign = "center";
			/*_-_-_- - Elemento contendo o Botão Descer - -_-_-_*/

			/*_-_-_- + Elemento contendo o Link do Botão Descer + -_-_-_*/
				__gV__ElementoLinkDescer = document.createElement("a");
				__gV__ElementoLinkDescer.setAttribute("href","javascript:void(0);");
				__gV__ElementoLinkDescer.style.textDecoration="none";
				__gV__ElementoLinkDescer.onclick=function(){
					GoldenVitrine_Funcoes.RolarMiniaturas("Descer");
				};
				__gV__ElementoLinkDescer.onmouseover=function(){
				};
				__gV__ElementoLinkDescer.onmouseout=function(){

				};
			/*_-_-_- - Elemento contendo o Link do Botão Descer - -_-_-_*/

			/*_-_-_- + Elemento Botão Descer + -_-_-_*/
				__gV__ElementoBotaoDescer = document.createElement("img");
				__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoCinzaVitrineV2.png");
				__gV__ElementoBotaoDescer.setAttribute("alt","");
				__gV__ElementoBotaoDescer.style.width = "13px";
				__gV__ElementoBotaoDescer.style.height = "13px";
				__gV__ElementoBotaoDescer.style.border = "none";
			/*_-_-_- - Elemento Botão Descer - -_-_-_*/

			/*_-_-_- + Elemento Destaque + -_-_-_*/
				__gV__ElementoDestaque = document.createElement("div");
				__gV__ElementoDestaque.style.display = "block";
				__gV__ElementoDestaque.style.position = "absolute";
				__gV__ElementoDestaque.style.top = "5px";
				__gV__ElementoDestaque.style.left = "5px";
				__gV__ElementoDestaque.style.width = "372px";
				__gV__ElementoDestaque.style.height = "290px";
				__gV__ElementoDestaque.style.overflow = "hidden";
				__gV__ElementoDestaque.style.backgroundColor = "#FFFFFF";
				__gV__ElementoDestaque.style.border = "none";
			/*_-_-_- - Elemento Destaque - -_-_-_*/

			/*_-_-_- + Elemento Destaque Camada contendo Imagem + -_-_-_*/
				__gV__ElementoDestaqueCamada = document.createElement("span");
				__gV__ElementoDestaqueCamada.setAttribute("id","__GoldenVitrine__sDestaque__");
				__gV__ElementoDestaqueCamada.style.display = "block";
				__gV__ElementoDestaqueCamada.style.position = "absolute";
				__gV__ElementoDestaqueCamada.style.top = "0px";
				__gV__ElementoDestaqueCamada.style.left = "0px";
				__gV__ElementoDestaqueCamada.style.width = "372px";
				__gV__ElementoDestaqueCamada.style.height = "290px";
				__gV__ElementoDestaqueCamada.style.filter="alpha(opacity=25)";
				__gV__ElementoDestaqueCamada.style.opacity=0.25;
			/*_-_-_- - Elemento Destaque Camada contendo Imagem - -_-_-_*/

			/*_-_-_- + Elemento Destaque Imagem + -_-_-_*/
				__gV__ElementoImagemDestaque = document.createElement("img");
				__gV__ElementoImagemDestaque.setAttribute("id","__GoldenVitrine__iDestaque__");
				__gV__ElementoImagemDestaque.style.width = "372px";
				__gV__ElementoImagemDestaque.style.border = "none";
			/*_-_-_- - Elemento Destaque Imagem - -_-_-_*/

			/*_-_-_- + Elemento contendo o Link do Destaque + -_-_-_*/
				__gV__ElementoLinkDestaque = document.createElement("a");
				__gV__ElementoLinkDestaque.setAttribute("href","javascript:void(0);");
				__gV__ElementoLinkDestaque.setAttribute("rel","i=0");
				__gV__ElementoLinkDestaque.style.textDecoration="none";
				__gV__ElementoLinkDestaque.onclick = function(){
					Parametros.Itens[(parseInt(__gV__ElementoLinkDestaque.rel.toString().split("=")[1]))][4]();
				}
				__gV__ElementoLinkDestaque.onmouseover=function(){

				};
				__gV__ElementoLinkDestaque.onmouseout=function(){

				};
			/*_-_-_- - Elemento contendo o Link do Destaque - -_-_-_*/

			/*_-_-_- + Elemento Descrição + -_-_-_*/
				__gV__ElementoDescricao = document.createElement("div");
				__gV__ElementoDescricao.setAttribute("id","__GoldenVitrine__Descricao__")
				__gV__ElementoDescricao.style.display = "block";
				__gV__ElementoDescricao.style.position = "absolute";
				__gV__ElementoDescricao.style.top = "212.5px";
				__gV__ElementoDescricao.style.left = "5px";
				__gV__ElementoDescricao.style.width = "362px";
				__gV__ElementoDescricao.style.height = "72.5px";
				__gV__ElementoDescricao.style.padding = "5px";
				__gV__ElementoDescricao.style.fontFamily = "Verdana";
				__gV__ElementoDescricao.style.fontSize = "11px";
				__gV__ElementoDescricao.style.fontWeight = "bolder";
				__gV__ElementoDescricao.style.color = "#FFFFFF";
				__gV__ElementoDescricao.style.overflow = "hidden";
				__gV__ElementoDescricao.style.backgroundImage = "url("+window["CaminhoRaiz"]+"/goldenguia/img/bk_preto_transparente.png)";
			/*_-_-_- - Elemento Descrição - -_-_-_*/

			/*_-_-_- + Elemento Pai + -_-_-_*/
				__gV__ElementoPai = document.createElement("div");
				__gV__ElementoPai.style.display = "inline-block";
				__gV__ElementoPai.style.position = "relative";
				__gV__ElementoPai.style.cssFloat = "left";
				__gV__ElementoPai.style.width = "630px";
				__gV__ElementoPai.style.height = "300px";
				__gV__ElementoPai.style.overflow = "hidden";
				__gV__ElementoPai.style.backgroundColor = "#ededed";
				__gV__ElementoPai.style.border = "none";
			/*_-_-_- - Elemento Pai - -_-_-_*/

			/*_-_-_- + Hierarquia de Elementos + -_-_-_*/
				__gV__ElementoLinkSubir.appendChild(__gV__ElementoBotaoSubir);
				__gV__ElementoPaiSubir.appendChild(__gV__ElementoLinkSubir);
				__gV__ElementoFaixaMiniaturas.appendChild(__gV__ElementoPaiSubir);
				__gV__ElementoFaixaMiniaturas.appendChild(__gV__ElementoMiniaturas);
				__gV__ElementoLinkDescer.appendChild(__gV__ElementoBotaoDescer);
				__gV__ElementoPaiDescer.appendChild(__gV__ElementoLinkDescer);
				__gV__ElementoFaixaMiniaturas.appendChild(__gV__ElementoPaiDescer);
				__gV__ElementoLinkDestaque.appendChild(__gV__ElementoImagemDestaque);
				__gV__ElementoDestaqueCamada.appendChild(__gV__ElementoLinkDestaque);
				__gV__ElementoDestaque.appendChild(__gV__ElementoDestaqueCamada);
				__gV__ElementoPai.appendChild(__gV__ElementoFaixaMiniaturas);
				__gV__ElementoPai.appendChild(__gV__ElementoDestaque);
				__gV__ElementoPai.appendChild(__gV__ElementoDescricao);
				Parametros.Alvo.appendChild(__gV__ElementoPai);
			/*_-_-_- - Hierarquia de Elementos - -_-_-_*/

			for(xGv_miniaturas=0;xGv_miniaturas<Parametros.Itens.length;xGv_miniaturas++){
				if(Parametros.Itens[xGv_miniaturas][2]){
					__gV__ElementoMiniaturas.appendChild(this.GoldenMiniaturas({
						Indice:xGv_miniaturas,
						SelecionarMiniatura:GoldenVitrine_Funcoes.SelecionarMiniatura,
						ImagemSelecionada:GoldenVitrineV2_SomenteLeitura.ImagemSelecionada,
						SelecionarDestaque:GoldenVitrine_Funcoes.SelecionarDestaque
					}));
				}
				$("#__GoldenMiniaturas_i"+xGv_miniaturas+"__").animate({
					 width:"110px"
					,height:"86px"
					,filter:"alpha(opacity=40)"
					,opacity:0.4
				},600);
				$("#__GoldenMiniaturas_s"+xGv_miniaturas+"__").animate({
					 top:"0px"
					,left:"0px"
				},600);
			}
			GoldenVitrineV2_SomenteLeitura.ImagemSelecionada=0;
			GoldenVitrine_Funcoes.SelecionarMiniatura(1);
			GoldenVitrine_Funcoes.SelecionarDestaque(0);
		}
		
		/*_-_-_- + Criação das Miniaturas + -_-_-_*/
			this.GoldenMiniaturas=function(ParametrosMiniaturas){
				
				/*
				 * Parâmetros:
				 * 
				 * Indice: Inteiro
				 * SelecionarMiniatura: Função
				 * SelecionarDestaque: Função
				 * ImagemSelecionada: Inteiro
				 * 
				 */
				
				/*_-_-_- + Elemento contendo o Link da Miniatura + -_-_-_*/
					__gM__ElementoLink = document.createElement("a");
					__gM__ElementoLink.setAttribute("href","javascript:void(0);");
					__gM__ElementoLink.setAttribute("rel","i="+ParametrosMiniaturas.Indice);
					__gM__ElementoLink.style.textDecoration="none";
					__gM__ElementoLink.onclick=function(){
						if( (parseInt(__gV__ElementoLinkDestaque.rel.toString().split("=")[1])) == (parseInt(this.rel.toString().split("=")[1])) ){
							Parametros.Itens[(parseInt(__gV__ElementoLinkDestaque.rel.toString().split("=")[1]))][4]();
						}
						else{
							ParametrosMiniaturas.ImagemSelecionada=(parseInt(this.rel.toString().split("=")[1]));
							ParametrosMiniaturas.SelecionarMiniatura((parseInt(this.rel.toString().split("=")[1])+1));
							ParametrosMiniaturas.SelecionarDestaque((parseInt(this.rel.toString().split("=")[1])));
						}
					};
					__gM__ElementoLink.onmouseover=function(){
						if(this.rel!=__gV__ElementoLinkDestaque.rel){
							this.parentNode.style.backgroundImage="url(/goldenguia/img/bk_botao_over_slide_golden_guia.jpg)";
						}
					};
					__gM__ElementoLink.onmouseout=function(){
						if(this.rel!=__gV__ElementoLinkDestaque.rel){
							this.parentNode.style.backgroundImage="url(/goldenguia/img/bk_botao_slide_golden_guia.jpg)";
						}
					};
				/*_-_-_- - Elemento contendo o Link da Miniatura - -_-_-_*/
				
				/*_-_-_- + Elemento contendo a Camada da Miniatura + -_-_-_*/
					__gM__ElementoCamada = document.createElement("span");
					__gM__ElementoCamada.setAttribute("id","__GoldenMiniaturas_s"+ParametrosMiniaturas.Indice+"__")
					__gM__ElementoCamada.style.zIndex = 99;
					__gM__ElementoCamada.style.display = "block";
					__gM__ElementoCamada.style.position = "absolute";
					__gM__ElementoCamada.style.top = "0px";
					__gM__ElementoCamada.style.left = "0px";
					__gM__ElementoCamada.style.width = "230px";
					__gM__ElementoCamada.innerHTML = Parametros.Itens[ParametrosMiniaturas.Indice][0];
				/*_-_-_- - Elemento contendo a Camada da Miniatura - -_-_-_*/
	
				/*_-_-_- + Elemento contendo a Camada Pai da Miniatura + -_-_-_*/
					__gM__ElementoPaiCamada = document.createElement("div");
					__gM__ElementoPaiCamada.setAttribute("id","__GoldenMiniaturas_d"+ParametrosMiniaturas.Indice+"__")
					__gM__ElementoPaiCamada.style.zIndex = 100;
					__gM__ElementoPaiCamada.style.display = "block";
					__gM__ElementoPaiCamada.style.position = "relative";
					__gM__ElementoPaiCamada.style.cssFloat = "left";
				/*_-_-_- - Elemento contendo a Camada Pai da Miniatura - -_-_-_*/
	
				/*_-_-_- + Elemento Pai da Miniatura + -_-_-_*/
					__gM__ElementoPai = document.createElement("div");
					__gM__ElementoPai.setAttribute("id","__GoldenMiniaturas_p"+ParametrosMiniaturas.Indice+"__")
					__gM__ElementoPai.setAttribute("class","slide_botao_home_golden_guia");
					__gM__ElementoPai.style.display = "inline-block";
					__gM__ElementoPai.style.position = "absolute";
					__gM__ElementoPai.style.top = (75*ParametrosMiniaturas.Indice)+"px";
					__gM__ElementoPai.style.left = "0px";
					__gM__ElementoPai.style.height = "55px";
					__gM__ElementoPai.style.overflow = "hidden";
				/*_-_-_- - Elemento Pai da Miniatura - -_-_-_*/
				
				/*_-_-_- + Hierarquia de Elementos + -_-_-_*/
					__gM__ElementoPaiCamada.appendChild(__gM__ElementoCamada)
					__gM__ElementoLink.appendChild(__gM__ElementoPaiCamada)
					__gM__ElementoPai.appendChild(__gM__ElementoLink);
				/*_-_-_- - Hierarquia de Elementos - -_-_-_*/

				return __gM__ElementoPai;
			}
		/*_-_-_- - Criação das Miniaturas - -_-_-_*/
		
		/*_-_-_- + Rolagem das Miniaturas + -_-_-_*/
			this.RolarMiniaturas=function(Direcao){
				switch(Direcao){
					case "Subir":
						if ($("#__GoldenVitrine__Miniaturas__").scrollTop() > 0) {
							$("#__GoldenVitrine__Miniaturas__").animate({
								scrollTop: ($("#__GoldenVitrine__Miniaturas__").scrollTop() - 75) + "px"
							}, 600, "swing",function(){
								__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaCinzaVitrineV2.png");
								__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoCinzaVitrineV2.png");
								if(($("#__GoldenVitrine__Miniaturas__").scrollTop()/75)==document.getElementById("__GoldenVitrine__iDestaque__").parentNode.rel.toString().split("=")[1]){
									__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaBrancaVitrineV2.png");
								}else if((($("#__GoldenVitrine__Miniaturas__").scrollTop()/75))==document.getElementById("__GoldenVitrine__iDestaque__").parentNode.rel.toString().split("=")[1]-(3)){
									__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoBrancaVitrineV2.png");
								}
							});
						}
						else{
							$("#__GoldenVitrine__Miniaturas__").animate({
								scrollTop: ((document.getElementById("__GoldenVitrine__Miniaturas__").childNodes.length-4)*75) + "px"
							}, 600, "swing",function(){
								__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaCinzaVitrineV2.png");
								__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoCinzaVitrineV2.png");
								if(($("#__GoldenVitrine__Miniaturas__").scrollTop()/75)==document.getElementById("__GoldenVitrine__iDestaque__").parentNode.rel.toString().split("=")[1]){
									__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaBrancaVitrineV2.png");
								}else if((($("#__GoldenVitrine__Miniaturas__").scrollTop()/75))==document.getElementById("__GoldenVitrine__iDestaque__").parentNode.rel.toString().split("=")[1]-(3)){
									__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoBrancaVitrineV2.png");
								}
							});
						}
					break;
					case "Descer":
						if ($("#__GoldenVitrine__Miniaturas__").scrollTop() < ((document.getElementById("__GoldenVitrine__Miniaturas__").childNodes.length-4)*75)) {
							$("#__GoldenVitrine__Miniaturas__").animate({
								scrollTop: ($("#__GoldenVitrine__Miniaturas__").scrollTop() + 75) + "px"
							}, 600, "swing",function(){
								__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaCinzaVitrineV2.png");
								__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoCinzaVitrineV2.png");
								if(($("#__GoldenVitrine__Miniaturas__").scrollTop()/75)==document.getElementById("__GoldenVitrine__iDestaque__").parentNode.rel.toString().split("=")[1]){
									__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaBrancaVitrineV2.png");
								}else if((($("#__GoldenVitrine__Miniaturas__").scrollTop()/75))==document.getElementById("__GoldenVitrine__iDestaque__").parentNode.rel.toString().split("=")[1]-(3)){
									__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoBrancaVitrineV2.png");
								}
							});
						}
						else{
							$("#__GoldenVitrine__Miniaturas__").animate({
								scrollTop: (0) + "px"
							}, 600, "swing",function(){
								__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaCinzaVitrineV2.png");
								__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoCinzaVitrineV2.png");
								if(($("#__GoldenVitrine__Miniaturas__").scrollTop()/75)==document.getElementById("__GoldenVitrine__iDestaque__").parentNode.rel.toString().split("=")[1]){
									__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaBrancaVitrineV2.png");
								}else if((($("#__GoldenVitrine__Miniaturas__").scrollTop()/75))==document.getElementById("__GoldenVitrine__iDestaque__").parentNode.rel.toString().split("=")[1]-(3)){
									__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoBrancaVitrineV2.png");
								}
							});
						}
					break;
				}
			}
		/*_-_-_- - Rolagem das Miniaturas - -_-_-_*/

		/*_-_-_- + Seleção de Imagens + -_-_-_*/
			this.SelecionarMiniatura=function(Indice){
				Indice--;
				if(Indice<(Parametros.Itens.length-2)){
					$("#__GoldenVitrine__Miniaturas__").animate({
						scrollTop: ((Indice-1)*75) + "px"
					}, 600, "swing",function(){
						__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaCinzaVitrineV2.png");
						__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoCinzaVitrineV2.png");
						if(($("#__GoldenVitrine__Miniaturas__").scrollTop()/75)==document.getElementById("__GoldenVitrine__iDestaque__").parentNode.rel.toString().split("=")[1]){
							__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaBrancaVitrineV2.png");
						}else if((($("#__GoldenVitrine__Miniaturas__").scrollTop()/75))==document.getElementById("__GoldenVitrine__iDestaque__").parentNode.rel.toString().split("=")[1]-(3)){
							__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoBrancaVitrineV2.png");
						}
					});
				}
				else{
					$("#__GoldenVitrine__Miniaturas__").animate({
						scrollTop: ($("#__GoldenVitrine__Miniaturas__").scrollTop()) + "px"
					}, 600, "swing",function(){
						__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaCinzaVitrineV2.png");
						__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoCinzaVitrineV2.png");
						if(($("#__GoldenVitrine__Miniaturas__").scrollTop()/75)==document.getElementById("__GoldenVitrine__iDestaque__").parentNode.rel.toString().split("=")[1]){
							__gV__ElementoBotaoSubir.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaCimaBrancaVitrineV2.png");
						}else if((($("#__GoldenVitrine__Miniaturas__").scrollTop()/75))==document.getElementById("__GoldenVitrine__iDestaque__").parentNode.rel.toString().split("=")[1]-(3)){
							__gV__ElementoBotaoDescer.setAttribute("src",window["CaminhoRaiz"]+"/images/"+"SetaBaixoBrancaVitrineV2.png");
						}
					});
				}
			};
		/*_-_-_- - Seleção de Imagens - -_-_-_*/
		
		/*_-_-_- + Seleção de Destaque + -_-_-_*/
			this.SelecionarDestaque=function(Indice){
				if(typeof(window["AutoSelDestaque"])!="undefined"){
					clearTimeout(AutoSelDestaque);
				}
				__gV__ElementoImagemDestaque.setAttribute("src",Parametros.Itens[Indice][3]);
				__gV__ElementoImagemDestaque.setAttribute("alt",Parametros.Itens[Indice][3].toString().split("/")[(Parametros.Itens[Indice][3].toString().split("/").length-1)].split(".")[0]);
				__gV__ElementoLinkDestaque.setAttribute("rel","i="+Indice);
				__gV__ElementoDestaqueCamada.style.filter="alpha(opacity=25)";
				__gV__ElementoDestaqueCamada.style.opacity=0.25;
				$("#__GoldenVitrine__Descricao__").html(
						Parametros.Itens[Indice][1]
					);
				if(typeof(window["AnmTexto"])!="undefined"){
					clearTimeout(AnmTexto);
				}
				$("#__GoldenVitrine__sDestaque__").animate({
					 filter:"alpha(opacity=100)"
					,opacity:1
				},600,"swing",function(){
				$("#__GoldenMiniaturas_i"+Indice+"__").animate({
					 filter:"alpha(opacity=100)"
					,opacity:1
				},600,"swing",function(){
					for(xAlfaMiniaturas=0;xAlfaMiniaturas<document.getElementById("__GoldenVitrine__Miniaturas__").childNodes.length;xAlfaMiniaturas++){
						if (xAlfaMiniaturas != Indice) {
							$("#__GoldenMiniaturas_d" + (xAlfaMiniaturas) + "__").css("border", "solid 2px #D1D1D1");
							$("#__GoldenMiniaturas_i" + (xAlfaMiniaturas) + "__").animate({
								filter: "alpha(opacity=25)",
								opacity: 0.25
							}, 600, "swing",function(){
								$("#__GoldenVitrine__Miniaturas__").scrollTop(Indice*75);								
							});
						}
					}
				});
				});
				ProxIndice=Indice+1;
				if(ProxIndice==Parametros.Itens.length){
					ProxIndice=0;
				}
				AutoSelDestaque = window.setTimeout("_gV.SelecionarDestaque("+ProxIndice+")",20000);
				iGM=0;
				this.SelecionarMiniatura((Indice+1));
				while(document.getElementById("__GoldenMiniaturas_p"+iGM+"__")!=null){
					$("#__GoldenMiniaturas_p"+iGM+"__").css("background-image","url(/goldenguia/img/bk_botao_slide_golden_guia.jpg)");
					$("#__GoldenMiniaturas_p"+iGM+"__ a").css("color","#000000");
					iGM++;
				}
				$("#__GoldenMiniaturas_p"+Indice+"__").css("background-image","url(/goldenguia/img/_bk_botao_over_slide_golden_guia.jpg)");
				$("#__GoldenMiniaturas_p"+Indice+"__ a").css("color","#FFFFFF");
				GoldenVitrineV2_SomenteLeitura.ImagemSelecionada=Indice;
			}
		/*_-_-_- - Seleção de Destaque - -_-_-_*/
		
	}

	/*_-_-_- + Animação do Texto + -_-_-_*/
		AnimarTexto=function(Objeto,Texto,Indice,Tipo){
			Indice++;
			if(Tipo==0){
				document.getElementById(Objeto).childNodes[0].innerHTML="<font style='color:#13A2E4'>"+Texto.substr(0,Indice)+"</font>"+Texto.substr(Indice,(parseInt(Texto.length)-Indice));
			}
			else{
				document.getElementById(Objeto).childNodes[0].innerHTML=Texto.substr(0,Indice)+"<font style='color:#13A2E4'>"+Texto.substr(Indice,(parseInt(Texto.length)-Indice))+"</font>";
			}
			if(Indice<Texto.length){
				AnmTexto = window.setTimeout("AnimarTexto('"+Objeto+"','"+Texto+"',"+Indice+","+Tipo+")",150);
			}
			else{
				if(Tipo==0){
					Tipo=1;
				}
				else{
					Tipo=0;
				}
				AnmTexto = window.setTimeout("AnimarTexto('"+Objeto+"','"+Texto+"',"+(0)+","+Tipo+")",1500);
			}
		}
	/*_-_-_- - Animação do Texto - -_-_-_*/
