var RESOURCE_HOST = "resource.igalive.com/as/js/res";
var IPA_HOST = "ipagent.igalive.com";
// var RESOURCE_HOST = "10.0.0.200/igm.adshell";
// var IPA_HOST = "10.0.0.200/ipaengine.web";
//var IPA_HOST = "ipagent.igalive.com";
var ipa_ad_show = "http://" + IPA_HOST + "/s.aspx";
var ipa_ad_click = "http://" + IPA_HOST + "/c.aspx";
var ipa_ad_report = "http://" + IPA_HOST + "/d.aspx";	// report expose
var ipa_ad_duration = "http://" + IPA_HOST + "/t.aspx";	// report duration

var showCount = 0;

function CookieEnable() {
    var result = false;
    if (navigator.cookiesEnabled) return true;

    document.cookie = "testcookie=yes;";

    var cookieSet = document.cookie;

    if (cookieSet.indexOf("testcookie=yes") > -1) 
        result = true;

    document.cookie = "";

    return result;
}

if (!CookieEnable()) {
    //alert("对不起，您的浏览器的Cookie功能被禁用，请开启");
}

function SetCookie(value)
{
    var Days = 1;
    var path = window.location.pathname;
    var name = path.substring(path.lastIndexOf('/')+1);
    if(getCookie(name))
	{		
		showCount = getCookie(name)*1 + value*1;
	}
    var exp  = new Date();
    exp.setTime(exp.getTime() + Days*24*60*60*1000);
    document.cookie = name + "="+ escape (showCount) + "; expires=" + exp.toGMTString() ;	
}

function getCookie(name)
{
    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
    
    if(arr != null)
    {
		return unescape(arr[2]);
	}	
	
	return null;
}

function delCookie(name)
{
    var exp = new Date();
    exp.setTime(exp.getTime() - 1);
    var cval=getCookie(name);
    if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString();
}

if(showCount*1 <= 15){
	SetCookie("1");
	IPA_SHOW(null,null,true);
}

function ad_show(id,adwidth,adheight,output) {
		top.ipa_ad_id = id;
		top.ipa_ad_output = output;
		top.IPA_SHOW(null, null, true);
}

