/*
Simple Drop-Down Menu
Version 2.0.0
by Anil Sezer
07.03.2004
*/
var time;
var last_menu = ""; // En son açılan menuyu tutar
var timeOut = 1500; //Menünün ne kadar süre sonra kapanacağı
//var topMargin = 1; //Resimle menu arası (üst)
//var leftMargin = 1; // Resimle menu arası (sol)
var aktifColor = '#000000';
var deaktifColor = '';

function openmenu(menuname,myimg)	{ //menuleri açan fonksiyon
	clearTimeout(time);
    if (last_menu != '') hidemenu();

	var mylayer = document.getElementById(menuname);

	if (document.all) {
	mylayer.style.top = document.body.scrollTop + event.clientY-event.offsetY + 15;
	mylayer.style.left =  document.body.scrollLeft + event.clientX-event.offsetX;
	}
	else {
	mylayer.style.left = document.images[myimg].x - document.images[myimg].width - 30;
	mylayer.style.top = document.images[myimg].y + document.images[myimg].height + 3;
	}

	//Menüyü gösterir
	mylayer.style.visibility = "visible";

	last_menu = menuname; //önemli silinmemeli
}

function hidemenu()	{ //Menuyu saklar
  document.getElementById(last_menu).style.visibility = "hidden";
}

function closemenu()	{
	clearTimeout(time);
	time = setTimeout("hidemenu()", timeOut);
}


function fixedmenu()	{
	clearTimeout(time);
}

function aktif(onOverCell)	{
	onOverCell.bgColor = aktifColor;
}

function deaktif(onOutCell)	{
	onOutCell.bgColor = deaktifColor;
}

function goAdrr(addr)	{
	document.location=addr;
}

function Menu(img ,width, height, name, className, bgColor, tblwidth) {
this.img = img;
this.width = width;
this.height = height;
this.name = name;
this.className = className;
this.bgColor = bgColor;
this.tblwidth = tblwidth;
}

function Item(text, href, className, aClassName) {
this.text = text;
this.href = href;
this.className = className;
this.aClassName = aClassName;
}
//#353465
var menu = new Array();
menu[0] = new Array();
menu[0][0] = new Menu('Untitled-1_03.gif',130,15,'gizlicennetler','blue_box','#353465',125);
menu[0][1] = new Item('Bölgelere Göre','bolge.asp','menus','menu');
menu[0][2] = new Item('Bütün Mekanlar','hepsi.asp','menus','menu');
menu[1] = new Array();
menu[1][0] = new Menu('Untitled-1_05.gif',125,15,'sitehakkinda','blue_box','#353465',125);
menu[1][1] = new Item('Eyüp Coşkun Hakkında','eyupcoskun.asp','menus','menu');
menu[1][2] = new Item('Site Hakkında','hakkinda.asp','menus','menu');


var str = '';
var linkStr = '';


for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0])	{
	str += '<div id="menuno' + currMenu + '" style="position: absolute; visibility: hidden;">';
	str += '<table bgcolor="' + bgColor + '" cellpadding="3" cellspacing="0" onmouseout="closemenu();" onmouseover="fixedmenu();" class="'+ className +'" width="' + tblwidth + '">';
	linkStr += '<a href="#" onmouseover="openmenu(\'menuno' + currMenu + '\','+ name +')" onmouseout="closemenu();">'
	linkStr += '<img border="0" src="' + img +'" width="'+ width +'" height="'+ height +'" name="'+ name +'"></a>'
	for (currItem = 1; currItem < menu[currMenu].length; currItem++) with (menu[currMenu][currItem]) {
		str += '<tr><td onmouseout="deaktif(this)" onmouseover="aktif(this)" class="' + className + '" onclick="goAdrr(\'' + href + '\');">';
		str += '<a class="' + aClassName + '" href="' + href + '">' + text + '</a></td></tr>';
	}
	str += '</table></div>';
}
