function overlay(){toggleTags("select");var a=document.getElementById("wrapper");var b=document.createElement("div");b.setAttribute("id","overlay");b.onclick=function(){hideContainer();return false};a.insertBefore(b,a.firstChild);arrayPageSize=getPageSize();b=document.getElementById("overlay");b.style.height=(arrayPageSize[1]+"px");$(b).show()}function ahahSuccess(b){var a=document.getElementById("preload");arrayPageSize=getPageSize();yScroll=getPageScroll();a.style.left=(arrayPageSize[2]/2-a.style.width)+"px";a.style.top=yScroll+arrayPageSize[3]*0.5+"px";$(a).show();ahahComplete(b)}function ahahComplete(a){$("#preload").hide();document.getElementById("ahahContainer").innerHTML=a}function ahahFailure(a){alert("Request Failed."+request)}function ahahSwap(a){overlay();$.ajax({type:"GET",url:a,success:function(b){ahahSuccess(b)}});$("#ahahContainer").show()}function ahahSwapFixed(b,c,a){var d=document.getElementById("ahahContainer");d.style.width=c+"px";d.style.height=a+38+"px";b=b.replace("&amp;","&");b=b.replace("+"," ");arrayPageSize=getPageSize();yScroll=getPageScroll();d.style.left=(arrayPageSize[2]/2-c/2)+"px";d.style.top=yScroll+arrayPageSize[3]*0.1+"px";d.style.position="absolute";ahahSwap(b)}function hideContainer(){var b;var a;if(document.getElementById("overlay")&&document.getElementById("ahahContainer")){b=document.getElementById("overlay");a=document.getElementById("ahahContainer")}else{alert("could not find overlay and container element");return false}$(a).toggle();$(b).toggle();if(b){$("#preload").hide();$(b).hide();b.style.backgroundColor="transparent"}toggleTags("select");if(document.getElementById("ahahContainer")){document.getElementById("ahahContainer").innerHTML=""}};