// Declare Globals
_menuCloseDelay=1;
_menuOpenDelay=1;
_subOffsetTop=0;
_subOffsetLeft=0;

// Setup our variables:
Menu_1= new Array();
Menu_1.txt = new Array();
Menu_2= new Array();
Menu_2.txt = new Array();
Menu_3= new Array();
Menu_3.txt = new Array();
Menu_4= new Array();
Menu_4.txt = new Array();
Menu_5= new Array();
Menu_5.txt = new Array();
Menu_6= new Array();
Menu_6.txt = new Array();
Menu_7= new Array();
Menu_7.txt = new Array();
Menu_9= new Array();
Menu_9.txt = new Array();
Menu_10= new Array();
Menu_10.txt = new Array();
Menu_11= new Array();
Menu_11.txt = new Array();
Menu_12= new Array();
Menu_12.txt = new Array();
Menu_13= new Array();
Menu_13.txt = new Array();
Menu_14= new Array();
Menu_14.txt = new Array();
Menu_15= new Array();
Menu_15.txt = new Array();
Menu_16= new Array();
Menu_16.txt = new Array();
Menu_17= new Array();
Menu_17.txt = new Array();
Menu_18= new Array();
Menu_18.txt = new Array();
Menu_19= new Array();
Menu_19.txt = new Array();

Menu_1.url = new Array();
Menu_2.url = new Array();
Menu_3.url = new Array();
Menu_4.url = new Array();
Menu_5.url = new Array();
Menu_6.url = new Array();
Menu_7.url = new Array();
Menu_9.url = new Array();
Menu_10.url = new Array();
Menu_11.url = new Array();
Menu_12.url = new Array();
Menu_13.url = new Array();
Menu_14.url = new Array();
Menu_15.url = new Array();
Menu_16.url = new Array();
Menu_17.url = new Array();
Menu_18.url = new Array();
Menu_19.url = new Array();

var mywidth = 0;


// Declare menu names: (Do not translate)
var menu_1 = "JSPD1";
var menu_2 = "MyProfile";
var menu_3 = "Me";
var menu_4 = "EmailIM";
var menu_5 = "People";
var menu_7 = "Help"; 
var menu_8 = "FAQs"; 
var menu_9 = "VCHFAQs"; // for FAQs sub level
var menu_10 = "UserFAQs"; // for FAQs sub level
var menu_11 = "Groups"; 
var menu_12 = "Bank";


// Populate Text Arrays for Menu Text content:

//************************************* Start Translations **************************************//
// **** Pls note: Translate only those items in this section which are between quotes ****//

// **** Also note that the double semi-colon ( ;"; ) in the following lines is intentional and important. ****//

var aI2= "Mon profil;";
var aI3= "Moi;";
var aI4= "Courriel et MI;";
var aI5= "Gens;";
var aI7= "Aide;";
var aI11= "Groupes;";
var aI12= "Banque;";

Menu_2.txt[0] = "Modifier Mon profil";
Menu_2.url[0] = "http://apps.worldgroups.com/CGIR/GrpIDprofileForm.exe";
Menu_2.txt[1] = "Qui a affiché Mon profil&#160;?";
Menu_2.url[1] = "http://apps.worldgroups.com/CGIR/WhosViewedMyProfile.exe";

// Menu_3.txt[0] = "My Profile";
// Menu_3.url[0] = "http://apps.worldgroups.com/CGIR/GrpIDprofileForm.exe";
Menu_3.txt[0] = "Mes Groupes";
Menu_3.url[0] = "http://apps.worldgroups.com/CGIR/MYGROUPSEDIT.EXE";
Menu_3.txt[1] = "Mon courriel et MI";
Menu_3.url[1] = "http://www.worldgroups.com/grppage.wsif?t=Site/Tools/CommCenter";
Menu_3.txt[2] = "Ma HotList";
Menu_3.url[2] = "http://apps.worldgroups.com/cgir/ShowMyHotList.exe";
Menu_3.txt[3] = "Mon compte (modification du mot de passe, inscription et plus encore)";
Menu_3.url[3] = "https://secure.worldgroups.com/CGI/EditAccount.exe";


Menu_4.txt[0] = "Créer/modifier mon compte de messagerie";
Menu_4.url[0] = "http://www.worldgroups.com/grppage.wsif?t=site/tools/showEmailClient&action=Email&editmode=true";
Menu_4.txt[1] = "Accéder à mon compte de messagerie";
Menu_4.url[1] = "http://www.worldgroups.com/grppage.wsif?t=site/tools/showEmailClient&action=Email&editmode=true";
Menu_4.txt[2] = "Préférences MI";
Menu_4.url[2] = "http://apps.worldgroups.com/cgir/IMClient.exe";


