function getParam(B){B=B.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var A="[\\?&]"+B+"=([^&#]*)";var D=new RegExp(A);var C=D.exec(window.location.href);if(C==null){return""}else{return C[1]}}var CurrentPage=null;function loadPage(A,D,E,C,B){if(CurrentPage!=A){new Ajax.Request("pages/"+A+".htm?noc="+(new Date()).getTime(),{method:"GET",contentType:"text/plain",onSuccess:function(F){if(E==true){$(D).innerHTML=F.responseText;if(C){new Ajax.Request("pages/"+C+".htm?noc="+(new Date()).getTime(),{method:"GET",contentType:"text/plain",onSuccess:function(G){$(B).innerHTML=G.responseText}})}}else{Effect.Fade(D,{duration:0.5,from:1,to:0.01,afterFinish:function(){$(D).innerHTML=F.responseText;if(C){new Ajax.Request("pages/"+C+".htm?noc="+(new Date()).getTime(),{method:"GET",contentType:"text/plain",onSuccess:function(G){$(B).innerHTML=G.responseText;new Effect.Morph("footer",{duration:0.5,style:"top: "+($("content").offsetTop+$("content").scrollHeight)+"px;",afterFinish:function(){Effect.Appear(D,{from:0.01,to:1,duration:0.5})}})}})}else{new Effect.Morph("footer",{duration:0.5,style:"top: "+($("content").offsetTop+$("content").scrollHeight)+"px;",afterFinish:function(){Effect.Appear(D,{from:0.01,to:1,duration:0.5})}})}}})}CurrentPage=A}})}};