window.addEvent("domready",function(){vPhotoInfoSlider=new Fx.Slide($("photo_info"),{duration:800,mode:"vertical",wait:false,transition:Fx.Transitions.Expo.easeOut}).hide();$$(".photo img").setStyle("opacity","0");load_commentcount();vCommentsFader=new Fx.Tween($("comments"),{property:"opacity",duration:700,wait:false}).set(0);tabBorder=RUZEE.ShadedBorder.create({corner:8,shadow:0,edges:"tlr",border:1});$$("#nav>ul>li").each(function(A){tabBorder.render(A)});vHash=window.location.hash;if(vHash=="#recentcomments"){load_overlay("/recent_comments_ajax.php",false,"recentcomments",0.8)}else{if(vHash=="#opencomments"){load_comments()}else{if(vHash=="#gallery"){load_overlay("/archive_thumbs.php",true,"archive")}else{if(vHash=="#categories"){load_overlay("/archive_cat.php",false,"archive")}else{if(vHash=="#about"){load_overlay("/page_read.php?key=about",false,"close",0.8)}else{if(vHash=="#viewcart"){load_overlay("/shop_viewcart.php",false,"viewcart",0.8)}else{if(vHash=="#prints"){load_overlay("/page_read.php?key=prints",false,"close",0.8)}else{if(vHash=="#bestrated"){load_overlay("/archive_thumbs.php?cid=bestrated",true,"close")}}}}}}}}});window.addEvent("load",function(){$$(".submenu li").each(function(A){A.addEvent("mouseover",function(){this.addClass("hover")});A.addEvent("mouseout",function(){this.removeClass("hover")})});$$(".photo img").each(function(A){vPhotoFader=new Fx.Tween(A,{property:"opacity",duration:2000,wait:false}).start(1)});$("photo_container").addEvents({mouseenter:function(){$("photo_info_container").setStyles({visibility:""});vPhotoInfoSlider.slideIn()},mouseleave:function(){$("photo_info_container").setStyles({visibility:""});vPhotoInfoSlider.slideOut()}});$("recent_comments_link").addEvent("click",function(){load_overlay("/recent_comments_ajax.php",false,"recentcomments",0.8)});$("comments_link").addEvent("click",function(){load_comments()});$("buy_link").addEvent("click",function(){var A=this.getProperty("rel");load_overlay("/shop_choosesize.php?pid="+A,false,"printsize",0.7)});$$("a.photo_category_link").addEvent("click",function(){var A=this.getProperty("id");load_overlay("/archive_thumbs.php?cid="+A,true,"close")});$("archive_categories_link").addEvent("click",function(){load_overlay("/archive_cat.php",false,"archive")});$("archive_thumbs_link").addEvent("click",function(){load_overlay("/archive_thumbs.php",true,"archive")});$("about_link").addEvent("click",function(){load_overlay("/page_read.php?key=about",false,"close",0.8)});$("viewcart_link").addEvent("click",function(){load_overlay("/shop_viewcart.php",false,"viewcart")});$("more_link").addEvent("click",function(A){A=new Event(A).stop()});$("submenu_bestrated").addEvent("click",function(){load_overlay("/archive_thumbs.php?cid=bestrated",true,"close")});$("submenu_more_prints").addEvent("click",function(){load_overlay("/page_read.php?key=prints",false,"close",0.8)});$("submenu_more_v3").addEvent("click",function(){load_overlay("/page_read.php?key=v3",false,"close",0.8)});$("submenu_more_blogs").addEvent("click",function(){load_overlay("/page_read.php?key=blogs",false,"close",0.8)});init_thumb_pop("#thumbs a","home");new TipsX3($$("a.tooltip"),{hideDelay:0,offsets:{x:30,y:1}})});function load_commentlist(){var A=new Request({url:vSite_Root+"/blog_commentlist.php?pid="+vPid,method:"post",onSuccess:function(B){$("comment_list").set("html",B)}}).send()}function load_commentcount(){var A=new Request({url:vSite_Root+"/blog_commentcount.php?pid="+vPid,method:"post",onSuccess:function(B){$("comments_link").set("html",B)}}).send()}function load_comments(){vCommentsAjax=new Request({url:vSite_Root+"/blog_comments.php?pid="+vPid,onRequest:function(){$("comments_container").setStyles({visibility:""});$("comments").setStyle("display","");vCommentsFader.start(0.8)},onComplete:function(A,B){$("comments").set("html",A);$("commentpost").addEvent("submit",function(D){new Event(D).stop();$("commentpost").elements.comment_check.value="zxcvbnm";var C=new Request({url:this.action,method:"post",data:$("commentpost"),onRequest:function(){$("commentsubmit").empty().addClass("waiting-ajax")},onSuccess:function(E,F){},onComplete:function(E){$("commentpost").elements.comment_text.value="";createCookie("name_cookie",$("commentpost").elements.comment_author.value,90,"/");createCookie("website_cookie",$("commentpost").elements.comment_website.value,90,"/");createCookie("email_cookie",$("commentpost").elements.comment_email.value,90,"/");load_commentlist();load_commentcount();$("commentsubmit").set("html",E);$("commentsubmit").removeClass("waiting-ajax")}}).send()});$$("a.close").addEvent("click",function(){vCommentsFader.start(0).chain(function(){var C=new Fx.Scroll(window,{wait:false,duration:300,transition:Fx.Transitions.Quad.easeOut});C.toElement("container")})});$("comment_list").addEvent("click",function(){vCommentsFader.start(0).chain(function(){var C=new Fx.Scroll(window,{wait:false,duration:300,transition:Fx.Transitions.Quad.easeOut});C.toElement("container")})})},onFailure:function(){}}).send()};