Menu_5.txt[0] = "Rechercher des membres";
Menu_5.url[0] = "http://www.worldgroups.com/grppage.wsif?t=site/navigation/AdvancedMemSearch";
Menu_5.txt[1] = "Parcourir les intérêts";
Menu_5.url[1] = "http://www.worldgroups.com/grppage.wsif?t=site/navigation/memberroot";


Menu_7.txt[0] = "Assistant d'aide intelligent";
Menu_7.url[0] = "http://www.worldgroups.com/grppage.wsif?t=site/general/contactform/contactform";
Menu_7.txt[1] = "FAQ";
Menu_7.url[1] = "http://www.worldgroups.com/grppage.wsif?t=Site/General/FAQ";
Menu_7.txt[2] = "Mot de passe oublié&#160;?";
Menu_7.url[2] = "http://www.worldgroups.com/grppage.wsif?t=Site/Tools/ForgotPassword";
Menu_7.txt[3] = "Plan du site";
Menu_7.url[3] = "http://www.worldgroups.com/grppage.wsif?t=Site/General/SiteMap";
Menu_7.txt[4] = "MecUtile: Debout toute la nuit";
Menu_7.url[4] = "http://adult.apps.worldgroups.com/membrg/GrpHome.wsif?GROUP=HelpfulGuy__Up_all_Night";

//Menu_7.txt[1] = "SiteMap";
//Menu_7.url[1] = "http://www.worldgroups.com/grppage.wsif?t=site/general/help/sitemap";

/*
Menu_9.txt[0] = "Gains obtenus dans votre groupe";
Menu_9.url[0] = "http://www.worldgroups.com/grppage.wsif?t=site/general/help/earningincome";
Menu_9.txt[1] = "Autorisations &amp; droits";
Menu_9.url[1] = "http://www.worldgroups.com/grppage.wsif?t=site/general/help/permissions";
Menu_9.txt[2] = "Autre";
Menu_9.url[2] = "http://www.worldgroups.com/grppage.wsif?t=site/general/help/otherMgr";

Menu_10.txt[0] = "Adhésion &amp; niveaux d'accès";
Menu_10.url[0] = "http://www.worldgroups.com/grppage.wsif?t=site/general/help/accesslevels";
Menu_10.txt[1] = "Facturation &amp; paiements";
Menu_10.url[1] = "http://www.worldgroups.com/grppage.wsif?t=site/general/help/billing";
Menu_10.txt[2] = "Collection privée";
Menu_10.url[2] = "http://.www.worldgroups.com/grppage.wsif?t=site/general/help/PrivateCollection";
Menu_10.txt[3] = "Utilisation de l'adresse électronique dans Groups";
Menu_10.url[3] = "http://www.worldgroups.com/grppage.wsif?t=site/general/help/email";
Menu_10.txt[4] = "Autre";
Menu_10.url[4] = "http://www.worldgroups.com/grppage.wsif?t=site/general/help/other";
*/


Menu_11.txt[0] = "Page d'accueil";
Menu_11.url[0] = "http://adult.worldgroups.com";
Menu_11.txt[1] = "Parcourir les catégories";
Menu_11.url[1] = "http://www.worldgroups.com/grppage.wsif?t=Site/Navigation/Cat_Listing_root";
Menu_11.txt[2] = "Moteur de recherche";
Menu_11.url[2] = "http://adult.worldgroups.com/grppage.wsif?t=Site/Navigation/AdvancedSearch";
Menu_11.txt[3] = "Groupes les plus populaires";
Menu_11.url[3] = "http://adult.worldgroups.com/grpindex.wsif#Hottest";
Menu_11.txt[4] = "Groupes les plus &#171;&#160;hot&#160;&#187;";
Menu_11.url[4] = "http://adult.worldgroups.com/grpindex.wsif#Hottest";
Menu_11.txt[5] = "Voyeur de groupe (regardez comment les autres utilisent Groups)";
Menu_11.url[5] = "http://adult.worldgroups.com/grpindex.wsif#Hottest";

Menu_12.txt[0] = "À propos de";
Menu_12.url[0] = "http://www.worldgroups.com/grppage.wsif?t=Site/General/Al/aboutEarn";
Menu_12.txt[1] = "Accéder à votre compte";
Menu_12.url[1] = "http://www.worldgroups.com/grppage.wsif?t=Site/General/Al/YourAccount";
Menu_12.txt[2] = "Témoignages des clients";
Menu_12.url[2] = "http://www.worldgroups.com/grppage.wsif?t=Site/General/Al/Testimonials/madisonlambert/index";


//************************************* End Translations **************************************//





// Declare Styles for use in Menu system:

