/* Bookmark Araçları */
function bunuEkle()
{
	var ekle = '<a href="http://digg.com/submit?url='+ _url +'&amp;title='+ _baslik +'" rel="nofollow" title="Digg "target="_blank"><img alt="Digg" height="16" src="resimler/paylas/digg.png" border="0" border="0" width="16"/></a>';
	ekle 	+= '<a href="http://reddit.com/submit?url='+ _url +'&amp;title='+ _baslik +'" rel="nofollow" title="Reddit "target="_blank"><img alt="Reddit" height="16" src="resimler/paylas/reddit.png" border="0" width="16"/></a>';
	ekle 	+= '<a href="http://del.icio.us/post?url='+ _url +'&amp;title='+ _baslik +'" rel="nofollow" title="Del.icio.us "target="_blank"><img alt="Del.icio.us" height="16" src="resimler/paylas/delicious.png" border="0" width="16"/></a>';
	
	
	ekle 	+= '<a href="http://www.facebook.com/sharer.php?u='+ _url +'" rel="nofollow" title="Facebook "target="_blank"><img alt="Facebook" height="16" src="resimler/paylas/facebook.png" border="0" width="16"/></a>';
	ekle 	+= '<a href="http://twitter.com/home?status='+ _url +'" rel="nofollow" title="Twitter "target="_blank"><img alt="Twitter" height="16" src="resimler/paylas/twitter.png" border="0" width="16"/></a>';
	ekle 	+= '<a href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk='+ _url +'&amp;title='+ _baslik +'" rel="nofollow" title="Google "target="_blank"><img alt="Google" height="16" src="resimler/paylas/google.png" border="0" width="16"/></a>';
	ekle 	+= '<a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+ _url +'&amp;t='+ _baslik +'" rel="nofollow" title="Yahoo! MyWeb "target="_blank"><img alt="Yahoo! MyWeb" height="16" src="resimler/paylas/myweb.png" border="0" width="16"/></a>';
	
	ekle 	+= '<a href="http://blinklist.com/index.php?Action=Blink/addblink.php&amp;Url='+ _url +'&amp;Title='+ _baslik +'" rel="nofollow" title="BlinkList "target="_blank"><img alt="BlinkList" height="16" src="resimler/paylas/blinklist.png" border="0" width="16"/></a>';
	ekle 	+= '<a href="http://www.technorati.com/faves?add='+ _url +'" rel="nofollow" title="Technorati "target="_blank"><img alt="Technorati" height="16" src="resimler/paylas/technorati.png" border="0" width="16"/></a>';
	
	ekle 	+= '<a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;mkt=en-us&amp;url='+ _url +'&amp;top=1" rel="nofollow" title="Windows Live "target="_blank"><img alt="Windows Live" height="16" src="resimler/paylas/windowslive.png" border="0" width="16"/></a>';
	
	document.write('<div style="float:left; padding-right:5px;"><b>Paylas :</b></div><div>'+ ekle +'</div>');	
}


/* Yazara Git */
function yazarGit(MA)
{
	if(makaleURL)
	{
	return window.location(makaleURL);
	}
	
	return false;
}

/* Tarayıcı Bilgileri */
function tarayiciBilgi()
{
	var tarayici = navigator.userAgent.toLowerCase();
	
	if (tarayici.indexOf("msie") != -1)
		return 'MSIE';
	if (tarayici.indexOf("firefox") != -1)
		return 'Firefox';
	if (tarayici.indexOf("safari") != -1)
		return 'Safari';
	if (tarayici.indexOf("opera") != -1)
		return 'Opera';
	if (tarayici.indexOf("netscape") != -1)
		return 'Netscape';
	if (tarayici.indexOf("mozilla/5.0") != -1)
		return 'Mozilla';
	if (tarayici.indexOf("staroffice") != -1)
		return 'Star Office';
	if (tarayici.indexOf("webtv") != -1) 
		return 'WebTV';
	if (tarayici.indexOf("beonex") != -1)
		return 'Beonex';
	if (tarayici.indexOf("chimera") != -1)
		return 'Chimera';
	if (tarayici.indexOf("netpositive") != -1)
		return 'NetPositive';
	if (tarayici.indexOf("phoenix") != -1)
		return 'Phoenix';
	if (tarayici.indexOf("skipstone") != -1)
		return 'SkipStone';
	if (tarayici.indexOf('\/') != -1)
	{
		if (tarayici.substr(0, tarayici.indexOf('\/')) != 'mozilla') 
		{
			return navigator.userAgent.substr(0,tarayici.indexOf('\/'));
		}
		else
		{
			return 'Netscape';
		}
	}
	else if (tarayici.indexOf(' ') != -1)
		return navigator.userAgent.substr(0, tarayici.indexOf(' '));
	else
		return navigator.userAgent;
}

