var comunication;
comunication = aleatorio(1, 100000000);
function getURLSite() {
	
	var url = "";
	url = window.location.toString();
	url = url.indexOf('www');
	
	if(url == -1){
		url = "http://solinoff.com";
	}
	else{
		url = "http://www.solinoff.com";
	}
    return url;
}
function getComunication() {
    return comunication;
}
function getURLNosotros() {
    return "/nosotros/";
}
function getURLExpertos() {
    return "/expertos/";
}
function getURLProyectos() {
    return "/proyectos/";
}
function getURLProductos() {
    return "/productos/";
}
function getURLAmbiental() {
    return "/ambiental/";
}
function getURLTerminos() {
    return "/terminos_y_condiciones/";
}
function getURLIntranet() {
    return "http://correo.solinoff.com/intranet/";
}
function getURLWebmail() {
    return "http://correo.solinoff.com/ControlPanel/";
}
function redirectURL(URL) {	
	var strLen = URL.length;
	ultimocaracter = URL.slice(URL.length - 1, URL.length);
	if(ultimocaracter != "/"){
		URL = URL + "/"
	}
	//$('body').fadeOut(500, function() {
		$('body').css('display', 'none');
		if(URL.indexOf("http") == -1){
			window.location.href = getURLSite() + URL;
		}
		else{
			window.location.href = URL;
		}
	//});
}
function aleatorio(inferior,superior){
    numPosibilidades = superior - inferior
    aleat = Math.random() * numPosibilidades
    aleat = Math.floor(aleat)
    return parseInt(inferior) + aleat
}
function mostrarContactenos(){
	$('#contactenosdiv').css('display', 'inline');	
}
function ocultarContactenos(){
	$('#contactenosdiv').css('display', 'none');
}
function alerta(texto)
{
	alert(texto);
}
