menunum=0;
menus=new Array();
_d=document;

function addmenu() {
   menunum++;
   menus[menunum]=menu;
}


function dumpmenus() {
   mt="<script language=javascript>";
   for(a=1;a<menus.length;a++) {
      mt+=" menu"+a+"=menus["+a+"];"
   }
   mt+="<\/script>";
   _d.write(mt)
}

effect="";


if(navigator.appVersion.indexOf("MSIE")>0)
{
	MenuWidth = 132
	X_origin = (document.body.clientWidth-799)/2; 
	Diff = 665
}
else
{
	MenuWidth = 122
	X_origin = (document.body.clientWidth-808)/2; 
	Diff = 665
}

if (X_origin<0)
{
	X_origin = 0
}



timegap=500				// The time delay for menus to remain visible
followspeed=5			// Follow Scrolling speed
followrate=40			// Follow Scrolling Rate
suboffset_top=10;		// Sub menu offset Top position 
suboffset_left=10;		// Sub menu offset Left position

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.
"white",				// Mouse Off Font Color
"a5a6a5",				// Mouse Off Background Color
"white",				// Mouse On Font Color
"2175bd",				// Mouse On Background Color
"white",				// Menu Border Color 
11,						// Font Size in pixels
"normal",				// Font Style (italic or normal)
"normal",				// Font Weight (bold or normal)
"helvetica",			// Font Name
5,						// Menu Item Padding
"images/arrow.gif",		// Sub Menu Image (Leave this blank if not needed)
,						// 3D Border & Separator bar
"white",				// 3D High Color
"white",				// 3D Low Color
"ffffff",				// Current Page Item Font Color (leave this blank to disable)
"CCCCCC",				// 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)
]



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
intTop,					// Menu Top - The Top position of the menu in pixels
0,				// Menu Left - The Left position of the menu in pixels
MenuWidth,					// Menu Width - Menus width in pixels
1,					// Menu Border Width 
"center",					// 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)
"center",				// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect,				// 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)
,					// 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)
,					// Reserved for future use
,					// Reserved for future use
,					// Reserved for future use
,"<b>Ana Sayfa</b>","default.asp",,"",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"<b>Entek Pnömatik</b>","show-menu=Entek",,"",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"<b>SMC Hakkında</b>","show-menu=about",,"",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"<b>Ürünler</b>","http://www.smcworld.com/2002/e/webcatalog/index.htm",,"",1
,"<b>Endüstriyel</b>","show-menu=industries",,"",1
,"<b>Haberler</b>","show-menu=news",,"",1
])

// *********************************************************************************************************************************************************************-
	addmenu(menu=["Entek",
	,,134,1,"",style1,,"left",effect,,,,,,,,,,,,

	,"Entek Hakkında","entek.asp?what=aboutus",,,1
	,"Departmanlarımız","entek.asp?what=departments",,,1
	,"Bayilerimiz","entek.asp?what=salers",,,1
//	,"Eğitim","http://egitim.entek.com.tr target=new",,,1
	,"İnsan Kaynakları","entek.asp?what=hr",,,1
	,"Entek'e Sor","entek.asp?what=ask",,,1
	,"Dilek ve Şikayet","entek.asp?what=request",,,1
	]) 
// *********************************************************************************************************************************************************************-
	addmenu(menu=["about",
	,,134,1,"",style1,,"left",effect,,,,,,,,,,,,
	,"SMC'ye Hoşgeldiniz","smc.asp?what=welcome",,,1
	,"Ekip","smc.asp?what=humanteam",,,1
	,"Yenilikler ve AR-GE Çalışmaları","smc.asp?what=innovation",,,1
	,"Dünyada SMC Satış Noktaları","smc.asp?what=salesnetwork",,,1
	,"Üretim ve Tedarik","smc.asp?what=productionsupply",,,1
	,"SMC Avrupa","show-menu=subSMCEuropa",,,1
	//,"Uluslararası Eğitim","http://egitim.entek.com.tr target=new",,,1
	])

// *********************************************************************************************************************************************************************-

		addmenu(menu=["subSMCEuropa",
		,,134,1,"",style1,,"left",effect,,,,,,,,,,,,
		,"Avrupa Teknik Destek Merkezi","smc.asp?what=techcenter",,,1
		,"Avrupa Pazarlama Merkezi","smc.asp?what=marketingcenter",,,1
		])

// *********************************************************************************************************************************************************************-	
	addmenu(menu=["products",
	,,134,1,"",style1,,"left",effect,,,,,,,,,,,,	
	,"Ürün Kataloğu","products.asp",,,1
	,"Yeni Ürünler","newproducts.asp",,,1
	//,"CAD-2D/3D","http://www.partserver.com/language.asp?firm=smc&language=english target=PopUpFrame.html",,,1
	//,"CAD-2D/3D CD Güncelleme","#",,,1
	//,"SMC E-Teknik Danışma","http://www.smcetech.com/CC_host/pages/public/custom/smc/etech_home.cfm?dealerCode=SMC  target=PopUpFrame.html",,,1
	,"CAD-2D/3D","cad3d.asp",,,1	
	//,"Uygulamalar","#",,,1
	//,"Katalog Siparişi","#",,,1
	//,"Temel Pnömatik Bilgisi","#",,,1
	,"Ürünlere Genel Bakış","productoverview.asp",,,1
	,"Seri İletişim Sistemleri","serialnetwork.asp?what=intro",,,1
	//,"Software","#",,,1
	])
// *********************************************************************************************************************************************************************-	
	addmenu(menu=["industries",
	,,134,1,"",style1,,"left",effect,,,,,,,,,,,,
	,"Değişik Endüstrilerdeki Kullanım","industries.asp?what=welcome",,,1 
	,"Otomotiv","industries.asp?what=automative",,,1
	,"Elektronik","industries.asp?what=electronic",,,1
	,"İlaç ve Sağlık Endüstrisi","industries.asp?what=lifescience",,,1
	,"Gıda","industries.asp?what=food",,,1
	])
// *********************************************************************************************************************************************************************-
	addmenu(menu=["news",
	,,134,1,,style1,,"left",effect,,,,,,,,,,,,
	,"Yeni Ürün Tanıtımları","newproducts.asp",,,1
	,"Haberler / Fuarlar","news.asp",,,1
	])

// *********************************************************************************************************************************************************************-
addmenu(menu=[		// This is the array that contains your menu properties and details
"leftmenu",			// Menu Name - This is needed in order for the menu to be called
intTop+25,					// Menu Top - The Top position of the menu in pixels
X_origin,					// Menu Left - The Left position of the menu in pixels
MenuWidth,					// Menu Width - Menus width in pixels
1,					// 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)
"center",				// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect,				// 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)
,					// 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)
,					// Reserved for future use
,					// Reserved for future use
,					// Reserved for future use
,"<b>CAD Dosyaları</b>","http://www.partserver.com/language.asp?firm=smc&language=english",,"",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
])


addmenu(menu=[		// This is the array that contains your menu properties and details
"rightmenu",			// Menu Name - This is needed in order for the menu to be called
intTop+25,					// Menu Top - The Top position of the menu in pixels
X_origin+Diff,					// Menu Left - The Left position of the menu in pixels
MenuWidth,					// Menu Width - Menus width in pixels
1,					// 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)
"center",				// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect,				// 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)
,					// 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)
,					// Reserved for future use
,					// Reserved for future use
,					// Reserved for future use
,"<b>İletişim</b>","contact.asp",,"",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
])



dumpmenus()
