function show_object(urel,w,h)
{
	w1=window.open('','_blank','resizable=yes,menubar=no,status=no,scrollbars=no,width='+w+',height='+h);
	w1.document.write('<html><head><title>Full size</title></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
	if (urel.substr(urel.length-3,3) == 'swf')
	{
		w1.document.write('<object valign="top" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" alt="" width="'+w+'" height="'+h+'"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="' + urel + '" /><param name="quality" value="high" /><embed src="' + urel + '" quality="high" alt=""  width="'+w+'" height="'+h+'" name="Flash Header" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
	}
  else if (urel.substr(urel.length-3,3) == 'wmv')
	{
		w1.document.write('<object id="Player" height="'+h+'" width="'+w+'" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=6,4,7,1112"><param name="URL" value="' + urel + '" /><param name="autoStart" value="false" /><param name="UIMode" value="full" /><embed type="application/x-mplayer2" name="MediaPlayer" height="'+h+'" width="'+w+'" src="' + urel + '"></embed></object>');
	}
	else
	{
		w1.document.write('<img src="' + urel + '">');
	}
	w1.document.write('</body></html>');
}

function show_image(url,width,height)
{
  var a;
  var b;
  vidWindowWidth=width+25;
  vidWindowHeight=height+25;
  a = (screen.height-vidWindowHeight)/5;
  b = (screen.width-vidWindowWidth)/2;
  features = "top=" + a + ",left=" + b + ",width=" + 
             vidWindowWidth + ",height=" + 
             vidWindowHeight + ",toolbar=no,menubar=no," +
             "location=no,directories=no,scrollbars=no," +
             "resizable=no";
  window.open(url,'',features,true);
}