var browser="ie4";
var show="visible";
var hide="hidden";
if (document.layers){browser="nn4";show="show";hide="hide";}
if (document.getElementById){browser="gecko";}

texts=new Array();
text0=new Array(); 
text1=new Array(); 
var wt=0;

function Text(txt,w){
this.txt=txt;
this.w=w;
this.y=47;
wt=wt+w;
}

function MouseOver(j){text0[j].visibility=hide;text1[j].visibility=show;}
function MouseOut(j){text1[j].visibility=hide;text0[j].visibility=show;}
function goTo(i){
parent.left.hideBlob();
switch(i){
case(0):parent.register(1);break;
case(1):parent.lookAtTrolley();break;
case(2):parent.main.location="../documents/help.htm";break;
case(3):parent.main.location="../documents/aboutus.htm";break;
case(4):parent.main.location="home.htm";break;
case(5):parent.location.href="../index.htm";break;
case(6):parent.location.href="http://www.englishtabletennis.org.uk";break;
}}

np=7;
texts[0]=new Text("Register",39);
texts[1]=new Text("Shopping&nbsp;Trolley",80);
texts[2]=new Text("Help",22);
texts[3]=new Text("About Us",44);
texts[4]=new Text("Home",29);
texts[5]=new Text("Sabre",32);
texts[6]=new Text("etta&nbsp;Home",47);

gap=Math.floor((700-wt)/(np-1));
x=55;

for(i=0;i<np;++i){
for(j=0;j<2;++j){ss='text'+j;
s='<div class=pic id="'+ss+i+'"><a href=javascript:goTo('+i+'); class=h'+j+
' onMouseOver="MouseOver('+i+');" onMouseOut="MouseOut('+i+');" >'+texts[i].txt+'</a></div>';
document.write(s);
} //next j
switch(browser){
case 'nn4':
text0[i]=document["text0"+i];text1[i]=document["text1"+i];
break;
case 'ie4':
text0[i]=document.all["text0"+i].style;text1[i]=document.all["text1"+i].style;
break;
case 'gecko':
text0[i]=document.getElementById("text0"+i).style;text1[i]=document.getElementById("text1"+i).style;
break;
}  //end switch
text0[i].left=text1[i].left=x;
x=x+texts[i].w+gap;
text0[i].top=texts[i].y;
text0[i].visibility=show;
text1[i].top=texts[i].y;
} //next i
