diff e2gallerypro/nonverblaster/swfobject.js @ 3:3f6b44aa6b35 judyates

[svn r4] added ability to buy stuff, from a Prints page, but it doesn't work well with the css, and it also has not been fitted into the perl make system.
author rlm
date Mon, 22 Feb 2010 08:02:39 -0500
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/e2gallerypro/nonverblaster/swfobject.js	Mon Feb 22 08:02:39 2010 -0500
     1.3 @@ -0,0 +1,138 @@
     1.4 +/**
     1.5 + * SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
     1.6 + *
     1.7 + * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
     1.8 + * http://www.opensource.org/licenses/mit-license.php
     1.9 + *
    1.10 + * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
    1.11 + *   legal reasons.
    1.12 + */
    1.13 +if(typeof deconcept=="undefined"){var deconcept=new Object();}
    1.14 +if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
    1.15 +if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
    1.16 +deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}
    1.17 +this.DETECT_KEY=_b?_b:"detectflash";
    1.18 +this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
    1.19 +this.params=new Object();
    1.20 +this.variables=new Object();
    1.21 +this.attributes=new Array();
    1.22 +if(_1){this.setAttribute("swf",_1);}
    1.23 +if(id){this.setAttribute("id",id);}
    1.24 +if(w){this.setAttribute("width",w);}
    1.25 +if(h){this.setAttribute("height",h);}
    1.26 +if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
    1.27 +this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
    1.28 +if(c){this.addParam("bgcolor",c);}
    1.29 +var q=_8?_8:"high";
    1.30 +this.addParam("quality",q);
    1.31 +this.setAttribute("useExpressInstall",_7);
    1.32 +this.setAttribute("doExpressInstall",false);
    1.33 +var _d=(_9)?_9:window.location;
    1.34 +this.setAttribute("xiRedirectUrl",_d);
    1.35 +this.setAttribute("redirectUrl","");
    1.36 +if(_a){this.setAttribute("redirectUrl",_a);}};
    1.37 +deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
    1.38 +this.attributes[_e]=_f;
    1.39 +},getAttribute:function(_10){
    1.40 +return this.attributes[_10];
    1.41 +},addParam:function(_11,_12){
    1.42 +this.params[_11]=_12;
    1.43 +},getParams:function(){
    1.44 +return this.params;
    1.45 +},addVariable:function(_13,_14){
    1.46 +this.variables[_13]=_14;
    1.47 +},getVariable:function(_15){
    1.48 +return this.variables[_15];
    1.49 +},getVariables:function(){
    1.50 +return this.variables;
    1.51 +},getVariablePairs:function(){
    1.52 +var _16=new Array();
    1.53 +var key;
    1.54 +var _18=this.getVariables();
    1.55 +for(key in _18){_16.push(key+"="+_18[key]);}
    1.56 +return _16;},getSWFHTML:function(){var _19="";
    1.57 +if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
    1.58 +if(this.getAttribute("doExpressInstall")){
    1.59 +this.addVariable("MMplayerType","PlugIn");}
    1.60 +_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
    1.61 +_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
    1.62 +var _1a=this.getParams();
    1.63 +for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
    1.64 +var _1c=this.getVariablePairs().join("&");
    1.65 +if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";
    1.66 +}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
    1.67 +_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
    1.68 +_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
    1.69 +var _1d=this.getParams();
    1.70 +for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
    1.71 +var _1f=this.getVariablePairs().join("&");
    1.72 +if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}
    1.73 +return _19;
    1.74 +},write:function(_20){
    1.75 +if(this.getAttribute("useExpressInstall")){
    1.76 +var _21=new deconcept.PlayerVersion([6,0,65]);
    1.77 +if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
    1.78 +this.setAttribute("doExpressInstall",true);
    1.79 +this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
    1.80 +document.title=document.title.slice(0,47)+" - Flash Player Installation";
    1.81 +this.addVariable("MMdoctitle",document.title);}}
    1.82 +if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
    1.83 +var n=(typeof _20=="string")?document.getElementById(_20):_20;
    1.84 +n.innerHTML=this.getSWFHTML();return true;
    1.85 +}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
    1.86 +return false;}};
    1.87 +deconcept.SWFObjectUtil.getPlayerVersion=function(){
    1.88 +var _23=new deconcept.PlayerVersion([0,0,0]);
    1.89 +if(navigator.plugins&&navigator.mimeTypes.length){
    1.90 +var x=navigator.plugins["Shockwave Flash"];
    1.91 +if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
    1.92 +}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
    1.93 +catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
    1.94 +_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}
    1.95 +catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
    1.96 +catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
    1.97 +return _23;};
    1.98 +deconcept.PlayerVersion=function(_27){
    1.99 +this.major=_27[0]!=null?parseInt(_27[0]):0;
   1.100 +this.minor=_27[1]!=null?parseInt(_27[1]):0;
   1.101 +this.rev=_27[2]!=null?parseInt(_27[2]):0;
   1.102 +};
   1.103 +deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
   1.104 +if(this.major<fv.major){return false;}
   1.105 +if(this.major>fv.major){return true;}
   1.106 +if(this.minor<fv.minor){return false;}
   1.107 +if(this.minor>fv.minor){return true;}
   1.108 +if(this.rev<fv.rev){
   1.109 +return false;
   1.110 +}return true;};
   1.111 +deconcept.util={getRequestParameter:function(_29){
   1.112 +var q=document.location.search||document.location.hash;
   1.113 +if(q){var _2b=q.substring(1).split("&");
   1.114 +for(var i=0;i<_2b.length;i++){
   1.115 +if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){
   1.116 +return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
   1.117 +return "";}};
   1.118 +deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}
   1.119 +var _2d=document.getElementsByTagName("OBJECT");
   1.120 +for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){
   1.121 +if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};
   1.122 +deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};
   1.123 +__flash_savedUnloadHandler=function(){};
   1.124 +if(typeof window.onunload=="function"){
   1.125 +var _30=window.onunload;
   1.126 +window.onunload=function(){
   1.127 +deconcept.SWFObjectUtil.cleanupSWFs();_30();};
   1.128 +}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};
   1.129 +if(typeof window.onbeforeunload=="function"){
   1.130 +var oldBeforeUnload=window.onbeforeunload;
   1.131 +window.onbeforeunload=function(){
   1.132 +deconcept.SWFObjectUtil.prepUnload();
   1.133 +oldBeforeUnload();};
   1.134 +}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}
   1.135 +if(Array.prototype.push==null){
   1.136 +Array.prototype.push=function(_31){
   1.137 +this[this.length]=_31;
   1.138 +return this.length;};}
   1.139 +var getQueryParamValue=deconcept.util.getRequestParameter;
   1.140 +var FlashObject=deconcept.SWFObject;
   1.141 +var SWFObject=deconcept.SWFObject;