function swf(src) {
	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="728" height="490">');
	document.write('<param name="movie" value="http://www.dusle.net/swf/' + src + '">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="http://www.dusle.net/swf/' + src + '" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="728" height="490" menu="0"></embed>');
	document.write('</object>');
}
function s3d(src) {
	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="728" height="490">');
	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="http://www.dusle.net/swf/' + src + '">');
	document.write('<embed src="http://www.dusle.net/swf/' + src + '" width="728" height="490" 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 dswf(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 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:'script.php?favori',
		data:'ID=' + ID,
		success:function(e) { alert(e)}
	});
}

function puanver(ID, P)
{
	jQuery.ajax( {  
		type: 'GET',
		url:'script.php?puanver',
		data:'ID=' + ID+'&P=' + P,
		success: function(sonuc) {
		$('#puanbolum').html(sonuc);
	   }
});
}
function girisyap(kul_ad)
{
	jQuery.ajax( {  
		type: 'POST',
		url:'uye.php?girisyap',
		data:kul_ad,
		success: function(sonuc) {
		$('#uyelik').html(sonuc);
	   }
});
}
function yorum(ID, S)
{
	jQuery.ajax( {  
		type: 'GET',
		url:'yorum.php?yorum',
		data:'ID=' + ID+'&S=' + S,
		success: function(sonuc) {
		$('#yorumc').html(sonuc);
	   }
});
}

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

function oyungoster() {
var x=document.getElementById('ilkalan').style;
var y=document.getElementById('sonrakialan').style;
if(x.display=='block') { x.display='none'; y.display='block'; }
else { x.display='block'; y.display='none'; }
}

function popup(theURL,winName,features) { 
window.open(theURL,winName,features);
}
function facebook(site){
document.write('<div id="fb-root"></div><script src="http://connect.facebook.net/tr_TR/all.js#appId=127982510617580&amp;xfbml=1"></script><fb:like href="' + site + '" send="true" width="450" show_faces="true" font=""></fb:like>');
}
