function restartIt() {
new Effect.Fade('ajaxDrop', {duration: 0.4, afterFinish: function() {new Effect.Appear('hideit', {duration: 0.4})}
});
}
function startSearch(page) {
whyNot = document.getElementById("ajaxDrop");
whyLoad = document.getElementById("ajaxLoad");
new Effect.Fade('hideit', {duration: 0.4, afterFinish: function() {sendData(page);}});
}
// -------------------------------------------------------------------------------------------------------------------------------------------------//
function sendData(page) {
var ajax = false;
try {ajax = new XMLHttpRequest();}
catch(e) {ajax = new ActiveXObject("Microsoft.XMLHTTP");}
if(!ajax) {alert('ajax unsupported!'); return false;}
ajax.onreadystatechange = function() {
if(ajax.readyState == 1) {
whyLoad.style.display = 'block';
//whyLoad.innerHTML = "
";
}
if(ajax.readyState == 4) {
if(ajax.status == 200) {
whyLoad.style.display = 'none';
//whyLoad.innerHTML = "";
receiveData(ajax.responseText);
}
else {alert('ajax returned bad status: '+ajax.status); return false;}
}
}
ajax.open('GET',page,true);
ajax.send(null);
return false;
}
// -------------------------------------------------------------------------------------------------------------------------------------------------//
function receiveData(page) {
whyNot.innerHTML = page;
new Effect.Appear('ajaxDrop', {duration: 0.4});
}
// -------------------------------------------------------------------------------------------------------------------------------------------------//
/*function pwnface() {
function row_over() {
this.style.cursor = 'pointer'; }
function row_click() {
setDefault();
this.className = 'on';
}
var rows=document.getElementById("supplemental_content_nav").getElementsByTagName('a');
for(var j=0;j