/*********************************************** * Dynamic Ajax Content- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ var bustcache=1 //bust potential caching of external pages after initial request? (1=yes, 0=no) var LoadDefaultText="
Cargando...
" var loadedobjs="" var rootdomain="http://"+window.location.hostname var bustcacheparam="" function loadajaxpage(TheUrl, TheContainer){ var TheRequest = false if (window.XMLHttpRequest) // if Mozilla, Safari etc TheRequest = new XMLHttpRequest() else if (window.ActiveXObject){ // if IE try { TheRequest = new ActiveXObject("Msxml2.XMLHTTP") } catch (e){ try{ TheRequest = new ActiveXObject("Microsoft.XMLHTTP") } catch (e){} } } else return false document.getElementById(TheContainer).innerHTML=LoadDefaultText TheRequest.onreadystatechange=function(){ LoadThePage(TheRequest, TheContainer) } if (bustcache) //if bust caching of external page bustcacheparam=(TheUrl.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime() TheRequest.open('GET', TheUrl+bustcacheparam, true) TheRequest.send(null) } function LoadThePage(TheRequest, TheContainer){ if (TheRequest.readyState == 4 && (TheRequest.status==200 || window.location.href.indexOf("http")==-1)) document.getElementById(TheContainer).innerHTML=TheRequest.responseText; if(typeof fb != 'undefined'){ fb.anchors.length = 0; fb.tagAnchors(document); } /********************Exclusive function for loggin*****************/ //if(TheContainer == 'loginbox'){ //if(document.getElementById('login-container')){ //alert(document.getElementById('login-container').innerHTML) //document.getElementById('btn_login').src = "/images/miembros-btn.png"; //$('#loginbox').hide('medium'); //document.getElementById('loginbox').style.display = 'block'; //alert(document.getElementById('loginbox').style.display ); //} //else{ //document.getElementById('btn_login').src = "/images/miembros-btn2.png"; //$('#loginbox').show('medium'); //} //} /******************************************************************/ //Run scripts inside ajax var x = document.getElementById(TheContainer).getElementsByTagName("script"); for(var i=0;i