if(id == null)
	var id = "";
	
if(level == null)
	var level = "";

var section = "";
var inSection = false;
var i=0;
var title = new Array;
title[0]="upper";
title[1]="خدمات عامة";
title[2]="start";
title[3]="فنادق";
title[4]="تسوق";
title[5]="مطاعم";
title[6]="end";
title[7]="أدلة تجارية";
title[8]="start";
title[9]="دليل الصناعة";
title[10]="دليل السياحة";
title[11]="دليل التعليم";
title[12]="الدليل الطبي";
title[13]="دليل الشحن";
title[14]="end";
title[15]="خدمات تجارية";
title[16]="start";
title[17]="مال وأعمال";
title[18]="عقار واستثمار";
title[19]="تبادل تجاري";
title[20]="end";
title[21]="lower";
title[22]="image";
title[23]="upper";
title[24]="image";
title[25]="فن و حضارة";
title[26]="ماليزيا في صور";
title[27]="فعاليات";
title[28]="ارشادات للمسافر";
title[29]="قاموس الزائر";
title[30]="مواصلات";
title[31]="هواتف وعناوين";
title[32]="ساحة الحوار";
title[33]="lower";
title[34]="image";
title[35]="upper";
title[36]="ولايات";
title[37]="start";
title[38]="كوالالمبور";
title[39]="سلانجور";
title[40]="صباح";
title[41]="سراواك";
title[42]="بينانج";
title[43]="نجري سمبلان";
title[44]="جوهور";
title[45]="قدح";
title[46]="بهانج";
title[47]="ملاكا";
title[48]="ترنجانو";
title[49]="لابوان";
title[50]="بيرليس";
title[51]="كلنتان";
title[52]="end";
title[53]="وجهات ومغامرات";
title[54]="start";
title[55]="كاميرون هاي لاند";
title[56]="جنتنج هاي لاند";
title[57]="تاسك بيرا";
title[58]="تمان نيجارا";
title[59]="مرتفعات فراسر";
title[60]="دانوم";
title[61]="تاسيك كينير";
title[62]="جزيرة بانكور";
title[63]="لانكاوي";
title[64]="بوتراجايا";
title[65]="end";
title[66]="lower";
title[67]="image";

