var MenuX
var TopMargin
var LeftMargin
var Flag;
Flag = false;

var OffImgs = 
["../../ENMEDIA/ind_menu_members_off.gif",
"../../ENMEDIA/ind_menu_divespot_off.gif",
"../../ENMEDIA/ind_menu_forum_off.gif", 
"../../ENMEDIA/ind_menu_news_off.gif", 
"../../ENMEDIA/ind_menu_photo_off.gif", 
"../../ENMEDIA/ind_menu_links_off.gif", 
"../../ENMEDIA/ind_menu_contact_off.gif"]

var OnImgs = 
["../../ENMEDIA/ind_menu_members_on.gif",
"../../ENMEDIA/ind_menu_divespot_on.gif",
"../../ENMEDIA/ind_menu_forum_on.gif", 
"../../ENMEDIA/ind_menu_news_on.gif", 
"../../ENMEDIA/ind_menu_photo_on.gif", 
"../../ENMEDIA/ind_menu_links_on.gif", 
"../../ENMEDIA/ind_menu_contact_on.gif"]


/*if (navigator.appVersion.indexOf("MSIE")!=-1)
	MenuX=(screen.availWidth-723)/2-10
else
	MenuX=0;
alert(navigator.appVersion);*/

function ImagesMouseOut(ImgName,ItemId)
{
 if (Flag)
 {
   document.images[ImgName].src = OffImgs[ItemId];
	 Flag = false;
 }
}

function ImagesMouseIn(ImgName,ItemId)
{
if (Flag == false) 
 {
  document.images[ImgName].src = OnImgs[ItemId];
  Flag = true
 }
}

function SetBody()
{
	document.write("<body bgcolor='#CCCCCC' leftmargin='" + MenuX + "' topmargin='0' marginwidth='0' marginheight='0'>");
}


//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
//document.write(navigator.userAgent+"<br>"+navigator.appVersion);
menunum=0;menus=new Array();_d=document;
ns4=(_d.layers)?true:false
ns6=(navigator.userAgent.indexOf("Gecko")!=-1)?true:false
mac=(navigator.appVersion.indexOf("Mac")!=-1)?true:false
mac45=(navigator.appVersion.indexOf("MSIE 4.5")!=-1)?true:false
if(ns6||ns4)mac=false

loadWait=0;

opera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false
ns61=(parseInt(navigator.productSub)>=20010726)?true:false
ie4=(!_d.getElementById&&_d.all)?true:false;ta=0;
ie55=((navigator.appVersion.indexOf("MSIE 6.0")!=-1||navigator.appVersion.indexOf("MSIE 5.5")!=-1))?true:false;
ie55=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;
//Babür burayı değiştirdi, çünkü Macintosh için MSIE 5.0 yazıyor...
konq=(navigator.userAgent.indexOf("Konqueror")!=-1)?true:false
//MarginY=0;
//if ((mac)||(mac45)||(opera)) {MarginY = 10;}

MenuX=183;
LeftMargin=0;
TopMargin=0;
if (mac && ie55) {LeftMargin=10;TopMargin=15;}
if (opera) {LeftMargin=8;TopMargin=24;}
//MenuX=(screen.availWidth-723)/2;


function addmenu(){menunum++;menus[menunum]=menu;}
function dumpmenus(){for(a=1;a<menus.length;a++)
	{
	self["menu"+a]=eval("menus[a]");
	}
}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.



////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

var imgArrOn = new Array();
var imgArrOff = new Array();
function PreloadImages()
{
  for (i1=0;i1<=5;i1++)
  {
  	imgArrOn[i1] = new Image();
  	imgArrOff[i1] = new Image();
    imgArrOn[i1].src=OnImgs[i1];
    imgArrOff[i1].src=OffImgs[i1];
  }
}
			
PreloadImages();

// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
effect = "Fade(duration=0.2);Alpha(style=0,opacity=100);Shadow(color='#777777', Direction=135, Strength=1)"


timegap=500			// The time delay for menus to remain visible
followspeed=5		// Follow Scrolling speed
followrate=40		// Follow Scrolling Rate
suboffset_top=0;	// Sub menu offset Top position 
suboffset_left=0;	// Sub menu offset Left position
closeOnClick = true

