function show_flash(w, h, swf)
{
    document.write("<object type='application/x-shockwave-flash' data='"+swf+"' width='"+w+"' height='"+h+"'>");
    document.write("<param name='movie' value='"+swf+"' />");
    document.write("<param name='pluginurl' value='http://www.macromedia.com/go/getflashplayer' />");
    document.write("<param name='wmode' value='transparent' />");
    document.write("<param name='quality' value='best' />"); 
    document.write("<param name='scale' value='exactfit' />"); 
    document.write("</object>");
}
function show_daily(w, h, url)
{
    document.write("<div><object width=\""+w+"\" height=\""+h+"\" />");
    document.write("<param name=\"movie\" value=\""+url+"\" /></param />");
    document.write("<param name=\"allowFullScreen\" value=\"true\" /></param />");
    document.write("<param name=\"allowScriptAccess\" value=\"always\" /></param />");
    document.write("<embed src=\""+url+"\" type=\"application/x-shockwave-flash\" width=\""+w+"\" height=\""+h+"\" allowFullScreen=\"true\" allowScriptAccess=\"always\" /></embed />");
    document.write("</object /></div>");
}

function show_wipido(w, h, url)
{
    document.write("<object width=\""+w+"\" height=\""+h+"\"><param name=\"movie\" value=\""+url+"\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\""+url+"\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\""+w+"\" height=\""+h+"\"></embed></object>");
	
}

function show_video(w, h, url, start)
{
    if (start == 'false') ff_start = 0;
    else ff_start = 1;

    ext = url.substr(url.lastIndexOf(".") + 1, url.length);
    ext = ext.toLowerCase();

    if (ext == 'mov' || ext == 'qt')
    {
	document.write("<object id='QuickTime' classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' codebase='http://www.apple.com/qtactivex/qtplugin.cab' width='"+w+"' height='"+h+"'>");
	document.write("<param name='type' value='video/quicktime' />");
	document.write("<param name='autostart' value='"+start+"' />");
	document.write("<param name='src' value='"+url+"' />");
	document.write("<embed width='"+w+"' height='"+h+"' src='"+url+"' autostart='"+start+"' type='video/quicktime' pluginspage='http://www.apple.com/quicktime/download/'></embed>");
	document.write("</object>");
    }
    else if (ext == 'rm' || ext == 'ram')
    {
	document.write("<object id='RealPlayer' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' width='"+w+"' height='"+h+"'>");
	document.write("<param name='autostart' value='"+start+"' />");
	document.write("<param name='src' value='"+url+"' />");
	document.write("<param name='controls' value='ImageWindow' />");
	document.write("<param name='console' value='video' />");
	document.write("<embed src='"+url+"' width='"+w+"' height='"+h+"' autostart='"+start+"' type='audio/x-pn-realaudio' controls='ImageWindow' console='video'></embed>");
	document.write("</object>");
    }
    else
    {			
	document.write("<object id='MediaPlayer' classid='' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' type='application/x-mplayer2' width='"+w+"' height='"+h+"'>");
	document.write("<param name='autostart' value='"+start+"' />");
	document.write("<param name='src' value='"+url+"' />");
	document.write("<embed width='"+w+"' height='"+h+"' src='"+url+"' autostart='"+ff_start+"' type='application/x-mplayer2'></embed>");
	document.write("</object>");
    }
}