var FLASHCHECK_PluginVersion = 0;
var FLASHCHECK_plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( FLASHCHECK_plugin ) {
var FLASHCHECK_words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < FLASHCHECK_words.length; ++i)
{
if (isNaN(parseInt(FLASHCHECK_words[i])))
continue;
var FLASHCHECK_PluginVersion = parseInt(FLASHCHECK_words[i]);
}
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
document.writeln('');
document.writeln('on error resume next');
document.writeln('Dim i');
document.writeln('For i = 3 To 20');
document.writeln('If not IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i)) Then');
document.writeln('FLASHCHECK_PluginVersion = i-1');
document.writeln('Exit For');
document.writeln('End If');
document.writeln('Next');
document.writeln('');
}
//window.location.replace("/setFlashVersion.asp/v/5/m/%2Fbilder%2Fflash%2Fsommar%2Eswf/p/%3Cimg+src%3D%22%2Fbilder%2Fsidhuvud%5Fnoflash%2Egif%22+style%3D%22width%3A750px%3B+height%3A50px%3B%22+border%3D%220%22+alt%3D%22%22+%2F%3E/a/width%3D750%26height%3D60" + escape(FLASHCHECK_PluginVersion));
var FLASHCHECK_expires = new Date();
FLASHCHECK_expires.setTime(FLASHCHECK_expires.getTime()+(60*60*1000));
document.cookie = "FlashVersion=" + FLASHCHECK_PluginVersion + ";expires=" + FLASHCHECK_expires.toGMTString();
function FLASHCHECK_writeFlashContent(flashVersion, movieURL, altImage, userVersion){
var attribs = '';
var params = '';
var output = '';
var classid='';
var args = FLASHCHECK_writeFlashContent.arguments;
if(args.length > 4){attribs = ' ' + args[4];}
if(args.length > 5){params = args[5];}
if(flashVersion <= userVersion){
output = '';
}else{
output = altImage;
}
return output;
}
document.write(FLASHCHECK_writeFlashContent(5,'/bilder/flash/sommar.swf','
', FLASHCHECK_PluginVersion,' width="750" height="60"'));