//ginomi - 22-01-2006 - parse all link and put the target _new if the link is external

function retarget_links() {
    
    var anchors = document.getElementsByTagName('a');
    var anc;
    for (var i = 0; anc = anchors[i]; i++) {
        var url = anc.hostname;
        if(url.indexOf('yachtclubmilano.com') < 0)
            anc.target = '_new';
    }
}









//This is the Drupal method of adding a function to the BODY onload event.  (See misc/drupal.js)
addLoadEvent(retarget_links);