document.isIE = navigator.appName.indexOf("Microsoft") != -1;
var current = "";
var actual = "";
var ready = false;
function callReady(value){
   ready = value;
}
function addSection(str){   
   top.location.hash = str;

   if(document.isIE){
//document.title=str;
      document.getElementById('flashnav').setAttribute('src', 'auxContent.php?hash='+str);
   }
}
function verific(){
   if(document.isIE){
      actualizarHash();
   }
   if((top.location.hash != current) && ready){
      current = top.location.hash;
      defineSection(current);
   }
}
function actualizarHash(){
   var src_elements = document.frames['flashnav'].location.href.split("?hash=");
   var newHash = src_elements[src_elements.length-1];
   if(top.location.hash.substr(1) != newHash){
      top.location.hash = newHash;
   }
}
function thisMovie(movieName) {
   return (document.isIE) ? window[movieName] : document[movieName];
}
function defineSection(str) {
   str = str.substr(1);
   thisMovie("index").defineSection(str);
}
setInterval(verific,  100);
