

//	Ação: Abre HighSlide de acordo com as configurações de formato passadas como parâmetro
//	Exemplo: onclick=" return AbreHs(this, player.video);"
var player = {"video" : 0, "ampliarimagem" : 1, "slideshow" : 2, "podcast" : 3, "detalheProduto" : 4, "servicomontagem" : 5, "indiqueproduto" : 6, "instalacaogratis" : 7};
function AbreHs(objCampo, formatoExibir)
{
	var retorno = false;
	var hrefOriginal = "";
	hs.creditsHref = 'javascript: void(0);';
	hs.marginLeft = 15;
	hs.allowSizeReduction = false;
	
	// Configura componente hs de acordo com o formato
	switch(formatoExibir)
	{
		
			
		case player.emp_estrutura:
			hs.height = 550;
			hs.minWidth = 722;
		    hs.lang.creditsText = "Galeria Imagem Estrutura Germek";
			hs.marginLeft = ($(document).width() - hs.minWidth) / 2;
			
			break;			
		
		
	}
	
	retorno = hs.htmlExpand(objCampo, {objectType: 'iframe'});
	
	if (formatoExibir == player.ampliarimagem)
		$(objCampo).attr("href", hrefOriginal);

	return retorno;
}


//	Ação: Abre HighSlide de acordo com as configurações de formato passadas como parâmetro
//	Exemplo: onclick=" return AbreHsGenerico(this, 100, 100 'titulo');"
function AbreHsGenerico(objCampo, altura, largura, titulo)
{
	hs.creditsHref = 'javascript: void(0);';
	hs.allowSizeReduction = false;
	
	hs.height = altura;
	hs.minWidth = largura;
	hs.lang.creditsText = titulo;
	
	return hs.htmlExpand(objCampo, {objectType: 'iframe'});
}



