var onlyOne = false;
jQuery.loadOnlyOne = function() {
    $("div#layer").center({ vertical: false });
    $("div#layer").corner("25px");
    $("div#layerLoading").center();
    var onlyOne = true;
}

jQuery.ucFirst = function (text) {  
    str = text.toString();  
    var f = str.charAt(0).toUpperCase();  
    return f + str.substr(1, str.length-1);  
}  

jQuery.loadHelp = function() {
	$('img.help[longdesc]').each(function() {
		$(this).qtip(
		{
			content: $(this).attr('longdesc'),
			position: {
				corner: {
					tooltip: 'rightMiddle',
					target: 'leftMiddle'
				}
			},

			style: {
				color: '#456859',
				background: '#E1E0E0',
				width: {
					min: 0,
					max: 400
				},
				border: {
					color: '#91B11C',
					width: 0,
					radius: 2
				},
				tip: true
			}
		});
	});
}

jQuery.clic = function() {
	$("#hola").click(function() {
		window.alert("e");
	});
}

jQuery.myLoad = function(myLoadWhere, myLoadPage, myLoadPost) {
    $("#loading").show();
	$(myLoadWhere).hide();
	/*UnloadSectionJS();*/
	$(myLoadWhere).load(myLoadPage, myLoadPost);
	$("#loading").fadeOut('slow', function() {

	});

	$(myLoadWhere).fadeIn('slow', function() {

	});
}
