	function nesneyarat() {
		var nesne;var tarayici = navigator.appName;
		if(tarayici == "Microsoft Internet Explorer"){ 
			nesne = new ActiveXObject("Microsoft.XMLHTTP");
		} else { 
			nesne = new XMLHttpRequest();
		}
		return nesne;
	} 
	var http = nesneyarat();
	function ajx(sayfa,deger,yer) {
		http.open('get', sayfa + '?' + deger); 
		http.onreadystatechange = cevapFonksiyonu;
		http.send(null);
	function cevapFonksiyonu() {
		if(http.readyState == 4) {
			document.getElementById(yer).innerHTML = http.responseText;
		} else { 
			if(http.readyState == 1) {
				document.getElementById(yer).innerHTML = "<center><img src=  yol+'yuklen.gif'> <br />Yukleniyor</center>";
			}
		}
	}
	} 
	
	function yorumGonder(id) {
		var nick;
		var yorum;
		var gkod;
		nick = document.yorum.nick.value;
		yorum = document.yorum.yorum.value;
		gkod = document.yorum.guvenlik.value;
		ajx('yorum.php', 'kayit&nick='+nick+'&yorum='+yorum+'&gkod='+gkod+'&id='+id, 'scrol');
	}	
	
	function oylasec(kac)
	{
		var yol;
		yol = 'img/';
		if(kac == '1') {
			document.getElementById('oyla1').src= yol+'resim_oys.png';
			document.getElementById('oyla5').src= yol+'resim_oy.png';
			document.getElementById('oyla4').src=  yol+'resim_oy.png';
			document.getElementById('oyla3').src=  yol+'resim_oy.png';
			document.getElementById('oyla2').src=  yol+'resim_oy.png';
		}else if(kac == '2') {
			document.getElementById('oyla1').src=  yol+'resim_oys.png';
			document.getElementById('oyla2').src=  yol+'resim_oys.png';
			
			document.getElementById('oyla5').src=  yol+'resim_oy.png';
			document.getElementById('oyla4').src=  yol+'resim_oy.png';
			document.getElementById('oyla3').src=  yol+'resim_oy.png';

		}else if(kac == '3') {
			document.getElementById('oyla1').src=  yol+'resim_oys.png';
			document.getElementById('oyla2').src=  yol+'resim_oys.png';
			document.getElementById('oyla3').src=  yol+'resim_oys.png';
			
			document.getElementById('oyla5').src=  yol+'resim_oy.png';
			document.getElementById('oyla4').src=  yol+'resim_oy.png';
		}else if(kac == '4') {
			document.getElementById('oyla1').src=  yol+'resim_oys.png';
			document.getElementById('oyla2').src=  yol+'resim_oys.png';
			document.getElementById('oyla3').src=  yol+'resim_oys.png';
			document.getElementById('oyla4').src=  yol+'resim_oys.png';
			
			document.getElementById('oyla5').src=  yol+'resim_oy.png';
		}else if(kac == '5') {
			document.getElementById('oyla1').src=  yol+'resim_oys.png';
			document.getElementById('oyla2').src=  yol+'resim_oys.png';
			document.getElementById('oyla3').src=  yol+'resim_oys.png';
			document.getElementById('oyla4').src=  yol+'resim_oys.png';
			document.getElementById('oyla5').src=  yol+'resim_oys.png';
		}
	}
	
	function oyver(id, oy, nere) {
		ajx('ayar/oy.php','id='+id+'&oy='+oy, nere);
	}
	
	function manset(resim, yazi, yer) {
		document.getElementById(yer).src = resim;
	}
	function SikKullanilan()
	{
		title = document.title;
		url = document.location.href;
		if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
		} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
		else if(window.opera && window.print) { // Opera Hotlist
		return true; }
	}
	function dcr_goster(src, height, width) {
		document.write('<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=7,0,2,0" width="' + width + '" height="' + height + '">');
		document.write('<param name="swRemote" value="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\'">');
		document.write('<param name="swStretchStyle" value="meet">');
		document.write('<param name="bgColor" value="#000000">');
		document.write('<param name="src" value="' + src + '">');
		document.write('<embed src="' + src + '" width="' + width + '" height="' + height + '" bgColor="#000000" swRemote="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\'" swStretchStyle="meet" type="application/x-director" pluginspage="http://www.macromedia.com/shockwave/download/"></embed>');
		document.write('</object>');
	}
	function swf_goster(src, height, width) {
		document.write('<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="' + width + '" height="' + height + '">');
		document.write('<param name="movie" value="' + src + '">');
		document.write('<param name="quality" value="high">');
		document.write('<embed src="' + src + '" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" menu="0"></embed>');
		document.write('</object>');
	}
	