function IPA_SHOW(mode, just4Link, reopen, duration) {
	if (!mode)
		mode = 0;

	function n(c){
		return c!=null?'"'+c+'"':'""';
	}
	
	function ec(c){
		if(typeof encodeURIComponent=="function"){
			return encodeURIComponent(c);
		}
		else{
			return escape(c);
		}
	}
	
	function e(c,b){
		if(b){
			window.ipa_ad_url+="&"+c+"="+b;
			window.ipa_ad_qs+="&"+c+"="+b;
		}
	}
	
	function i(c,b){
		if(b){
			e(c,ec(b));
		}
	}
	
	function m(c,b,a){
		if(b&&typeof b=="object"){
			b=b[a%b.length];
		}
		e("color_"+c,b);
	}
	
	function o(c){
		if(c in q){
			return q[c];
		}
		return q[c]=navigator.userAgent.toLowerCase().indexOf(c)!=-1;
	}
	var q={};
	
	function U(c){
		var b={};
		var a=c.split("?"); 
		var d=a[a.length-1].split("&");
		for(var h=0;h<d.length;h++){
			var f=d[h].split("=");
			if(f[0]){
				try{
					b[f[0].toLowerCase()]=f.length>1?(window.decodeURIComponent?decodeURIComponent(f[1].replace(/\+/g," ")):unescape(f[1])):"";
				}
				catch(g)
				{}
			}
		}
		return b;
	}
	
	function _GetFlashVersion(){
		var c=0;
		if(navigator.plugins&&navigator.mimeTypes.length){
			var b=navigator.plugins["Shockwave Flash"];
			if(b&&b.description){
				c=b.description.replace(/([a-zA-Z]|\s)+/,"").split(".")[0];
			}
		}
		else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){
			c=3;
			var a=1;
			while(a){
				try{
					a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+(c+1));
					c++;
				}
				catch(d){
					a=null;
				}
			}
		}
		else if(_IEbutNotOpera()){
			try{
				var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
			}
			catch(d){
				try{
					var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
					c=6;
					a.AllowScriptAccess="always";
				}
				catch(d){
					if(c==6){
						return c;
					}
				}
				
				try{
					a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")
				}
				catch(d)
				{}
			}
			if(a!=null){
				c=a.GetVariable("$version").split(" ")[1].split(",")[0];
			}
		}
		return c;
	}
	
	function _IEbutNotOpera(){
		return o("msie")&&!window.opera;
	}
	
	function _SAFARI(){
		return o("safari");
	}
	
	function _IEVERSION(){
		var c=navigator.userAgent;
		var b=c.indexOf("MSIE ");
		if(b==-1){
			return 0;
		}
		else{
			return parseFloat(c.substring(b+5,c.indexOf(";",b)));
		}
	}
	
	function _CheckBrowser(){
		if(_IEbutNotOpera()){
			var c=_IEVERSION();
			return c<=5;
		}
		else if(o("firefox")){
			var b=navigator.userAgent.indexOf("Firefox")+8;
			var a=parseInt(navigator.userAgent.charAt(b));
			var d=navigator.userAgent.slice(b);
			return a<1;
		}
		else if(_SAFARI()){
			var b=navigator.userAgent.indexOf("Safari")+7;
			var d=navigator.userAgent.slice(b); 
			var h=parseInt(d);
			return h<412;
		}
		else if(window.opera!=null){
			var b=navigator.userAgent.indexOf("Opera")+6;
			var d=navigator.userAgent.slice(b);
			var a=parseInt(d);
			return a<9;
		}
		else if(!_IEbutNotOpera()&&!_SAFARI()&&o("mozilla")){
			var b=navigator.userAgent.indexOf("Netscape")+9;
			var d=navigator.userAgent.slice(b);
			var a=parseInt(d);
			return a<7;
		}
		else{
			return true
		}
	}
	
	function _SetVar4Browser(c,b)
	{
		var a=c.screen;
		if(a){
			e("u_h",a.height);
			e("u_w",a.width);
			e("u_ah",a.availHeight);
			e("u_aw",a.availWidth);
			e("u_cd",a.colorDepth);
		}
		e("u_tz",-b.getTimezoneOffset());
		e("u_his",history.length);
		e("u_java",navigator.javaEnabled());
		if(navigator.plugins){
			e("u_nplug",navigator.plugins.length);
		}
		if(navigator.mimeTypes){
			e("u_nmime",navigator.mimeTypes.length);
		}
	}
	
	function _Render(c,b,a,d){
		a=a.substring(0,2000);
		a=a.replace(/%\w?$/,"");
		
		if(reopen)
		{
			if(c.ipa_ad_output=="103" || c.ipa_ad_output=="104" || c.ipa_ad_output=="109") 
			{
				var element = document.createElement('<script language="JavaScript1.1" src='+n(a)+"><\/script>");
				b.body.appendChild(element);
			}
		}
		else
		{		
			if(c.ipa_ad_output=="103" || c.ipa_ad_output=="104" || c.ipa_ad_output=="109") 
			{
				b.write('<script language="JavaScript1.1" src='+n(a)+"><\/script>");
			}
			else if(c.ipa_ad_output=="101" || c.ipa_ad_output=="102"){
				c.name = "ipa_ads_frame" + Math.random();
				if(d!=null){
					b.write('<div id="'+d+'">');
				}
				b.write('<iframe name="'+c.name+'" width='+n(c.ipa_ad_width)+' height='+n(c.ipa_ad_height)+' frameborder='+n(c.ipa_ad_frameborder)+' src='+n(a)+' marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no">');
				b.write("</iframe>");
				if(d!=null){
					b.write("</div>");
				}
			}
		}
	}
	
	function _InitVar(c){
		var b=null;
		c.ipa_page_url=b;
		c.ipa_language=b;
		c.ipa_gl=b;
		c.ipa_country=b;
		c.ipa_region=b;
		c.ipa_city=b;
		c.ipa_ad_output=b;
		c.ipa_ad_type=b;
		c.ipa_referrer_url=b;
		c.ipa_targeting=b;
		c.ipa_ad_host=b;
	}
	
	function _GetIPALink(c){
		var b=null;
		var a=window;
		var d=document;
		var h=new Date;
		var f=h.getTime();
		var g=a.ipa_ad_format;
		if (!a.ipa_ad_host)
			a.ipa_ad_host = "http://" + IPA_HOST;
			
		switch(mode)
		{
			case 1:
				a.ipa_ad_url=a.ipa_ad_click+"?";
				a.ipa_ad_url+="issueid="+escape(parseInt(a.ipa_ad_id));
				a.ipa_ad_qs="issueid="+escape(parseInt(a.ipa_ad_id));
				break;
			case 2:
				a.ipa_ad_url=a.ipa_ad_report+"?";
				a.ipa_ad_url+="issueid="+escape(parseInt(a.ipa_ad_id));
				a.ipa_ad_qs="issueid="+escape(parseInt(a.ipa_ad_id));
				break;
			case 8:
				a.ipa_ad_url=a.ipa_ad_duration+"?";
				a.ipa_ad_url+="issueid="+escape(parseInt(a.ipa_ad_id));
				e("d", escape(parseInt(duration)));
				break;
			default:
				a.ipa_ad_url=a.ipa_ad_show+"?";
				a.ipa_ad_url+="adid="+escape(parseInt(a.ipa_ad_id));
				a.ipa_ad_qs="adid="+escape(parseInt(a.ipa_ad_id));
				break;
		}

		//alert(a.ipa_ad_url);
		
		e("host",a.ipa_ad_host);
		e("dt",h.getTime());
		e("hl",a.ipa_language);
		if(a.ipa_country){
			e("gl",a.ipa_country);
		}
		else{
			e("gl",a.ipa_gl);
		}
		e("gr",a.ipa_region);
		i("gcs",a.ipa_city);
		e("lmt",a.ipa_last_modified_time);
		e("targeting",a.ipa_targeting);
		var p=a.ipa_ad_id;
		e("output",c!=b?c:a.ipa_ad_output);
		i("url",a.ipa_page_url);
		e("ad_type",a.ipa_ad_type);
		i("ref",a.ipa_referrer_url);
		e("flash",a.ipa_flash_version);
		_SetVar4Browser(a,h);
		
		return true
	}
	
	function PreRender(){
		_GetIPALink();
		if(mode!=2&&mode!=8&&!_CheckBrowser())
			_Render(window,document,window.ipa_ad_url,null);
		else
			_Include(window,document);
		_InitVar(window);
	}
	
	function _OnError(){
		return true;
	}
	
	function Prepare(c){
		var b=window;
		var a=document;
		var d=a.location;
		var h=a.referrer;
		var g=b.onerror;
		b.onerror=c;
		if(b.ipa_page_url==null){
			b.ipa_page_url=h;
			if(b.top.location==d){
				b.ipa_page_url=d;
				b.ipa_last_modified_time=Date.parse(a.lastModified)/1000;
				b.ipa_referrer_url=h
			}
		}
		else{
			b.ipa_page_location=h;
			if(b.top.location==d){
				b.ipa_page_location=d;
			}
		}
		
		if(b.ipa_flash_version==null){
			b.ipa_flash_version=_GetFlashVersion().toString();
		}
		
		b.onerror=g;
	}
	
	function _Include(c, b){
		try
		{
			var g=b.createElement("iframe");
			g.width=0;g.height=0;
			g.src=c.ipa_ad_url;
			
			var h=b.getElementsByTagName("script");
			var f
			if (h.length > 0)
			{
				var f=h[h.length-1];
				f.parentNode.appendChild(g);
			}
			else
			{
				document.body.appendChild(g);
			}
		}catch(e){alert(e);}
	}
	
	Prepare(_OnError);
	
	if (!just4Link) {
		PreRender();
	}
	else {
		_GetIPALink();
		return window.ipa_ad_url;
	}
	window.ipa_ad_width="0";
	window.ipa_ad_height="0";
}

