var array_history = new Array();

var new_hash=0

var en_indice = 0

function add_history(){

	//	document.getElementById("back_and_top").style.display = 'inline'
		
		array_history.push(new Array(document.getElementById("contenido").innerHTML,  document.getElementById("navegacion").innerHTML))
	
		en_indice = array_history.length;
	
	
		document.getElementById("i_frame").src = "blank.php?hash="+new_hash;
		//document.getElementById("txt_hash").value = new_hash
		//document.getElementById("historia").submit();
	
		new_hash++

		

		
}

function alerta(){
	
//	alert("-->>")

}

function go_to_indice_history(cual){
	
	//alert("go_to_indice_history");
	document.getElementById("contenido").innerHTML = array_history[cual][0];
	document.getElementById("navegacion").innerHTML = array_history[cual][1];
	cambiarTamanioTexto(tamanio);
	en_indice = cual;
	
}


function back_history(){
	
	
	
	
	/*
	if(array_history.length>1){
		array_history.pop()
		
	}
	
	document.getElementById("contenido").innerHTML = array_history[array_history.length-1][0];
	document.getElementById("navegacion").innerHTML = array_history[array_history.length-1][1];
	cambiarTamanioTexto(tamanio)
	callExternalInterface();
	if(array_history.length>1){
		document.getElementById("back_and_top").style.display = 'inline'
	}else{
		
		document.getElementById("back_and_top").style.display = 'none'
	}
	*/
	
	
}





function get_history_inice(){	
	return array_history.length
}

function callExternalInterface() {
    thisMovie("externalInterfaceExample").goHome(50);
}

function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    }
    else {
        return document[movieName]
    }
}
