/* Alex Taylor
 *
 *--------------------------------------------------------------------------*/

var message = 'Copyrighted Material.';
function clickie() {
    if (document.all) {
        alert(message);
        return false;
    } 
}
function clickns(e) {
    if (document.layers || (document.getElementById && !document.all)) {
        if (e.which == 2 || e.which == 3) {
            alert(message);
            return false;
        } 
    } 
}
if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = clickns;
} else {
    document.onmouseup = clickns;
    document.oncontextmenu = clickie;
}


function Highlight(act, sel) { // used by main index.asp

    if (act == "on") {
        // home.CommercialImg.src = 'i/i' + sel + 'XS.jpg';

        document.getElementById(sel + "Img").src = "i/i" + sel + "XS.jpg";
        document.getElementById("td_" + sel).style.color = "#669933";
        document.getElementById("td_" + sel).style.backgroundColor = "#ffffcc";


    } else {

        document.getElementById(sel + "Img").src = "i/i" + sel + "XS_bw.jpg";
        document.getElementById("td_" + sel).style.color = "black";
        document.getElementById("td_" + sel).style.backgroundColor = "#fff";

    }
}