/**
 * adds the custom Flash-logo of LVG (gartenbau) to the OLAT login-screen
 * 
 * @author strentini, sergio.trentini@frentix.com, www.frentix.com
 */
Ext.onReady(function() {
	doLVGStuff();
});

/**
 * 
 */
function doLVGStuff() {
	var el, flashEl, swfFile;
	el = Ext.select("div.o_login_form");

	if (el.elements.length > 0) {
		// there is a div with class o_login_form, let's add our flash-object to
		// the dom... :)

		swfFile = '/olat/raw/_noversion_/themes/lvg/images/intro.swf';

		flashEl = '<div style="position: absolute; right: 30px; top: 120px;z-index:4; ">';
		flashEl += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" align="top" height="150" width="250">';
		flashEl += '<param name="movie" value="' + swfFile
				+ '"><param name="WMode" value="Transparent">';
		flashEl += '<embed src="'
				+ swfFile
				+ '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" height="150" width="250" /></object></div>';
		el.createChild(flashEl);
	}
}
