var theText="openHighTech!";
var speedAnimation=50;
var t_o;
function nextSize(i,textLength){
		 return(48*Math.abs(Math.sin(2*i/textLength/3.1416)));
}

function sizeCycle(text,dis){
output="";
for(i=0;i<text.length;i++){
	size=parseInt(nextSize(i+dis,text.length));
	output+="<font color=#669999 style='font-size:"+size+"pt'>"+text.substring(i,i+1)+"</font>"
}
document.getElementById("wave").innerHTML=output;
}

function doWave(n){
sizeCycle(theText,n);
t_o = setTimeout("doWave("+(n+1)+")",speedAnimation);
if(n>theText.length){n=0} 
}

function stopeffect(){
clearTimeout(t_o);
output="";
output+="<font color=#669999 style='font-size:48pt'>openHighTech</font>";
document.getElementById("wave").innerHTML=output;
}