style1=[			// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"003399",				// Mouse Off Font Color
"3399FF",			// Mouse Off Background Color
"000099",			// Mouse On Font Color
"999999",			// Mouse On Background Color
"000000",			// Menu Border Color 
12,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"Normal",				// Font Weight (bold or normal)
"Arial",	// Font Name
0,					// Menu Item Padding
,		// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"66ffff",			// 3D High Color
"000099",			// 3D Low Color
"Purple",			// Current Page Item Font Color (leave this blank to disable)
"pink",				// Current Page Item Background Color (leave this blank to disable)
,		// Top Bar image (Leave this blank to disable)
,			// Menu Header Font Color (Leave blank if headers are not needed)
,			// Menu Header Background Color (Leave blank if headers are not needed)
"CCCCCC",				// Menu Item Separator Color
]

style2=[	
"FFFFFF",				// Mouse Off Font Color
"FF6600",			// Mouse Off Background Color
"FFFFFF",			// Mouse On Font Color
"000099",			// Mouse On Background Color
"000000",			// Menu Border Color 
11,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"normal",				// Font Weight (bold or normal)
"Arial",	// Font Name
4,					// Menu Item Padding
,		// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"66ffff",			// 3D High Color
"000099",			// 3D Low Color
,			// Current Page Item Font Color (leave this blank to disable)
,				// Current Page Item Background Color (leave this blank to disable)
,		// Top Bar image (Leave this blank to disable)
"ffffff",			// Menu Header Font Color (Leave blank if headers are not needed)
"000099",			// Menu Header Background Color (Leave blank if headers are not needed)
"CCCCCC",				// Menu Item Separator Color
]
style3=[	
"FFFFFF",				// Mouse Off Font Color
"3399FF",			// Mouse Off Background Color
"FFFFFF",			// Mouse On Font Color
"000099",			// Mouse On Background Color
"000000",			// Menu Border Color 
11,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"normal",				// Font Weight (bold or normal)
"Arial",	// Font Name
4,					// Menu Item Padding
,		// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"66ffff",			// 3D High Color
"000099",			// 3D Low Color
,			// Current Page Item Font Color (leave this blank to disable)
,				// Current Page Item Background Color (leave this blank to disable)
,		// Top Bar image (Leave this blank to disable)
"ffffff",			// Menu Header Font Color (Leave blank if headers are not needed)
"000099",			// Menu Header Background Color (Leave blank if headers are not needed)
"CCCCCC",				// Menu Item Separator Color
]

