function setBackground( element ) {
	if ( element.style.background != 'lightgrey' ) element.style.background = 'lightgrey';
	else element.style.background = 'white';
}

function displayHeader() {
	document.write( '<IMG CLASS="left" STYLE="position: relative; top: 7; left: 5;" SRC="pics/mingf3.gif">' +
			'<A HREF="mailto:info@ming.nu"">' +
			'<DIV STYLE="margin-right: 5;">' +
			'<IMG BORDER="0" CLASS="right" STYLE="position: relative; top: 79;" SRC="pics/symbol_kontakta.gif">' +
			'</A>' +
			'<A HREF="index.html">' +
			'<IMG BORDER="0" CLASS="right" STYLE="position: relative; top: 79;" SRC="pics/symbol_hem.gif"></SPAN>' +
			'</A>' +
			'</DIV>' +
			'<SPAN STYLE="position: absolute; top: 40; font: large;">Mariningenjörföreningen</SPAN>' );
}

function displayMenu() {
	document.write( '<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="index.html">Startsidan</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="blimedlem.html">Bli medlem</A></DIV>' +
			'<DIV CLASS="elem" onMouseOVer="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="medlem/index.html">Medlemssidorna</A></DIV>' +
			'<DIV CLASS="elem" onMouseOVer="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="addguest.html">Skriv inlägg</A></DIV>' +
			'<DIV CLASS="elem" onMouseOVer="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="guestbook.html">Läs inlägg</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="lankar.html">Länkar</A></DIV>' +
			
			'<P>&nbsp;</P><P><STRONG><EM>Historia: 1952-1964</EM></STRONG></P>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-vk-51-allm.html">Allmänt</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-vk-51-mingk.html">MIng-kåren</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-vk-51-ftg.html">Övervattensfartyg</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-vk-51-ub.html">Ubåtar</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-vk-51-vapen.html">Vapen</A></DIV>' +
			'<P><STRONG><EM>Historia: 1965-1976</EM></STRONG></P>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-52-64-kk.html">Kalla kriget</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-52-64-mingk.html">MIng-kåren</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-52-64-ftg.html">Övervattensfartyg</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-52-64-ub.html">Ubåtar</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-52-64-vapen.html">Vapen</A></DIV>' +
			'<P><STRONG><EM>Historia: 1965-1976</EM></STRONG></P>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-65-76-utv.html">Utveckling</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-65-76-mingk.html">MIng-kåren</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-65-76-ftg.html">Övervattensfartyg</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-65-76-ub.html">Ubåtar</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-65-76-vapen.html">Vapen</A></DIV>' +
			'<P><STRONG><EM>Historia: 1977-1998</EM></STRONG></P>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-77-98-utv.html">Utveckling</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-77-98-mingk.html">MIng-kåren</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-77-98-ftg.html">Övervattensfartyg</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-77-98-ub.html">Ubåtar</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="hi-77-98-vapen.html">Vapen</A></DIV>');
}

function displayMemberMenu() {
	document.write( '<DIV STYLE="font-size: xx-small;">' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="index.html">Startsida medlem</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="program.html">Program</A></DIV>' +
			'<DIV CLASS="elem" onMouseOVer="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="styrelsen.html">Styrelsen</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="docs/Stadgar 2009.pdf">Stadgar</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="mentorvht.html">Mentor</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="uppvaktn.html">Uppvaktning</A></DIV>' +
			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="arkivet.html">Arkivet</A></DIV>' +
                                                


			'<DIV CLASS="elem" onMouseOver="setBackground( this );" onMouseOut="setBackground( this );"><A HREF="../index.html">Logga ut</A></DIV>' +			
			
			'</DIV>' );
			
			
}


function getModifiedDate() {
	if ( Date.parse( document.lastModified ) != 0 ) {
		var tempDate = new Date( Date.parse( document.lastModified ) );
		var year = tempDate.getYear();
		var month = tempDate.getMonth() + 1;
		var date = tempDate.getDate();
		if ( month < 10 ) month = '0' + month;
		if ( Date < 10 ) Date = '0' + Date;
		var changeDate = year + '-' + month + '-' + date;
		document.write( 'Senast uppdaterad: ' + changeDate + ',' + 
				'&nbsp;&copy;&nbsp;1998-2004&nbsp;MIngF' );
	}
}

function displayInv() {
	winURL = 'inventarier.html';
	winName = 'inventarier';
	winFeat = 'height=320,width=350,directories=no,location=no,menubar=no,rezisable=no,toolbar=no,scrollbars=yes';
	
	window.open( winURL, winName, winFeat );
}
