function logo() {
  if (d==1) {x++;} else {x--;}
  if (x==20) {d=0;}
  if (x==-20) {d=1;}
  document.getElementById("logo1").style.left = x;
  document.getElementById("logo1").style.top = 40;
  setTimeout("logo("+x+","+d+")",30);
}

function MM_showHideLayers() {
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
if (document.images) {
img1on = new Image();
img1on.src = "images/menu/home1.gif";
img1off = new Image();
img1off.src = "images/menu/home.gif";

img2on = new Image();
img2on.src = "images/menu/equip1.gif";
img2off = new Image();
img2off.src = "images/menu/equip.gif";

img3on = new Image();
img3on.src = "images/menu/about1.gif";
img3off = new Image();
img3off.src = "images/menu/about.gif";

img4on = new Image();
img4on.src = "images/menu/contact1.gif";
img4off = new Image();
img4off.src = "images/menu/contact.gif";

img5on = new Image();
img5on.src = "images/menu/email1.gif";
img5off = new Image();
img5off.src = "images/menu/email.gif";

img6on = new Image();
img6on.src = "images/menu/circle1.gif";
img6off = new Image();
img6off.src = "images/menu/circle.gif";
}

function imgOn (imgName) {
if (document.images) {
  document[imgName].src = eval(imgName + "on.src");
  roll(imgName.replace(/img/ig,'men'),'menuj');
}
}

function imgOff (imgName) {
if (document.images) {
  document[imgName].src = eval(imgName + "off.src");
  roll(imgName.replace(/img/ig,'men'),'menui');
}
}

function roll (ln,cn) {
 if (document.getElementById(ln)) {
   obj=document.getElementById(ln);
   obj.className=cn;
 }
}

function bckOn (imgName) {
if (document.all) {
  obj=document.getElementById('mbak');
  obj.style.backgroundImage = 'url(images/menu/circle1.gif)' ;
}
if (document.images) {
  roll(imgName.replace(/img/ig,'men'),'menuj');
}
}

function bckOff (imgName) {
if (document.all) {
  obj=document.getElementById('mbak');
  obj.style.backgroundImage = 'url(images/menu/circle.gif)' ;
}
if (document.images) {
  roll(imgName.replace(/img/ig,'men'),'menui');
}
}
 