addmenu(menu=[		// This is the array that contains your menu properties and details
"mainmenu",			// Menu Name - This is needed in order for the menu to be called
105+TopMargin,					// Menu Top - The Top position of the menu in pixels
MenuX+LeftMargin,				// Menu Left - The Left position of the menu in pixels
81,					// Menu Width - Menus width in pixels
,					// Menu Border Width 
,					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,				// Properties Array - this is set higher up, as above
1,					// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left",				// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,				// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,					// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, 					// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
"left",					// Position of TOP sub image left:center:right
,					// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,					// Right To Left - Used in Hebrew for example. (1=on/0=off)
,					// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,					// ID of the div you want to hide on MouseOver (useful for hiding form elements)
"../INDEXMEDIA/lgerman.gif",					// Background image for menu when BGColor set to transparent.
,					// Scrollable Menu
,					// Reserved for future use

,"<td height='150'><img src = '../../ENMEDIA/ind_menu_members_off.gif' border='0' NAME='Resim' onMouseMove=ImagesMouseIn('Resim',0) onMouseOver=ImagesMouseOut('Resim',0)></td>","show-menu=Members",,"Dive Centers shops lodging",0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"<td height='150'><img src = '../../ENMEDIA/ind_menu_divespot_off.gif' border='0' NAME='Resim1' onMouseMove=ImagesMouseIn('Resim1',1) onMouseOver=ImagesMouseOut('Resim1',1)></td>","show-menu=Dive Spots",,"Dive Spots",0
,"<td height='150'><img src = '../../ENMEDIA/ind_menu_forum_off.gif' border='0' NAME='Resim2' onMouseMove=ImagesMouseIn('Resim2',2) onMouseOver=ImagesMouseOut('Resim2',2)></td>","../SCUBA/scu_forum.asp?cbid=1",,"Scuba Forum",0
,"<td height='150'><img src = '../../ENMEDIA/ind_menu_news_off.gif' border='0' NAME='Resim3' onMouseMove=ImagesMouseIn('Resim3',3) onMouseOver=ImagesMouseOut('Resim3',3)></td>","../SCUBA/scu_news.asp",,"News",0
,"<td height='150'><img src = '../../ENMEDIA/ind_menu_photo_off.gif' border='0' NAME='Resim4' onMouseMove=ImagesMouseIn('Resim4',4) onMouseOver=ImagesMouseOut('Resim4',4)></td>","../PHOTOS/default.asp",,"Photo Gallery",0
,"<td height='150'><img src = '../../ENMEDIA/ind_menu_links_off.gif' border='0' NAME='Resim5' onMouseMove=ImagesMouseIn('Resim5',5) onMouseOver=ImagesMouseOut('Resim5',5)></td>","show-menu=links",,"Links",0
,"<img src = '../../ENMEDIA/ind_menu_contact_off.gif' border='0' width='81' height='150' NAME='Resim6' onMouseMove=ImagesMouseIn('Resim6',6) onMouseOver=ImagesMouseOut('Resim6',6)>","../CONTACT/default.asp",,"Contact Us",0


])

	addmenu(menu=["Members",
	,,150,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"Dive Centers","../MEMBERS/default.asp?FGroupId=1",,"Dive Centers",1
	,"Dive Shops","../MEMBERS/default.asp?FGroupId=2",,"Dive Shops",1
	,"Hotels - Lodging","../MEMBERS/default.asp?FGroupId=3",,"Hotels - Lodging",1
	,"Dive Groups","../MEMBERS/default.asp?FGroupId=4",,"Dive Groups",1
//	,"Become a member","../MEMBERS/mem_guest_info.asp",,"Join our maillist",1
	])
  
 
		addmenu(menu=["Dive Spots",
		,,216,1,"",style2,,"left",effect,,,,,,,,,,,,
		,"Marmara Sea","../LOCATIONS/Default.asp?RegId=1",,"Marmara Sea",1
		,"Northern Aegean Shores","show-menu=Kuzey Ege",,"Northern Aegean Shores",1
		,"Southern Aegean Shores","show-menu=Güney Ege",,"Southern Aegean Sea",1
		,"Mediterranean Shores","show-menu=Akdeniz",,"Mediterranean Shores",1
		,"Regions where diving is prohibited","show-menu=Prohibition",,"Regions where diving is prohibited",1
		])
	
	   
  
	addmenu(menu=["links",
		,,216,1,"",style2,,"left",effect,,,,,,,,,,,,
		,"Certification Organisations","../LINKS/default.asp",,"Certification Organisations",1
		,"Magazines","../LINKS/lin_magazine.asp",,"Magazines",1
		,"Equipment Manufacturers","../LINKS/lin_equipment.asp",,"Equipment Manufacturers",1
		,"Dive Medicine","../LINKS/lin_medicine.asp",,"Dive Medicine",1
		,"Decompression Chambers","../LINKS/lin_pressure.asp",,"Decompression Chambers",1
		,"Miscellaneous links","../LINKS/lin_other.asp",,"Miscellaneous links",1
		])


		addmenu(menu=["Kuzey Ege",
		,,216,1,"",style2,,"left",effect,,,,,,,,,,,,
		,"Ayvalık","../LOCATIONS/Default.asp?LocId=6",,"Ayvalık",1
		,"Bozacaada","../LOCATIONS/Default.asp?LocId=5",,"Bozacaada",1
		,"Çanakkale","../LOCATIONS/Default.asp?LocId=3",,"Çanakkale",1
		,"Gökçeada","../LOCATIONS/Default.asp?LocId=4",,"Gökçeada",1
		,"Saroz Bay","../LOCATIONS/Default.asp?LocId=2",,"Saroz Bay",1		
		])

		addmenu(menu=["Akdeniz",
		,,216,1,"",style2,,"left",effect,,,,,,,,,,,,
		,"Antalya","../LOCATIONS/Default.asp?LocId=19",,"Antalya",1
		,"Alanya","../LOCATIONS/Default.asp?LocId=20",,"Alanya",1
		,"Dalyan/Sarıgerme","../LOCATIONS/Default.asp?LocId=14",,"Dalyan/Sarıgerme",1
		,"Fethiye","../LOCATIONS/Default.asp?LocId=15",,"Fethiye",1
		,"Kalkan","../LOCATIONS/Default.asp?LocId=16",,"Kalkan",1
		,"Kaş","../LOCATIONS/Default.asp?LocId=17",,"Kaş",1
		,"Kemer","../LOCATIONS/Default.asp?LocId=18",,"Kemer",1
		,"Mersin","../LOCATIONS/Default.asp?LocId=21",,"Mersin",1
		])
		addmenu(menu=["Güney Ege",
		,,216,1,"",style2,,"left",effect,,,,,,,,,,,,
		,"Bodrum","../LOCATIONS/default.asp?LocId=10",,"Bodrum",1
		,"Çeşme","../LOCATIONS/Default.asp?LocId=7",,"Çeşme",1
		,"Datça","../LOCATIONS/Default.asp?LocId=11",,"Datça",1
		,"Kuşadası","../LOCATIONS/Default.asp?LocId=8",,"Kuşadası",1
		,"Marmaris","../LOCATIONS/Default.asp?LocId=12",,"Marmaris",1
		])
		
		addmenu(menu=["Prohibition",
		,,216,1,"",style2,,"left",effect,,,,,,,,,,,,
		,"Marmara Shores","../LOCATIONS/loc_nodive_marmara.asp",,"Marmara Shores",1
		,"Aegean Shores","../LOCATIONS/loc_nodive_ege.asp",,"Aegean Shores",1
		,"Mediterranean Shores","../LOCATIONS/loc_nodive_akdeniz.asp",,"Mediterranean Shores",1
		])
		
	
		
