function getContent(flash,alt,w,h)
{
// Check to see if the version meets the requirements for playback
if (hasReqestedVersion) 
	{  
	// if we've detected an acceptable version
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'WIDTH="' + w + '" HEIGHT="' + h + '" '
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<PARAM NAME="MOVIE" VALUE="' + flash + '">' 
    + '<PARAM NAME="PLAY" VALUE="true">'
    + '<PARAM NAME="LOOP" VALUE="false">'
    + '<PARAM NAME="QUALITY" VALUE="high">'
    + '<PARAM NAME="MENU" VALUE="false">'
    + '<EMBED SRC="' + flash + '" '
    + 'WIDTH="' + w + '" HEIGHT="' + h + '" ' 
	+ 'PLAY="true"'
    + 'LOOP="false"'
    + 'QUALITY="high"'
    + 'MENU="false"'
    + 'allowScriptAccess="sameDomain"'
    + 'TYPE="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/EMBED>'
    + '<\/OBJECT>';
    document.write(oeTags);   // embed the Flash Content SWF when all tests are passed
	}
	else if(alternatepage)
	{
      location = alternatepage;//insert non-flash content
	} 
	else 
	{  
		// flash is too old or we can't detect the plugin
   		// NOTE: height, width are required!
   		var alternateimage = '<IMG SRC="' + alt + '" WIDTH="' + w + '" HEIGHT="' + h + '" BORDER="0">';
    	document.write(alternateimage);//insert non-flash content
 	}
}