// constants
var initX       = 201; // x-coordinate of top left corner of dropdown menu 
var initY       = 125; // y-coordinate of top left corner of dropdown menu 
var backColor   = '#B7B3B4'; // the background color of dropdown menu, set empty '' for transparent
var borderColor = 'black'; // the color of dropdown menu border
var borderSize  = '1'; // the width of dropdown menu border
var itemHeight  = 20;
var xOverlap    = 5;
var yOverlap    = 10;
//


var menuContent     = new Array ();

menuContent [0] = new Array ( 
-1, // the id of parent menu, -1 if this is a first level menu
-1, // the number of line in parent menu, -1 if this is a first level menu
185, // the width of current menu list 
150, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
175, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'International Religious lecture','inter.htm',
'Learn Arabic Courses', 'lear.htm',
'Islamic Inheritance', 'program.htm'
),
'wq','wqs');

menuContent [1] = new Array ( 
-1, 
-1,
151,
299, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate
175, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate
new Array (
'Tourist Information', 'tour.htm',
'Vechile Rental Services', 'ser.htm',
'Hotel Reservation', 'hote.htm',
'Airport Service', 'airp.htm'
),
'glo','global');
function changemwa(sor)
{
mwa.src='images\/program\/'+sor+'.jpg';
mwa.style.height=imgarr [sor].height;
mwa.style.width=500;
pm=sor*1;
title.value=imgarr [sor].title;
}
function pre()
{
if(pm!=1)
{
var tm=pm-1
changemwa(tm);
}
else changemwa('24')
}
function nex()
{
if (pm!=24)
{
var tm=pm+1
changemwa(tm);
}
else changemwa('1')
}
function enterpic(id,sr)
{
	if (topID != -1)
		hideTree (topID);
	id.src='images\/'+sr+'2.jpg';
}
function outpic(id,sr)
{
id.src='images\/'+sr+'.jpg';
}
function zoomhelper(){
var zoomfactor=0.05 
if (parseInt(whatcache.style.width)>10&&parseInt(whatcache.style.height)>10){
whatcache.style.width=parseInt(whatcache.style.width)+parseInt(whatcache.style.width)*zoomfactor*prefix
whatcache.style.height=parseInt(whatcache.style.height)+parseInt(whatcache.style.height)*zoomfactor*prefix
}
}
function zoom(originalW, originalH, what, state){
if (!document.all&&!document.getElementById)
return
whatcache=eval("document.images."+what)
prefix=(state=="in")? 1 : -1
if (whatcache.style.width==""||state=="restore"){
whatcache.style.width=originalW
whatcache.style.height=originalH
if (state=="restore")
return
}
else{
zoomhelper()
}
beginzoom=setInterval("zoomhelper()",100)
}
function clearzoom(){
if (window.beginzoom)
clearInterval(beginzoom)
}

function imag(sr,hie,tit)
{
this.src=sr*1;
this.width=500;
this.height=hie*1;
this.title=tit;
}
var imgarr= new Array();

imgarr [0]= 'mwa';
imgarr [1]= new imag(1,668,'The Family Tree');
imgarr [2]= new imag(2,333,'The close right Grand Mother');
imgarr [3]= new imag(3,638,'The Close Grand Father');
imgarr [4]= new imag(4,655,'The Father');
imgarr [5]= new imag(5,637,'The Father(1)');
imgarr [6]= new imag(6,648,'The Mother');
imgarr [7]= new imag(7,705,'The Mother(1)');
imgarr [8]= new imag(8,650,'The Mother(2)');
imgarr [9]= new imag(9,508,'The Mother & The Maternal B&s');
imgarr [10]= new imag(10,773,'The Sister');
imgarr [11]= new imag(11,870,'The Sisters');
imgarr [12]= new imag(12,687,'Sister(s) In General');
imgarr [13]= new imag(13,797,'The Paternal Sister');
imgarr [14]= new imag(14,642,'The Maternal B&S');
imgarr [15]= new imag(15,648,'Spouse');
imgarr [16]= new imag(16,451,'The Husband');
imgarr [17]= new imag(17,543,'The Wife');
imgarr [18]= new imag(18,676,'Paternal Cousin');
imgarr [19]= new imag(19,676,'Females of 1/2.2/3');
imgarr [20]= new imag(20,598,'The Daughter');
imgarr [21]= new imag(21,676,'The Female Branch The Daughter');
imgarr [22]= new imag(22,646,'The Daughter(s) Of Son(s)');
imgarr [23]= new imag(23,655,'Six Of The Sixthan Heritance');
imgarr [24]= new imag(24,655,'The Male Agnate');

///
function preloadImages() { 
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}