dumpmenus()



/*
,"<td width='81' height='150'><table cellspacing='0' cellpadding='0' width='81' height='150'><tr><td><img src = '../../ENMEDIA/ind_menu_members_off.gif' height='150' width='81' border='0' NAME='Resim' onMouseMove=ImagesMouseIn('Resim',0) onMouseOver=ImagesMouseOut('Resim',0)></td></tr></table></td>","show-menu=Üyelerimiz",,"Üyelerimiz",0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"<td height='150'><img src = '../../TRMEDIA/ind_menu_dalisnoktalari_off.gif' border='0' NAME='Resim1' onMouseMove=ImagesMouseIn('Resim1',1) onMouseOver=ImagesMouseOut('Resim1',1)></td>","show-menu=Dalış Noktaları",,"Dalış Noktaları",0
,"<td height='150'><img src = '../../TRMEDIA/ind_menu_scubadunyasi_off.gif' border='0' NAME='Resim2' onMouseMove=ImagesMouseIn('Resim2',2) onMouseOver=ImagesMouseOut('Resim2',2)></td>","show-menu=Scuba Dünyası",,"Scuba Dünyası",0
,"<td height='150'><img src = '../../TRMEDIA/ind_menu_resimgalerisi_off.gif' border='0' NAME='Resim3' onMouseMove=ImagesMouseIn('Resim3',3) onMouseOver=ImagesMouseOut('Resim3',3)></td>","../PHOTOS/default.asp",,"Resim Galerisi",0
,"<td height='150'><img src = '../../TRMEDIA/ind_menu_linkler_off.gif' border='0' NAME='Resim4' onMouseMove=ImagesMouseIn('Resim4',4) onMouseOver=ImagesMouseOut('Resim4',4)></td>","show-menu=Linkler",,"Linkler",0
,"<td height='150'><img src = '../../TRMEDIA/ind_menu_bizeulasin_off.gif' border='0' NAME='Resim5' onMouseMove=ImagesMouseIn('Resim5',5) onMouseOver=ImagesMouseOut('Resim5',5)></td>","../CONTACT/default.asp",,"Bize Ulaşın",0
,"<img src = '../../TRMEDIA/ind_menulast.gif' width='81' height='150'>","",,"",0
*/

