/*
 *
 * GMK JavaScript Include File
 * (c) Emre Erkmen 2005 @ Kırmızı Kalem
 *
*/

/* Multibrowser locator */

function bulShunu(bunu) {
	var theObject;
	if (document.all) {
		/* Internet Explorer, Opera */
		theObject = document.all(bunu);
	} else if (document.getElementById) {
		/* Mozilla */
		theObject = document.getElementById(bunu);
	} else if (document.layers) {
		/* Netscape, Safari? */
		theObject = document.layers[bunu];
	};
	if (theObject) {
		return theObject;
	};
}	

/* Menüyle ilgili ayarlar */
menuRenkleri = new Array('66BDDB', 'DD4714', '8CB80D', 'D0416D', 'DFAB00', '857C75', 'A8ADB3', 'DF7CB3');

/* Menüde aktif olan kısım açılsın. */

function menuYapilandir(neAcilsin) {
	if (neAcilsin != 0) {
		shunuAc = bulShunu("menuSub" + neAcilsin.toString());
		shunuAc.style.display = 'block';
	};
	var i = 1;
	while (renklen = bulShunu("menuHeader" + i.toString())) {
		if (i != menuActiveElement) {
			renklen.style.background = "#" + menuRenkleri[i];
		} else {
			renklen = bulShunu("marginArea" + i.toString())
			renklen.style.background = "#" + menuRenkleri[i];
		}
		i++;
	};
	
};

/* Menüde seçilen kısım açılsın. Aktif olan 
	 hariç diğerleri kapansın. */

function acilSusam(neAcilsin) {
	var i = 1;
	
	while (bulShunu("menuSub" + i.toString())) {
		shunuAc = bulShunu("menuSub" + i.toString());
		if (i == neAcilsin) {
			shunuAc.style.display = 'block';
		} else {
			shunuAc.style.display = 'none';
		};
		i++;
	};
}



/*

function gosterKendini (bunu, neyi, toplamKacTane) {
	var say, nowObject, theObject = bulShunu(neyi + bunu);
	if (theObject.style.display != 'block') {
		for (say = 1; say <= toplamKacTane; say++) {
			nowObject = bulShunu(neyi + say);
			if ((neyi + say) != (neyi + bunu)) {
				nowObject.style.display = 'none';
			} else {
				nowObject.style.display = 'block';
			};
		};
	};
	/* Mozilla ve Opera için: 
	theObject = bulShunu('footing');
	theObject.style.display = 'none';
	theObject.style.display = 'block';
}

function iletisimToggle () {
	var theObject = bulShunu('iletisimBox');
	if (theObject.style.display == 'block') {
		theObject.style.display = 'none';
	} else {
		theObject.style.display = 'block';
	}
	theObject = bulShunu('footing');
	theObject.style.display = 'none';
	theObject.style.display = 'block';
}

function yeniPencere(theHref, x, y)
{
	var features = "width=" + x + ",height=" + y + ",scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no";
	yeniPen = window.open(theHref, '', features);
  yeniPen.focus();
  //return false;
}

function bioPopIn(hangisi) {
	for (var i=1; i < 12; i++) {
		var theObject = bulShunu('bioPopIn' + i);
		if (i == hangisi) {
			theObject.style.display = 'block';
		} else {
			theObject.style.display = 'none';
		};
	}
}

function bioPopInKapat(hangisi) {
		var theObject = bulShunu('bioPopIn' + hangisi);
		theObject.style.display = 'none';
}
*/
