
function goto(m){

    window.open (m + ".html", '_self', 'scrollbars=yes,menubar=no,statusbar=yes,toolbar=no,width=800,height=600'); 
}

function fixImgs(whichId) {

    var pix=document.getElementById(whichId).getElementsByTagName('img');
    for (i=0; i<pix.length; i++) {   
        pix[i].width=120;
        pix[i].height=80;
    }

    document.getElementById(whichId).style.display = "block";
}

function doOver(id){

    var idname = id.name;
    
    id.src = "images/" + id.name + "d.jpg";
    topicnr = idname.substring(5,6);

    document.getElementById("mainjpg" + topicnr).src = "images/" + id.name + ".jpg"; 
}

function doClick(id){

    var idname = id.name;
    
    topicnr = idname.substring(5,6);

    document.getElementById("mainjpg" + topicnr).src = "images/" + id.name + "c.jpg"; 
}

function doOut(id){

    id.src = "images/" + id.name + "s.jpg";
}

function doOverMain(id){

    sSource = id.src;
    if (sSource.substring(sSource.length - 5,sSource.length - 4) != "c") {
    
        id.src = sSource.substring(0, sSource.length - 4) + "c.jpg";
    }
}

function doActive(topic){

    var pix = document.getElementById("detail").getElementsByTagName('div');
    for (i=0; i<pix.length; i++) {   
	sString = pix[i].id;
	if (sString.substring(0, 5) == "topic")
            pix[i].style.display = "none";
    }

    document.getElementById("topic" + topic).style.display = "block";
}

function doActiveModel(model){

    var pix = document.getElementById("detail").getElementsByTagName('div');
    for (i=0; i<pix.length; i++) {   
	sString = pix[i].id;
	if (sString.substring(0, 5) == "model")
            pix[i].style.display = "none";
    }

    var imgmodel = document.getElementById("menumodel").getElementsByTagName('img');
    for (i=0; i<imgmodel.length; i++) {
	 imgmodel[i].src = "models/models" + eval(i+1) + "-off.jpg";
    }

    document.getElementById("model" + model).style.display = "block";
    imgmodel[model - 1].src = "models/models" + model + "-on.jpg";

}

function doActiveGallery(gallery){

    var pix = document.getElementById("detail").getElementsByTagName('div');
    for (i=0; i<pix.length; i++) {   
	sString = pix[i].id;
	if (sString.substring(0, 7) == "gallery")
            pix[i].style.display = "none";
    }

    var imggallery = document.getElementById("menugallery").getElementsByTagName('img');
    for (i=0; i<imggallery.length; i++) {
	 imggallery[i].src = "gallery/gallery" + eval(i) + "-off.jpg";
    }

    document.getElementById("gallery" + gallery).style.display = "block";
    imggallery[gallery].src = "gallery/gallery" + gallery + "-on.jpg";

}

function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert("Copyright Skwyzz Solutions"); return false; } return true; } document.onmousedown=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; 
