browserName = navigator.appName; 
browserVer = parseInt(navigator.appVersion);  
if (browserName == "Netscape" && browserVer >= 3) { browserCheck = "ok"; }  
else {       
if (browserName == "Microsoft Internet Explorer" && browserVer >= 3) 
{ browserCheck = "ok"; }      
else { browserCheck = "bad"; }  
}  
if (browserCheck == "ok") 
{   
b0a = new Image(); b0a.src = "but0.gif";
b0b = new Image(); b0b.src = "but0a.gif";
b1a = new Image(); b1a.src = "but1.gif";
b1b = new Image(); b1b.src = "but1a.gif";
b2a = new Image(); b2a.src = "but2.gif";
b2b = new Image(); b2b.src = "but2a.gif";
b3a = new Image(); b3a.src = "but3.gif";
b3b = new Image(); b3b.src = "but3a.gif";
b4a = new Image(); b4a.src = "but4.gif";
b4b = new Image(); b4b.src = "but4a.gif";
b5a = new Image(); b5a.src = "but5.gif";
b5b = new Image(); b5b.src = "but5a.gif"; 
}  
function imgswap( Iname1, Iname2) 
{ 
if (browserCheck == "ok") 
{ 
document [Iname1].src = eval(Iname2 + ".src"); } }    


function Zoom(theImage,theTitle,x,y) 
{     
var x1 = x + 24     
var y1 = y + 80 	
var newWindow = null         
newWindow = window.open("","","width="+x1+",height="+y1+",scrollbars=no,resizable=yes")   	
if (newWindow !=null) 
{ 		
newWindow.focus() 		
var newimage = "<HTML><link rel='stylesheet' type='text/css' HREF='prodivecairns.css'><HEAD><TITLE>" +theTitle+ "</TITLE></HEAD>" 		
newimage += "<BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 CLASS='popup'><FORM><DIV align=\"center\"><IMG SRC=" +theImage+ " WIDTH=" +x+ " HEIGHT=" +y+ " BORDER=0 VSPACE=10 CLASS='popup'><BR>" 		
newimage += "<FONT CLASS='popup'><B>" +theTitle+ "</B></FONT><BR>" 		
newimage += "<IMG SRC='space.gif' WIDTH=1 HEIGHT=10><BR>" 		
newimage += "<INPUT TYPE='button' CLASS='popup' VALUE='Close This Window' onClick='javascript:window.close()'></FORM></DIV>" 		
newimage += "</BODY></HTML>" 		
newWindow.document.write(newimage) 		
newWindow.document.close() 	} } 


function CurrencyPopup(QueryString)
{
CurrencyWindow = window.open ('', 'CurrencyWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,height=170,width=615')
CurrencyWindow.focus()
CurrencyWindow.location.href = 'http://www.xe.com/ecc/input.cgi?Template=sw&'+QueryString
}


// B=document.all;
B=true;
C=document.layers;
T1=new Array("trail1.gif",19,19,"trail2.gif",17,18,"trail3.gif",9,9,"trail4.gif",19,19,"trail5.gif",17,18,"trail6.gif",9,9)
nos=parseInt(T1.length/3)
rate=50
ie5fix1=0;
ie5fix2=0;
for (i=0;i<nos;i++){
createContainer("CUR"+i,i*10,i*10,i*3+1,i*3+2,"","<img src='"+T1[i*3]+"' width="+T1[(i*3+1)]+" height="+T1[(i*3+2)]+" border=0>")}
function createContainer(N,Xp,Yp,W,H,At,HT,Op,St){
with (document){
write((!B) ? "<layer id='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H : "<div id='"+N+"'"+" style='position:absolute;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; ");
if(St){
if (C)
write(" style='");
write(St+";' ")
}
else write((B)?"'":"");
write((At)? At+">" : ">");
write((HT) ? HT : "");
if (!Op)
closeContainer(N)
}
}
function closeContainer(){
document.write((B)?"</div>":"</layer>")
}
function getXpos(N){
  return parseInt(document.getElementById(N).style.left);
// return (B) ? parseInt(B[N].style.left) : C[N].left
}
function getYpos(N){
  return parseInt(document.getElementById(N).style.top);
// return (B) ? parseInt(B[N].style.top) : C[N].top
}

function moveContainer(N,DX,DY){
  document.getElementById(N).style.left = DX + 'px';
  document.getElementById(N).style.top = DY + 'px';
// c=(B) ? B[N].style :C[N];c.left=DX;c.top=DY
}
function cycle(){
//if (IE5) 
if (document.all&&window.print){
ie5fix1=document.body.scrollLeft;
ie5fix2=document.body.scrollTop;
}
for (i=0;i<(nos-1);i++){
moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)))
}
}
function newPos(e){
  moveContainer("CUR"+(nos-1), (!e)?event.clientX+ie5fix1:e.pageX+2,(!e)?event.clientY+ie5fix2:e.pageY+2
)
}
if(document.layers)
document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=newPos
setInterval("cycle()",rate)