


function printFlashContent(hasReqestedVersion, flashFile, alternative, alternatives, affiliate, width, height,urls)
{
  flashfile1 = flashFile.replace("audials.com", audials_current_website_url);
  if ((hasReqestedVersion) && (flashfile1 != '')) {
	var flashvars = urls;
	var params = { wmode: "transparent" };
	var attributes = {};
	swfobject.embedSWF(flashfile1, "flashholder", width, height, "8", flashfile1, flashvars, params, attributes);

  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '';
    if(alternative){
    alternateContent += '<img src="'+alternative+'" width="'+width+'" height="'+height+'"';
    alternateContent += 'usemap="#flashmap"';
    alternateContent +='style="border:0px solid black;position:absolute;padding:0px;margin:0px;"  id="flash_alternate" />';
	}  
	
	for(key in alternatives)
    {
        if(alternatives[key]){
      alternateContent += '<img src="'+alternative.split('normal').join(alternatives[key])+'" width="'+width+'" height="'+height+'"';
      alternateContent += 'usemap="#flashmap"';
      alternateContent +='style="border:0px solid black;position:absolute;display:none;padding:0px;margin:0px;"  id="flash_alternate_hover' +  (parseInt(key)+1) + '" />';
        }
    }	
    alternateContent += '<div style="height:'+height+'px;"></div>';

    document.write(alternateContent);

  }
}
