window.LE=window.LE||{};LE.AjaxPaging=LE.AjaxPaging||function(d,e){function g(){f=true;c(true)}function h(){f=false}function c(l){var m=jQuery(".taglib-page-iterator",a);if(l){m.show()}else{m.hide()}}function i(){c(false);jQuery("div.page-links a[href]",a).each(function(){var l=jQuery(this);l.attr("oldhref",l.attr("href"));l.attr("href","#");l.click(b)})}function j(){window.setTimeout(j,5000);if(!f){jQuery("div.page-links a.first, div.page-links a.next",a).filter(":last").click()}}function b(){f=true;var m=jQuery(this).attr("oldhref");var l=m;if(l.indexOf("?")<0){l+="?";l+=jQuery.param({p_p_state:"exclusive"})}else{l=l.replace(/p_p_state=(normal|maximized)/gi,"p_p_state=exclusive")}jQuery(".portlet-content-container, .portlet-borderless-container",a).fadeTo("normal",0.1,function(){var n=this;jQuery.get(l,null,function(o){o=o.replace(/p_p_state(=|%3D)exclusive/gi,"p_p_state$1normal");jQuery(n).html(o);jQuery(n).fadeTo("normal",1);i()});f=false});return false}var a=jQuery(d);var f=false;var k="le_ajax_paged";e=e||5000;if(a.length>1){a.each(function(){new LE.AjaxPaging(this,e)})}else{if(a.length==1&&!a.hasClass(k)){a.addClass(k);a.hover(g,h);i();window.setTimeout(j,e)}}return{}};LE.EmailPage=LE.EmailPage||function(){function a(b){return b.replace(/url\( ?(['"])?\//gi,"url($1http://"+location.host+"/").replace(/ body/gi," #wrapper")}return{createPageSnapshot:function(c){jQuery("*[href]").each(function(){this.href=jQuery.trim(this.href);if(this.href==null||this.href==""){return}if(this.href.indexOf("javascript")>=0){jQuery(this).remove();return}if(this.href.indexOf("/")==0){this.host=location.host;this.hostname=location.hostname}});jQuery("img").each(function(){this.src=jQuery.trim(this.src);if(this.src==null||this.src==""){return}if(this.src.indexOf("/")==0){this.host=location.host;this.hostname=location.hostname}});jQuery("link[rel=stylesheet]").each(function(){if(this.href){var e=jQuery.ajax({url:this.href,async:false}).responseText;jQuery(this).replaceWith('<style type="text/css">'+e+"</style>")}});jQuery("#wrapper").attr("class",jQuery("body").attr("class"));jQuery("head style").each(function(){var e=a(jQuery(this).html());jQuery(this).remove();jQuery("#wrapper").before('<style type="text/css">'+e+"</style")});jQuery("#navigation").remove();jQuery("style").remove();jQuery("*[onmousemove]").remove();jQuery("*[onclick]").remove();jQuery("#layout-user-menu").remove();jQuery("#layout-my-places").remove();jQuery(".jquery-corner").remove();jQuery(".icon-edit").remove();jQuery(".icon-permissions").remove();jQuery(".icon-deactivate").remove();jQuery(".icon-add_article").remove();jQuery(".portlet-small-icon-bar").remove();jQuery("#p_p_id_1_WAR_chatportlet_").remove();jQuery("#p_p_id_emailthispage_WAR_lebaseportlet_").remove();jQuery(".lfr-dock").remove();jQuery(".lfr-trigger").remove();jQuery(".portlet-borderless-bar").remove();jQuery(".portlet-icons").remove();jQuery("script").remove();var d=document.createElement("form");d.style.display="none";d.setAttribute("name","savePageForEmailForm");d.setAttribute("action",c);d.setAttribute("method","post");var b=document.createElement("input");b.setAttribute("type","hidden");b.setAttribute("name","_emailthispage_WAR_lebaseportlet_content");b.setAttribute("value","<html>"+document.documentElement.innerHTML+"</html>");d.appendChild(b);document.body.appendChild(d);d.submit()}}}();