var p = 0;

function cBrowser(v) {
    return (navigator.appVersion.indexOf(v) != -1 ? true : false);
}

function __getLink(i, mode)
{
	w = window;
	w.ipa_ad_id = i;
	return w.IPA_SHOW(mode, true);
}

function __adDuration(i,t,w)
{
	w = (!w?window:w);	
	w.ipa_ad_id = i;
	w.IPA_SHOW(8, false, false, t);
}

function __adReport(i,w)
{
	w = (!w?window:w);	
	w.ipa_ad_id = i;
	w.IPA_SHOW(2);
}

function __img(divId,dcPv,c,w,h)
{
	var o=document.getElementById(divId);
	if(dcPv){
		!function(){
			var s=document.createElement('img');
			s.style.display='none';
			s.src=dcPv + "&misc=" + Math.random();
			document.body.insertBefore(s,document.body.firstChild);
		}();
	}
	var link = document.createElement("a");
	link.href = 'javascript:_adClick();';
	var ownImg = document.createElement("img");
	ownImg.src = c;
	ownImg.border = 0;
	ownImg.width = w;
	ownImg.height = h;
	link.appendChild(ownImg);
	o.appendChild(link);
}

function __adClick(t,i,l,d,w,dcClick)
{
	i = (i?i:IPA_ISSUEID);
	l = (l?l:IPA_LINK);		// link url
	t = (!t?"_self":t);		// target
	
	if (d)
		c = __getLink(i, 1) + "&linkurl=" + escape(l);
	else
		c = l;

	if (dcClick) {
	    if (cBrowser("MSIE 6"))
	    {
            var s = document.createElement("<LINK REL=\"stylesheet\" href=\"" + dcClick + "&misc=" + Math.random() + "\" TYPE=\"text/css\">");
            document.getElementsByTagName("head")[0].appendChild(s);
	    }
//	    else if (cBrowser("Chrome"))
//	    {
//            var s = document.createElement("iframe");
//            s.style.display = 'none';
//            s.src = dcClick + "&misc=" + Math.random();
//            document.body.insertBefore(s, document.body.firstChild);
//	    }
	    else
	    {
            var s = document.createElement("img");
            s.style.display = 'none';
            s.src = dcClick + "&misc=" + Math.random();
            document.body.insertBefore(s, document.body.firstChild);
            s.parentNode.removeChild(s);
        }
	}
		
	w = (!w?window:w);
	switch (t)
	{
		case "_blank":
			if (null===w.open(c))
			{
				nw(c);
			}
			break;
		case "_top":
			w.top.location.href=c;
			break;
		case "_self":
			w.self.location.href=c;
			break;
	}
}

