var oParentLi=null;
var oPrevLi=null;
var bSwapped=false;
$(document).ready(function(){
  $("#inter ul li img").mouseover(function(){  
    if ($(this).is(".laatste") && bSwapped===false) {
      //swap li's 
      oParentLi=$(this).parent().parent();
      oPrevLi=oParentLi.prev();
      oParentLi.insertBefore(oPrevLi);
      bSwapped=true;
    }

    if ($(this).is(".laatsterij")) {
      $(this).css("margin-top","-213px");
    }

    $(this).attr("src",$(this).attr("src").replace("_small","_zoom"));
    $(this).css("position","absolute");
    $(this).css("z-index","3");
    $(this).css("width","148px");
    $(this).css("height","423px");
  }); 
  $("#inter ul li img").mouseout(function(){  
    if ($(this).is(".laatste")) {
      //reswap li's 
      oPrevLi.insertBefore(oParentLi);
      bSwapped=false;
    }
    $(this).attr("src",$(this).attr("src").replace("_zoom","_small"));
    $(this).css("position","static");
    $(this).css("margin","0");
    $(this).css("z-index","0");
    $(this).css("width","70px");
    $(this).css("height","210px");
  }); 
});
