$(document).ready(function() {
    $("img.switched").each(function(idx, el) {
        links = $("a.switcher[rel=" + this.id + "]");
        links.click(function(event) {
            event.preventDefault();
            el.src = this.href;
        })
    })
})

