function Img_Rollover(e,a){var c=[];var d;var b;e=$(e);b=e.filter(a);e=e.not(b);b.each(function(){var h=$(this).attr("src");var f=h.substring(h.lastIndexOf("."),h.length);var g=h.replace(f,"_on"+f);this.setAttribute("src",g)});e.each(function(){var i=$(this).attr("src");var f=i.substring(i.lastIndexOf("."),i.length);var h=i.replace(f,"_on"+f);this.setAttribute("hsrc",h);if(this===b[0]){return}var g=new Image();g.src=h;c.push(g);$(this).mouseover(function(){d=$(this).attr("src");this.setAttribute("src",$(this).attr("hsrc"))});$(this).mouseout(function(){if(!d){d=$(this).attr("src").replace("_on"+f,f)}this.setAttribute("src",d)})})}function Img_Rollover_CSSS(b,a){function f(j){var g=$(j).attr("class").split(/\s+/);for(var h in g){if(g[h]!="imgover_csss"){return g[h]}}return""}var d=[];var e;var c;b=$(b);c=b.filter(a);b=b.not(c);c.each(function(){var g=$(this).children("img");var h=f(this);g.addClass(h+"-img_on")});b.each(function(){var g=$(this).children("img");var h=f(this);g.addClass(h+"-img");$(this).mouseover(function(){g.addClass(h+"-img_on");g.removeClass(h+"-img")});$(this).mouseout(function(){g.addClass(h+"-img");g.removeClass(h+"-img_on")})})}$(function(a){Img_Rollover("img.imgover");Img_Rollover_CSSS("a.imgover_csss")});
