/** Handles history change events. */
function handleHistoryChange(newLocation, 
                             historyData) {
		splitString = newLocation.split("*");
		if (newLocation.length > 0 ){
			llamaraAjax(splitString[0],'frameContenido');
			if (splitString[1] != null) {
				llamaraAjax(splitString[1],'frameEnlaceNavegacion');
			}
		}
}

// initialize ourselves when the page is
// finished loading
window.onload = initialize;
dhtmlHistory.addListener(handleHistoryChange);

/** Our function that initializes when the page
    is finished loading. */
function initialize() {
   // initialize the DHTML History framework
   dhtmlHistory.initialize();
   
   // add ourselves as a DHTML History listener
   //dhtmlHistory.addListener(handleHistoryChange);
   
   /*
   // determine what our initial location is
   // by retrieving it from the browser's
   // location after the hash
   var currentLocation = 
      dhtmlHistory.getCurrentLocation();
      
   // if there is no location then display
   // the default, which is the inbox
   if (currentLocation == "") {
      currentLocation = "index.jsp";
   } else {
   
   }
   // display this initial location
   displayLocation(currentLocation, null);*/
}


