function openMboard()	{
	window.open('gather/board/mboard.html','Mboard','status=yes,scrollbars=yes,height=300,width=500');
}

/********************************************************************************
This script is made by and copyrighted to Thomas Brattli at www.bratta.com
Visit for more great scripts. 
This may be used freely as long as this msg is intact!
********************************************************************************
Browsercheck:*/
ie=document.all?1:0
n=document.layers?1:0

/*********************************************************************************
These are the variables you have to set:
*********************************************************************************/

//The speed of the timeout between each scroll.
timSpeed=25

//The height of the container (change this when it scrolls to much or to little)
var contHeight

/*********************************************************************************
This is the object constructor function, which applies 
methods and properties to the Cross-browser layer object
*********************************************************************************/
function makeScrollObj(obj,nest){
	nest=(!nest) ? '':'document.'+nest+'.'										
	this.css=(n) ? eval(nest+'document.'+obj):eval('document.all.'+obj+'.style')							
	this.scrollHeight=n?this.css.document.height:eval('document.all.'+obj+'.offsetHeight')							
	this.top=b_gettop										
	return this
}
//Getting the top for the top method
function b_gettop(){
	var gleft=(n) ? eval(this.css.top):eval(this.css.pixelTop);
	return gleft;
}
//Variables
var scrollTim;
var active=0;
/*********************************************************************************
The scroll function. Checks what way to scroll and checks if the
layer is not already on top or bottom.
*********************************************************************************/
function scroll(speed){
	clearTimeout(scrollTim)
	way=speed>0?1:0
	if((!way && oScroll[active].top()>-oScroll[active].scrollHeight+contHeight) || (oScroll[active].top()<0 && way)){
		oScroll[active].css.top=oScroll[active].top()+speed
		scrollTim=setTimeout("scroll("+speed+")",timSpeed)
	}
}
//Clears the timeout so the scroll stops, this is called onmouseout.
function noScroll(){
	clearTimeout(scrollTim)
}
/*********************************************************************************
Changes the active layer. Hides the one that's visible and
shows the "new" one. Also set's the new layers top to
0 so it starts at top.
*********************************************************************************/

function changeActive(num){
//	oScroll[active].css.visibility='hidden'
//	active=num
	oScroll[active].css.top=0
//	oScroll[active].css.visibility='visible'
	oScroll[active].css.src=aePage[num]
	contHeight=cHigh[num]
	kurl=kurla[num]
	krfurl=refsref[num]
	cgurl=cbaGuide[num]


}
/*********************************************************************************
add in the src of different pages
*********************************************************************************/
aePage=new Array()
	aePage[0]='NS_Doc/primary/petroleum.html'	//-500
	aePage[1]='NS_Doc/primary/coal.html'		//-400
	aePage[2]='NS_Doc/primary/gas.html'		//330
	aePage[3]='NS_Doc/alternative/biomass.html'	//-300
	aePage[4]='NS_Doc/alternative/fission.html'	//-75
	aePage[5]='NS_Doc/alternative/fusion.html'	//-500
	aePage[6]='NS_Doc/alternative/geothermal.html'  //-765
	aePage[7]='NS_Doc/alternative/hydro.html'	//-700
	aePage[8]='NS_Doc/alternative/fuelcell.html'	//-1650
	aePage[9]='NS_Doc/alternative/otec.html'	//-1450
	aePage[10]='NS_Doc/alternative/solar.html'	//-1530
	aePage[11]='NS_Doc/alternative/sl.html'		//-100
	aePage[12]='NS_Doc/alternative/tidal.html'	//-350
	aePage[13]='NS_Doc/alternative/wave.html'	//-470
	aePage[14]='NS_Doc/alternative/wind.html'	//-880
	aePage[15]='NS_Doc/involved/tips.html'
	aePage[16]='NS_Doc/involved/none.html'		//330
	aePage[17]='NS_Doc/involved/none.html'
	aePage[18]='NS_Doc/involved/boards.html'
	aePage[19]='NS_Doc/references/index.html'	//-2300

/*********************************************************************************
define contHeight value
*********************************************************************************/
cHigh=new Array()
	cHigh[0]=-500
	cHigh[1]=-400
	cHigh[2]=330
	cHigh[3]=-300
	cHigh[4]=-75
	cHigh[5]=-500
	cHigh[6]=-765
	cHigh[7]=-700
	cHigh[8]=-1650
	cHigh[9]=-1450
	cHigh[10]=-1530
	cHigh[11]=-100
	cHigh[12]=-350
	cHigh[13]=-470
	cHigh[14]=-880
	cHigh[15]=-500
	cHigh[16]=
	cHigh[17]=
	cHigh[18]=330
	cHigh[19]=-2300
