﻿var flashLib = {};


flashLib.ShowFlash = function(path, w, h, id) {

    if (window.navigator.appName == 'Microsoft Internet Explorer') {
        document.write(String.format('<object id="{3}" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="{1}" height="{2}" id="SE_Home_907_201" align="middle">', path, w, h, id));
        document.write('<param name="allowScriptAccess" value="sameDomain" />');
        document.write('<param name="movie" value="' + path + '" />');
        document.write('<param name="quality" value="high" />');
        document.write('<param name="wmode" value="transparent"/>');
        document.write('<param name="bgcolor" value="white" />');
        document.write('<embed src="' + path + '" quality="high" bgcolor="transparent" width="100%" height="201" name="SE_Home_907_201" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
        document.write('<param name="autoStart" value="-1"></object>');
    }
    else {
        document.write(String.format('<object  id="{3}" data="{0}"   width="{1}" height="{2}" type="application/x-shockwave-flash">', path, w, h, id));
        document.write('<param name="quality" value="high"> ');
        document.write('<param name="wmode" value="transparent">');
        document.write('<param name="pluginurl" value="http://www.adobe.com/go/getflashplayer">');
        document.write('FAIL (the browser should render some flash content, not this).');
        document.write('</object> ');
    }
}


