﻿function createLeftMenu() {
//configure below variable for menu width, position on page
var menuwidth=100
var offsetleft=240
var offsettop=200

var menui = new Array();
var menul = new Array();

//configure below for menu items. Extend list as desired

menui[0]="SITE MAP";
menui[1]="Historical Tours";
menui[2]="Cultural Exploration Tours";
menui[3]="Religious Tours";
menui[4]="Adventure and Ecological Tours";
menui[5]="Business Tours";
menui[6]="Great Silk Road";
menui[7]="Tashkent";
menui[8]="Samarkand";
menui[9]="Bukhara";
menui[10]="Shakhrisabz";
menui[11]="Karshi";
menui[12]="Khiva";
menui[13]="Urgench";
menui[14]="Termez";
menui[15]="Nukus";
menui[16]="Fergana";
menui[17]="Margilan";
menui[18]="Andijan";
menui[19]="Kokand";
menui[20]="Namangan";
menui[21]="Tashkent Hotels";
menui[22]="Samarkand Hotels";
menui[23]="Bukhara Hotels";
menui[24]="Khiva Hotels";
menui[25]="Urgench Hotels";
menui[26]="Fergana Hotels";
menui[27]="Andijan Hotels";
menui[28]="Termez Hotels";
menui[29]="Nukus Hotels";
menui[30]="Shakhrisabz Hotels";
menui[31]="Karshi Hotels";
menui[32]="Aral Sea";
menui[33]="READING ROOM";


menul[0]="SiteMap.htm";
menul[1]="HistoricalTours.htm";
menul[2]="CulturalExplorationTours.htm";
menul[3]="ReligiousTours.htm";
menul[4]="AdventureEcologicalTours.htm";
menul[5]="BusinessTours.htm";
menul[6]="GreatSilkRoad.htm";
menul[7]="Tashkent.htm";
menul[8]="Samarkand.htm";
menul[9]="Bukhara.htm";
menul[10]="Shakhrisabz.htm";
menul[11]="Karshi.htm";
menul[12]="Khiva.htm";
menul[13]="Urgench.htm";
menul[14]="Termez.htm";
menul[15]="Nukus.htm";
menul[16]="Fergana.htm";
menul[17]="Margilan.htm";
menul[18]="Andijan.htm";
menul[19]="Kokand.htm";
menul[20]="Namangan.htm";
menul[21]="TashkentHotels.htm";
menul[22]="SamarkandHotels.htm";
menul[23]="BukharaHotels.htm";
menul[24]="KhivaHotels.htm";
menul[25]="UrgenchHotels.htm";
menul[26]="FerganaHotels.htm";
menul[27]="AndijanHotels.htm";
menul[28]="TermezHotels.htm";
menul[29]="NukusHotels.htm";
menul[30]="ShakhrisabzHotels.htm";
menul[31]="KarshiHotels.htm";
menul[32]="AralSea.htm";
menul[33]="Books/Reading-room.htm";

var strHtml;
strHtml = '<span ALIGN="left" id="spnLeftMenu" style="cursor:hand;background-color:black;"><table border="1" width="100%" cellpadding="0" cellpacing="0" bordercolor="black" bgcolor="white">';

//strHtml = '<span ALIGN="left" id="spnLeftMenu" style="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><table border="1" width="'+menuwidth+'" cellpadding="0" cellpacing="0" bordercolor="black" bgcolor="white">';

//document.write('<span ALIGN="left" ID="spnLeftMenu" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><TABLE BORDER="1" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" bgcolor="white">')

var strRows = "";
for (i=0;i<=menui.length-1;i++)
{
strRows += '<tr  valign="top"><td style="border-color: White; color:  #0000CD; font-family: Verdana, Sans-Sherif;  font-size:xx-small;font-weight: 600; " onclick="location=\''+menul[i]+'\'" onmouseover="className=\'menuh\'" onmouseout="className=\'menu\'">'+menui[i]+'</td></tr>';
//document.write('<tr><td style="border-color: White; color: #008000; font-family: Verdana, Sans-Sherif;  font-size:xx-small;font-weight: 600; " ONCLICK="location=\''+menul[i]+'\'" onmouseover="className=\'menuh\'" onMouseout="className=\'menu\'">'+menui[i]+'</td></tr>')
}

strHtml += strRows + '</table></span>';
//document.write('</TABLE></span>');

var leftMemu = document.getElementById("tdLeftMenu");
leftMemu.innerHTML = strHtml;
//spnLeftMenu.style.pixelTop=document.body.offsetTop+offsettop;
//spnLeftMenu.style.pixelLeft=document.body.offsetLeft+offsetleft;

//function menu3(){
//makeStatic();
//}

//function makeStatic() {
//spnLeftMenu.style.pixelTop=document.body.scrollTop+offsettop
//setTimeout("makeStatic()",0);
//}

//window.onload=menu3;

}