/*
 * Alexandre
 *
 * File: script.js
 * Desc: client-side routines
 * Author: Alexandre Martins, alemartf [.a.t.] gmail [.d.o.t.] com
 */



/*
 * fix_links()
 * Links with the rel="external" property
 * should open on a new window
 */
function fix_links()
{
    v = document.getElementsByTagName("a");
    for(i=0; i<v.length; i++) {
        if(v[i].getAttribute("rel") == "external")
            v[i].target = "_blank";
    }
}



/* ---------- misc ---------- */
window.onload = fix_links;