var link = new Array;
link[0]="http://www.malaysiaarab.com/Files/upper_off.gif";
link[1]="javascript:sections('General_Services')";
link[2]="General_Services";
link[3]="../../S-Hotels/hotels.htm";
link[4]="../../S-Shopping/Shopping.htm";
link[5]="../../S-Restaurants/Restaurants.htm";
link[6]="";
link[7]="javascript:sections('Directories')";
link[8]="Directories";
link[9]="../../D-Manufacturer/Manufacture.htm";
link[10]="../../D-Tourism/Tourism.htm";
link[11]="../../D-Education/Education.htm";
link[12]="../../D-Medical/Medical.htm";
link[13]="../../D-Shipping/Shipping.htm";
link[14]="";
link[15]="javascript:sections('Trading_Services')";
link[16]="Trading_Services";
link[17]="../../B-businessactivity/businessactivity.htm";
link[18]="../../B-investment/investment.htm";
link[19]="../../B-businessexchange/businessexchange.htm";
link[20]="";
link[21]="http://www.malaysiaarab.com/Files/lower_off.gif";
link[22]="http://www.malaysiaarab.com/Files/spacer.gif' width='6' height='1'";
link[23]="http://www.malaysiaarab.com/Files/upper_off.gif";
link[24]="http://www.malaysiaarab.com/Files/programs.gif";
link[25]="../../A-culture&art/culture&art.htm";
link[26]="../../A-MalaysiaPhotos/MalaysiaPhotos.htm";
link[27]="../../A-activity/activity.htm";
link[28]="../../A-guidance/guidance.htm";
link[29]="../../A-dictionary/dictionary.htm";
link[30]="../../A-transportations/transportations.htm";
link[31]="../../A-phones/phones.htm";
link[32]="../../forums/";
link[33]="http://www.malaysiaarab.com/Files/lower_off.gif";
link[34]="http://www.malaysiaarab.com/Files/spacer.gif' width='6' height='1'";
link[35]="http://www.malaysiaarab.com/Files/upper_off.gif";
link[36]="javascript:sections('States')";
link[37]="States";
link[38]="../../W-Kualalumpur/Kualalumpur.htm";
link[39]="../../W-Selangor/selangor.htm";
link[40]="../../W-Sabah/Sabah.htm";
link[41]="../../W-Sarawak/Sarawak.htm";
link[42]="../../W-Penang/Penang.htm";
link[43]="../../W_NegrriSembilan/NegrriSembilan.htm";
link[44]="../../W-johor/johor.htm";
link[45]="../../W-Kedah/Kedah.htm";
link[46]="../../W-Pahang/Pahang.htm";
link[47]="../../W-Melaka/Melaka.htm";
link[48]="../../W-Terengganu/Terenggan.htm";
link[49]="../../W-Labuan/Labuan.htm";
link[50]="../../W-Perlis/Perlis.htm";
link[51]="../../W-Kelantan/Kelantan.htm";
link[52]="";
link[53]="javascript:sections('Places')";
link[54]="Places";
link[55]="../../in-Cameronin-highlands/Cameronhighlands.htm";
link[56]="../../in-gentinghighlands/gentinghighlands.htm";
link[57]="../../in-Tasebera/Tasebera.htm";
link[58]="../../in-TamanNegara/TamanNegara.htm";
link[59]="../../in-Frasershill/Frasershill.htm";
link[60]="../../in-Danum/Danum.htm";
link[61]="../../in-TasikKenyir/TasikKenyir.htm";
link[62]="../../in-Pangkor/Pangkor.htm";
link[63]="../../in-Langkawi/Langkawi.htm";
link[64]="../../visit-putrajaya/putrajaya.htm";
link[65]="";
link[66]="http://www.malaysiaarab.com/Files/lower_off.gif";
link[67]="http://www.malaysiaarab.com/Files/spacer.gif' width='6' height='1'";



function UL(){
var upper,lower,page;
for (var i=0 ; i<title.length ; i++)
  	if (link[i] == id)
		page=i;
for (var i=0 ; i<page ; i++)
  	if (title[i] == "upper")
		upper=i;
for (var i=(title.length-1) ; i>page ; i--)
  	if (title[i] == "lower")
		lower=i;
link[upper]="Index/Files/upper_on.gif";
link[lower]="Index/Files/lower_on.gif";
}