function nw(url){
	var open_frm=document.createElement("form");
	open_frm.method="GET";
	open_frm.target="_blank";
	open_frm.action=url;
	document.body.appendChild(open_frm);
	open_frm.submit();
}

function __img2(d,dcPv,c,w,h)
{
	var dcImg = "";
	if(dcPv)
		dcImg = __img3rd(dcPv);
	var img = "<img src='"+c+"' border='0' WIDTH='"+w+"' HEIGHT='"+h+"' />";
	var result = dcImg + img;
	
	return result;	
}

function __img3rd(dcPv) {
    var doubleClickPV = dcPv + "&misc=" + Math.random();
    var dcImg = "<img src='" + doubleClickPV + "' border='0' WIDTH='0' HEIGHT='0' />";
	return dcImg;
}

function __swf(u, w, h, p, d, i, r, dcPv)
{
	//alert(i);
	var o=document.getElementById(d);
	var ad, bu, bw, bh;
	c = IPA_HOST;
	cr = RESOURCE_HOST;
	p=(!p)?'Transparent':'Opaque';
	bu = "http://" + cr + "/blank.gif";
	bw = ((r)?(w-r[1]-r[3]):w);
	bh = ((r)?(h-r[0]-r[2]):h);

	ad='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" WIDTH="'+w+'" HEIGHT="'+h+'">';
	ad+='<PARAM NAME="movie" VALUE="'+u+'">';
	ad+='<PARAM NAME="wmode" VALUE="'+p+'">';
	ad+='<EMBED src="'+u+'" WIDTH="'+w+'" HEIGHT="'+h+'" WMODE="'+p+'" TYPE="application/x-shockwave-flash"></EMBED>';
	ad+='</OBJECT>';

	if (!i)
	{
		o.innerHTML = '';
		o.innerHTML += '<div style="POSITION:relative;Z-INDEX:1;width:'+w+'px;height:'+h+'px">';
		o.innerHTML += '<div style="POSITION:absolute;left:'+((r)?r[3]:0)+'px;top:'+((r)?r[0]:0)+'px;Z-INDEX:3;width:'+((r)?(w-r[1]-r[3]):w)+'px;height:'+((r)?(h-r[0]-r[2]):h)+'px">' + ad + '</div>';
		o.innerHTML += '<a href="javascript:_adClick()" style="display:block;POSITION:absolute;left:'+((r)?r[3]:0)+'px;top:'+((r)?r[0]:0)+'px;Z-INDEX:4;width:'+((r)?(w-r[1]-r[3]):w)+'px;height:'+((r)?(h-r[0]-r[2]):h)+'px"><img src="'+bu+'" border="0" style="width:'+((r)?(w-r[1]-r[3]):w)+'px;height:'+((r)?(h-r[0]-r[2]):h)+'px" /></a>';	
		
		o.innerHTML += '</div>';
	}
	else
	{
		o.innerHTML = ad;
	}
	
	if(dcPv)
		o.innerHTML += __img3rd(dcPv);
		
	return d;
}

