jQuery.noConflict();if(typeof Ebook=="undefined"||!Ebook){var Ebook={}}Ebook.Theme={};Ebook.Theme.Decorator={renderPortletHeadlines:function(){jQuery("#column-1 .portlet-title").after('<div class="headline-bg headline-content-bg"></div>');jQuery("#column-2 .portlet-title").after('<div class="headline-bg headline-teaser-bg"></div>');jQuery(".portlet-message-boards .title").after('<div class="headline-bg headline-content-bg"></div>');jQuery(".portlet-message-boards h2.headline").after('<div class="headline-bg headline-content-bg"></div>')},renderContentHeadlines:function(){jQuery(".content-standard h2.headline").after('<div class="headline-bg headline-content-bg"></div>');jQuery(".teaser-standard h2.headline").after('<div class="headline-bg headline-teaser-bg"></div>');jQuery(".content-ebook h2.headline").after('<div class="headline-bg headline-content-bg"></div>');jQuery("#reader-text h2.headline").after('<div class="headline-bg headline-content-bg"></div>')},renderImagePopupLinks:function(){jQuery(".journal-content-article .popup").click(function(A){return false});jQuery(".journal-content-article .popup").hover(function(A){jQuery("body").append("<p id='preview'><img src='"+this.href+"' alt='"+this.alt+"' /></p>");jQuery("#preview").css("top",(A.pageY-400)+"px").css("left",(A.pageX+50)+"px").css("position","absolute").fadeIn("fast")},function(){jQuery("#preview").remove()})},renderSmilies:function(){jQuery(".emoticon").attr("src","/html/gfx/yui/trans.gif")}};Ebook.Theme.Menu={render:function(){var E=jQuery("#nav li ul.selected");var B=jQuery("#nav li ul.selected").clone();var G=jQuery("#nav");var C=jQuery("#subnav");var F=jQuery("#navigation-outer");var D=jQuery("#column-1");var A=jQuery("#navigation li");C.append(B.html());C.addClass("selected");G.after(C);C.css({display:"block"});E.css({display:"none"});D.prepend(F);F.hover(function(){},function(){C.empty();C.append(B.html())});A.hover(function(){ulClone=jQuery(this).find("ul:first").clone();C.empty();C.append(ulClone.html());C.css({display:"block"});C.bind("mouseover",function(){jQuery(this).show()});C.bind("mouseleave",function(){jQuery(this).empty();jQuery(this).append(B.html())})},function(){})}};jQuery(document).ready(function(){Ebook.Theme.Menu.render();Ebook.Theme.Decorator.renderContentHeadlines()});Liferay.Portlet.ready(function(B,A){});jQuery(document).last(function(){Ebook.Theme.Decorator.renderPortletHeadlines();Ebook.Theme.Decorator.renderImagePopupLinks();Ebook.Theme.Decorator.renderSmilies()});