//buttons.js adapted for buttons

// balls.js for ephesus site
NS4 = (document.layers);
IE4 = (document.all);
ver4 = (NS4 || IE4);
isMac = (navigator.appVersion.indexOf("Mac") != -1);


// locate the image files
impre = "../../buttons/btn-"


// list the urls
arUrls = new Array(
null,
"istanbul-01.html",						// 1
"mosque-01.html",						// 2
"chora-01.html",						//  *** 3 ***
"../ephesus/ephesus-01.html",			// 4
"../../greece/rhodes/rhodes-01.html",	// 5	
"../../greece/santorini/santorini-01.html",	// 6
"../../greece/delos/delos-01.html",		// 7
"../../greece/athens/athens-01.html",	// 8
"../../greece/delphi/delphi-01.html",	// *** 9 ***	
"../../ancientworld.html",					// 10
"map_istanbul.html",					// 11
"../../greece/aegean/map-aegean.html",	// 12
"../../../index.html" )					// *** 13 ***




// list the buttons
arButtons = new Array(
null,
"istanbul",		// 1
"bluemosque",	// 2
"chora",		// ***3 ***
"ephesus", 		// 4
"rhodes",		// 5
"santorini",	// 6
"delos",		// 7
"athens",		// 8
"delphi",		// 9
"ancientworld",	//10
"map-istanbul",	// 11
"map-aegean",	// 12
"world-s" )		// 13


// list the button text
arText = new Array(
null, 
"Welcome to<br>Istanbul",	// 1
"The Blue<br>Mosque",		// 2
"The Chora<br>Church",		// *** 3 ***
"Ancient<br>Ephesus",		// 4
"Isle of<br>Rhodes",		// 5	
"Island of<br>Santorini",	// 6
"Island of<br>Delos",		// 7
"Athens<br>",				// 8
"Delphi<br>",				// *** 9 ***
"Ancient<br>World",			// 10
"Istanbul<br>Map",			// 11
"Tour<br>Map",				// 12
"Home<br>Page" )			// *** 13 ***


function loadButs(start, end, pos){
	
	document.write("<P ALIGN='center'>"); // align the images 
	document.write("<table><tr>"); // start the table 
	if (end<=arButtons.length) {
	for (i=start; i<=end;i++){
		document.write("<td align='center' valign='top'>"); // table data
		anchStr = "<a href='"+ arUrls[i] + "' ";
		if (i == 11 || i == 12) { anchStr = anchStr + "target='_blank'";} 
		anchStr = anchStr + ">";
		imStr = "<IMG SRC='"+ impre + arButtons[i] + ".jpg' WIDTH=72 HEIGHT=42 BORDER=0></a><br>";
		txStr = "<font face='arial' size='2'><b><i>" + arText[i] + "</i></b></font></td>";
		document.write(anchStr);
		document.write(imStr);
		document.write(txStr);
		if(!ver4) continue;
		
	}}
	document.write("</tr></table>");
	document.write("</P>");
}
