/*
*   Custom alert options using jquery ui 
*/
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');
		}
	}
}
// Alert replacement function
function alert(msg){
	var customDialog = $jq("<div/>",{ "class" : "customAlert" }).dialog(options);
	customDialog.html(msg).dialog("open");
	return false;
}
jQuery(document).ready(function(){
	if($jq.browser.msie){
		$jq('body').height('auto');
		$jq('body').css({'background-repeat':'repeat-x'});
	}else{
		$jq('body').fadeTo(1,0);
		$jq('body').height('auto');
		$jq('body').fadeTo(2500, 1, function(){
			$jq('body').css({'background-repeat':'repeat-x'});
		});
	}
	$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
	});
});
