$(function(){var e=0,f=0,c=0,b=0;var g=$("#page-body .leaders .form");var a=$("#page-body .leaders .form h2");g.addClass("hidden");oLink=document.createElement("A");oLink.href="#";oLink.className="pseudo-link";oLink.innerHTML=a.html();$("#page-body .content").append(oLink);g=$("#page-body .leaders .form");var d=document.createElement("INPUT");d.type="hidden";d.name="ajax";d.value=1;g.find("form").append(d);$("#page-body .content a.pseudo-link").click(function(){if(e){return false;}e=1;var i=my.getXY(this),k=$(this);g.css("top",(i.y-7)+"px");if(!c){g.find("form").submit(function(){if(!f){return false;}var l=g.find(".type_submit .field input").attr("value");g.find(".type_submit .field input").attr("disabled",1).attr("value",g.find(".send > .reducer > .hidden").html());g.find("form").ajaxSubmit({contentType:"application/x-www-form-urlencoded; charset=UTF-8",success:function(n,p){if(!b){b=document.createElement("div");b.className="js-info";g.find(".type_submit .field").append(b);}g.find(".type_submit .field input").attr("value",l);$(b).removeClass("hidden");g.find(".type_submit .field input").addClass("hidden");b.innerHTML=n.substring(n.indexOf("|")+1);var m=g[0].clientWidth;g.parent().css("height",g[0].clientHeight);g.css("position","absolute").css("overflow","hidden").css("left",i.x).css("width",m);$("#layout").css("height","auto").css("overflow","hidden");var o=function(){e=0;f=0;k.removeClass("hidden");g.addClass("hidden");g.find(".type_submit .field input").removeClass("hidden").attr("disabled",0);$(b).addClass("hidden");g.parent().css("height","auto");$("#layout").css("height","100%").css("overflow","");};$t(g).tween({delay:1,time:1,left:document.body.clientWidth,onComplete:o});}});return false;});c=1;}var h=$("#page-body .main")[0].clientWidth;if(!f){k.addClass("hidden");g.removeClass("hidden").css("left",-h).css("position","absolute").css("width",h);g.parent().css("height",g[0].clientHeight);var j=function(){e=0;f=1;k.addClass("hidden");g.parent().css("height","auto");g.css("position","static").css("width","100%");};$t(g).tween({time:1,left:i.x,onComplete:j});}return false;});});
