//$(window).load( function()
//		{
			$(".vitrine").each(function() {
				modelo_estoque_vitrine = $(this).find("input:eq(0)").val();
				qtde_estoque_vitrine = $(this).find("input:eq(1)").val();
				if (isNaN(qtde_estoque_vitrine))
					qtde_estoque_vitrine = "0";
				valor_exibir_vitrine = $(this).find("input:eq(2)").val();
				finalidade_vitrine = $(this).find("input:eq(3)").val();
				if ($(this).find("input:eq(4)").length == 1)
					situacao_estoque_vitrine = $(this).find("input:eq(4)").val();
				else
					if (qtde_estoque_vitrine == "0" && modelo_estoque_vitrine == "1")
						situacao_estoque_vitrine = "0"
					else
						situacao_estoque_vitrine = "1";
				
				tem_estoque_vitrine = (situacao_estoque_vitrine == "1");
				
				if (tem_estoque_vitrine && finalidade_vitrine != "3" && (valor_exibir_vitrine == "1" || valor_exibir_vitrine == "2"))
					$(this).find(".vitrine_botao").show();
				else
					$(this).find(".vitrine_botao").hide();
					
				if 	(valor_exibir_vitrine != "0" && tem_estoque_vitrine)
					$(this).find(".valores").show();
				else
					$(this).find(".valores").hide();
					
				if (tem_estoque_vitrine)
					$(this).find(".vitrine_indisponivel").hide();
				else
					$(this).find(".vitrine_indisponivel").show();
						
				
				if (valor_exibir_vitrine == "2")
					$(this).find(".valor_por_produto").html("Valor vari&aacute;vel por qtde");
				else if (valor_exibir_vitrine == "3")
					$(this).find(".valor_por_produto").html("Valor sob consulta");
				
				
				
				
			});
			
			//ocultar valores
			$(".valor_de_produto, .valor_por_produto, .valor_parcelado").each( function (){
												if ($(this).find("span").is(":empty") || $(this).find("span").is(":contains('[/c]')"))
													$(this).hide();
												else
													$(this).show();
														 });
			//$(".valor_de_produto").each( function (){
//												if ($(this).find("span").is(":empty") || $(this).find("span").is(":contains('[/c]')"))
//													$(this).hide()
//												else
//													($(this).find(".img_oferta").show());
//														 });
			
			  
			//produto tem imagem
			$(".foto_produto[src$='[/c]']").attr ("src", caminho_virtual + "/html/images/icones/noimage.gif");	
			
//		});