/* dynlite forms module 
 * based on dynlite dhtml dom api
 * peter assenov- AIP Solutions Ltd.' 2004
 * @version:2.1.0.1/06.03.2004
 */
/* module initialisation and version checkup */
modflash=new Object();
modflash.core=2.1; 
if(window.version!=modflash.core)	alert('Warning!\n------------------------------------------------\nmodule flash has encountered compatability problem: \n\ncore version is: '+window.version+'; should be: '+modflash.core);
/* flash scripts */
function dynflash(name,w,h,auto)
{	this.name=name;
	this.ver=6;
	this.toplay=0;
	this.w=w;
	this.h=h;
	this.auto=auto||0;
	this.check();
page.add(this.name+'.init()');
}
dynflash.prototype.init=function()
{	this.cont=obj(this.name+'Div');
	if(this.auto)	this.play();
}
dynflash.prototype.check=function()
{	play=0,	ver=this.ver;
	if(ns6)	play=navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&/(\d+)/.test(navigator.plugins["Shockwave Flash"].description)&&parseInt(RegExp.$1)>=ver;
	else if(navigator.appVersion.indexOf("Win")!=-1)
		document.write('<SCR'+'IPT LANGUAGE=VBScript\>\non error resume next \nplay=(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash."&ver)))\n</SCR'+'IPT\>\n');
	this.toplay=play;
}
dynflash.prototype.play=function(pars)
{	var name=(pars)? this.name+'.swf?'+pars:this.name+'.swf';
	if(this.toplay) this.cont.innerHTML+='<EMBED src="'+name+'" quality=high wmode=transparent WIDTH="'+this.w+'" HEIGHT="'+this.h+'" NAME="'+this.name+'" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>';
}
/* end of flash scripts */
log.add((window.version=modflash.core)?"# flash initialisation completed":"! incorect version of flash module");
//that's all, enjoy...