/*
 Output the object tag for the main flash container
 This is a workaround for the "Click to activate this ActiveX control" problem
 Author: Christer Svensson, Isotop AB
 */

function createNavigationContainer(flashVars, version) {

	var oeTags = '<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"'
                + 'width=\"210\" height=\"600\"'
                + 'codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab\">'
                + '<param name=\"movie\" value=\"/static/flash/container/FlashletContainer.swf?version=' + version + '\" /><param name=\"quality\" value=\"high\" />'
                + '<param name=\"Flashvars\" value=\"' + flashVars + '\"/>'
                + '<param name=\"wmode\" value=\"transparent\"/>'
                + '<embed src=\"/static/flash/container/FlashletContainer.swf?version=' + version + '\" quality=\"high\" '
                + 'width=\"210\" height=\"600\" name=\"detectiontest\" aligh=\"middle\" '
                + 'play=\"true\" '
                + 'flashvars=\"' + flashVars + '\"'
                + 'loop=\"false\" '
                + 'quality=\"high\" '
                + 'allowScriptAccess=\"sameDomain\" '
                + 'type=\"application/x-shockwave-flash\" '
                + 'pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"transparent\">'
                + '</embed>'
                + '</object>';
        document.write(oeTags);

}