function get_the_agenda(m_now,m_sel)
{       
	var months = new Array(12);
	var the_agenda ="";

	months[1] = "JAN";
	months[2] = "FEB";
	months[3] = "MAR";
	months[4] = "APR";
	months[5] = "MAY";
	months[6] = "JUN";
	months[7] = "JUL";
	months[8] = "AUG";
	months[9] = "SEP";
	months[10] = "OCT";
	months[11] = "NOV";
	months[12] = "DEC";
	
	the_agenda += '<table cellpadding="0" cellspacing="0" border="1" width="100%"><tr>';

	for (var i = 0; i < 12; i++) 
	{

		if ((((m_now + i) < 13) ? (m_now + i) : (m_now + i - 12)) == m_sel) 
		{
			the_agenda += '<td align="center" BGCOLOR="#00AA00">';
		}
		else the_agenda += '<td align="center">';
		the_agenda += months[((m_now + i) < 13) ? (m_now + i) : (m_now + i - 12)];
		the_agenda += '</td>';	
	}

	the_agenda += '</tr></table>';

	return(the_agenda);
}


function get_the_date()
{       
	var now = new Date();
	var the_date = now.getDate();
	var the_month = now.getMonth() + 1;
	var the_year = now.getYear();
		
	if (the_year < 2000) {the_year += 1900}

	if (the_month==1) {the_month="january"}
	else { if (the_month==2) {the_month="february"}
	else { if (the_month==3) {the_month="march"}
	else { if (the_month==4) {the_month="april"}
	else { if (the_month==5) {the_month="may"}
	else { if (the_month==6) {the_month="june"}
	else { if (the_month==7) {the_month="july"}
	else { if (the_month==8) {the_month="august"}
	else { if (the_month==9) {the_month="september"}
	else { if (the_month==10) {the_month="october"}
	else { if (the_month==11) {the_month="november"}
	else { if (the_month==12) {the_month="december"}}}}}}}}}}}}

	return(the_month + " " + the_date + ", " + the_year);
}


function get_the_day()
{       
	var now = new Date();
	var the_day = now.getDay();

	if (the_day==0) {the_day="sunday"}
	else { if (the_day==1) {the_day="monday"}
	else { if (the_day==2) {the_day="tuesday"}
	else { if (the_day==3) {the_day="wednesday"}
	else { if (the_day==4) {the_day="thursday"}
	else { if (the_day==5) {the_day="friday"}
	else {the_day="Saturday"}}}}}}

	return(the_day + ", ");
}


function get_the_menu(level,select)
{       
	var the_menu ="";
	var arbo="";
	
	if (level == 0) {arbo = ""};
	if (level == 1) {arbo = "../"};
	if (level == 2) {arbo = "../../"};
	
	the_menu += '<A HREF="' + arbo + 'news/index.shtml"><IMG SRC="' + arbo + 'img/t_news';
	if (select == 10) {the_menu += '_r';};
	the_menu += '.gif" WIDTH="145" HEIGHT="20" ALT="news" BORDER="0"></A><BR>';
	
	the_menu += '<A HREF="' + arbo + 'inte/index.htm"><IMG SRC="' + arbo + 'img/t_inte';
	if (select == 15) {the_menu += '_r';};
	the_menu += '.gif" WIDTH="170" HEIGHT="20" ALT="interviews" BORDER="0"></A><BR>';
	
	the_menu += '<A HREF="' + arbo + 'proj/index.htm"><IMG SRC="' + arbo + 'img/t_proj';
	if (select == 20) {the_menu += '_r';};
	the_menu += '.gif" WIDTH="145" HEIGHT="20" ALT="projects" BORDER="0"></A><BR>';

	the_menu += '<A HREF="' + arbo + 'link/index.htm"><IMG SRC="' + arbo + 'img/t_link';
	if (select == 30) {the_menu += '_r';};
	the_menu += '.gif" WIDTH="145" HEIGHT="20" ALT="links" BORDER="0"></A><BR>';

	the_menu += '<A HREF="' + arbo + 'even/index.htm"><IMG SRC="' + arbo + 'img/t_even';
	if (select == 40) {the_menu += '_r';};
	the_menu += '.gif" WIDTH="145" HEIGHT="20" ALT="events" BORDER="0"></A><BR> <BR> <BR>';

	the_menu += '<A HREF="' + arbo + 'cont/index.htm"><IMG SRC="' + arbo + 'img/t_cont';
	if (select == 50) {the_menu += '_r';};
	the_menu += '.gif" WIDTH="145" HEIGHT="20" ALT="contact" BORDER="0"></A><BR>';

	the_menu += '<A HREF="' + arbo + 'abou/index.htm"><IMG SRC="' + arbo + 'img/t_abou';
	if (select == 60) {the_menu += '_r';};
	the_menu += '.gif" WIDTH="145" HEIGHT="20" ALT="about" BORDER="0"></A><BR>';
	
	return(the_menu);
}

