pages.blog=function(){this.content=null;this.name="blog";this.iframe=this.updateInterval=null;this.isUp=true;var a=this;this.transitionIn=function(){animation.selectMenu(4);$(window).bind("resize",this.onUpdate);blogMenu.hide();animation.menuUp();isSimple?this.content.animate({_size:1},{duration:0,queue:false}):this.content.animate({_size:1},{duration:1E3,queue:false});a.updateInterval=setInterval(a.onUpdate,300);setTimeout(this.transitionInCompleted,1E3)};this.onUpdate=function(){a.iframe.css("width",
animation.stageWidth);a.iframe.css("height",animation.stageHeight-40)};this.transitionInCompleted=function(){};this.load=function(){this.content=$('<div _page="blog" _size="0" class="defaultPage"></div>');animation.currentZ++;this.content.css("z-index",animation.currentZ);$.getJSON("blog/blog",function(b){a.content.html(b.html);$(".stage .pages").append(a.content);a.iframe=a.content.find("iframe");if(blogMenu.url){a.iframe.attr("src",blogMenu.url);blogMenu.url=null}a.iframe.load(function(){a.onLoad()});
setTimeout(function(){a.onLoad()},2E4)})};this.onLoad=function(){};this.transitionOut=function(){animation.unselectMenu(4);isSimple?this.content.animate({_size:0},{duration:0,queue:false}):this.content.animate({_size:0},{duration:1E3,queue:false});$(window).unbind("resize",this.onUpdate);clearInterval(this.updateInterval);setTimeout(function(){a.content.remove()},1E3)}};

