web/res/js/swfobject.js
author ymh@caf4f556-3d62-0410-8435-a86758001935
Tue, 10 Mar 2009 15:57:06 +0000
changeset 5 e6218e56f418
child 54 9d9d7733172a
permissions -rw-r--r--
Update to iri web site
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
     1
/**
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
     2
 * SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
     3
 *
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
     4
 * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
     5
 * http://www.opensource.org/licenses/mit-license.php
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
     6
 *
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
     7
 * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
     8
 *   legal reasons.
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
     9
 */
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    10
if(typeof deconcept=="undefined") {
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    11
	var deconcept=new Object();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    12
}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    13
if(typeof deconcept.util=="undefined") { 
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    14
	deconcept.util=new Object();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    15
}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    16
if(typeof deconcept.SWFObjectUtil=="undefined"){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    17
	deconcept.SWFObjectUtil=new Object();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    18
}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    19
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    20
	if(!document.getElementById){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    21
		return;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    22
	}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    23
	this.DETECT_KEY=_b?_b:"detectflash";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    24
	this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    25
	this.params=new Object();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    26
	this.variables=new Object();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    27
	this.attributes=new Array();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    28
	if(_1){this.setAttribute("swf",_1);}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    29
	if(id){this.setAttribute("id",id);}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    30
	if(w){this.setAttribute("width",w);}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    31
	if(h){this.setAttribute("height",h);}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    32
	if(_5){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    33
		this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    34
	}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    35
	this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    36
	if(c){this.addParam("bgcolor",c);}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    37
	var q=_8?_8:"high";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    38
	this.addParam("quality",q);
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    39
	this.setAttribute("useExpressInstall",_7);
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    40
	this.setAttribute("doExpressInstall",false);
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    41
	var _d=(_9)?_9:window.location;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    42
	this.setAttribute("xiRedirectUrl",_d);
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    43
	this.setAttribute("redirectUrl","");
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    44
	if(_a){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    45
		this.setAttribute("redirectUrl",_a);
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    46
	}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    47
};
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    48
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    49
deconcept.SWFObject.prototype={
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    50
	setAttribute:function(_e,_f){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    51
		this.attributes[_e]=_f;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    52
	},getAttribute:function(_10){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    53
		return this.attributes[_10];
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    54
	},addParam:function(_11,_12){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    55
		this.params[_11]=_12;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    56
	},getParams:function(){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    57
		return this.params;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    58
	},addVariable:function(_13,_14){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    59
		this.variables[_13]=_14;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    60
	},getVariable:function(_15){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    61
		return this.variables[_15];
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    62
	},getVariables:function(){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    63
		return this.variables;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    64
	},getVariablePairs:function(){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    65
		var _16=new Array();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    66
		var key;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    67
		var _18=this.getVariables();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    68
		for(key in _18){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    69
			_16.push(key+"="+_18[key]);
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    70
		}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    71
		return _16;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    72
	},getSWFHTML:function(){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    73
		var _19="";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    74
		if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    75
			if(this.getAttribute("doExpressInstall")){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    76
				this.addVariable("MMplayerType","PlugIn");
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    77
			}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    78
			_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    79
			_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    80
			var _1a=this.getParams();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    81
			for(var key in _1a){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    82
				_19+=[key]+"=\""+_1a[key]+"\" ";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    83
			}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    84
			var _1c=this.getVariablePairs().join("&");
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    85
			if(_1c.length>0){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    86
				_19+="flashvars=\""+_1c+"\"";}_19+="/>";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    87
			}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    88
			else {
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    89
				if(this.getAttribute("doExpressInstall")) {
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    90
					this.addVariable("MMplayerType","ActiveX");
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    91
				}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    92
				_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    93
				_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    94
				var _1d=this.getParams();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    95
				for(var key in _1d){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    96
					_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    97
				}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    98
				var _1f=this.getVariablePairs().join("&");
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
    99
				if(_1f.length>0){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   100
					_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   101
				}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   102
				_19+="</object>";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   103
			}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   104
			return _19;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   105
		},write:function(_20){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   106
			if(this.getAttribute("useExpressInstall")){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   107
				var _21=new deconcept.PlayerVersion([6,0,65]);
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   108
				if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   109
					this.setAttribute("doExpressInstall",true);
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   110
					this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   111
					document.title=document.title.slice(0,47)+" - Flash Player Installation";
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   112
					this.addVariable("MMdoctitle",document.title);
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   113
				}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   114
			}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   115
			if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   116
				var n=(typeof _20=="string")?document.getElementById(_20):_20;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   117
				n.innerHTML=this.getSWFHTML();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   118
				return true;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   119
			}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   120
			else {
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   121
				if(this.getAttribute("redirectUrl")!="") {
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   122
					document.location.replace(this.getAttribute("redirectUrl"));
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   123
				}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   124
			}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   125
			return false;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   126
		}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   127
	};
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   128
	deconcept.SWFObjectUtil.getPlayerVersion=function(){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   129
		var _23=new deconcept.PlayerVersion([0,0,0]);
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   130
		if(navigator.plugins&&navigator.mimeTypes.length){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   131
			var x=navigator.plugins["Shockwave Flash"];
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   132
			if(x&&x.description){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   133
				_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   134
			}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   135
		}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   136
		else {
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   137
			try {
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   138
				var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   139
			}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   140
			catch(e) { 
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   141
				try { 
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   142
				var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   143
_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   144
catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   145
catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   146
return _23;};
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   147
deconcept.PlayerVersion=function(_27){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   148
this.major=_27[0]!=null?parseInt(_27[0]):0;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   149
this.minor=_27[1]!=null?parseInt(_27[1]):0;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   150
this.rev=_27[2]!=null?parseInt(_27[2]):0;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   151
};
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   152
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   153
if(this.major<fv.major){return false;}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   154
if(this.major>fv.major){return true;}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   155
if(this.minor<fv.minor){return false;}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   156
if(this.minor>fv.minor){return true;}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   157
if(this.rev<fv.rev){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   158
return false;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   159
}return true;};
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   160
deconcept.util={getRequestParameter:function(_29){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   161
var q=document.location.search||document.location.hash;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   162
if(q){var _2b=q.substring(1).split("&");
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   163
for(var i=0;i<_2b.length;i++){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   164
if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   165
return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   166
return "";}};
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   167
deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   168
var _2d=document.getElementsByTagName("OBJECT");
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   169
for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   170
if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   171
deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   172
__flash_savedUnloadHandler=function(){};
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   173
if(typeof window.onunload=="function"){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   174
var _30=window.onunload;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   175
window.onunload=function(){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   176
deconcept.SWFObjectUtil.cleanupSWFs();_30();};
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   177
}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   178
if(typeof window.onbeforeunload=="function"){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   179
var oldBeforeUnload=window.onbeforeunload;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   180
window.onbeforeunload=function(){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   181
deconcept.SWFObjectUtil.prepUnload();
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   182
oldBeforeUnload();};
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   183
}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   184
if(Array.prototype.push==null){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   185
Array.prototype.push=function(_31){
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   186
this[this.length]=_31;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   187
return this.length;};}
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   188
var getQueryParamValue=deconcept.util.getRequestParameter;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   189
var FlashObject=deconcept.SWFObject;
e6218e56f418 Update to iri web site
ymh@caf4f556-3d62-0410-8435-a86758001935
parents:
diff changeset
   190
var SWFObject=deconcept.SWFObject;