var myURL = "http://www.estoycerca.com/";
var URL_Y_PATH_ACTUAL = [location.protocol, "//", location.host, location.pathname].join("");
var LOADING_GIF = "";
var gettext = {
error_inesperado:"Error inesperado."
};
function alert_inesperado()
{
alert(gettext.error_inesperado);
}
function nl2br(str, is_xhtml) {
// discuss at: http://phpjs.org/functions/nl2br/
// original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// improved by: Philip Peterson
// improved by: Onno Marsman
// improved by: Atli Þór
// improved by: Brett Zamir (http://brett-zamir.me)
// improved by: Maximusya
// bugfixed by: Onno Marsman
// bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// input by: Brett Zamir (http://brett-zamir.me)
// example 1: nl2br("Kevin\nvan\nZonneveld");
// returns 1: "Kevin
\nvan
\nZonneveld"
// example 2: nl2br("\nOne\nTwo\n\nThree\n", false);
// returns 2: "
\nOne
\nTwo
\n
\nThree
\n"
// example 3: nl2br("\nOne\nTwo\n\nThree\n", true);
// returns 3: "
\nOne
\nTwo
\n
\nThree
\n"
var breakTag = (is_xhtml || typeof is_xhtml === "undefined") ? "
" : "
"; // Adjust comment to avoid issue on phpjs.org display
return (str + "")
.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, "$1" + breakTag + "$2");
}
function stripHTML(dirtyString) {
var container = document.createElement("div");
var text = document.createTextNode(dirtyString);
container.appendChild(text);
return container.innerHTML; // innerHTML will be a xss safe string
}
$( document ).ready(function() {
$(".body-row-content").attr("tabindex",0);
$(".body-row-content").focus();
window.scrollTo(0,0);
});