with(menuStyle=new mm_style()){
onclass="menuon";
offclass="menuoff";
outfilter="Fade(Overlap=1.00)";
separatorcolor="#102E95";
separatorsize=1;
separatorheight =10;
separatorpadding=5;
padding=1;
subimagepadding=5;
border=1;
}

with(submenuStyle=new mm_style()){
onclass="submenuon";
offclass="submenuoff"
subimage="http://images.ifriends.net/asg/arrow.gif";
subimagepadding=3;
bordercolor="#102E95";
borderstyle="solid";
borderwidth=1;
//outfilter="randomdissolve(duration=0.3)";
outfilter="Blinds( Bands=1,direction=up, duration="+closespeed+")";
//overfilter="Fade(duration=0.2)";
overfilter="Blinds( Bands=1,direction=down, duration="+openspeed+");Alpha(opacity=85);Shadow(color=#999999, Direction=135, Strength=4);";
padding=4;
separatoralign="center";
separatorcolor="#102E95";
separatorpadding=1;
separatorwidth="90%";
}

with(submenuFlyoutStyle=new mm_style()){
onclass="submenuflyouton";
offclass="submenuflyoutoff"
subimage="http://images.ifriends.net/asg/arrow.gif";
subimagepadding=3;
bordercolor="#102E95";
borderstyle="solid";
borderwidth=1;
//outfilter="randomdissolve(duration=0.3)";
outfilter="Blinds( Bands=1,direction=left, duration=0.1)";
//overfilter="Fade(duration=0.2)";
overfilter="Blinds( Bands=1,direction=right, duration=0.1);Alpha(opacity=85);Shadow(color=#BBBBBB, Direction=135, Strength=6);";
padding=4;
separatoralign="center";
separatorcolor="#102E95";
separatorpadding=1;
separatorwidth="90%";
}

with(menuitemStyle=new mm_style()){
onclass="menuitemon";
offclass="menuitemoff";
}

with(verStyle=new mm_style()){
oncolor="#102E95";
offcolor="#102E95";
fontsize=10;
fontweight="normal";
fontfamily="Arial, Helvetica, sans-serif";
decoration="none";
ondecoration="none";
separatoralign="right";
separatorcolor="#102E95";
separatorpadding=0;
separatorwidth="0%";
margin="5px";
}

// Main Menu on TabBar:
with(milonic=new menuname("Menu principal")){
alwaysvisible=1;
left=0;
top=0;
orientation="horizontal";
//itemwidth =573;
itemheight = 38;
style=menuStyle;
position = "relative";
align="left";


aI("showmenu=Groups;text="+aI11);
aI("showmenu=People;text="+aI5);
aI("showmenu=Me;text="+aI3);
aI("showmenu=EmailIM;text="+aI4);
aI("showmenu=Bank;text="+aI12);
aI("showmenu=Help;text="+aI7);
}


// Sub-Menu 1 - NOT USED
with(milonic=new menuname(menu_1)){
	style=submenuStyle;
	margin = 2;
	itemwidth =82;

	// Remove the following condition's ELSE before going live:
	if (typeof(menuAdjPos) != "undefined"){
		mywidth = parseInt(mywidth + 82);
		left=mywidth;
	}else{ // for debugging only //
		mywidth = 101;
	}

	// Run a Loop to output the contents of the Arrays in the format that Menu system needs:
	for (i=0; i < Menu_1.txt.length; i++) {
		aI("text=" + Menu_1.txt[i] + ";url="+ Menu_1.url[i] +";onclass=menuitemon;offclass=menuitemoff;");
	}
}

// Sub-Menu 2 - SUB-MENU OF MENU 3 
with(milonic=new menuname(menu_2)){
style=submenuFlyoutStyle;
margin = 2;
itemwidth =82;
if (typeof(menuAdjPos) != "undefined"){
	mywidth = parseInt(mywidth + 82);
	left=mywidth;
}

	// Run a Loop to output the contents of the Arrays in the format that Menu system needs:
		for (i=0; i < Menu_2.txt.length; i++) {
			aI("text=" + Menu_2.txt[i] + ";url="+ Menu_2.url[i] +";onclass=menuitemon;offclass=menuitemoff;");
		}
	
}

// Sub-Menu 3
with(milonic=new menuname(menu_3)){
style=submenuStyle;
margin = 2;
itemwidth =82;
if (typeof(menuAdjPos) != "undefined"){
	mywidth = parseInt(mywidth + 82);
	left=mywidth;
}

// Run a Loop to output the contents of the Arrays in the format that Menu system needs:
	aI("showmenu="+menu_2+";text="+aI2+";onclass=menuitemon;offclass=menuitemoff;");
	for (i=1; i < Menu_3.txt.length; i++) {
		aI("text=" + Menu_3.txt[i] + ";url="+ Menu_3.url[i] +";onclass=menuitemon;offclass=menuitemoff;");
	}

}