/* tarih yazdır */
function diziYap()
{
	for (i = 0; i<diziYap.arguments.length; i++)
	this[i + 1] = diziYap.arguments[i];
}

function tarihYazdir()
{
	var aylar = new diziYap('Ocak','Şubat','Mart','Nisan','Mayıs','Haziran', 'Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık');
	var tarih = new Date();
	var gun = tarih.getDate();
	var ay = tarih.getMonth() + 1;
	var yil = tarih.getYear();
	var yil = (yil < 1000) ? yil + 1900 : yil;
	
	document.write(gun + " " + aylar[ay] + " " + yil);
}

/* Pencere Aç 520x400 */
function pencereAc_520x400(_url, _hedef)
{
	var pencereSol = (screen.width - 520) / 2;
	var pencereUst = (screen.height - 400) / 2;
	
	window.open(_url, _hedef, 'width=520, height=400, top=' + pencereUst + ', left=' + pencereSol + ', toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}

/* Pencere Aç Manuel Boyut */
function pencereAc(_url, _hedef, _genislik, _yukseklik)
{
	var pencereSol = (screen.width - _genislik) / 2;
	var pencereUst = (screen.height - _yukseklik) / 2;
	
	window.open(_url, _hedef, 'width='+_genislik+', height='+_yukseklik+', top=' + pencereSol + ', left=' + pencereUst + ', toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}

/* SWF Object */
ZINDEX = 0;
function swfGoster(_genislik, _yukseklik, _dosya, _mod)
{
	if(!_mod) _mod = 'transparent';
	
	var str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width='+_genislik+'  height='+_yukseklik+'>';
	str += ' <param name="movie" value="'+_dosya+'" /> ';
	str += ' <param name="quality" value="high" /> ';
	str += ' <param name="wmode" value="'+_mod+'" /> ';
	str += ' <embed src='+_dosya+' width='+_genislik+' height='+_yukseklik+' quality="high" pluginspage="http://www .macromedia.com/go/getflashplayer" type="application/x-shoc kwave-flash" wmode="'+_mod+'"></embed> ';
	str += ' </object> ';
	document.write(str);
	ZINDEX = 1;
}

/* Div Boyutlandırma */
function divBoyutlandir()
{
	var divYukseklik = document.getElementById(anaDivID).offsetHeight;
	
	if(solDivID && (divYukseklik < document.getElementById(solDivID).offsetHeight))
	{
		divYukseklik = document.getElementById(solDivID).offsetHeight;
	}
	
	if(ortaDivID && (divYukseklik < document.getElementById(ortaDivID).offsetHeight))
	{
		divYukseklik = document.getElementById(ortaDivID).offsetHeight;
	}
		
	if(sagDivID && (divYukseklik < document.getElementById(sagDivID).offsetHeight))
	{
		divYukseklik = document.getElementById(sagDivID).offsetHeight;
	}
	
	if(anaDivID)
		document.getElementById(anaDivID).style.height 	= divYukseklik + "px";
	if(solDivID)
		document.getElementById(solDivID).style.height 	= divYukseklik + "px";
	if(ortaDivID)
		document.getElementById(ortaDivID).style.height = divYukseklik + "px";
	if(sagDivID)
		document.getElementById(sagDivID).style.height 	= divYukseklik + "px";
		
	//alert(divYukseklik);
}

/* Yazı Boyutlandırma */	
function yaziBoyut(boyut) {
	boyut = eskiBoyut + boyut;
	if (boyut>20)
		boyut=20;
	if (boyut<12)
		boyut=12;
	document.getElementById("icerikDetay").style.fontSize = boyut + "px";
	eskiBoyut=boyut;
}

function jsHataGizle()
{
	return true;	
}


