//error fix
function stopErrors() {
return true;
}
window.onerror = stopErrors;


//side navigation
if (document.images != null)
  
{
ontop = new Array (6); offtop = new Array (6);
for (i=1;i<6;i++) {ontop[i] = new Image; offtop[i] = new Image;}

ontop[1].src="/images/nav/index_.gif";
ontop[2].src="/images/nav/projects_.gif";
ontop[3].src="/images/nav/order_.gif";
ontop[4].src="/images/nav/contact_.gif";
ontop[5].src="/images/nav/credits_.gif";

offtop[1].src="/images/nav/index.gif";
offtop[2].src="/images/nav/projects.gif";
offtop[3].src="/images/nav/order.gif";
offtop[4].src="/images/nav/contact.gif";
offtop[5].src="/images/nav/credits.gif";

}
function top_on(n) {if (document.images != null) {document.images["i"+(n+"")].src=ontop[n].src;}}
function top_off(n) {if (document.images != null) {document.images["i"+(n+"")].src=offtop[n].src;}}
