$(document).ready(function(){

$(".tint").hide();


$(".subcont").hover(
 function() {
  curr = $(".subroll", this).find("img").attr("src");
  overlen = curr.length;
  over = curr.substr(0, overlen-4);
  over = over+'_o.png';
  $(".subroll", this).find("img").attr({ src: over});
 },
 function() {
  $(".subroll", this).find("img").attr({ src: curr});
 }
)

$(".subcont").find("img").each(function(i) {
  temp = this.src;
  prelen = temp.length;
  pre = temp.substr(0, prelen-4);
  pre = pre+'_o.png';
  preload_image_object = new Image();
  preload_image_object.src = pre;
});

$(".subcont").hover(
function() {
$(".tint", this).show();
},
function() {
$(".tint", this).fadeOut("fast");

});

}); 