/*
*   Custom dialog options using jquery ui 
*   this should be styled and then 
*   put in the whole site replacing older alerts
*/
var options = {
	zIndex: 10010,
	draggable: true,
	title: "Informaci&oacute;n",
	resizable: false,
	width: 512,
	autoOpen: false,
	modal: true,
	stack: true,
	position: 'center',
	buttons: {
		Aceptar: function() {
			$jq(this).dialog('close');
		}
	}
}
function alert(msg){
	var customDialog = $jq("<div/>",{ "class" : "customAlert" }).dialog(options);
	customDialog.html(msg).dialog("open");
	return false;
}
jQuery(document).ready(function(){
	//$jq('#alert').jqm({overlay:80, modal:true, trigger:false});
	

	
	$jq(".tooltipFunction").tooltip({
		top: -20,
		left: 10,
		track: true,
		delay: 0,
		bodyHandler: function() {
			return $jq(this).children("span").html();
		},
		showURL: false,
		extraClass: "tooltipStyle",
		fixPNG: true,
		opacity: .5
	});
});

