var MenuX
var TopMargin
var LeftMargin
var Flag;
Flag = false;
if (SayfaNo == "") {SayfaNo = "0"; }
 
if (SayfaNo != "1") { StrHakkinda = "../../TRMEDIA/nav_01off.gif" } else { StrHakkinda = "../../TRMEDIA/nav_01on.gif"}
if (SayfaNo != "2") { StrHizmet = "../../TRMEDIA/nav_02off.gif" } else { StrHizmet = "../../TRMEDIA/nav_02on.gif"}
if (SayfaNo != "3") { StrSube = "../../TRMEDIA/nav_03off.gif" } else { StrSube = "../../TRMEDIA/nav_03on.gif"}
if (SayfaNo != "4") { StrTahlil = "../../TRMEDIA/nav_04off.gif" } else { StrTahlil = "../../TRMEDIA/nav_04on.gif"}
if (SayfaNo != "5") { StrHaber = "../../TRMEDIA/nav_05off.gif" } else { StrHaber = "../../TRMEDIA/nav_05on.gif"}
if (SayfaNo != "6") { StrFaal = "../../TRMEDIA/nav_06off.gif" } else { StrFaal = "../../TRMEDIA/nav_06on.gif"}

var OffImgs = 
[StrHakkinda,
StrHizmet,
StrSube, 
StrTahlil, 
StrHaber, 
StrFaal]