function get_the_footer(level)
{       
	var the_footer ="";
	var arbo="";
	
	if (level == 0) {arbo = ""};
	if (level == 1) {arbo = "../"};
	if (level == 2) {arbo = "../../"};
	
	the_footer += '<A HREF="' + arbo + 'news/index.shtml">news</A> - ';
	the_footer += '<A HREF="' + arbo + 'inte/index.htm">interviews</A> - ';
	the_footer += '<A HREF="' + arbo + 'proj/index.htm">projects</A> - ';
	the_footer += '<A HREF="' + arbo + 'link/index.htm">links</A> - ';
	the_footer += '<A HREF="' + arbo + 'even/index.htm">events</A> - ';
	the_footer += '<A HREF="' + arbo + 'cont/index.htm">contact</A> - ';
	the_footer += '<A HREF="' + arbo + 'abou/index.htm">about</A>';

	the_footer += '<BR>';

	the_footer += 'This page belongs to <A HREF="http://www.RobotsLife.com" TARGET="_blank">RobotsLife.com</A> - All rights reserved - Reproduction forbidden<BR>';
	
	return(the_footer);
}


function get_the_pub(section)
{       
	var the_pub ="";
		
	the_pub += '<A HREF="http://www.nanogloss.com" TARGET="_blank"><img src="../img/p_nano.gif" width=468 height=60 border=0 alt=""></A>';

	if (section == "home")
	{
		the_pub = '';
	}
	
	if (section == "even")
	{
		the_pub = '<A HREF="mailto:info@paltopal.com"><img src="../img/p_palt.gif" width=468 height=60 border=0 alt=""></A>';
	}
	
	return(the_pub);
}


function get_the_quote()
{       
	var alea = 0;
	var max_q = 8;
	
	var q_1 = '"We build too many walls and not enough bridges."<BR><BR>Isaac Newton';
	var q_2 = '"We\'re trying to build a human."<BR><BR>Rodney Brooks, MIT\'s Artificial Intelligence Laboratory';
	var q_3 = '"I\'m afraid I can\'t let you do that, Dave."<BR><BR>HAL - 2001, A space Odyssey';
	var q_4 = '"Le progr&egrave;s : trop robot pour &ecirc;tre vrai."<BR><BR>Jacques Pr&eacute;vert';
	var q_5 = '"A robot may not injure a human being, or, through inaction, allow a human being to come to harm."<BR><BR>Isaac Asimov - First Law of Robotics - 1942';
	var q_6 = '"I believe that 21st century technologies will allow the creation of \'artilects\' (ultra intelligent machines), with intellectual capacities zillions of times greater than those of human beings."<BR><BR>Hugo de Garis';
	var q_7 = '"The Encyclopedia Galactica defines a robot as a mechanical apparatus designed to do the work of a man. The marketing division of the Sirius Cybernetics Corporation defines a robot as \'Your Plastic Pal Who\'s Fun To Be With.".<BR><BR>Douglas Adams - Hitchhiker\'s Guide To The Galaxy';
	var q_8 = '"We live in a society exquisitely dependent on science and technology, in which hardly anyone knows anything about science and technology."<BR><BR>Carl Sagan';
	
	var table = new Array(q_1,q_2,q_3,q_4,q_5,q_6,q_7,q_8);
	
	alea = Math.random();
	alea *= max_q;
	alea = Math.floor(alea);
		
	return(table[alea]);
}


