function flashPutHref(href) { location.href = href; }
function flashPutTitle(title) { document.title = title; }
function showFlash(swf, w, h, bgcolor, loop)
{
	var idLang = getQueryString("idLang");
	//if(idLang != undefined) alert(idLang);
	var idSection1 = getQueryString("idSection1");
	//if(idSection1 != undefined) alert(idSection1);
	var idSection2 = getQueryString("idSection2");
	//if(idSection2 != undefined) alert(idSection2);
	var idSection3 = getQueryString("idSection3");
	//if(idSection3 != undefined) alert(idSection3);
	
	var isMSIE = navigator.appName.indexOf("Microsoft") != -1;
	var s = '';
	s += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" width="'+w+'" height="'+h+'" id="SlideContent" align="" VIEWASTEXT>'
	s += '<param name="movie" value="'+swf+'" />'
	s += '<param name="bgcolor" value="'+bgcolor+'" />'
	s += '<param name="menu" value="false" />'
	s += '<param name="quality" value="best" />'
	s += '<param name="loop" value="'+loop+'" />'
	s += '<param name="FlashVars" value="initialURL='+document.location+'&isMSIE='+isMSIE+'&useBSM=false" />'
	s += '<embed src="'+swf+'?idLang='+idLang+'&idSection1='+idSection1+'&idSection2='+idSection2+'&idSection3='+idSection3+'" FlashVars="initialURL='+document.location+'&isMSIE='+isMSIE+'&useBSM=false" menu="false" quality="best" width="'+w+'" height="'+h+'" loop="'+loop+'" bgcolor="' +bgcolor+'" name="SlideContent" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" swLiveConnect="true"></embed>'
	s += '</object>'
	// in theory, we should always embed in a table, but in practice, IE6 malfunctions
	// when width & height = 100%, but in that case, we don't really need the table anyway.
	if ((w.toString().indexOf('%') == -1) && (h.toString().indexOf('%') == -1))
	{
		s = '<table border=0 width="100%" height="100%"><tr valign="middle"><td align="center">' +
			s +
			'</td></tr></table>';
	}
	document.write(s);
}
