﻿	
	function GE(adi){if(document.getElementById(adi)) { return document.getElementById(adi); } else {return null;}}
	function CE(adi){if(!document.getElementById(adi)) { return document.createElement(adi); } else {return document.getElementById(adi);}}	
	function CYE(adi){ return document.createElement(adi); }
	function AjaxReq(){var req=null;try{req=new XMLHttpRequest();}catch(e){try{req=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){alert("Taray&yacute;c&yacute; AJAX desteklemiyor.");}}return req;};

	
	function ROKU(radi,rnoss){
		var hcob = AjaxReq();
		params = "alow=2"
		hcob.open("GET",radi,true);
		hcob.setRequestHeader("Content-type","application/x-www-form-urlencoded");
		hcob.setRequestHeader("Content-length",params.length);
		hcob.setRequestHeader("Connection","close");
		hcob.send(params);
		hcob.onreadystatechange=function(){
			if(hcob.readyState==4) {
				if(hcob.status==200){
					GE("yukle").style.display='none';
					GE("slogan").innerHTML=obje[rnoss].yazi;
				} else {
					GE("yukle").style.display='none';
				}
			}
		}
		}

		function MenuAc(objead) {
			if (document.getElementById(objead)) {
				var oja = document.getElementById(objead);
				if(oja.style.display=='none') {
					oja.style.display='';
				} else {
					oja.style.display='none';
				}
			}
		}

function MenuSec() {
	var menob = 'im'+bolum+kayit;
	if(document.getElementById(menob)) {
		menob = document.getElementById(menob);
		menob.firstChild.className='krm';
		if(menob.parentNode.style.display=='none') {menob.parentNode.style.display='';}
		if(menob.parentNode.parentNode.style.display=='none') {menob.parentNode.parentNode.style.display='';}
		if(menob.parentNode.parentNode.parentNode.style.display=='none') {menob.parentNode.parentNode.parentNode.style.display='';}
	}
}

function YZC(pro,rsid) {
	window.open(RootURL+'/yazdir/'+pro+'/'+rsid+'/yazdir.html')
}
function HZC(pro,rsid) {
	window.open(RootURL+'/hyazdir/'+pro+'/'+rsid+'/yazdir.html')
}

function uye_giris_kapat(){
	$.facebox.close();
}
function tazele(){
	document.location.reload();
}