/*********************************************************************************
define kurla Array for kprint function
*********************************************************************************/
kurla=new Array()
	kurla[0]='text/primary/petroleum.html'
	kurla[1]='text/primary/coal.html'
	kurla[2]='text/primary/gas.html'
	kurla[3]='text/alternative/biomass.html'
	kurla[4]='text/alternative/fission.html'
	kurla[5]='text/alternative/fusion.html'
	kurla[6]='text/alternative/geothermal.html'
	kurla[7]='text/alternative/hydro.html'
	kurla[8]='text/alternative/hfcell.html'
	kurla[9]='text/alternative/otec.html'
	kurla[10]='text/alternative/solar.html'
	kurla[11]='text/alternative/sl.html'
	kurla[12]='text/alternative/tidal.html'
	kurla[13]='text/alternative/wave.html'
	kurla[14]='text/alternative/wind.html'
	kurla[15]='text/involved/tips.html'
	kurla[16]='NS_Doc/noPrint.html'
	kurla[17]='NS_Doc/noPrint.html'
	kurla[18]='text/involved/boards.html'
	kurla[19]='text/references/index.html'
/*********************************************************************************
define refsref Array for showRef function
*********************************************************************************/
refsref=new Array()
	refsref[0]='NS_Doc/primary/ref_p.html'
	refsref[1]='NS_Doc/primary/ref_c.html'
	refsref[2]='NS_Doc/primary/ref_g.html'
	refsref[3]='NS_Doc/alternative/ref_b.html'
	refsref[4]='NS_Doc/alternative/ref_fi.html'
	refsref[5]='NS_Doc/alternative/ref_fu.html'
	refsref[6]='NS_Doc/alternative/ref_g.html'
	refsref[7]='NS_Doc/alternative/ref_h.html'
	refsref[8]='NS_Doc/alternative/ref_hf.html'
	refsref[9]='NS_Doc/alternative/ref_oo.html'
	refsref[10]='NS_Doc/alternative/ref_s.html'
	refsref[11]='NS_Doc/alternative/ref_sl.html'
	refsref[12]='NS_Doc/alternative/ref_ot.html'
	refsref[13]='NS_Doc/alternative/ref_ow.html'
	refsref[14]='NS_Doc/alternative/ref_w.html'
	refsref[15]='NS_Doc/involved/ref_tips.html'
	refsref[16]='NS_Doc/noRef.html'
	refsref[17]='NS_Doc/noRef.html'
	refsref[18]='NS_Doc/noRef.html'
	refsref[19]='NS_Doc/noRef.html'

/*********************************************************************************
define cbaGuide Array for baGuide function
*********************************************************************************/
cbaGuide=new Array()
	cbaGuide[0]='NS_Doc/guide/oil.html'
	cbaGuide[1]='NS_Doc/guide/coal.html'
	cbaGuide[2]='NS_Doc/guide/na.html'
	cbaGuide[3]='NS_Doc/guide/biomass.html'
	cbaGuide[4]='NS_Doc/guide/fission.html'
	cbaGuide[5]='NS_Doc/guide/fusion.html'
	cbaGuide[6]='NS_Doc/guide/geothermal.html'
	cbaGuide[7]='NS_Doc/guide/hydro.html'
	cbaGuide[8]='NS_Doc/guide/fuelcell.html'
	cbaGuide[9]='NS_Doc/guide/na.html'
	cbaGuide[10]='NS_Doc/guide/solar.html'
	cbaGuide[11]='NS_Doc/guide/sl.html'
	cbaGuide[12]='NS_Doc/guide/tidal.html'
	cbaGuide[13]='NS_Doc/guide/wave.html'
	cbaGuide[14]='NS_Doc/guide/wind.html'
	cbaGuide[15]='NS_Doc/guide/tips.html'
	cbaGuide[16]='NS_Doc/guide/na.html'
	cbaGuide[17]='NS_Doc/guide/trivia.html'
	cbaGuide[18]='NS_Doc/guide/na.html'
	cbaGuide[19]='NS_Doc/guide/na.html'

/*********************************************************************************
Initilizes the page, makes a oScroll Array and calls the object constructor.
Here you can add as many scrollObjects as you want
*********************************************************************************/
function scrollInit(){
	oScroll=new Array()
	oScroll[0]=new	makeScrollObj('divScroll2','divCont')
	oScroll[0].css.visibility='visible'
	oScroll[0].css.src='NS_Doc/intro.html'
}
/*********************************************************************************
Executes the scrollInit function on pageload.
*********************************************************************************/

var kurl = 'NS_Doc/noPrint.html'
var kName = 'printWin'
var keat = 'status=yes,menubar=yes,scrollbars=1,width=330,height=400'

function kprint(url,kwName,kfeat) {
	window.open(url,kwName,kfeat);
}

var krfurl = 'NS_Doc/noRef.html'
var krfName = 'showReference'
var krffeat = 'status=yes,scrollbars=1,menubar=yes,width=450,height=200'

function showRef (ffurl,ffName,fffeat){
	window.open(ffurl,ffName,fffeat);}

var cgurl = 'NS_Doc/guide/na.html'

//var cgName = 'GuideShow'
//var cgfeat = 'status=yes,scrollbars=no,menubar=no,width=450,height=300'

//function baGuide (ggurl,ggName,ggfeat){
//	window.open(ggurl,ggName,ggfeat);}

//-->