//Sub-Menu 4
with(milonic=new menuname(menu_4)){
style=submenuStyle;
margin = 2;
itemwidth =82;
if (typeof(menuAdjPos) != "undefined"){
	mywidth = parseInt(mywidth + 82);
	left=mywidth;
}
// Run a Loop to output the contents of the Arrays in the format that Menu system needs:
	for (i=0; i < Menu_4.txt.length; i++) {
		aI("text=" + Menu_4.txt[i] + ";url="+ Menu_4.url[i]+";onclass=menuitemon;offclass=menuitemoff;");
	}

}


// Sub-Menu 5
with(milonic=new menuname(menu_5)){
style=submenuStyle;
margin = 2;
itemwidth =82;
if (typeof(menuAdjPos) != "undefined"){
	mywidth = parseInt(mywidth + 82);
	left=mywidth;
}

// Run a Loop to output the contents of the Arrays in the format that Menu system needs:
	for (i=0; i < Menu_5.txt.length; i++) {
		aI("text=" + Menu_5.txt[i] + ";url="+ Menu_5.url[i] +";onclass=menuitemon;offclass=menuitemoff;");
	}

}



// Sub-Menu 7
with(milonic=new menuname(menu_7)){
style=submenuStyle;
margin = 2;
itemwidth =82;
if (typeof(menuAdjPos) != "undefined"){
	mywidth = parseInt(mywidth + 82);
	left=mywidth;
}
	for (i=0; i < Menu_7.txt.length; i++) {
		aI("text=" + Menu_7.txt[i] + ";url=" + Menu_7.url[i] + ";onclass=menuitemon;offclass=menuitemoff;");
	}

}

// The following Sub-Menus are fly-outs from Menu 7's FAQs :
with(milonic=new menuname(menu_8)){
style=submenuFlyoutStyle;
margin = 2;
if (typeof(menuAdjPos) != "undefined"){
	mywidth = parseInt(mywidth + 82);
	left=mywidth;
}

//aI("showmenu=VCHFAQs;text=Group Manager FAQs;onclass=menuitemon;offclass=menuitemoff;");
//aI("showmenu=UserFAQs;text=Group User FAQs;onclass=menuitemon;offclass=menuitemoff;");

}

with(milonic=new menuname(menu_9)){
style=submenuFlyoutStyle;
margin = 2;
if (typeof(menuAdjPos) != "undefined"){
	mywidth = parseInt(mywidth + 82);
	left=mywidth;
}

// Run a Loop to output the contents of the Arrays in the format that Menu system needs:
	for (i=0; i < Menu_9.txt.length; i++) {
		aI("text=" + Menu_9.txt[i] + ";url="+ Menu_9.url[i] +";onclass=menuitemon;offclass=menuitemoff;");
	}
}

with(milonic=new menuname(menu_10)){
style=submenuFlyoutStyle;
margin = 2;
if (typeof(menuAdjPos) != "undefined"){
	mywidth = parseInt(mywidth);
	left=mywidth;
}

// Run a Loop to output the contents of the Arrays in the format that Menu system needs:
	for (i=0; i < Menu_10.txt.length; i++) {
		aI("text=" + Menu_10.txt[i] + ";url="+ Menu_10.url[i] +";onclass=menuitemon;offclass=menuitemoff;");
	}
}

// Sub-Menu 11
with(milonic=new menuname(menu_11)){
style=submenuStyle;
margin = 2;
itemwidth =82;
if (typeof(menuAdjPos) != "undefined"){
	mywidth = parseInt(mywidth + 82);
	left=mywidth;
}

// Run a Loop to output the contents of the Arrays in the format that Menu system needs:
	for (i=0; i < Menu_11.txt.length; i++) {
		aI("text=" + Menu_11.txt[i] + ";url="+ Menu_11.url[i] +";onclass=menuitemon;offclass=menuitemoff;");
	}
}
// Sub-Menu 12
with(milonic=new menuname(menu_12)){
style=submenuStyle;
margin = 2;
itemwidth =82;
if (typeof(menuAdjPos) != "undefined"){
	mywidth = parseInt(mywidth + 82);
	left=mywidth;
}

// Run a Loop to output the contents of the Arrays in the format that Menu system needs:
	for (i=0; i < Menu_12.txt.length; i++) {
		aI("text=" + Menu_12.txt[i] + ";url="+ Menu_12.url[i] +";onclass=menuitemon;offclass=menuitemoff;");
	}
}


// Now write all Menus to the page putput:
drawMenus();

