function swf(src, width, height) {
	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>');
}
function dcr(src, width, height) {
	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 popupform(myform, ekle)
{
if (! window.focus)return true;
window.open('', ekle, 'height=275,width=290,scrollbars=no,status=no');
myform.target=ekle;
return true;
}

function favori(ID)
{
	jQuery.ajax( {  
		type: 'GET',
		url:'chip.php?favori',
		data:'ID=' + ID,
		success:function(e) { alert(e)}
	});
}

function puan(ID, P)
{
	jQuery.ajax( {  
		type: 'GET',
		url:'chip.php?puan',
		data:'ID=' + ID+'&P=' + P,
		success:function(e) { alert(e)}
	});
}

function uyekontrol()
{
	jQuery.ajax( {  
		type: 'POST',
		url:'chip.php?uyekontrol',
		data:'isim=' + ID,
		success:function(e) { $('#sonuc').html(sonuc);}
	});
}
function popup(theURL,winName,features) { 
window.open(theURL,winName,features);
}


function favorio(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

setTimeout('oyunoncesi()',11000);
function oyunoncesi() {
var x=document.getElementById('once').style;
var y=document.getElementById('sonra').style;
if(x.display=='block') { x.display='none'; y.display='block'; }
else { x.display='block'; y.display='none'; }
}


