//convert title added by Jeff Pinto
function convertTitle(title) { //v1.0
var ch,pos,cnt=0
title=title.toUpperCase()           //set title to all caps
do
{
ch=title.charAt(0)                //first character of each word is altered
if(title.indexOf(' ')==-1)        //if there are no spaces
{
cnt++                           //cnt increments - will stop loop
pos=title.length                //position to end string will be the end of the current word
}
else
{
pos=title.indexOf(' ')          //pos equals the position of the next whitespace
pos++														//adding one will make pos equal the position of the next letter
}
document.write('<span class="maintitle">')  //add the opening span tag
document.write(ch)  
document.write('</span>')
document.write( title.substring(1, pos) )     				//write the rest of the word being altered
title=title.substring(pos,title.length)               //cut the word just altered so the loop
																									//will go on to the next word
}
while(cnt<1)
}