function muestra_mapa() {
	
	// window.document.getElementById("c_temp").innerHTML = window.document.getElementById("izq").innerHTML;
	// window.document.getElementById("izq").innerHTML = window.document.getElementById("c_mapa").innerHTML;
	window.document.getElementById("c_izq").style.display = "none";
	window.document.getElementById("c_mapa").style.display = "block";
}

function buscar_limpia() {
	window.document.busqueda.q.value = '';
}

function buscar_verifica() {
	if (window.document.busqueda.q.value == '') {
		window.document.busqueda.q.value = window.document.busqueda.q2.value;
	}
}

function buscar(idioma) {
	ff = window.document.busqueda;
	if (ff.q.value != ff.q2.value) {
		ff.q2.value = '';
		window.document.location.href="/"+idioma+"/busqueda/"+ff.q.value+"/1.html";
	}
}


function intval( mixed_var, base ) {
    // http://kevin.vanzonneveld.net
    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: stensi
    // +   bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // *     example 1: intval('Kevin van Zonneveld');
    // *     returns 1: 0
    // *     example 2: intval(4.2);
    // *     returns 2: 4
    // *     example 3: intval(42, 8);
    // *     returns 3: 42
    // *     example 4: intval('09');
    // *     returns 4: 9
 
    var tmp;
 
    var type = typeof( mixed_var );
 
    if(type == 'boolean'){
        if (mixed_var == true) {
            return 1;
        } else {
            return 0;
        }
    } else if(type == 'string'){
        tmp = parseInt(mixed_var * 1);
        if(isNaN(tmp) || !isFinite(tmp)){
            return 0;
        } else{
            return tmp.toString(base || 10);
        }
    } else if(type == 'number' && isFinite(mixed_var) ){
        return Math.floor(mixed_var);
    } else{
        return 0;
    }
}