
function makeArray(n){ this.length = n; for (i=1;i<=n;i++){ this[i]=0; } return this; }
function displayDate() {
	var this_month = new makeArray(12);
	this_month[0]  = "Enero"; 
	this_month[1]  = "Febrero";
	this_month[2]  = "Marzo";
	this_month[3]  = "Abril";
	this_month[4]  = "Mayo";
	this_month[5]  = "Junio";
	this_month[6]  = "Julio";
	this_month[7]  = "Agosto";
	this_month[8]  = "Septiembre"; 			
	this_month[9]  = "Octubre";
	this_month[10] = "Noviembre";
	this_month[11] = "Diciembre";
	var this_day_e = new makeArray(7);
	this_day_e[0]  = "Domingo";
	this_day_e[1]  = "Lunes";
	this_day_e[2]  = "Martes";
	this_day_e[3]  = "Miércoles";
	this_day_e[4]  = "Jueves";
	this_day_e[5]  = "Viernes";
	this_day_e[6]  = "Sábado";
	var today = new Date();
	var day   = today.getDate();
	var month = today.getMonth();
	var year  = today.getYear();
	var dia = today.getDay();
	if (year < 1000) { year += 1900; }
	return( " " + day + " de " + this_month[month] + " " + year);
}

function cargar_scroll () {
	//$('.scroll-pane').jScrollPane({scrollbarWidth:2, scrollbarMargin:10 });	
	$('.scroll-pane').jScrollPane({scrollbarWidth:20, scrollbarMargin:10 });	
}

function cargar_img(file) {
	$(function () {
		$("#img_ladoder img").remove();
		var img = new Image();
		$("#img_ladoder").addClass("loading");
		$(img)
		.load(function () {
			$(this).hide();
			$('#img_ladoder')
			.removeClass('loading')
			.append(this);
			$(this).fadeIn();
		})
		.error(function () { /* notify the user that the image could not be loaded*/	})
		// *finally*, set the src attribute of the new image to our image
		.attr('src', file);
	});
}

$(document).ready(function() {
	
	$("#cuadro_flotante").css("display", "none");
	
	$("#botonera").animate({ 
	top: "0px"
	}, 1500 );
	
	$("#img_ladoder").css("display", "none");
	$("#img_ladoder").fadeIn("slow");
	
	cargar_scroll();
		
});


function close_loader(obj) {
	$("#"+obj).removeClass("loader");
}

























