$(document).ready(function(){
	// Function for gallery
	//gallery();

	//Event Tooltip
	//eventTooltip();
	
	$("body *").replaceText( /Las Adelfas|las Adelfas|las adelfas|Las adelfas/gi, '<span class="adelfasfont">Las Adelfas</span>' );

	//Infobox corner
	infoboxCorner();

	/*$(function(){
		$('#myScrollContent').jScrollPane();
	});*/
});

function infoboxCorner(){
	$(".infobox .infobox-tr").each(function(){
		$(this).height($(this).prev().height());
	});
}

function gallery() {
	$(".overflow div").mouseover(function(){
		var image = $(this).parent("div").children(".large").html();
		$("#largeImg").html(image);
	});
}

/*
function eventTooltip(){
	$("table.events tr").tooltip({ 
 
        // each trashcan image works as a trigger
        tip: $(this).children('td.td-last'), 
 
        // custom positioning 
        position: 'center right', 
 
        // move tooltip a little bit to the right 
        offset: [0, 15], 
 
        // do not initialize tooltips until they are used 
        lazy: true, 
 
        // there is no delay when the mouse is moved away from the trigger 
        delay: 0 
    });
}
*/

function eventTooltip(){
	$('.events').after('<div id="tooltip"><!-- // --></div>');
	$('table.events tr').mouseover(function(){
		var content = $(this).children('.td-last');
		$('#tooltip').html(content);
	})
}

