/*
Flash fix for Internet Explorer ActiveX "activate-click" feature.
Written by Andrew Hamel - 7th Hat Media Group - www.7thhat.com
Copyright © 2006-2007 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  for use on www.oslschool.org 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=6,0,29,0" width="'+ width +'" height="'+ height +'">\n';
    str += '  <param name="movie" value="'+ swf +'">\n';
    str += '  <param name="quality" value="high">\n';
	str += '  <param name="wmode" value="transparent">\n';
    str += '  <param name="menu" value="false">\n';
    str += '  <param name="scale" value="noscale">\n';
	str += '  <param name="base" value="./">\n';
	str += vars != '' ? '<param name="flashvars" value="'+ vars +'">\n' : '';
    str += '<embed src="'+ swf +'" width="'+ width +'" height="'+ height +'" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	str += vars != '' ? 'flashvars="'+ vars +'" ' : '';
	str += 'type="application/x-shockwave-flash" menu="false" scale="noscale" base="./">\n';
	str += '</embed>\n';
	str += '</object>\n';
	return document.write(str);
}