function __swf2(u, w, h, p, d, i, r, dcPv)
{
	var ad, bu, bw, bh;

	c = IPA_HOST;
	cr = RESOURCE_HOST;
	p=(!p)?'Transparent':'Opaque';
	bu = "http://" + cr + "/blank.gif";
	bw = ((r)?(w-r[1]-r[3]):w);
	bh = ((r)?(h-r[0]-r[2]):h);

	ad='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" WIDTH="'+w+'" HEIGHT="'+h+'">';
	ad+='<PARAM NAME="movie" VALUE="'+u+'">';
	ad+='<PARAM NAME="wmode" VALUE="'+p+'">';
	ad+='<EMBED src="'+u+'" WIDTH="'+w+'" HEIGHT="'+h+'" WMODE="'+p+'" TYPE="application/x-shockwave-flash"></EMBED>';
	ad+='</OBJECT>';

	if (!i)
	{
		var html = '';
		html += '<div style="POSITION:relative;Z-INDEX:1;width:'+w+'px;height:'+h+'px">';
		html += '<div style="POSITION:absolute;left:'+((r)?r[3]:0)+'px;top:'+((r)?r[0]:0)+'px;Z-INDEX:3;width:'+((r)?(w-r[1]-r[3]):w)+'px;height:'+((r)?(h-r[0]-r[2]):h)+'px">' + ad + '</div>';
		html +='<a href="javascript:_adClick()" style="display:block;POSITION:absolute;left:'+((r)?r[3]:0)+'px;top:'+((r)?r[0]:0)+'px;Z-INDEX:4;width:'+((r)?(w-r[1]-r[3]):w)+'px;height:'+((r)?(h-r[0]-r[2]):h)+'px"><img src="'+bu+'" border="0" style="width:'+((r)?(w-r[1]-r[3]):w)+'px;height:'+((r)?(h-r[0]-r[2]):h)+'px" /></a>';	
		
		html += '</div>';
		
		if(dcPv)
			html += __img3rd(dcPv);
		
		return html;
	}
	else
	{
		if(dcPv)
			ad += __img3rd(dcPv);
			
		return ad;
	}
}

if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;