var imgout=".gif";
var imgover="_over.gif";
var imgpath=path + "images/btn";
var allload=0;

var mnu = new Array();
var mpos = new Array();

img1A=new Image();
img1B=new Image();
img2A=new Image();
img2B=new Image();
img3A=new Image();
img3B=new Image();
img4A=new Image();
img4B=new Image();
img5A=new Image();
img5B=new Image();
img6A=new Image();
img6B=new Image();
img7A=new Image();
img7B=new Image();
img8A=new Image();
img8B=new Image();

if (parent.frames.length > 0) { window.top.location.href = location.href; }
var UseFlash = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) {
 var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
 if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))>=6) UseFlash = 1;
} else if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
 UseFlash = 1;
}

function showbiglogo () {
 if ( UseFlash ) {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="320" height="150">');
  document.write('<param name="movie" value="' + path + 'images/logo.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF"><param name="menu" value="false">');
  document.write('<embed src="' + path + 'images/logo.swf" quality="high" bgcolor="#FFFFFF" width="320" height="150" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>');
 } else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)) {
  document.write('<img src="' + path + 'images/home1.jpg" width="320" height="150">');
 }
}

function showlogo () {
 if ( UseFlash ) {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="455" height="40">');
  document.write('<param name="movie" value="' + path + 'images/top.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF"><param name="menu" value="false">');
  document.write('<embed src="' + path + 'images/top.swf" quality="high" bgcolor="#FFFFFF" width="455" height="40" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>');
 } else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)) {
  document.write('&nbsp;');
 }
}


function loadimg () {
 for (i=1; i<9; i++) {
  imgA=eval("img"+i+"A");
  imgB=eval("img"+i+"B");
  imgA.src=imgpath+i+imgout;
  imgB.src=imgpath+i+imgover;
 }
 if (issel>0) mover(issel);
 allload=1;
}

function mimg(id, over) {
 if (allload && id) {
  if (over) img=eval("img" + id + "B");
  else img=eval("img" + id + "A");
  document["btn" + id].src=img.src;
 }
}

function mout(id) {
 issel=id;
}

function mover(id) {
 if (issel>0) {
  mimg(issel,0);
  if (isie) {
   mnu=eval("sub" + issel + ".style");
   mnu.visibility="hidden";
  } else {
   mnu=eval("document.sub" + issel);
   mnu.visibility="hide";
  }
 }
 mimg(id,1);
 if (isie) {
  mnu=eval("sub" + id + ".style");
  mnu.left=imgwidth.width/2-260 + mpos[id];
  mnu.visibility="visible";
 } else {
  mnu=eval("document.sub" + id);
  mnu.left=document.imgwidth.width/2-250 + mpos[id];

  mnu.visibility="show";
 }
}

 mpos[1]=0;
 mpos[2]=0;
 mpos[3]=80;
 mpos[4]=0;
 mpos[5]=300;
 mpos[6]=385;
 mpos[7]=460;
 mpos[8]=0;