function displayFlash(src, width, height) {
	document.write('<object id="mov" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" width="' + width + '" height="' + height + '">');
	document.write('<param name="movie" value="' + src + '"><param name="quality" value="high"><PARAM NAME="scale" VALUE="exactfit"><PARAM NAME="menu" VALUE="true">');
	document.write('<embed name="mov" src="' + src +  '" width="' + width + '" height="' + height + '" quality="high" swLiveConnect="false" scale="exactfit" menu="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	document.write('</embed>');
	document.write('</object>');
}

function displayDirector(src, width, height) {
	document.write('<object id="mov" 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 name="mov" 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 displayIFrame(src, width, height) {
	document.write('');
}

function refreshProgress()
{
	var bar1 = document.getElementById("bar1");
	var bar = document.getElementById("bar");
var movie = getFlashMovieObject("mov");	
if(movie){
	if(movie.PercentLoaded()<100){bar1.innerHTML="yukleniyor : <b>" + movie.PercentLoaded() + "</b> %"}
  else{bar1.innerHTML=""; document.getElementById('barkaplama').style.display = "none"; }
 bar.style.width=movie.PercentLoaded()*3+"px";
 }
}

function getFlashMovieObject(movieName)
	{
	  if (window.document[movieName]) { return window.document[movieName]; }
	  if (navigator.appName.indexOf("Microsoft Internet")==-1)
	  { if (document.embeds && document.embeds[movieName]) return document.embeds[movieName]; }
	  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
	  { return document.getElementById(movieName); } 
	}

setInterval("refreshProgress()",50)

/*
var http1, http2;

function get_http_object() {
	if (window.XMLHttpRequest) {
		return new XMLHttpRequest();
	} else if (window.ActiveXObject()) {
		return new ActiveXObject("Microsoft.XMLHTTP");
	} else {
		return null;
	}
}

function init(id) {
	setTimeout("show_hits(" + id + ")", 1000);
}

function show_hits(id) {
	http1 = get_http_object();
	
	if ( (http1.readyState == 4) || (http1.readyState == 0) ) {
		http1.open('POST', '../update-hits.php');
		http1.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		http1.onreadystatechange = set_hits;
		http1.send('id=' + id);
	}
}

function set_hits() {
	if (http1.readyState == 4) {
		document.getElementById('hits').innerHTML = http1.responseText;
	}
}
*/

