var ez_Menu = new Array();
var currTime = new Date().getTime();
ez_Menu[0]= new Array("Home^home.html?t="+currTime, "Parish^^2", "Organizations^^1", "Area Prayer^^5", "Online Forms^^4", "Photo Gallery^Photo-Gallery.html?t="+currTime,"Related Links^^3");
ez_Menu[1]= new Array( "Sunday School^Org-Sunschool.html?t="+currTime,"Yuvajana Sakhyam^Org-youth.html?t="+currTime,"Sevika Sangham^Org-SevSangam.html?t="+currTime,"Edavaka Mission^EdavakaMission.html?t="+currTime,"Parish Choir^Choir.html?t="+currTime);
ez_Menu[2]= new Array("Profile^profile.html?t="+currTime,  "Our Vicars^ourvicars.html?t="+currTime,"Kaisthana Samithi^Kaisthana.html?t="+currTime,"New Church^NewChurch.html?t="+currTime,"History^construction.html");
ez_Menu[3]= new Array("Marthoma Churches All Over The World^javascript:newWin('http://www.marthoma-church.com')","Other Gulf Marthoma Churches^^6", "Marthoma Sabha^javascript:newWin('http://www.marthomasyrianchurch.org')","e-library^javascript:newWin('http://www.kuwaitmarthoma.com/e-library.htm')","Maramon Convention Songs^javascript:newWin('www.mtconvention.com')","Mar Thoma CM Diocese ^javascript:newWin('http://marthoma-cmdiocese.org/php/listDirectory.php?pgNo=2&praid=')", "Daily Devotion & Study^^7","About Qatar^javascript:newWin('http://www.qatartourism.gov.qa/')");
ez_Menu[4]= new Array("Church Membership form^javascript:newWin('data/Church Membership form.pdf')", "Choir Membership form^construction.html", "Childrens Service Registration Form^javascript:newWin('data/Childrens_Sevice_Reg.pdf')", "Yuvajana Sakhyam Membership^construction.html");
ez_Menu[5]= new Array("AL BIDAH^construction.html","AL HILAL^construction.html","AL SADD^construction.html","BIN MAHMOOD^construction.html","DOHA JADEED^construction.html","DUKHAN^construction.html","FEREEJ BIN UMRAN^construction.html","MESAIEED^construction.html","NAJMA- UMM GHUWAILINA^construction.html","OLD AIRPORT - WAKRA^construction.html","WADI AL SAIL^construction.html");
ez_Menu[6]= new Array("Abu Dhabi Marthoma Church^javascript:newWin('http://www.abudhabimarthomacentre.com')","St Pauls Marthoma Parish Bahrain^javascript:newWin('http://www.stpaulsmarthomaparishbahrain.com/')","Sharjah Marthoma Parish^javascript:newWin('http://www.marthomaparishsharjah.com')","Bahrain Marthoma Parish^javascript:newWin('http://www.bahrainmarthomaparish.com')","Kuwait Marthoma Parish^javascript:newWin('http://www.kuwaitmarthoma.org')","Ahmadi Marthoma Parish^javascript:newWin('http://www.ahmadimarthomaparish.org/')","Dubai Marthoma Parish^javascript:newWin('http://www.dubaimarthomaparish.com')");
ez_Menu[7]= new Array("Cross Walk^javascript:newWin('http://www.crosswalk.com/')","Daily Bread^javascript:newWin('http://www.rbc.org/odb/odb.shtml')" );

var ez_fontInfo = new Array("Arial,9pt,#FFFFFF,#bb2222", "Arial,9pt,#FFFFFF,#b22222");
var ez_tfontInfo = new Array("Arial,9pt,#000000", "Arial,9pt,#000000");
var ez_colInfo = new Array("#3c7faf,#b1c1d1,#3c7faf,#003399", "#3c7faf,#b1c1d1,#3c7faf,#003399");
var ez_borSize = new Array("1,1", "1,1");
var ez_txtPad = new Array("3", "3");
var ez_arrow = new Array("images/arrow.gif,images/arrowhi.gif,10", "images/arrow.gif,images/arrowhi.gif,10");
var ez_root = new Array("0", "1");
var ez_isBar = new Array(true, false);
var ez_xover = new Array("0", "0");
var ez_yover = new Array("0", "0");
var ez_bg = new Array("", "");
var ez_pname = new Array("MainBar", "SubMenu1");
var ez_pwidth = new Array("0", "0");
var ez_3D = new Array("3D1", "3D1");
var ez_sfx = new Array("progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#aaaaaa,strength=5)", "progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#aaaaaa,strength=5)");
var ez_animate = new Array("progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.5)", "progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.5)");

function displayMenu() {
  var imgPosition;
  imgPosition = imgXY('marker0');                     
  showPermPanel('MainBar', imgPosition.x, imgPosition.y);   
}

function imgXY(imgID) {

  var XY = new Object();
  var imgObj = document.images[imgID];
  if (document.layers) {
	XY.x = eval(imgObj).x;
	XY.y = eval(imgObj).y;
  } else {
	var x,y, tempEl;
	x = eval(imgObj).offsetLeft;
	y = eval(imgObj).offsetTop;
	tempEl = eval(imgObj).offsetParent;
  	while (tempEl != null) {
  		x += tempEl.offsetLeft;
		y += tempEl.offsetTop;
  		tempEl = tempEl.offsetParent;
  	}
	XY.x = x;
	XY.y = y;
  }
  return XY;
}



function newWin(url, features) {	
  
  var features = 'width=800,height=720, left=0, top=0, menubar=yes, status=yes, location=yes, toolbar=yes, scrollbars=yes, resizable=yes';
  myWin = window.open(url,'Window',features );	  

}
