// Page theme selection
var tnam = ['','soaring','shore','seaworld','forest']; // theme names
var lpos = [0,2,6,2,3]; // floater absolute left position
var tpos = [0,118,271,197,208]; // floater absolute top position

// Floater configuration
var speed = 50;
var nn=(navigator.appName.indexOf("Netscape")!=-1);


function showTheme(num) {
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="60" height="100%" class="'+tnam[num]+'">');
	document.write('<tr><td valign="top"><img border="0" src="/images/'+tnam[num]+'1.jpg" alt=""></td>');
	document.write('</tr><tr><td valign="bottom"><img border="0" src="/images/'+tnam[num]+'2.jpg" alt=""></td>');
	document.write('</tr></table>');
}

function showFloat(num) {
	document.write('<div id="floater" style="position:absolute; z-index:1000000; visibility:visible; width:auto; height:auto; left:'+lpos[num]+'px; top:'+tpos[num]+'">');
	document.write('<a href="#top" onMouseOver="window.status=\'Top of Page\'; return true"; onMouseOut="window.status=\'\'; return true">');
	document.write('<img border="0" src="/images/'+tnam[num]+'_float.gif" alt="Top of Page"></a></div>');

	var dD=document,dH=dD.html,dB=dD.body,px=dD.layers?'':'px';

	function floatSS(iX,iY,id) {
		var L=dD.getElementById?dD.getElementById(id):dD.all?dD.all[id]:dD.layers[id];		
		this[id+'O']=L;
		if(dD.layers)L.style=L;L.nX=L.iX=iX;L.nY=L.iY=iY;
		L.P=function(x,y){
			this.style.left=x+px;
			this.style.top=y+px;
			};
		L.Fss=function(){
			var pX, pY;	
			pX=(this.iX >=0)?0:nn?innerWidth:nn&&dH.clientWidth?dH.clientWidth:dB.clientWidth;	
			pY=nn?pageYOffset:nn&&dH.scrollTop?dH.scrollTop:dB.scrollTop;	
			if(this.iY<0)pY+=nn?innerHeight:nn&&dH.clientHeight?dH.clientHeight:dB.clientHeight;	
			this.nX+=.1*(pX+this.iX-this.nX);
			this.nY+=.1*(pY+this.iY-this.nY);
			this.P(this.nX,this.nY);
			setTimeout(this.id+'O.Fss()',speed);
			};
		return L;
		}
	floatSS(lpos[num],tpos[num],'floater').Fss();
}
