if(!($.browser.msie&&parseInt($.browser.version,10)<=7)){try{Cufon.replace('.pageItem');}catch(e){}}try{Cufon.replace('.futura, h3, h4, h5');}catch(e){}jQuery(document).ready(function(){try{pagination();}catch(e){}try{silhouette_cycle();}catch(e){}try{$.localScroll();}catch(e){}try{commentList();}catch(e){}try{commentForm();}catch(e){}try{commentListSlideTimeInit();}catch(e){}try{cssNeedsHelp();}catch(e){}try{shadowboxing();}catch(e){}try{socialLinks();}catch(e){}try{tagcloud();}catch(e){}try{validationCommentForm();}catch(e){}});function pagination(){jQuery('#pagination').pagiMore({animate:true,showDates:true});};function silhouette_cycle(){$('#silhouette_cycle').cycle({fx:'fade',random:1});};function commentForm(){$('input[type=text], textarea, hr, #comments li .time').css({'opacity':'0.6'});};function commentList(){if($("#comments").length>0){$(".comment-edit-link").css({opacity:0});$(".commentlist li").mouseenter(function(){$(".comment-edit-link",this).stop().animate({opacity:1},100);alert(a);});$(".commentlist li").mouseleave(function(){$(".comment-edit-link",this).stop().animate({opacity:0},1000);});}};function cssNeedsHelp(){$('a img').closest('a').css({'text-decoration':'none'});};function shadowboxing(){Shadowbox.init();var regex=new RegExp(/^\S+\.(gif|jpg|jpeg|png)$/);$('img').closest('a').each(function(){if($(this).attr('href').match(regex)){$(this).attr('rel','shadowbox');}});};function socialLinks(){var bg_pos_y,el;var css_clone={'position':'absolute','top':'0','left':'0'};$('.social li').hover(function(){el=$(this).find('a:first');if($.browser.msie){var bg_pos_x=el.css('background-position-x');bg_pos_y=el.css('background-position-y');}else{var bg_pos=el.css('background-position').split(' ');var bg_pos_x=bg_pos[0];bg_pos_y=bg_pos[1];}css_clone.backgroundPosition=bg_pos_x+' 0';clone=el.clone();clone.css(css_clone).hide().appendTo($(this)).fadeIn('100',function(){el.css({'opacity':'0'});});},function(){clone.stop();var clones=$(this).find('a:not(:first)');el.css({'opacity':'1'});clones.fadeOut('100',function(){clones.remove();});});};function tagcloud(){var tagcloud=$("#sidebar .tagcloud");tagcloud.children(".inner").hide();tagcloud.children(".bottom").css({"margin-top":"-30px"});if(tagcloud.is(':not(:animated)')){tagcloud.hover(function(){if($.browser.msie){tagcloud.children('.inner').show();}else{tagcloud.children(".inner").slideDown("slow").show();}tagcloud.children(".bottom").stop().animate({"marginTop":"0"},"fast");},function(){tagcloud.children(".inner").slideUp("slow");tagcloud.children(".bottom").stop().animate({"marginTop":"-30px"},"fast");});}};function validationCommentForm(){if($("#commentform").length>0){if($("body.logged-in").length>0){var comment=new LiveValidation("lig_comment",{onlyOnSubmit:true});comment.add(Validate.Presence);}else{var author=new LiveValidation("lig_author",{onlyOnSubmit:true});var email=new LiveValidation("lig_email",{onlyOnSubmit:true});var comment=new LiveValidation("lig_comment",{onlyOnSubmit:true});author.add(Validate.Presence);email.add(Validate.Presence);email.add(Validate.Email);comment.add(Validate.Presence);}}};function commentListSlideTimeInit(){var length=$('.commentlist .time').length;commentListSlideTime(0,length);};function commentListSlideTime(i,length){var el=$('.commentlist .time:eq('+i+')');var offset=el.offset();var offset_l=0-offset.left+20;var width=el.width()+(offset_l*(-1));el.animate({'left':offset_l,'width':width},1000);if((i+1)<length){setTimeout('commentListSlideTime('+(i+1)+', '+length+')',300);}};