$(document).ready(function() {
   $('.image').mouseover(function() {
      if(0 < this.title.indexOf(' ')) {
         var Cache = this.title.split(' ');
         var Title = '';
         for(var v=0;v<Cache.length;v++) {
            if((v+1) < Cache.length) { Title += Cache[v]+'-'; } else { Title += Cache[v]; }
         }
         var SID = $('#'+Title).attr('title');
         $('#'+SID).attr('src', 'images/'+SID+'h.jpg');
      } else { 
          var SID = $('#'+this.title).attr('title');
          $('#'+SID).attr('src', 'images/'+SID+'h.jpg');  
      }
   });
   $('.image').mouseout(function() {
      if(0 < this.title.indexOf(' ')) {
	     var Cache = this.title.split(' ');
	     var Title = '';     
	     for(var v=0;v<Cache.length;v++) {
	        if((v+1) < Cache.length) { Title += Cache[v]+'-'; } else { Title += Cache[v]; }
	     }
	     var SID = $('#'+Title).attr('title');
	     $('#'+SID).attr('src', 'images/'+SID+'.jpg');
	  } else {   	  
	     var SID = $('#'+this.title).attr('title');
	     $('#'+SID).attr('src', 'images/'+SID+'.jpg');  
	  }
   });   
});

