/**
 * JS
 * @author Darío Ruellan <druellan@ecimtech.com>
 * @copyright ecimTech 2009
 */

$(function()
{
	// Zebra
	$("#program .row:odd").not(".permanent").addClass("odd");
	
	// Provisualizacion de imagen
	$("#program .links a.img").tipsy(
	{
		content: '<span class="thumb"></span>',
		fade: true,
		gravity: 's'
	});
	$("#program .links a.img").mouseover(function()
	{
		var id = $(this).attr("rel");
		$.get('?action=peek/getthumb_artist&id='+id, function(thumb)
		{
			$(".tipsy .tipsy-inner span").html('<img src="'+thumb+'" width="100" />'); 
		});
	});
	
	// Botonete de + mas info
	$("#program .row a.moreinfo").mouseover(function()
	{
		$(this).parent().find("p.moreinfo").slideDown();
		$(this).slideUp();
	});

});

