// $('div.left-nav' a>img).bind('hover', function(e) { $('#resume').attr("src",$(e.target).attr("/image/resume-icon-green.png"));});



// var myImages = ['/image/resume-icon-blue.png', '/image/resume-icon-green.png'];

// for (var i = 0; i <= myImages.length; i++) {
// var img = new Image(); 
//      img.src = myImages[i];
// }

jQuery.fn.extend({
 enter: function() {
    return this.each(function() {
      var pth = $(this).find("img")[0];
      if($(this).children().attr("href")==document.location.href){
         $(pth).attr("src",pth.src.replace('blue.png', 'green.png'));
         } else{
            $(this).hover(function(){
              $(pth).attr("src",pth.src.replace('blue.png', 'green.png'));
              },function(){
                 $(pth).attr("src",pth.src.replace('green.png', 'blue.png'));
                 });
            }
            });
    }
});
$(function() { $("#nav li").enter();});
