/*
 *
 * GoldenVitrine
 * Desenvolvedor: Fernando Arroyo
 * GoldenLight [ fernando.arroyo@goldenlight.biz ]
 * 31.08.2009
 *
 */
	
	var GoldenVitrine=function(Parametros){
		
		/*
		 * Parâmetros:
		 * 
		 * Itens: array[ [ Nome, Descrição, Imagem, Miniatura ] ]
		 * Alvo: Objeto
		 * 
		 */
		
		this.SomenteLeitura={
			ImagemSelecionada:0
		}
		
		this.Nova=function(){
			
			GoldenVitrine_Funcoes={
				 RolarMiniaturas:this.RolarMiniaturas
				,SelecionarMiniatura:this.SelecionarMiniatura
				,SelecionarDestaque:this.SelecionarDestaque
			}
			
			/*_-_-_- + Mensagem Carregando + -_-_-_*/
				Parametros.Alvo.innerHTML=window["MensagemCarregando"];
			/*_-_-_- - Mensagem Carregando - -_-_-_*/

			/*_-_-_- + Elemento contendo o Botão Subir + -_-_-_*/
				__gV__ElementoPaiSubir = document.createElement("div");
				__gV__ElementoPaiSubir.style.display = "inline-block";
				__gV__ElementoPaiSubir.style.position = "relative";
				__gV__ElementoPaiSubir.style.float = "left";
				__gV__ElementoPaiSubir.style.width = "120px";
				__gV__ElementoPaiSubir.style.height = "37px";
				__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/"+"SetaCimaVitrine.png");
				__gV__ElementoBotaoSubir.setAttribute("alt","");
				__gV__ElementoBotaoSubir.style.width = "18px";
				__gV__ElementoBotaoSubir.style.height = "17px";
				__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.style.display = "inline-block";
				__gV__ElementoFaixaMiniaturas.style.position = "relative";
				__gV__ElementoFaixaMiniaturas.style.float = "left";
				__gV__ElementoFaixaMiniaturas.style.width = "120px";
				__gV__ElementoFaixaMiniaturas.style.height = "518px";
				__gV__ElementoFaixaMiniaturas.style.marginTop = "23.5px";
				__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 = "120px";
				__gV__ElementoMiniaturas.style.height = "444px";
			/*_-_-_- - 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 = "relative";
				__gV__ElementoPaiDescer.style.float = "left";
				__gV__ElementoPaiDescer.style.width = "120px";
				__gV__ElementoPaiDescer.style.height = "37px";
				__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/"+"SetaBaixoVitrine.png");
				__gV__ElementoBotaoDescer.setAttribute("alt","");
				__gV__ElementoBotaoDescer.style.width = "18px";
				__gV__ElementoBotaoDescer.style.height = "17px";
				__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 = "30px";
				if (Parametros.Itens[0][2]) {
					__gV__ElementoDestaque.style.left = "125px";
				}else{
					__gV__ElementoDestaque.style.left = "62.5px";
				}
				__gV__ElementoDestaque.style.width = "500px";
				__gV__ElementoDestaque.style.height = "390px";
				__gV__ElementoDestaque.style.overflow = "hidden";
				__gV__ElementoDestaque.style.backgroundColor = "#FFFFFF";
				__gV__ElementoDestaque.style.border = "solid 1px #DEDEDE";
			/*_-_-_- - 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 = "625px";
				__gV__ElementoDestaqueCamada.style.height = "487.5px";
				__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 = "500px";
				__gV__ElementoImagemDestaque.style.height = "390px";
				__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 = "430px";
				if (Parametros.Itens[0][2]) {
					__gV__ElementoDescricao.style.left = "125px";
				}else{
					__gV__ElementoDescricao.style.left = "62.5px";
				}
				__gV__ElementoDescricao.style.width = "490px";
				if (Parametros.Itens[0][2]) {
					__gV__ElementoDescricao.style.height = "120px";
				}else{
					__gV__ElementoDescricao.style.height = "170px";
				}
				__gV__ElementoDescricao.style.padding = "5px";
				__gV__ElementoDescricao.style.fontFamily = "Verdana";
				__gV__ElementoDescricao.style.fontSize = "12px";
				__gV__ElementoDescricao.style.overflow = "hidden";
				__gV__ElementoDescricao.style.backgroundColor = "#f7f7f7";
			/*_-_-_- - 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";
				if (Parametros.Itens[0][2]) {
					__gV__ElementoPai.style.height = "565px";
				}else{
					__gV__ElementoPai.style.height = "615px";
				}
				__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);
				if(Parametros.Itens[0][2]){
					__gV__ElementoFaixaMiniaturas.appendChild(__gV__ElementoPaiSubir);
				}
				__gV__ElementoFaixaMiniaturas.appendChild(__gV__ElementoMiniaturas);
				__gV__ElementoLinkDescer.appendChild(__gV__ElementoBotaoDescer);
				__gV__ElementoPaiDescer.appendChild(__gV__ElementoLinkDescer);
				if(Parametros.Itens[0][2]){
					__gV__ElementoFaixaMiniaturas.appendChild(__gV__ElementoPaiDescer);
				}
				__gV__ElementoLinkDestaque.appendChild(__gV__ElementoImagemDestaque);
				__gV__ElementoDestaqueCamada.appendChild(__gV__ElementoLinkDestaque);
				__gV__ElementoDestaque.appendChild(__gV__ElementoDestaqueCamada);
				if(Parametros.Itens[0][2]){
					__gV__ElementoPai.appendChild(__gV__ElementoFaixaMiniaturas);
				}
				__gV__ElementoPai.appendChild(__gV__ElementoDestaque);
				__gV__ElementoPai.appendChild(__gV__ElementoDescricao);
				PreLoader(0,Parametros);
			/*_-_-_- - 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:this.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);
			}
			this.SomenteLeitura.ImagemSelecionada=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(){
						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(){
						/*$("#__GoldenMiniaturas_p"+ParametrosMiniaturas.Indice+"__").animate({
							height:"111px"
						},600);
						__gM__ElementoProduto = document.createElement("span");
						__gM__ElementoProduto.style.display="block";
						__gM__ElementoProduto.style.position="absolute";
						__gM__ElementoProduto.style.top="86px";
						__gM__ElementoProduto.style.left="0px";
						__gM__ElementoProduto.style.zIndex=101;
						__gM__ElementoProduto.style.width="137.5px";
						__gM__ElementoProduto.style.height="25px";
						__gM__ElementoProduto.style.color="#FFFFFF";
						__gM__ElementoProduto.style.textDecoration="none";
						__gM__ElementoProduto.style.backgroundColor="#515151";
						__gM__ElementoProduto.style.fontWeight="bolder";
						__gM__ElementoProduto.style.textAlign="center";
						__gM__ElementoProduto.style.filter="alpha(opacity=85)";
						__gM__ElementoProduto.style.opacity=0.85;
						__gM__ElementoProduto.innerHTML=Parametros.Itens[ParametrosMiniaturas.Indice][0];
						document.getElementById("__GoldenMiniaturas_p"+ParametrosMiniaturas.Indice+"__").appendChild(__gM__ElementoProduto);*/
					};
					__gM__ElementoLink.onmouseout=function(){
						/*document.getElementById("__GoldenMiniaturas_p"+ParametrosMiniaturas.Indice+"__").style.height="90px";
						document.getElementById("__GoldenMiniaturas_p"+ParametrosMiniaturas.Indice+"__").removeChild(__gM__ElementoProduto);*/
					};
				/*_-_-_- - 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 = "110px";
					__gM__ElementoCamada.style.height = "86px";
				/*_-_-_- - Elemento contendo a Camada da Miniatura - -_-_-_*/
	
				/*_-_-_- + Elemento contendo a Imagem da Miniatura + -_-_-_*/
					__gM__ElementoImagem = document.createElement("img");
					__gM__ElementoImagem.setAttribute("src",Parametros.Itens[ParametrosMiniaturas.Indice][2]);
					__gM__ElementoImagem.setAttribute("alt",Parametros.Itens[ParametrosMiniaturas.Indice][2].toString().split("/")[(Parametros.Itens[ParametrosMiniaturas.Indice][2].toString().split("/").length-1)].split(".")[0]);
					__gM__ElementoImagem.setAttribute("class","__GoldenVitrine__");
					__gM__ElementoImagem.setAttribute("id","__GoldenMiniaturas_i"+ParametrosMiniaturas.Indice+"__")
					__gM__ElementoImagem.style.width = "110px";
					__gM__ElementoImagem.style.height = "86px";
					__gM__ElementoImagem.style.border = "none";
				/*_-_-_- - Elemento contendo a Imagem 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.overflow = "hidden";
					__gM__ElementoPaiCamada.style.position = "absolute";
					__gM__ElementoPaiCamada.style.top = "0px";
					__gM__ElementoPaiCamada.style.left = "0px";
					__gM__ElementoPaiCamada.style.width = "110px";
					__gM__ElementoPaiCamada.style.height = "86px";
					__gM__ElementoPaiCamada.style.border = "solid 2px #D1D1D1";
				/*_-_-_- - 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.style.display = "inline-block";
					__gM__ElementoPai.style.position = "absolute";
					__gM__ElementoPai.style.top = (111*ParametrosMiniaturas.Indice)+"px";
					__gM__ElementoPai.style.left = "0px";
 					__gM__ElementoPai.style.width = "114px";
					__gM__ElementoPai.style.height = "90px";
					__gM__ElementoPai.style.marginLeft = "5px";
					__gM__ElementoPai.style.overflow = "hidden";
				/*_-_-_- - Elemento Pai da Miniatura - -_-_-_*/
				
				/*_-_-_- + Hierarquia de Elementos + -_-_-_*/
					__gM__ElementoCamada.appendChild(__gM__ElementoImagem)
					__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() - 111) + "px"
							}, 600);
						}
						else{
							$("#__GoldenVitrine__Miniaturas__").animate({
								scrollTop: ((document.getElementById("__GoldenVitrine__Miniaturas__").childNodes.length)*111) + "px"
							}, 600);
						}
					break;
					case "Descer":
						if ($("#__GoldenVitrine__Miniaturas__").scrollTop() < ((document.getElementById("__GoldenVitrine__Miniaturas__").childNodes.length-1)*80)) {
							$("#__GoldenVitrine__Miniaturas__").animate({
								scrollTop: ($("#__GoldenVitrine__Miniaturas__").scrollTop() + 111) + "px"
							}, 600);
						}
						else{
							$("#__GoldenVitrine__Miniaturas__").animate({
								scrollTop: (0) + "px"
							}, 600);
						}
					break;
				}
			}
		/*_-_-_- - Rolagem das Miniaturas - -_-_-_*/

		/*_-_-_- + Seleção de Imagens + -_-_-_*/
			this.SelecionarMiniatura=function(Indice){
				Indice--;
				$("#__GoldenVitrine__Miniaturas__").animate({
					scrollTop: ((Indice-1)*111) + "px"
				}, 600);
				$("#__GoldenMiniaturas_d"+(Indice)+"__").css("border","solid 2px #717171");
			}
		/*_-_-_- - 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(
					"<div id='__GoldenVitrine__tDescricao__' style='font-weight:bolder;font-size:14px;font-family:Verdana'>"+Parametros.Itens[Indice][0]+'</div>'
					+Parametros.Itens[Indice][1]
				);
				if(typeof(window["AnmTexto"])!="undefined"){
					clearTimeout(AnmTexto);
				}
				//AnimarTexto("__GoldenVitrine__Descricao__",Parametros.Itens[Indice][0],0,0);
				$("#__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);
						}
					}
				});
				});
				ProxIndice=Indice+1;
				if(ProxIndice==Parametros.Itens.length){
					ProxIndice=0;
				}
				AutoSelDestaque = window.setTimeout("_gV.SelecionarDestaque("+ProxIndice+")",20000);
			}
		/*_-_-_- - Seleção de Destaque - -_-_-_*/
		
	}

	/*_-_-_- + Animação do Texto + -_-_-_*/
		AnimarTexto=function(Objeto,Texto,Indice,Tipo){
			if(typeof(window["AnmTexto"])!="undefined"){
				clearTimeout(AnmTexto);
			}
			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 - -_-_-_*/

	/*_-_-_- + PreLoader das Imagens + -_-_-_*/
		PreLoader=function(Indice,Parametros){
			pLoad=new Image();
			pLoad.src=Parametros.Itens[Indice][3];
//			pLoad.onload=function(){
				if(Indice<(Parametros.Itens.length-1)){
					PreLoader((Indice+1),Parametros);
				}
				else{
					Parametros.Alvo.innerHTML="";
					Parametros.Alvo.appendChild(__gV__ElementoPai);
					GoldenVitrine_Funcoes.SelecionarMiniatura(1);
					GoldenVitrine_Funcoes.SelecionarDestaque(0);
				}
//			}
		}
	/*_-_-_- - PreLoader das Imagens - -_-_-_*/
