jQuery.extend(jQuery.easing,{easeOutBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}return F*((C=C/E-1)*C*((D+1)*C+D)+1)+A}});(function(A){A.fn.lavaLamp=function(B){B=A.extend({fx:"linear",speed:500,click:function(){}},B||{});return this.each(function(){var F=A(this),E=function(){},H=A('<li class="back"><div class="left"></div></li>').appendTo(F),I=A("li",this),G=A("li.current",this)[0]||A(I[0]).addClass("current")[0];I.not(".back").hover(function(){C(this)},E);A(this).hover(E,function(){C(G)});I.click(function(J){D(this);return B.click.apply(this,[J,this])});D(G);function D(J){H.css({left:J.offsetLeft+"px",width:J.offsetWidth+"px"});G=J}function C(J){H.each(function(){A(this).dequeue()}).animate({width:J.offsetWidth,left:J.offsetLeft},{duration:B.speed,easing:B.fx})}})}})(jQuery);function loadHomePage(){var A=window.location.hash;if(A==""){A=$("#navList li:eq(0) a").attr("href")}$("#navList li a[@href="+A+"]").parent().click()}function showPage(A){$("#content").html(A+"<div id='mask'></div><div id='loadingPanel'>Loading ... </div>")}function getSiteRoot(){var A=document.location.href.substring(0,document.location.href.lastIndexOf("/"));if(A.indexOf("#")!=-1){return A.substring(0,A.lastIndexOf("/"))}else{return A}}function loadPage(A){if(A==""){return }linkID=A.substr(1);loading=true;loadingTimer=window.setTimeout('$("#loadingPanel").show()',1000);$.post(root+"/cmsaction.php",{action:"2",linkid:linkID},function(C){render(C);loading=false;clearTimeout(loadingTimer);$("#loadingPanel").hide();$("#mask").fadeOut()});var B=$("a[@href="+A+"]").attr("title");if(B!=undefined){document.title=B}else{document.title="CMS Demo"}}$(function(){$("#content").prepend("<div id='mask'></div><div id='loadingPanel'>Loading ... </div>");$("#navList").lavaLamp({fx:"easeOutBack",speed:700,click:function(B,A){$("#mask").show().height($("#content").height()).fadeTo("fast",0.8);loadPage($(A).children("a").attr("href"));return false}});if(typeof (FCKeditor_OnComplete)!="function"){loadHomePage()}});var render=showPage;var loading=false;var loadingTimer=null;var root=getSiteRoot();var linkID;