
// Script to remove < version 4 browsers and NS 4
version=parseInt(navigator.appVersion);
browser='OTHER'; 
if (navigator.appName=='Netscape'){browser='NS'+version;} 
if (version<4) {window.location='/oldbro.html'}
if (browser=='NS4') {window.location='/oldbro.html'}

//set default status bar
window.status="Buckingham, Winslow & District Scouts"

//rreload on resize
function reDo(){ window.location.reload() }
//window.onresize = reDo;

//Set up News change time
var changetime
current=0

//change this bit
changetime=10



//common functions
// show the news scroller
function shownews() {
	if (document.all&& !window.opera) {
	  NEWS.innerHTML=startn + linky[1] + endn
		NEWS.style.visibility="visible" 
		changediv ()
	}	
	else 
	{
	document.getElementById("NEWS").innerHTML= startn + linky[1] + endn
	document.getElementById("NEWS").style.visibility = 'visible'
	changediv ()
	}
}

function overthis(im,c) {
im.src="/images/news" + c + "o.gif"
}

function outthis(im,c) {
im.src="/images/news" + c + ".gif"
}

function changediv ()
{
current=current+1
if(current>max) {current=1}

if (document.all && !window.opera) {
  mainnews.innerHTML=linky[current]
  }
  else {
   if (document.getElementById) {
    document.getElementById('mainnews').innerHTML= linky[current] 
	}
	}
setTimeout('changediv()',changetime); 
}

function bpopup(url)
{
url="http://www.scoutbase.org.uk/library/hqdocs/badges/" +url
MyWindow=window.open(url,'MyWindow','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=500'); 
return false;
}

function mypopup(url)
{
MyWindow=window.open(url,'MyWindow','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=500'); 
return false;
}

function showit(idtoshow) {
document.getElementById("myspan").innerHTML=document.getElementById(idtoshow).innerHTML
}
