window.onload = initialize;


document.onreadystatechange = function() { //IE7
	if (this.readyState == 'complete') {
		initialize();
	}
};


function initialize() {
     $(window).hashchange( function(){
          if(location.hash=="")
            return;
          else
            pageload(location.hash);

        });

	  if(window.location.hash.substr(1)!=""){
				  if(navigator.userAgent.indexOf("MSIE 6")>=0){
					cargar_url_id(window.location.hash.substr(1)+window.location.search,'main_contenido');
				  }else
					cargar_url_id(window.location.hash.substr(1),'main_contenido');
		} else{
            window.location.hash="#secciones/home.php";
        }
}