var OnImgs = 
["../../TRMEDIA/nav_01on.gif",
"../../TRMEDIA/nav_02on.gif",
"../../TRMEDIA/nav_03on.gif", 
"../../TRMEDIA/nav_04on.gif", 
"../../TRMEDIA/nav_05on.gif", 
"../../TRMEDIA/nav_06on.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=201;
LeftMargin=0;
TopMargin=1;
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(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
//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
"CCCCCC",			// 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=[	
"003366",				// Mouse Off Font Color
"CCE5FF",			// Mouse Off Background Color
"FFFFFF",			// Mouse On Font Color
"003366",			// 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
128,					// 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

,"<img src = '" + StrHakkinda + "' width='128' border='0' NAME='Resim' onMouseMove=ImagesMouseIn('Resim',0) onMouseOver=ImagesMouseOut('Resim',0)>","show-menu=Biruni Hakkinda",,"Biruni Hakkında",0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"<img src = '" + StrHizmet + "' border='0' width='128' height='32' NAME='Resim1' onMouseMove=ImagesMouseIn('Resim1',1) onMouseOver=ImagesMouseOut('Resim1',1)>","show-menu=Hizmetlerimiz",,"Hizmetlerimiz",0
,"<img src = '" + StrSube + "' width='128' height='32' border='0' NAME='Resim2' onMouseMove=ImagesMouseIn('Resim2',2) onMouseOver=ImagesMouseOut('Resim2',2)>","../OFFICES/default.asp",,"Şubelerimiz",0
,"<img src = '" + StrTahlil + "' width='128' height='32' border='0' NAME='Resim3' onMouseMove=ImagesMouseIn('Resim3',3) onMouseOver=ImagesMouseOut('Resim3',3)>","../PRETEST/default.asp",,"Biruniye Gelirken",0
,"<img src = '" + StrHaber + "' width='128' height='32' border='0' NAME='Resim4' onMouseMove=ImagesMouseIn('Resim4',4) onMouseOver=ImagesMouseOut('Resim4',4)>","show-menu=haberler",,"Haberler ve Yayınlar",0
,"<img src = '" + StrFaal + "' width='128' height='32' border='0' NAME='Resim5' onMouseMove=ImagesMouseIn('Resim5',5) onMouseOver=ImagesMouseOut('Resim5',5)>","show-menu=Etkinlikler",,"Etkinliklerimiz",0


//,"<td width='131' height='32'><table cellspacing='0' cellpadding='0' width='131' height='32'><tr><td width='131'><img src = '" + StrHakkinda + "' width='131' border='0' NAME='Resim' onMouseMove=ImagesMouseIn('Resim',0) onMouseOver=ImagesMouseOut('Resim',0)></td></tr></table></td>","show-menu=Biruni Hakkinda",,"Biruni Hakkinda",0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
//,"<td width='119' height='32'><img src = '" + StrHizmet + "' border='0' width='119' height='32' NAME='Resim1' onMouseMove=ImagesMouseIn('Resim1',1) onMouseOver=ImagesMouseOut('Resim1',1)></td>","show-menu=Hizmetlerimiz",,"Hizmetlerimiz",0
//,"<td width='110' height='32'><img src = '" + StrSube + "' width='110' height='32' border='0' NAME='Resim2' onMouseMove=ImagesMouseIn('Resim2',2) onMouseOver=ImagesMouseOut('Resim2',2)></td>","../OFFICES/default.asp",,"Şubelerimiz",0
//,"<td width='120' height='32'><img src = '" + StrTahlil + "' width='120' height='32' border='0' NAME='Resim3' onMouseMove=ImagesMouseIn('Resim3',3) onMouseOver=ImagesMouseOut('Resim3',3)></td>","../PRETEST/default.asp",,"Tahlil Öncesi",0
//,"<td width='154' height='32'><img src = '" + StrHaber + "' width='154' height='32' border='0' NAME='Resim4' onMouseMove=ImagesMouseIn('Resim4',4) onMouseOver=ImagesMouseOut('Resim4',4)></td>","show-menu=haberler",,"Haberler ve Yayınlar",0
//,"<td width='118' height='32'><img src = '" + StrFaal + "' width='118' height='32' border='0' NAME='Resim5' onMouseMove=ImagesMouseIn('Resim5',5) onMouseOver=ImagesMouseOut('Resim5',5)></td>","show-menu=faaliyet",,"Faaliyetlerimiz",0

])

	addmenu(menu=["Biruni Hakkinda",
	,,170,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"Tarihçe","../PROFILE/default.asp",,"Tarihçe, Biruni Kimdir?",1
	,"Biruni Kimdir?","../PROFILE/biruni.asp",,"Biruni Kimdir?",1
	,"Misyon, Vizyon ve İlkelerimiz","../PROFILE/misyon.asp",,"Misyon, Vizyon ve İlkelerimiz",1
	,"Çalışma Saatleri","../PROFILE/prosedurler.asp",,"Çalışma Saatleri",1
	,"Anlaşmalı Kurumlar","../PROFILE/kurumlar.asp",,"Anlaşmalı Kurumlar",1
	])
  
 
		addmenu(menu=["Hizmetlerimiz",
		,,150,1,"",style2,,"left",effect,,,,,,,,,,,,
		,"Paneller","../SERVICES/default.asp",,"Paneller",1
		,"Hematoloji Paneli","../SERVICES/hematoloji.asp",,"Hematoloji Paneli",1
		//,"Androloji Paneli","../SERVICES/androloji.asp",,"Androloji Paneli",1
		//,"Alerji Paneli","../SERVICES/alerji.asp",,"Alerji Paneli",1
		,"Check Up Listeleri","../SERVICES/checkup.asp",,"Check Up Listeleri",1
		//,"Alfabetik Test Listesi","../SERVICES/abctest.asp",,"Alfabetik Test Listesi",1
		,"Endüstri Hizmetleri","../SERVICES/endustri.asp",,"Endüstri Hizmetleri",1
		])
	
	addmenu(menu=["Haberler",
		,,156,1,"",style2,,"left",effect,,,,,,,,,,,,
		,"Haberler","../NEWS/default.asp",,"Haberler",1
		,"Halk Sağlığı Bültenleri","../NEWS/populerbulten.asp",,"Halk Sağlığı Bültenleri",1
		,"Halk Sağlığı Köşesi","../NEWS/halksagligi.asp",,"Halk Sağlığı Köşesi",1
		,"Bilimsel Bültenler","../NEWS/bilimselbulten.asp",,"Bilimsel Bültenler",1
		])
		
	addmenu(menu=["Etkinlikler",
		,,130,1,"",style2,,"left",effect,,,,,,,,,,,,
		,"Profilo Seminer Programı","../ACTIVITIES/default.asp",,"Profilo Seminer Programı",1
		,"CKM Seminer Programı","../ACTIVITIES/ckm.asp",,"CKM Seminer Programı",1
		])		


		
dumpmenus();
