// ticadtop.js for UNDP/TICAD IV - 2008 ------------|
// ENGLISH SITE ------------------------------------|
// Programmer: Oswaldo Ospina, oEo -----------------|
// Revision: 6:43 AM 4/11/2009 ---------------------|
// -------------------------------------------------|

//	DO NOT modify !!!!!!!!!!!!!!!!!!!!!!!!!!

//var thisPageTab value comes from each page and it's declared there
var tabToggle = "tab";  // tab or tab_on
var tabsRow = "";

var tabSections = new Array();
	// Use absolute paths?
if (thisPageTab == 1)	// exclusively for home page

// BEGIN Editable Area ---------------------\
	{	
tabSections[0] = new Array("Home","ticadiv-index.shtml","1");
tabSections[1] = new Array("About TICAD","about/objectives.shtml","2");
tabSections[2] = new Array("Yokohama 2008","ticadiv/yokohamadeclaration.shtml","3");
tabSections[3] = new Array("Botswana 2009","ticadiv/botswana2009.shtml","4");
tabSections[4] = new Array("Achievements","achievements/ticadprocess.shtml","5");
tabSections[5] = new Array("Contact us","presskit2008/contactus.shtml","6");
	}
	else		// other pages
	{
tabSections[0] = new Array("Home","../ticadiv-index.shtml","1");
tabSections[1] = new Array("About TICAD","../about/objectives.shtml","2");
tabSections[2] = new Array("Yokohama 2008","../ticadiv/yokohamadeclaration.shtml","3");
tabSections[3] = new Array("Botswana 2009","../ticadiv/botswana2009.shtml","4");
tabSections[4] = new Array("Achievements","../achievements/ticadprocess.shtml","5");
tabSections[5] = new Array("Contact us","../presskit2008/contactus.shtml","6");
	}

// END Editable Area ---------------------/

function displayTabs() {

tabsRow = "<div class=\"tabs\">"; // open layer

for (var i= 0; i < tabSections.length; i++)
	{
	if (thisPageTab == tabSections[i][2])
		{
			tabToggle = "tab_on";
		}
		else
		{
			tabToggle = "tab";
		}
	tabsRow += "<div " + "class=\"" + tabToggle + "\"><a href=\"" 
	tabsRow += tabSections[i][1] + "\">" + tabSections[i][0]
	tabsRow += "</a></div>";
	}

if (browserName == "Netscape")
	{
	tabsRow += "<br clear=\"all\">";		// 
tabsRow += "</div>";	// close layer	
tabsRow += "<div class=\"tabrule\"></div><br />"; 		// you need the <br /> !
	}
	else
	{
tabsRow += "</div>";	// close	
tabsRow += "<div class=\"tabrule\"></div>"; 		// line below tabs
	
	tabsRow += "<br clear=\"all\">";		// 
	}

// Tip: document.write("<plaintext>" + tabsRow + "</plaintext>");  //HTML output
/*document.write("<textarea>" + tabsRow + "</textarea>");  //HTML output
*/
document.write(tabsRow);
document.title = "TICAD | " + tabSections[thisPageTab - 1][0];

} // function

function thisSectionName() {
var sectHeadline = tabSections[thisPageTab - 1][0];
/*alert(sectHeadline);
*/document.write(sectHeadline);

} // function

// End of ticadtop.js