//gen menu ver. 5

level = new Array('about', 'services', 'work', 'profile', 'jossg', 'event', 'sitemap', 'contactus', 'search', 'terms', 'privacy');


//add_data(lev_div+'link','alt','color','target',layer, 'level', 'folder');

function menu(){
	
	//About JOS
	add_data(lev_div+'about/about.html', 'About JOS', '#850001', '','y','1', 'about');
	add_data(lev_div+'about/who.html', 'Who we are', '#850001', '','','2', 'who');
	add_data(lev_div+'about/message.html', 'Message from the CEO', '#850001', '','','2', 'message');
	add_data(lev_div+'about/milestones.html', 'Milestones', '#850001', '','','2', 'milestones');
	add_data(lev_div+'about/awards.html', 'Awards and Recognition', '#850001', '','','2', 'awards');
	add_data(lev_div+'about/management.html', 'Management Team', '#850001', '','','2', 'management');
	add_data(lev_div+'about/corporate.html', 'Corporate Information', '#850001', '','','2', 'corporate.html');
//	add_data(lev_div+'about/corporate_gov.html', 'Corporate Governance', '#850001', '','','2', 'corporate_gov.html');
	add_data(lev_div+'about/user.html', 'User Story', '#850001', '','','2', 'user');
	add_data(lev_div+'about/contactus.html', 'Contact Us', '#850001', '','','2', 'contact');


	//Services & Solutions
	add_data(lev_div+'services/services.html', 'Services & Solutions', '#850001', '','y','1', 'services');
//	add_data(lev_div+'services/procurement.html', 'Procurement & Deployment Services', '#850001', '','y','2', 'procurement');
//	add_data(lev_div+'services/system.html', 'System Integration', '#850001', '','y','2', 'system');
//	add_data(lev_div+'services/technologies.html', 'Technologies Management & Sustainment', '#850001', '','y','2', 'technologies');

//	add_data(lev_div+'services/sector.html', 'By Sector', '#850001', '','y','2', 'sector');
//	add_data(lev_div+'services/product.html', 'By Product / Service Offering', '#850001', '','','2', 'product');
	

	//Work@jos
	add_data(lev_div+'work/work.asp', 'Work@jos', '#850001', '','y','1', 'work');
	add_data(lev_div+'work/introduction.html', 'Introduction', '#850001', '','','2', 'introduction');
	add_data(lev_div+'work/job_select.asp', 'Job Listing', '#850001', '','','2', 'job');


	//My Profile
	add_data(lev_div+'profile/profile.asp', 'My Profile', '#850001', '','','1', 'profile');
//	add_data(lev_div+'profile/login.html', 'User Login', '#850001', '','y','2', 'login');


	//JOS in Singapore
	add_data(lev_div+'jossg/jossg.html', 'JOS in Singapore', '#850001', '','y','1', 'jossg');
	add_data(lev_div+'jossg/management.html', 'Management ', '#850001', '','','2', 'management');
	add_data(lev_div+'jossg/awards.html', 'Awards', '#850001', '','','2', 'awards');
	add_data(lev_div+'jossg/company.html', 'Company News ', '#850001', '','','2', 'company');
	add_data(lev_div+'jossg/contactus.html', 'Contact Us ', '#850001', '','','2', 'contactus');
//	add_data(lev_div+'jossg/community.html', 'Community Services ', '#850001', '','','2', 'community');

	
	//Event Registration
	add_data(lev_div+'event/event_list.asp', 'Event Registration', '#850001', '','y','1', 'event');
	add_data(lev_div+'event/event_list.asp', 'Event Listing', '#850001', '','','2', 'list');

	//sitemap
	add_data('', 'Sitemap', '', '','','1', 'sitemap'); 

	//Contact Us
	add_data('', 'Contact Us', '', '','','1', 'contact');

	//Search
	add_data('', 'Search', '', '','','1', 'search'); 	

	//Terms of Use 
	add_data('', 'Terms of Use', '', '','','1', 'terms'); 	

	//Privacy Policy
	add_data('', 'Privacy Policy', '', '','','1', 'privacy'); 	

}

function gensearchtext()
{
	var tmpstr = new Array();
	var tmpstr_name = new Array();

	tmpstr[0] = "Imagination is more important than knowledge";
	tmpstr_name[0] = "Albert Einstein";

	tmpstr[1] = "Efforts and courage are not enough without purpose and direction.";
	tmpstr_name[1] = "John Fitzgerald Kennedy";

	tmpstr[2] = "Action is the foundational key to all success.";
	tmpstr_name[2] = "Pablo Picasso";

	tmpstr[3] = "Energy and persistence conquer all things.";
	tmpstr_name[3] = "Benjamin Franklin";

	tmpstr[4] = "Therefore one hundred victories in one hundred battles is not the most skillful. Seizing the enemy without fighting is the most skillful.";
	tmpstr_name[4] = "Sun Tzu";

	tmpstr[5] = "Knowing others is wisdom; Knowing the self is enlightenment. Mastering others requires force; Mastering the self requires strength;";
	tmpstr_name[5] = " Laozi";

	tmpstr[6] = "The ultimate measure of a man is not where he stands in moments of comfort and convenience, but where he stands at times of challenge and controversy.";
	tmpstr_name[6] = "Martin Luther King Jr.";

	tmpstr[7] = "We are what we repeatedly do. Excellence, then, is not an act, but a habit."
	tmpstr_name[7] = "Aristotle";	

	var randomnumber=Math.floor(Math.random()*(tmpstr.length));
	if (document.location.href.search("/cgi-bin/")!=-1)
	{
		document.write("<img src=\"../english/images/general/quote_open.gif\">"+ tmpstr[randomnumber] + "<img src=\"../english/images/general/quote_close.gif\" align=\"absbottom\"> - " + tmpstr_name[randomnumber]);
	} else {
	document.write("<img src=\"../images/general/quote_open.gif\">"+ tmpstr[randomnumber] + "<img src=\"../images/general/quote_close.gif\" align=\"absbottom\"> - " + tmpstr_name[randomnumber]);
	}
}