Event.observe(window, "load", function() {
    // apply css3 rule for browser that doesn't support it
    // (it seems that it is all but firefox at the moment (2006-10-01))
    $$("a").each(function(link) {
		// this is roughly equivalent to a[^http]
        if(!link.href.startsWith("mailto") && !link.href.startsWith("javascript") && !link.href.include("adwain.org")) {
            link.addClassName("externlink");
        }
    });
    $$("a[href^=mailto]").each(function(maillink) {
        maillink.addClassName("maillink");
    });
    $$("cite").each(function(cite) {
		cite.innerHTML = "«" + cite.innerHTML + "»";
    })

    // compute footnote links
    new FootNoteLinks("contenu","contenu",{title:"Liens"});

    if($("print")) {
        Event.observe($("print"),"click",function() {
            window.print();
        });
    }
});

