if (home ==1 ) {
y = 22;
path = ""; }
else {
y =22;
path = "../"; }
 

// Number of Submenus
summenu = 4;


var mname = new Array(summenu);
for (x=1; x <= summenu; x++) {
mname[x] = "menu" + x; }

// Number of icons of each Submenu
var nsub = new Array(summenu);
nsub[1] = "7";
nsub[2] = "5";
nsub[3] = "0";
nsub[4] = "0";
nsub[5] = "0";
nsub[6] = "0";

var m  = new Array (summenu);
var ref = new Array(summenu);

m[1]= new Array(nsub[1]);
m[1][1] = "مقدمـــة";
m[1][2] = "تعريـــف";
m[1][3] = "الاهداف";
m[1][4] = "مجلس الادارة";
m[1][5] = "الموظفون";
m[1][6] = "مؤسسات التمويل";
m[1][7] = "المرافق";

ref[1] = new Array(nsub[1]);
ref[1][1] = path + "about/about.html";
ref[1][2] = path + "about/definition.html"; 
ref[1][3] = path + "about/aims.html";
ref[1][4] = path + "about/board.html"; 
ref[1][5] = path + "about/staff.html";
ref[1][6] = path + "about/donors.html"; 
ref[1][7] = path + "about/facilities.html";

m[2] = new Array(nsub[2]);
m[2][1]  = "انتاج";
m[2][2]  = "مسرحيات أطفال";
m[2][3]  = "أعمال مشتركة";
m[2][4]  = "جوائز";
m[2][5]  = "أعمال دولية";

ref[2]= new Array(nsub[2]);
ref[2][1]  = path +  "work/production.html";
ref[2][2]  = path + "work/children.html";
ref[2][3]  = path + "work/joint.html";
ref[2][4]  = path + "work/awards.html";
ref[2][5]  = path + "work/international.html";

m[3]= new Array(nsub[3]);
m[3][1]  = "Country Profile";
m[3][2]  = "National Statistics";
m[3][3]  = "MSEs and BDSs in Palestine";


ref[3] = new Array(nsub[3]);
ref[3][1] = path + "facts/country.html";
ref[3][2] = path + "facts/national.html";
ref[3][3] = path + "facts/mse.html";


m[4]= new Array(nsub[4]);
m[4][1] = " Progress Reports";
m[4][2] = " Success Stories & Case Study";
m[4][3] = " Institutional Clients in WB and Gaza";

ref[4] = new Array(nsub[4]);
ref[4][1] = path + "achievements/progress.html";
ref[4][2] = path + "achievements/success.html"; 
ref[4][3] = path + "achievements/institutional.html"; 




//Sub Sub Menu

var nsubsub = new Array(summenu);

nsubsub[1] = new Array(nsub[1]);
nsubsub[1][1] = "No";
nsubsub[1][2] = "No";
nsubsub[1][3] = "No";
 
nsubsub[2] = new Array(nsub[2]);
nsubsub[2][1] = "No";
nsubsub[2][2] = "No";
nsubsub[2][3] = "No";
 nsubsub[2][4] = "No";

nsubsub[3] = new Array(nsub[3]);
nsubsub[3][1] = "No";
nsubsub[3][2] = "No";
nsubsub[3][3] = "No";

nsubsub[4] = new Array(nsub[4]);
nsubsub[4][1] = "No";
nsubsub[4][2] = "No";
nsubsub[4][3] = "No";



//Name of sub sub menu

var msubname = new Array(summenu);
msubname[1] = new Array(nsub[1]);
msubname[1][1] = "menu11";


 
msubname[2] = new Array(nsub[2]);
msubname[2][3] = "menu23";
msubname[2][4] = "menu24";


var nssub = new Array(summenu);

nssub[1] = new Array(nsub[1]);
nssub[1][1] = "4";

nssub[2] = new Array(nsub[2]);
nssub[2][3] = "4";
nssub[2][4] = "3";


var sm = new Array (summenu);
var sref = new Array (summenu);

sm[1] = new Array(nsub[1]);
sm[1][1]= new Array(nssub[1][1]);


sm[1][1][1] = "Vision";
sm[1][1][2] = "Mission";
sm[1][1][3] = "Basic Principles";
sm[1][1][4] = "Goal prupose";



sm[2] = new Array(nsub[2]);
sm[2][3]= new Array(nssub[2][3]);

sm[2][3][1] = "Market Order";
sm[2][3][2] = "Diagnostic Circle";
sm[2][3][3] = "Businees Consultancy Forum BCF";
sm[2][3][4] = "Business Consultancy forum BCF";

sm[2][4]= new Array(nssub[2][4]);

sm[2][4][1] = path + "Newsletter";
sm[2][4][2] = "winning Cards to MSEs & BDS";
sm[2][4][3] = "SEC Studies";





sref[1] = new Array(nsub[1]);
sref[1][1]= new Array(nssub[1][1]);


sref[1][1][1]  = "Vision.html";
sref[1][1][2] = "Mission.html";
sref[1][1][3] = "Basic.html";
sref[1][1][4] = "prupose.html";


sref[2] = new Array(nsub[2]);
sref[2][3]= new Array(nssub[2][3]);


sref[2][3][1] = "market.html";
sref[2][3][2] = "diagnostic.html";
sref[2][3][3] = "business1.html";
sref[2][3][4] = "business2.html";

sref[2][4]= new Array(nssub[2][4]);

