$(function() { var Width = $(window).width(); if (Width%2 != 0) { $("html").css({ "padding-left": "1px" }); } $('.appli a img, .appli form input[type=image]').hover(function() { var FileName = $(this).attr("src"); var FilePath = FileName.split("."); var FilePathLen = FilePath.length; var FileType = FilePath[FilePathLen-1]; var FileRep = FileName.replace('.'+FileType, '_hover.'+FileType); $(this).attr("src", FileRep); }, function() { var FileName = $(this).attr("src"); var FilePath = FileName.split("."); var FilePathLen = FilePath.length; var FileType = FilePath[FilePathLen-1]; var FileRep = FileName.replace('_hover.'+FileType, '.'+FileType); $(this).attr("src", FileRep); }); var Perusal = $.cookie("Perusal"); if(Perusal) { for(i=0; i<101; i=i+10) { $("body").append('