window.addEvent("domready",function(){orig=$(document.body).getStyle("font-size").toInt();if(site){$(document.body).setStyle("font-size",parseInt(site))}if($("postcontainer")){loader=new PostLoader({element:"postcontainer"})}if(!Browser.Engine.trident4){var C=new Element("a",{id:"font-smaller",html:"A",title:"Smaller font size",events:{click:decreaseFontSize}}).injectInside("fontsettings");var B=new Element("a",{id:"font-bigger",html:"A",title:"Larger font size",events:{click:increaseFontSize}}).injectAfter(C)}var A=new Hash({illustration:"#009aca",graphic_design:"#9cb237",jewelry:"#782283",painting:"#bb1d2b",blog:"#f68245",about:"#3e967e"});A.each(function(D,F){var E=$(F).getElements("a").pop();E.set("morph",{duration:250});E.addEvent("mouseover",function(){this.morph({color:D})});E.addEvent("mouseout",function(){var G=this.getParent().hasClass("selected")?"#ffffff":"#c7c8ca";this.morph({color:G})})})});window.addEvent("load",function(){var A=$$(".column")[0].getStyle("height");A=$(document.body).getScrollSize();A=A.y;$$(".separator").pop().setStyle("height",A-150)});var morpher;var loader;var PostLoader=new Class({Implements:Options,options:{element:"postcontainer",duration:350},initialize:function(A){this.setOptions(A);this.options.element=$(this.options.element);this.morpher=new Fx.Morph(this.options.element,{duration:this.options.duration})},loadPost:function(B,A){if(this.lastloaded!=B){this.morpher.onComplete=function(){var C=$(document.body).getScroll();if(C.y-250>0){$("post").setStyle("top",C.y-150)}else{$("post").setStyle("top",0)}new Request({url:"?p="+B+"&cat="+A+"&a=1",method:"get",onComplete:this.loadImages.bind(this)}).send();$("loader").set("html",'<img src="wp-content/themes/claudelle.com/images/loading.gif" />')}.bind(this);this.lastloaded=B;this.morpher.start({opacity:0})}},loadImages:function(B){var C=new RegExp('(?:src=")(.+?)"',"g");var A=[];while(match=C.exec(B)){A.include(match[1])}new Asset.images(A,{onComplete:this.showPost.bind(this)});this.options.element.set("html",B)},showPost:function(){this.morpher.onComplete=function(){$("loader").set("html","")};this.morpher.start({opacity:1})}});var fontsize=0;function updateFontSize(A){var B=new Fx.Morph(document.body,{duration:100}).start({"font-size":A});new Request({url:"?fontsize="+A+"&id="+sessid,method:"get"}).send()}function increaseFontSize(){var A=0;A=$(document.body).getStyle("font-size").toInt()+2;updateFontSize(A)}function decreaseFontSize(){newsize=$(document.body).getStyle("font-size").toInt()-2;updateFontSize(newsize)};