/*
Flash fix for Internet Explorer ActiveX "activate-click" feature.
Written by Andrew Hamel - 7th Hat Media Group - www.7thhat.com
Copyright © 2006 7th Hat Media Group.  All Rights Reserved.
Unauthorized duplication or use of this script is punishable by domestic and international copyright laws.
This script licensed to Lasershot for use on www.lasershot-military.com ONLY.
*/

function flashout(swf, width, height, vars){
	var str = '';
	str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	str += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ width +'" height="'+ height +'">\n';
    str += '  <param name="movie" value="'+ swf +'">\n';
    str += '  <param name="quality" value="high">\n';
    str += '  <param name="menu" value="false">\n';
	str += '  <param name="wmode" value="transparent">\n';
    str += '  <param name="scale" value="noscale">\n';
	str += vars != '' ? '<param name="flashvars" value="'+ vars +'">\n' : '';
    str += '<embed src="'+ swf +'" width="'+ width +'" height="'+ height +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	str += vars != '' ? 'flashvars="'+ vars +'" ' : '';
	str += 'type="application/x-shockwave-flash" menu="false" scale="noscale" wmode="transparent">\n';
	str += '</embed>\n';
	str += '</object>\n';
	return document.write(str);
}