/**
 * JS: Global Effects
 * @author Dario Ruellan <druellan@ecimtech.com>
 */

$(function()
{
	// lindos rollover para el floater
	$('#floater a').hover(
		function (){
	        $(this).animate({
				marginRight: -5
			},100)
      	}, 
		function (){
	        $(this).animate({
				marginRight: 0
			})
      }
    );

	animateTableList("#bodytext");

});

// Buscamos y animamos cualquier <ul> dentro de la tabla de eventos
function animateTableList(into)
{
	var tablelists  = $(into + ' table.program ul');
	tablelists.hide();
	tablelists.before('<a href="#" class="expand" style="float: right; margin: -22px -6px 0 0;">[+]</a>').prev().click(function() {
		$(this).next().toggle('normal');
		return false;
	});
}