function bodyHtml(){

var html = "<table class='menu' width='118' cellspacing='0' cellpadding='0' valign='top'>";
for (var i=0; i<title.length; i++){
	html += "<tr>";
	if (( title[i] == "image")||(title[i] == "upper")||(title[i] == "lower")){
		html += "<td style='border-top-style: solid; border-top-width: 1' bordercolor='#0035D5'>";
		html += "<img src='"+link[i]+"'>";}
	else if (title[i+1] == "start"){
		html += "<td class='TDM' style='border-top-style: solid; border-top-width: 1' bordercolor='#0035D5'>";
		html += "<a id="+link[i+1]+"H class='TDM' HREF="+link[i]+"><img id="+link[i+1]+"I src='../Files/expand.gif' border=0 align=absMiddle>  ";
		html += unescape(title[i]);
		html += "</a>";}
	else if (id == link[i]){
		if (level==3)
		{
			html += "<td class='TDML' style='border-top-style: solid; border-top-width: 1' bordercolor='#0035D5'>";
			html += "<a class='TDML'HREF='/"+link[i]+"'>";
			html += unescape(title[i]);
			html += "</a>";
		}
		else
		{
			html += "<td class='TDML' style='border-top-style: solid; border-top-width: 1' bordercolor='#0035D5'>";
			html += "<p class='TDML'>"
			html += unescape(title[i]);
			html += "</p>";
		}
	}
	else if (link[i]== "programs/schedule.asp"){
		html += "<td class='TDM' style='border-top-style: solid; border-top-width: 1' bordercolor='#0035D5'>";
		html += "<a class='TDM' HREF=# onclick=\"javaScript:window.open('/"+link[i]+"','','width=432,height=450,scrollbars=yes')\">";
		html += unescape(title[i]);
		html += "</a>";}
	else if (link[i]=="mailto:e-markting@aljazeera.net.qa")
		{
			html += "<td class='TDM' style='border-top-style: solid; border-top-width: 1' bordercolor='#0035D5'>";
			html += "<a class='TDM' HREF='"+link[i]+"'>";
			html += unescape(title[i]);
			html += "</a>";
		}
	else {
		html += "<td class='TDM' style='border-top-style: solid; border-top-width: 1' bordercolor='#0035D5'>";
		html += "<a class='TDM' HREF='/"+link[i]+"'>";
		html += unescape(title[i]);
		html += "</a>";}
		
	html += "</td>";
	html += "</tr>";
	if (title[i+1] == "start"){
		if (inSection == false)
		section = link[i+1];
		html += "<tr id="+link[i+1]+" class='hide'><td>";
		html += "<table border='0' width=100% cellspacing='0' cellpadding='0'>";
		i+=2;
		while (title[i] != "end"){
			html += "<tr>";
			if (id == link[i]){
				inSection = true;
				html += "<td class='TDSML' style='border-top-style: solid; border-top-width: 1' bordercolor='#0035D5'>";
				if (level==3)
				{
					html += "<a class='TDSML' HREF='/"+link[i]+"'>";
					html += unescape(title[i]);
					html += "</a>";
				}
				else
				{
					html += "<p class='TDSML'>";
					html += unescape(title[i]);
					html += "</p>";
				}
				
				html += "</td>";}
			else{
				html += "<td class='TDSM' style='border-top-style: solid; border-top-width: 1' bordercolor='#0035D5'>";
				html += "<a class='TDSM' HREF='/"+link[i]+"'>";
				html += unescape(title[i]);
				html += "</a>";
				html += "</td>";
			}
			html += "</tr>";
			i++;}
		html += "</table></td></tr>";
	}
}
html += "</table>";
return html;
}

function sections(sectionName)
{
	sectionHeader = sectionName+"H";
	sectionImage = sectionName+"I";
	if (document.all[sectionName].className == "show")
	{
		document.all[sectionName].className = "hide";
		document.all[sectionHeader].className = "TDM";
		document.all[sectionImage].src='Index/Files/expand.gif'
	}
	else
	{
		document.all[sectionName].className = "show";
		document.all[sectionHeader].className = "TDML";
		document.all[sectionImage].src='Index/Files/expand-open.gif'
	}
}

function MenuHTML()
{
	var html="";

	html += bodyHtml();

	return html ;
}

function all()
{
	var menuStr = MenuHTML() ;

	if(eval(document.all.menuArea))
		document.all.menuArea.innerHTML = menuStr ;

	if (inSection == true)
		sections(section);
}

function CheckIE()
{
	var ie4=0;ie5=0;
	if (document.all) {
		var MS=navigator.appVersion.indexOf("MSIE");
		window.isIE4 =(MS>0) && ((parseInt(navigator.appVersion.substring(MS+5,MS+6)) <= 4) && (navigator.appVersion.indexOf("MSIE"))>0);
		window.isIE5 =(MS>0) && ((parseInt(navigator.appVersion.substring(MS+5,MS+6)) > 4) && (navigator.appVersion.indexOf("MSIE"))>0);
		if (window.isIE4)
			return false;
		else if (window.isIE5)
			return true;
	}
}






all();