function terkep(url,w,h)
{
	t = ( screen.Height - h )/2;
	l = ( screen.Width - w)/2;
	window.open(url,'terkep','width='+w+', height='+h+', top='+t+', left='+l);
}

function flashEmbed(id,url,w,h)
{
	// 700x109
	str  = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	str += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0"';
	str += 'width="'+w+'" height="'+h+'">';
	str += ' <param name="movie" value="'+url+'" />';
	str += ' <param name="quality" value="high" />';
	str += '<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	str += 'type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed>';
	str += '</object>';
	document.getElementById(id).innerHTML = str;
}

// PNG ALPHA CHANNEL DIV BACKGROUND //
function iepng_alphachannelbg(divid,bgimg)
{
	d = document.getElementById(divid);
	if(iecheck())
	{
		d.style.backgroundImage = "url("+bgimg+")";
		//d.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + bgimg + "',sizingMethod='image')";
		//d.style.width = "672px";
	}
}

function iecheck()
{
	var pos = navigator.userAgent.indexOf("MSIE ");
	if (pos == -1) return false;
	var version = navigator.userAgent.substring(pos + 5);
	return (((version.indexOf("5.5") == 0) || (version.indexOf("6") == 0)  || (version.indexOf("7") == 0)));
}