function Acsayfa(url,width,height)
{
	width=width + 10;
	height=height + 10;
	window.open(url, '_blank', 'toolbar=0, location=0, directories=0, status=0, menuBar=0, scrollBars=1, resizable=0, width='+ width +', height='+ height +', top=0' ) ;
}

// Üst Menü

	function menuOver(id){
		document.getElementById("menu"+id).style.backgroundColor = '#C40B1E';
	}
	function menuBtn(id){

	}
	
	function menuOut(id){
		document.getElementById("menu"+id).style.backgroundColor = 'Transparent';
		
	}

function ozellikVer(katman,ozellik,deger)
{
document.getElementById(katman).style[ozellik]=deger;
}	

// yazarlar
var yazarlar=new Array();
function ay_over(indis)
{

	document.getElementById('div_ay').innerHTML="<a href='/konuk-yazilar/"+yazarlar[indis]['id']+"/"+yazarlar[indis]['sbjct']+"/"+yazarlar[indis]['yazari']+".html'><img src='"+yazarlar[indis]['foto']+"' /><font class='ay_sbjct'>"+yazarlar[indis]['baslik']+"</font></a>";
	document.getElementById('ay_'+indis).style.color="#4194ee";
	for (i=0;i<yazarlar.length;i++)
	if (i!=indis) document.getElementById('ay_'+i).style.color="#e3e3e3";
}
// Degistir
function degistir()
{
	var arg = degistir.arguments;
	for(j=1;j<arg.length;j++)
	{
		var rows=document.getElementById(arg[j]).getElementsByTagName('span');
		for(i=0;i<rows.length;i++) rows[i].style.display='none';
		rows[arg[0]].style.display='block';
	}
}

function poll_submit()
{
	durum=false;
	form=document.anketform;
	for(i=0;i<form.oy.length;i++)
	if(form.oy[i].checked) durum=true;
	if (!durum) alert("Lütfen seçim yapiniz!");
	else form.submit();
}

var img_object = new Image();
function img_obj_src_func(Arr,opt)
{
	var imgpath;
	if (opt==null) imgpath="/img_db/haber/kucuk/"; else imgpath="/img_db/haber/kucuk/";
	for (i=0;i<Arr.length;i++)
	img_object.src = imgpath+"/"+Arr[i];
}
//
function img_obj_src_funcx(Arr,opt)
{
	var imgpathx;
	if (opt==null) imgpathx="/img_db/haber/kucuk/"; else imgpathx="/img_db/haber/kucuk/";
	for (i=0;i<Arr.length;i++)
	img_object.src = imgpathx+"/"+Arr[i]['foto'];	
}

function elmnt(x) 
{
	return document.getElementById(x);
}
function $(x) 
{
	return document.getElementById(x);
}

var text_detay = '-1';
function fontSize(elem,x)
{
	var htmlTag = new Array("FONT","SPAN","DIV","TD","P","B","A","CENTER","U","I","SUP","SUB","PRE","UL","LI","OL","H1","H2","H3","H4","H5","H6","S","TT","DL","DT","DD");
	
	if(text_detay=='-1')text_detay=document.getElementById("detay_text").innerHTML;
	
	if(x==12)
	{
		elmnt("detay_text").style.fontSize = '';
		elmnt("detay_text").innerHTML=text_detay;
	}
	else
	{
		$("detay_text").innerHTML=text_detay;
		$("detay_text").style.fontSize = x + 'pt';
		for (var t = 0; t < htmlTag.length; t++) 
		{
			var tag = $("detay_text").getElementsByTagName(htmlTag[t]);
			for (var i = 0; i < tag.length; i++) 
			{
				tag[i].style.fontSize = x + 'pt';
			}
		}
	}
} 

// son dk news
var sndk_i=0;
var sndk_play;
function sndk_news(opt)
{
	if (typeof(opt)=='undefined')
	{
		for (i=0;i<20;i++)
		document.getElementById('sndk_'+i).style.display="none";
		setTimeout("document.getElementById('sndk_'+sndk_i).style.display='inline';sndk_i++;",175);
		if (sndk_i==20) sndk_i=0;
		sndk_play=setTimeout("sndk_news()",3500);
	}
	else if (opt==1) sndk_play=setTimeout("sndk_news()",1000);
	else clearTimeout(sndk_play);
}

// Habersitesial.com 




