/*function OnLoadCaracteristicas(element)
{
	jQuery(document).ready(function ()
	{
		jQuery(element) //".comparativo_hp tbody tr"
		.mouseover(function ()
		{
			jQuery(this)
			.addClass("hover");
		})
		.mouseout(function ()
		{
			jQuery(this)
			.removeClass("hover");
		});
		
		jQuery(".tooltip")
		.mouseover(function ()
		{
			var id = jQuery(this).attr("href").replace(/^\#/gi, "");
			TagToTip(id, WIDTH, 400);
		});
	});
}*/

function OnLoadHospedagemHome()
{
	jQuery(document).ready(function ()
	{
		jQuery(".div_preco")
		.mouseover(function ()
		{
			 selectRow(this.id);
		})
		.mouseout(function ()
		{
			unselect(this.id);
		})
		.click(function ()
		{
			if (typeof pageTracker != 'undefined') {
				if (this.id == 'anualCell')		{ pageTracker._trackPageview('/gavp/radio/hosp/corpo/tabela/anual'); }
				if (this.id == 'semestralCell')	{ pageTracker._trackPageview('/gavp/radio/hosp/corpo/tabela/semestral'); }
				if (this.id == 'mensalCell')	{ pageTracker._trackPageview('/gavp/radio/hosp/corpo/tabela/mensal'); }
			}
			showhidePlano(this.id)
		});
	});
}

function selectRow(id){
	jQuery('#'+id).addClass("div_preco_hover");
}

function unselect(id){
	jQuery('#'+id).removeClass("div_preco_hover");
}

function showhidePlano(id){ 
	jQuery('.div_preco').removeClass("div_preco_select"); 
	jQuery('#'+id).addClass("div_preco_select"); 
	jQuery('div.precos').hide(); 
	jQuery('div.precos.'+id).show();
}

