// header menu ver. 1.4 050412

function makeCurvyLetters(){
with(document){
write('<div style="position:absolute;top:-12px;left:0px;color:#603;text-align:right; font-style:italic;');
write('font-family:Times New Roman;font-weight:bold">');
	txtCurvy = "                                                           S c r i p  t W   e  l l .n  e  t          ";
	txtCurvy = txtCurvy.split('');// make an array of characters
	len = txtCurvy.length; 
	curvyWidth =130;
	curvyHeight = -50;
	xpos = 120;
	ypos = 60;
	var step = 2*Math.PI/len; 
	for(i=0; i<len; i++){
		fntSize = curvyHeight * Math.sin(i*step);
		y = ypos + curvyHeight;
		x = xpos + curvyWidth * Math.cos(i*step);
		if (fntSize<5) fntSize=5;
		fntSize = Math.round(fntSize/1.7 +.5);
		write('<span style="width: auto;height:auto;position:absolute;top:'+y+'px;left:'+x+'px;');
		write('font-size:'+fntSize+'pt">'+txtCurvy[i]+'</span>');
	}
	write('</div>');

}//end with

}//end function makeHeader()

function findSelected(){//returns the index of current tab
var addr=''+document.location;
addr=addr.toLowerCase()
if(addr.indexOf('default.html')==-1){//find tab index
  for (var i=1; i<Items.length; i++){
	if(addr.indexOf(Items[i].toLowerCase())>-1) return i;
  }//end for
}//end if
return 0
}

function setCurrentButton() {
	var cb=findSelected();
	id='btn'+cb;
	with(document.getElementById(id).style){
		border="thin inset";
	}
	id='anc'+cb;
	with(document.getElementById(id).style){
		color="#c09";
		background="#ddd"
	}
}
