timegap=100;
followspeed=5;
followrate=40;
suboffset_top=0;
suboffset_left=0;
//int menu_width;
//menu_width=(screen.width-410)/5-(screen.width-410)%5;
//if (screen.width==800) {menu_width=55;}
//else if (screen.width==1024) {menu_width=87;}
//else if (screen.width==1152) {menu_width=106;}
//else if (screen.width==1280) {menu_width=124;}
//else
top_menu_length=7;
top_menu_width=(screen.width-430)/top_menu_length;
//if (top_menu_length>6) {menu_width=(screen.width-410)/6;}
//else {menu_width=top_menu_width;}

menu_width=110;

effect = "fade(duration=0.3);Shadow(color='#777777', Direction=135, Strength=5)"

function openwin(url)
{
	nwin=window.open(url, "nwin",config="scrollbars=yes,resizable=yes,toolbar=yes,location=yes,status=yes,menubar=yes,");
	nwin.focus();
}

prop1=[						// prop1 is an array of properties you can have as many property arrays as you need
"ffffff",					// Off Font Color
"006699",					// Off Back Color
"99ffff",					// On Font Color
"003366",					// On Back Color
"",					// Border Color
12,						// Font Size
"normal",					// Font Style 
"bold",						// Font Weight
"Arial,Verdana,Tahoma,Helvetica",		// Font
3,						// Padding
"/images/arrow.gif",				// Sub Menu Image
0,						// 3D Border & Separator
"",					// 3D High Color
"",					// 3D Low Color
"",					// Referer item Font Color (leave this blank to disable)
"",					// Referer item Back Color (leave this blank to disable)
]

prop2=[						// scheme for submenu
"003366",					// Off Font Color
"CDDBEB",					// Off Back Color
"99ffff",					// On Font Color
"006699",					// On Back Color
"ffffff",					// Border Color
12,						// Font Size
"normal",					// Font Style 
"bold",						// Font Weight
"Arial,Verdana,Tahoma,Helvetica",		// Font
3,						// Padding
"http://www.allmonarchs.net/images/arrow.gif",				// Sub Menu Image
1,						// 3D Border & Separator
"",					// 3D High Color
"",					// 3D Low Color
"",					// Referer item Font Color (leave this blank to disable)
"",					// Referer item Back Color (leave this blank to disable)
]

menu1=[				// This is the array that contains your menu properties and details
48,					// Top
380,					// Left
top_menu_width,			// Width
0,					// Border Width
"left",			// Screen Position - here you can use "center;middle;right"
prop1,				// Properties Array - this is set higher up, as above
1,					// Always Visible - allows the menu item to be visible at all time
"center",			// Alignment - sets the menu elements alignment, HTML values are valid here for example: left, right or center
,					// Filter - Text variable for setting transitional effects on menu activation
,					// Follow Scrolling - Tells the menu item to follow the user down the screen
1, 					// Horizontal Menu - Tells the menu to be horizontal instead of top to bottom style
,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page
,					// Position of sub image left:center:right:middle:top:bottom
,					// Show an image on top menu bars indicating a sub menu exists below
,					// Reserved for future use
"Главная","http://www.allmonarchs.net",,,,	// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
"Европа","show-menu2",,,,
"От А до Я","show-menu3",,,,
"Карты", "show-menu4",,,,
"Ссылки","http://www.allmonarchs.net/links.html",,,,
"Форум","http://www.allmonarchs.net/forum/",,,,
"Гостевая","http://www.allmonarchs.net/guestbook",,,
]

menu2=[
,,menu_width,1,"",prop2,,"left",,,,,,,,
"Бельгия","http://www.allmonarchs.net/belgium.html",,,1,
"Ватикан","http://www.allmonarchs.net/vatican.html",,,1,
"Великобритания","http://www.allmonarchs.net/uk.html",,,1,
"Дания","http://www.allmonarchs.net/denmark.html",,,1,
"Исландия","http://www.allmonarchs.net/iceland.html",,,1,
"Испания","http://www.allmonarchs.net/spain.html",,,1,
"Лихтенштейн","http://www.allmonarchs.net/liechtenstein.html",,,1,
"Люксембург","http://www.allmonarchs.net/luxembourg.html",,,1,
"Монако","http://www.allmonarchs.net/monaco.html",,,1,
"Нидерланды","http://www.allmonarchs.net/netherlands.html",,,1,
"Норвегия","http://www.allmonarchs.net/norway.html",,,1,
"Россия","http://www.allmonarchs.net/russia.html",,,1,
"Франция","http://www.allmonarchs.net/france.html",,,1,
"Швеция","http://www.allmonarchs.net/sweden.html",,,1
]

menu3=[
,,menu_width,1,"",prop2,,"left",effect,,,,,,,
"Монархи","http://www.allmonarchs.net/abc/getmonarchlist.php",,,1,
"Страны","http://www.allmonarchs.net/abc/getcountrylist.php",,,1
]

menu4=[
,,menu_width,1,"",prop2,,"left",effect,,,,,,,
"Европа","show-menu5",,,1
]

menu5=[
,,menu_width,1,"",prop2,,"left",effect,,,,,,,
"Вся Европа","http://www.allmonarchs.net/maps.php?CountryID=1",,,1,
"Ватикан","http://www.allmonarchs.net/maps.php?CountryID=11",,,1,
"Великобритания","http://www.allmonarchs.net/maps.php?CountryID=2",,,1,
"Бельгия","http://www.allmonarchs.net/maps.php?CountryID=5",,,1,
"Дания","http://www.allmonarchs.net/maps.php?CountryID=7",,,1,
"Испания","http://www.allmonarchs.net/maps.php?CountryID=8",,,1,
"Люксембург","http://www.allmonarchs.net/maps.php?CountryID=6",,,1,
"Нидерланды","http://www.allmonarchs.net/maps.php?CountryID=4",,,1,
"Норвегия","http://www.allmonarchs.net/maps.php?CountryID=10",,,1,
"Россия","http://www.allmonarchs.net/maps.php?CountryID=12",,,1,
"Франция","http://www.allmonarchs.net/maps.php?CountryID=3",,,1,
"Швеция","http://www.allmonarchs.net/maps.php?CountryID=9",,,1
]
