var d=document,wpop='';

function P(txt){d.writeln(txt);}
function Git(url){d.location=url;}
function Obj(obj){return d.getElementById(obj);}
function S(obj){Obj(obj).style.display='block';}
function H(obj){Obj(obj).style.display='none';}

function Pop(resim,w,h){
	if (wpop && !wpop.closed) wpop.close();
	wpop=window.open(resim,'','scrollbars=yes,status=yes,directories=no,menubar=no,resizable=yes,toolbar=no,width='+w+',height='+h+',top=50,left=50');

	wpop.document.open();
	wpop.document.write('<html><title>MCT</title><style>BODY {margin:0; overflow:hidden;}</style><body><img src="'+resim.href+'"></body></html>');
	wpop.document.close();
	wpop.focus();

	return false;
}


function _Pop(resim,w,h){
	if (!w) w=500;
	if (!h) h=500;
	window.open(url+'/resim.php?resim='+resim,'_blank','width='+w+',height='+h+',top=20,left=20,status=yes,resizable=yes,scrollbars=yes');
	return false;
}

function Flash(dosya,width,height,id,wmode){
	if (wmode){
		wmode1="<PARAM NAME=wmode VALUE="+wmode+">";
		wmode2="wmode="+wmode;
	}else wmode1=wmode2='';
	P('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+width+'" HEIGHT="'+height+'" id="'+id+'" allowfullscreen="true">'+wmode1+'<PARAM NAME=movie VALUE="'+dosya+'"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="'+dosya+'"'+wmode2+' quality=high bgcolor=#FFFFFF WIDTH="'+width+'" HEIGHT="'+height+'" NAME="'+id+'" allowfullscreen="true" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
}

