(function($){jQuery.fn.ImageAutoSize=function(width,height){$("img",this).each(function(){var image=$(this);if(image.width()>width){image.width(width);image.height(width/image.width()*image.height())}if(image.height()>height){image.height(height);image.width(height/image.height()*image.width())}})};jQuery.fn.imagePreview=function(){xOffset=30;yOffset=50;this.hover(function(e){this.t=this.title;this.title="";var c=this.t!=""?"<br/>"+this.t:"";$("body").append("<p id='preview'><img src='"+this.href+"' alt='Image preview' />"+c+"</p>");$("#preview").css("top",e.pageY-yOffset+"px").css("left",e.pageX+xOffset+"px").fadeIn("fast")},function(){this.title=this.t;$("#preview").remove()});this.mousemove(function(e){$("#preview").css("top",e.pageY-yOffset+"px").css("left",e.pageX+xOffset+"px")})};$(document).ready(function(){$("a.preview").imagePreview();$(".stripe tr:even").addClass("alt");$(".stripe tr").mouseover(function(){$(this).addClass("over")}).mouseout(function(){$(this).removeClass("over")}).click(function(){$(this).toggleClass("choose")});$(".stripeonly tr:even").addClass("alt")})})(jQuery);