this.screenshotPreview=function(){xOffset=100;yOffset=100;$("a.screenshot").hover(function(e){this.t=this.title;this.title="";var c=(this.t!="")?"<br/>"+this.t:"";$("body").append("<p id='screenshot'><img src='"+this.rel+"' alt='url preview' />"+c+"</p>");$("#screenshot").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px").fadeIn("fast")},function(){this.title=this.t;$("#screenshot").remove()});$("a.screenshot").mousemove(function(e){$("#screenshot").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px")})};$(document).ready(function(){screenshotPreview()});$(document).ready(function(){PEPS.rollover.init()});PEPS={};PEPS.rollover={init:function(){this.preload();$(".catimage").hover(function(){$(this).attr('src',PEPS.rollover.newimage($(this).attr('src')))},function(){$(this).attr('src',PEPS.rollover.oldimage($(this).attr('src')))})},preload:function(){$(window).bind('load',function(){$('.catimage').each(function(key,elm){$('<img>').attr('src',PEPS.rollover.newimage($(this).attr('src')))})})},newimage:function(src){return src.substring(0,src.search(/(\.[a-z]+)/))+'_o'+src.match(/(\.[a-z]+)/)[0]},oldimage:function(src){return src.replace(/_o/,'')}};