var FlashUtil = {	
	embed: function( filename, container, width, height, transparent, vars, version ){
		if( typeof( swfobject ) !== 'undefined' ){
			if( FlashUtil.hasFlash( version ) ){
				var params = {wmode:( transparent ? 'transparent': 'opaque' ), menu:false, allowFullScreen:true, allowscriptaccess:'always'};
				return swfobject.embedSWF( filename, container, ( width||'100%' ), ( height||'100%' ), ( version||'9.0.0' ), 'flash/expressinstall.swf', ( vars||{} ) , params );	
			}
		}
		return false;
	},	
	hasFlash: function( version ){
		if( typeof( swfobject ) !== 'undefined' ){
			return swfobject.hasFlashPlayerVersion( version||'9.0.0' );	
		}
		return false;	
	},
	useFlash: function( version ){
		if( FlashUtil.hasFlash( version ) ){
			return document.body.className.indexOf( 'noflash' ) < 0;
		}else{		
			if( document.body.className.indexOf( 'noflash' ) < 0 ){
				document.body.className += ' noflash';
			}
		}
		return false;
	}
}

document.write('<style type="text/css">div.exercise-container { display: none; } #exerciseList { display: block; } #exerciseListFallback { display:none; } .crumb-menu { display:block; }</style>');
