homeOn = new Image();
homeOn.src = '/i/m/home-on.gif';
homeOff = new Image();
homeOff.src = '/i/m/home-off.gif';

aboutOn = new Image();
aboutOn.src = '/i/m/about-on.gif';
aboutOff = new Image();
aboutOff.src = '/i/m/about-off.gif';

clientOn = new Image();
clientOn.src = '/i/m/clients-on.gif';
clientOff = new Image();
clientOff.src = '/i/m/clients-off.gif';

solutionOn = new Image();
solutionOn.src = '/i/m/solutions-on.gif';
solutionOff = new Image();
solutionOff.src = '/i/m/solutions-off.gif';

serviceOn = new Image();
serviceOn.src = '/i/m/services-on.gif';
serviceOff = new Image();
serviceOff.src = '/i/m/services-off.gif';

specialsOn = new Image();
specialsOn.src = '/i/m/special-offers-on.gif';
specialsOff = new Image();
specialsOff.src = '/i/m/special-offers-off.gif';

contactOn = new Image();
contactOn.src = '/i/m/contact-on.gif';
contactOff = new Image();
contactOff.src = '/i/m/contact-off.gif';

blogOn = new Image();
blogOn.src = '/i/m/blog-on.gif';
blogOff = new Image();
blogOff.src = '/i/m/blog-off.gif';

function swapImg(id, img) {
	document.getElementById(id).src = img.src;
}

// pop-up window

function openWindow(url,name,features) {
       var p = self['popUp'+name];
       if (p&&!p.closed) {
        p.focus();
        p.location = url
       }
       else {
        p = self['popUp'+name] = window.open(url,name,features)
        p.focus()
      }
      return p
}

function launchTerms(url) {
    openWindow(url, 'Terms', 'width=530,height=550,status=no,scrollbars=yes,dependent=yes,toolbar=no,location=no').focus()
}


function showDemo() {
	window.open('/demo', 'demo', 'width=750,height=450,scrollbars=no');
}
