// ------------------------------------------------------
// (c) 2002 Oscar Brynolf   oscar_brynolf@hotmail.com
// For R.R Institute Of Applied Economics
// ------------------------------------------------------
//
// This number deccides how many menu-items that are going to be shown (excluding the "links"-item..)


var menuItems = 7;


var news = new Array();

news[0] = '2009-Oct-30|Rolf F&auml;re awarded Doctor of Philosophy, Honoris Causa, from University of Gothenburg.|n00.html';
news[1] = '2009-Oct-12|A comment on the "Report of the commission on the measurement of economic performance and social progress."|n01.html';
news[2] = '2009-Jun-10|Fredrik Odegaard and Pontus Roos presenting at CORS-INFORMS International Meeting in Toronto, Canada, June 14-17,2009.|n02.html';
news[3] = 'Archive: 2005-Jun-09|Rolf F&auml;re awarded Doctor of Philosophy, Honoris Causa, from Lund University.|n06.html';

// ------------------
// Functions
// ------------------



var newsData = new Array();
parseNews();

function printMenu(){
	
	
	document.write('<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>');
	
	for(var c=1; c <= menuItems; c++){
	
		var t1 = c.toString();
		if (t1.length = 1)
			t1 = '0' + t1;
			
		document.write('<TR><TD><A TARGET=main HREF="p' + t1 + '.html">' +
		'<IMG BORDER=0 SRC="img/m' + t1 + '.gif" ' +
		'onmouseover="this.src=\'img/m' +t1+ 'o.gif\'; return true;" onmouseout="this.src=\'img/m' +t1+ '.gif\'; return true;" ' +
		'></A></TD></TR> \n');
	
	
	}


	document.write('<TR><TD><IMG BORDER=0 SRC="img/mSpan.gif"></TD></TR>');
	
	document.write('<TR><TD><A TARGET="main" HREF="pA.html"><IMG BORDER=0 SRC="img/mA.gif" '+
	'onmouseover="this.src=\'img/mAo.gif\'; return true;" onmouseout="this.src=\'img/mA.gif\'; return true;" ' +
	'></A></TD></TR>');

	document.write('</TABLE><BR><BR>');

}

function printNews(){
		document.write('<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=179>');
		
		document.write('<TR><TD ALIGN=LEFT><A TARGET="main" HREF="n00.html"><IMG BORDER=0 SRC="img/mN.gif" '+
	'onmouseover="this.src=\'img/mNo.gif\'; return true;" onmouseout="this.src=\'img/mN.gif\'; return true;" ' +
	'></A></TD></TR>');
		
		for (var i=0; i < newsData.length; i++){
			var t = "";
			if (newsData[i][2].length>0){
				t = '<TR><TD ALIGN=RIGHT>'+
				'<FONT FACE="Arial, helvetica, sans-serif" COLOR="#8FE6E6" SIZE=1>'+
				'<A TARGET=main HREF="'+newsData[i][2]+'">READ MORE</A></FONT>';
			}
			
			
			document.write('<TR><TD><BR>');
			document.write('<FONT FACE="Arial, helvetica, sans-serif" COLOR="#8FE6E6" SIZE=2>'+
				'<B><FONT SIZE=1 COLOR="#C2F9F9">' + newsData[i][0] + '</FONT></B><BR>' +
				newsData[i][1] + '</FONT></TD></TR>'+
				t );

		
		}
		
		document.write('</TABLE><BR>');
}

function parseNews(){

	for (var i=0; i < news.length; i++){
		newsData[i] = news[i].toString().split("|");
		
	}
}

function printTitle(){
		
		var t1 = currentPage.toString();
		if (t1.length = 1)
			t1 = '0' + t1;
	
		document.write('<IMG SRC="img/c' +t1+ '.gif" BORDER=0>');
	
 }
