function BrowserCheck() {
var b = navigator.appName;
if (b=="Netscape") this.b = "ns";
else if (b=="Microsoft Internet Explorer") this.b = "ie";
this.v = parseInt(navigator.appVersion);
this.ns1 = (this.b == "ns" && this.v <= 4); 
this.ie = (this.b == "ie" && this.v <= 4);
}
var is = new BrowserCheck();

function buildMenu() {
speed=35;
distance=-2;
items=1;
y=-50;
ob=1;
if (navigator.appName == "Netscape") {
v=".top=",dS="document.",sD="";
}
else {
v=".pixelTop=",dS="",sD=".style";
   }
}
function scrollItems() {
if (ob<items+1) {
if (is.ns1 || is.ie == true) {
	objectX="object"+ob; y+=3; eval(dS + objectX + sD + v + y);}
else {
	ww = window.document.getElementById("object" + ob);
	y+=3; ww.style.top = y;}
if (y<distance) setTimeout("scrollItems()",speed);
else y=-50, distance+=40, ob+=1, setTimeout("scrollItems()",speed);
   }
}
function scrollinit() {
distance=-40;
k=1;
y=0;
ob=1;
}
function scrollback(menue) {
if (k==1){link=menue+".html";k++;}
if (ob<items+1) {
if (is.ns1 || is.ie == true) {
	objectX="object"+ob; y-=3; eval(dS + objectX + sD + v + y);}
else {
	ww = window.document.getElementById("object" + ob);
	y-=3; ww.style.top = y;}	
if (y>distance) setTimeout("scrollback()",speed);
else y=0, ob+=1, setTimeout("scrollback()",speed);
	}
if (ob==items+1){parent.topFrame.location.href=link;}
}

function loadButton() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=loadButton.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function Reswap() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}

function obj(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=obj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;}

function swap() {
  var i,j=0,x,a=swap.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=obj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}