sref[2][4][1]  = "newsletter.html";
sref[2][4][2] = "cards.html";
sref[2][4][3] = "sec.html";



function open1(){ 
closemen();
x = (screen_width / 2) - 150;

if (document.all) {
document.all.menu1.style.visibility='visible';
document.all.menu1.style.left = x;
document.all.menu1.style.top = y;
document.all.menu1.style.width = 130;
}   
else if (document.getElementById) { 
document.getElementById("menu1").style.visibility="visible";
document.getElementById("menu1").style.left = x;
document.getElementById("menu1").style.top=y;
document.getElementById("menu1").style.width=130;
}
}


function open11(){
if (document.all) {
document.all.menu1.style.visibility='visible';
x = (screen_width / 2) + 10;
document.all.menu11.style.visibility='visible';
document.all.menu11.style.left = x;
document.all.menu11.style.top = y;
document.all.menu11.style.width = 140;
 }  }


function open2(){
closemen();
x = (screen_width / 2) - 235;

if (document.all) {
document.all.menu2.style.visibility='visible';
document.all.menu2.style.left = x;
document.all.menu2.style.top = y;
document.all.menu2.style.width = 120;
} 
else if (document.getElementById) { 
document.getElementById("menu2").style.visibility="visible";
document.getElementById("menu2").style.left = x;
document.getElementById("menu2").style.top=y;
document.getElementById("menu2").style.width=120;
}
}



function open23(){
if (document.all) {
document.all.menu2.style.visibility='visible';
x = (screen_width / 2) -118;
document.all.menu23.style.visibility='visible';
document.all.menu23.style.left = x;
document.all.menu23.style.top = y + 65;
document.all.menu23.style.width = 120;
} }


function open24(){
if (document.all) {
document.all.menu2.style.visibility='visible';
x = (screen_width / 2) -118;
document.all.menu24.style.visibility='visible';
document.all.menu24.style.left = x;
document.all.menu24.style.top = y + 80;
document.all.menu24.style.width = 120;
} }


function open3(){
if (document.all) {
closemen();
x = (screen_width / 2) -232;
document.all.menu3.style.visibility='visible';
document.all.menu3.style.left = x;
document.all.menu3.style.top = y + 52;
document.all.menu3.style.width = 120;
} }


function open4(){
if (document.all) {
closemen();
x = (screen_width / 2) -232;
document.all.menu4.style.visibility='visible';
document.all.menu4.style.left = x;
document.all.menu4.style.top = y + 72;
document.all.menu4.style.width = 120;
} }


//Closes All Menus & SubMenu
function close(){
if (document.all) {
for (x=1; x <= summenu; x++) {
eval ('document.all.menu' + x + '.style.visibility="hidden"');
for (i = 1; i <= nsub[x]; i++) {
if (nsubsub[x][i] == "Yes") {
eval ('document.all.menu' + x + i +  '.style.visibility="hidden"');
}   }
} 
} 
else if (document.getElementById){
for (x=1; x <= summenu; x++) {
eval ('document.getElementById("menu' + x + '").style.visibility="hidden"');
for (i = 1; i <= nsub[x]; i++) {
if (nsubsub[x][i] == "Yes") {
eval ('document.getElementById("menu' + x + i +  '").style.visibility="hidden"');
} } }
} }




//Closes All Menus
function closemen(){
if (document.all) {
for (x=1; x <= summenu; x++) { eval ('document.all.menu' + x + '.style.visibility="hidden"'); } 
} 
else if (document.getElementById)  {
for (x=1; x <= summenu; x++) {eval ('document.getElementById("menu' + x + '").style.visibility="hidden"');} 
} 
}





//Close Sub Sub Menu When Out of it
function closesub(x, i ) {
if (document.all) {
eval('document.all.menu' + x + '.style.visibility = "hidden"');
eval('document.all.menu' + x + i + '.style.visibility = "hidden"');
} 
else if (document.getElementById)  {
eval('document.getElementById("menu' + x + '").style.visibility = "hidden"');
eval('document.getElementById("menu' + x+ i + '").style.visibility = "hidden"');
} }



//Close Sub Submenus for x sub menu
function closem(x) {
if (document.all) {
eval ('document.all.menu' + x  +  '.style.visibility="hidden"');
for (i = 1; i <= nsub[x]; i++) {
if (nsubsub[x][i] == "Yes") {eval ('document.all.menu' + x + i +  '.style.visibility="hidden"');}  
 }
  }

else if (document.getElementById)  {
eval ('document.getElementById("menu' + x +  '").style.visibility="hidden"');
for (i = 1; i <= nsub[x]; i++) {
if (nsubsub[x][i] == "Yes") {eval ('document.getElementById("menu' + x + i +  '").style.visibility="hidden"');} 
  }
} 

}











function loadon() {
if(document.all)  { screen_width=document.body.clientWidth; }
else if (document.getElementById) { screen_width=document.documentElement.clientWidth; }
}  

function resizeon() {
if(document.all) {  screen_width=document.body.clientWidth;}
else if (document.getElementById) { screen_width=window.innerWidth; }
x = (screen_width / 2) - 280;
 close(); 
}

 
function clickon()
{
if(document.all) { screen_width=document.body.clientWidth;}
else if (document.getElementById) { screen_width=window.innerWidth; }
x = (screen_width / 2) - 280;
close();
}

 
function onout()
{ close();
}


