<!--
var x=0;
var cnt=0;
var lambda=.25;//w is the wavelength
var freq=.05;//the frequency
var toppos=80;//toppos is the position of the vertical center of the oscillation
var leftpos=500;//left offset 
var amplitude=50;//the amplitude of the oscillation
var horizspace=15;//horizontal spacing between characters
var numberofcharacters=9;
var osc_running=false;
var vis="hidden";

function oscillate()
	{
  	if (parseInt(navigator.appVersion.charAt(0)) >3)
	{	x=x+3;
		if (x>(2000*3.2))
		{x=3.2;}
		for(n=0;n<numberofcharacters;n++)
		{	n1="layer"+(n+3);
			if (document.layers)
			{
			document.layers['box1'].document.layers[n1].top=toppos+Math.sin(lambda*n+freq*x)*amplitude;
			document.layers[n1].top=toppos+Math.sin(lambda*n+freq*x)*amplitude;
			document.layers['box1'].document.layers[n1].left=leftpos+horizspace*n;
			}
			if(document.all)
			{
			document.all[n1].style.top=toppos+Math.sin(lambda*n+freq*x)*amplitude;
			document.all[n1].style.left=leftpos+horizspace*n;
			}
			if(!document.all && document.getElementById)
			{
			document.getElementById(n1).style.top=toppos+Math.sin(lambda*n+freq*x)*amplitude +"px";
			document.getElementById(n1).style.left=leftpos+horizspace*n+"px";
			}
		
		}
		osc_tim = window.setTimeout("oscillate( )",10);
	}

}

function osc_switch()
{
/*alert(navigator.appName+"\n" + navigator.appVersion);*/
if (parseInt(navigator.appVersion.charAt(0)) >3)
	{	osc_running = !osc_running;
		if (vis=="visible") vis="hidden"; else vis="visible" ;
		for(n=0;n<numberofcharacters;n++)
			{
				n1="layer"+(n+3);
				if(document.all) /*opera(functionality does not work) or ie*/
				{document.all[n1].style.visibility=vis;
				}
				if (document.layers)
				{document.layers['box1'].document.layers[n1].visibility=vis;
				}
				if(!document.all && document.getElementById)
				{document.getElementById(n1).style.visibility=vis;
				}
			}

		if (osc_running){ oscillate();}
		else 	clearTimeout(osc_tim)
	}
}
;
// -->



