// JavaScript Document

function OpenComments(c)
{
    window.open(c, 'comments', 'width=480, height=480, scrollbars=yes, status=yes');
}

// News
newson = new Image();
newson.src = "http://www.miridor.com/images/mnuitem-news-on.gif";
newsoff = new Image();
newsoff.src = "http://www.miridor.com/images/mnuitem-news.gif";
// About
abouton = new Image();
abouton.src = "http://www.miridor.com/images/mnuitem-about-on.gif";
aboutoff = new Image();
aboutoff.src = "http://www.miridor.com/images/mnuitem-about.gif";
// Services
serviceson = new Image();
serviceson.src = "http://www.miridor.com/images/mnuitem-services-on.gif";
servicesoff = new Image();
servicesoff.src = "http://www.miridor.com/images/mnuitem-services.gif";
// Contact
contacton = new Image();
contacton.src = "http://www.miridor.com/images/mnuitem-contact-on.gif";
contactoff = new Image();
contactoff.src = "http://www.miridor.com/images/mnuitem-contact.gif";
// Web/Internet
webon = new Image();
webon.src = "http://www.miridor.com/images/mnuitem-web-on.gif";
weboff = new Image();
weboff.src = "http://www.miridor.com/images/mnuitem-web.gif";
// Software
softwareon = new Image();
softwareon.src = "http://www.miridor.com/images/mnuitem-software-on.gif";
softwareoff = new Image();
softwareoff.src = "http://www.miridor.com/images/mnuitem-software.gif";
// Guestbook
guestbookon = new Image();
guestbookon.src = "http://www.miridor.com/images/mnuitem-guestbook-on.gif";
guestbookoff = new Image();
guestbookoff.src = "http://www.miridor.com/images/mnuitem-guestbook.gif";
// Links
mylinkson = new Image();
mylinkson.src = "http://www.miridor.com/images/mnuitem-links-on.gif";
mylinksoff = new Image();
mylinksoff.src = "http://www.miridor.com/images/mnuitem-links.gif";
// BackToTop
backtotopon = new Image();
backtotopon.src = "http://www.miridor.com/images/ftr-backtotop-on.gif";
backtotopoff = new Image();
backtotopoff.src = "http://www.miridor.com/images/ftr-backtotop.gif";

// Function to 'activate' images.
function imgOn(imgName) {
    if (document.images) {
        document[imgName].src = eval(imgName + "on.src");
    }
}

// Function to 'deactivate' images.
function imgOff(imgName) {
    if (document.images) {
        document[imgName].src = eval(imgName + "off.src");
    }
}