var bControl = true;

function banner(msg,ctrlwidth) {
	msg = " --- "+msg
	newmsg = msg
      while (newmsg.length < ctrlwidth) {newmsg += msg}

      document.write ('<FORM NAME="Banner" CLASS="banner">')
	document.write ('<CENTER><INPUT NAME="banner" VALUE= "'+newmsg+'" SIZE= '+ctrlwidth+' onMouseOver="stopRoll();" onMouseOut="startRoll();" onClick="clicked();" style="cursor:pointer;"></CENTER>')
	document.write ('</FORM>')

	var bannerid = null

	rollmsg()	//get the banner rolling
}
function stopRoll(){
  bControl=false;
}
function startRoll(){
  bControl=true;
  rollmsg();
}
function clicked(){
  popwin('http://www.john-warrington.com');
}
function rollmsg() {
  if(!bControl)
    return
  NowMsg=document.Banner.banner.value
  NowMsg=NowMsg.substring(1,NowMsg.length)+NowMsg.substring(0,1)
  document.Banner.banner.value = NowMsg
  bannerid=setTimeout("rollmsg()",250) 
}
function popwin(url)
{
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(url, '" + id + "', 'resizable=1,height=400,width=400,scrollbars=yes');");
	if (window.focus) {eval("page" + id + ".focus()");}
}

//bannerid=setTimeout("rollmsg()",250) 
