// Establecer valores de versión mínima y redirección a página sin FlahsPlayer
var novedadBuffer;
var minimumVersion = 5;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
//
var novedad_swf = 	"<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" \
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" \
WIDTH=404 HEIGHT=125> \
<PARAM NAME=movie VALUE=\"swf/destacado_principal_advantix_v5.swf\"> \
<PARAM NAME=quality VALUE=high> \
<PARAM NAME=bgcolor VALUE=#FFFFFF> \
<EMBED src=\"swf/destacado_principal_advantix_v5.swf\" quality=high bgcolor=#FFFFFF \
WIDTH=404 HEIGHT=125 TYPE=\"application/x-shockwave-flash\" \
PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"> \
</EMBED> \
</OBJECT> \
";
//
var novedad_imagen = "<a href=\"nv_030.html\"><img src=\"images/home/destacado_superior_030.jpg\" width=\"404\" height=\"125\" border=\"0\"></a>";

// Detección de FlashPlayer
if ( plugin ) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
    for (var i = 0; i < words.length; ++i)
    {
	if (isNaN(parseInt(words[i])))
	continue;
	var MM_PluginVersion = words[i]; 
    }
	var MM_FlashCanPlay = MM_PluginVersion >= minimumVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & minimumVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}

//
(MM_FlashCanPlay) ? novedadBuffer = novedad_swf : novedadBuffer = novedad_imagen ;