function DEKVNative()
{
	isset 		= function(g){return typeof(g)!='undefined';};
	this.type	= getType();
	this.platform	= getPlatform();
	this.version	= getVersion(this.type,this.platform);
	this.getObj 	= function(n,d)
	{
		if(typeof(n)=='object') return n;
		if(!isset(n)) return null;
		if(typeof(d)=='string' && this.getObj(d)==null) return null;
		var p,i,x;
		if(!d) d = document;
		if((p=n.indexOf("@"))>0 && parent.frames.length)
		{
			d=parent.frames[n.substring(p+1)].document;
			n=n.substring(0,p);
		}
		if(!(x=d[n]) && d.all) x=d.all[n];
		for (i=0;!x && i<d.forms.length;i++) x=d.forms[i][n];
		for(i=0;!x && d.layers&&i<d.layers.length;i++) x = this.getObj(n,d.layers[i].document);
		if(!x && d.getElementById) x=d.getElementById(n);
		return x;
	};
	this.getUniqueId = function(n)
	{
		var e = (isset(n) && typeof(n)=='number')?n:3001;
		return new Date(e, 00, 01, 00, 00, 00)-new Date();
	};
	this.create = function(o)
	{
		var f 	= o.flash;
		var c	= o.custom;
		var u 	= (f.unique)?'?UID='+this.getUniqueId():'';
		var e 	= '';
		var r 	= '';
		var s	= '<param name=';
		for(var i in c) e+= i+'='+c[i]+'&';
		e	+='cK=xD';
		r 	= "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'"+
			"codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+f.version+"' "+
			"width='"+f.width+"' height='"+f.height+"' id='"+f.id+"' align='"+f.align+"' >"+
			s+"'allowScriptAccess' value='sameDomain' /> "+
			s+"'movie' value='"+f.src+u+"' /> "+
			s+"'quality' value='"+f.quality+"' /> "+
			s+"'menu' value='false' /> "+
			s+"'bgcolor' value='"+f.color+"' /> "+
			s+"'FlashVars' value='"+e+"'>"+
			"<embed src='"+f.src+u+"' quality='"+f.quality+"' "+
			"FlashVars='"+e+"' bgcolor='"+f.color+"' width='"+f.width+"' height='"+f.height+"' name='"+f.id+"' "+
			"align='"+f.align+"' allowScriptAccess='sameDomain' menu='false' type='application/x-shockwave-flash' "+
			"pluginspage='http://www.macromedia.com/go/getflashplayer' /></object> ";
		this.getObj(f.container).innerHTML=r;
	};
	function getType()
	{
		var v = 'others';
		var d = document;
		if(d.all && d.getElementById) v = 'ie';
		if(d.all && navigator.userAgent.toLowerCase( ).indexOf("opera") != -1) v = 'opera'; 
		if(!d.all && d.addEventListener) v = 'moz';
		if(navigator.userAgent.toLowerCase().indexOf('firefox')!=-1) v = 'ff';
		if(document.layers) v = 'ns4';
		return v;
	};
	function getPlatform()
	{
		var v = 'others';
		var s = navigator.appVersion;
		if(s.indexOf('Mac')!=-1) v = 'mac';
		if(s.indexOf('Win')!=-1) v = 'win';
		return v;
	};
	function getVersion(s1,s2)
	{
		var e,r,q;
		var n = navigator.plugins;
		var p = 'ShockwaveFlash.ShockwaveFlash';
		if(s1=='ie' && s2=='win')
		{
			try{q=new ActiveXObject(p+".7");r=getValue(q);}
			catch(e)
			{
				try{q=new ActiveXObject(p+".6");r=6;}
				catch(e)
				{
					try{q=new ActiveXObject(p+".3");r=getValue(q);}
					catch(e)
					{
						if(navigator.userAgent.toLowerCase().split(';')[2].match("['\\d\\.]{3}")=='6.0') r=99;
					}
				}
			}
		}
		if(n)
		{
			var s3 	= 'Shockwave Flash';
			var s4 	= ' 2.0';
			var k	= n[s3+s4];
			if(k || n[s3]) r = Number(n[s3+((k)? s4 : '')].description.match('\\d'));
		}
		return r;
	};
	function getValue(q)
	{
		return q.GetVariable("$version").match('\\d');
	};
};
var DEKV = new DEKVNative();