| Current Path : /var/www/iplanru/data/www/i-plan.ru/media/zoo/elements/media/assets/js/ |
| Current File : /var/www/iplanru/data/www/i-plan.ru/media/zoo/elements/media/assets/js/swfobject.js |
var swfobject=function(){var e="undefined",t="object",i="Shockwave Flash",a="ShockwaveFlash.ShockwaveFlash",n="application/x-shockwave-flash",r="SWFObjectExprInst",s="onreadystatechange",l=window,f=document,o=navigator,c=false,u=[k],d=[],p=[],v=[],y,h,m,g,w=false,b=false,C,E,S=true,A=function(){var r=typeof f.getElementById!=e&&typeof f.getElementsByTagName!=e&&typeof f.createElement!=e,s=o.userAgent.toLowerCase(),u=o.platform.toLowerCase(),d=u?/win/.test(u):/win/.test(s),p=u?/mac/.test(u):/mac/.test(s),v=/webkit/.test(s)?parseFloat(s.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,y=!+"1",h=[0,0,0],m=null;if(typeof o.plugins!=e&&typeof o.plugins[i]==t){m=o.plugins[i].description;if(m&&!(typeof o.mimeTypes!=e&&o.mimeTypes[n]&&!o.mimeTypes[n].enabledPlugin)){c=true;y=false;m=m.replace(/^.*\s+(\S+\s+\S+$)/,"$1");h[0]=parseInt(m.replace(/^(.*)\..*$/,"$1"),10);h[1]=parseInt(m.replace(/^.*\.(.*)\s.*$/,"$1"),10);h[2]=/[a-zA-Z]/.test(m)?parseInt(m.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof l.ActiveXObject!=e){try{var g=new ActiveXObject(a);if(g){m=g.GetVariable("$version");if(m){y=true;m=m.split(" ")[1].split(",");h=[parseInt(m[0],10),parseInt(m[1],10),parseInt(m[2],10)]}}}catch(w){}}return{w3:r,pv:h,wk:v,ie:y,win:d,mac:p}}(),N=function(){if(!A.w3){return}if(typeof f.readyState!=e&&f.readyState=="complete"||typeof f.readyState==e&&(f.getElementsByTagName("body")[0]||f.body)){T()}if(!w){if(typeof f.addEventListener!=e){f.addEventListener("DOMContentLoaded",T,false)}if(A.ie&&A.win){f.attachEvent(s,function(){if(f.readyState=="complete"){f.detachEvent(s,arguments.callee);T()}});if(l==top){(function(){if(w){return}try{f.documentElement.doScroll("left")}catch(e){setTimeout(arguments.callee,0);return}T()})()}}if(A.wk){(function(){if(w){return}if(!/loaded|complete/.test(f.readyState)){setTimeout(arguments.callee,0);return}T()})()}L(T)}}();function T(){if(w){return}try{var e=f.getElementsByTagName("body")[0].appendChild(H("span"));e.parentNode.removeChild(e)}catch(t){return}w=true;var i=u.length;for(var a=0;a<i;a++){u[a]()}}function I(e){if(w){e()}else{u[u.length]=e}}function L(t){if(typeof l.addEventListener!=e){l.addEventListener("load",t,false)}else if(typeof f.addEventListener!=e){f.addEventListener("load",t,false)}else if(typeof l.attachEvent!=e){G(l,"onload",t)}else if(typeof l.onload=="function"){var i=l.onload;l.onload=function(){i();t()}}else{l.onload=t}}function k(){if(c){j()}else{B()}}function j(){var i=f.getElementsByTagName("body")[0];var a=H(t);a.setAttribute("type",n);var r=i.appendChild(a);if(r){var s=0;(function(){if(typeof r.GetVariable!=e){var t=r.GetVariable("$version");if(t){t=t.split(" ")[1].split(",");A.pv=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)]}}else if(s<10){s++;setTimeout(arguments.callee,10);return}i.removeChild(a);r=null;B()})()}else{B()}}function B(){var t=d.length;if(t>0){for(var i=0;i<t;i++){var a=d[i].id;var n=d[i].callbackFn;var r={success:false,id:a};if(A.pv[0]>0){var s=W(a);if(s){if(J(d[i].swfVersion)&&!(A.wk&&A.wk<312)){X(a,true);if(n){r.success=true;r.ref=O(a);n(r)}}else if(d[i].expressInstall&&F()){var l={};l.data=d[i].expressInstall;l.width=s.getAttribute("width")||"0";l.height=s.getAttribute("height")||"0";if(s.getAttribute("class")){l.styleclass=s.getAttribute("class")}if(s.getAttribute("align")){l.align=s.getAttribute("align")}var f={};var o=s.getElementsByTagName("param");var c=o.length;for(var u=0;u<c;u++){if(o[u].getAttribute("name").toLowerCase()!="movie"){f[o[u].getAttribute("name")]=o[u].getAttribute("value")}}$(l,f,a,n)}else{x(s);if(n){n(r)}}}}else{X(a,true);if(n){var p=O(a);if(p&&typeof p.SetVariable!=e){r.success=true;r.ref=p}n(r)}}}}}function O(i){var a=null;var n=W(i);if(n&&n.nodeName=="OBJECT"){if(typeof n.SetVariable!=e){a=n}else{var r=n.getElementsByTagName(t)[0];if(r){a=r}}}return a}function F(){return!b&&J("6.0.65")&&(A.win||A.mac)&&!(A.wk&&A.wk<312)}function $(t,i,a,n){b=true;m=n||null;g={success:false,id:a};var s=W(a);if(s){if(s.nodeName=="OBJECT"){y=M(s);h=null}else{y=s;h=a}t.id=r;if(typeof t.width==e||!/%$/.test(t.width)&&parseInt(t.width,10)<310){t.width="310"}if(typeof t.height==e||!/%$/.test(t.height)&&parseInt(t.height,10)<137){t.height="137"}f.title=f.title.slice(0,47)+" - Flash Player Installation";var o=A.ie&&A.win?"ActiveX":"PlugIn",c="MMredirectURL="+l.location.toString().replace(/&/g,"%26")+"&MMplayerType="+o+"&MMdoctitle="+f.title;if(typeof i.flashvars!=e){i.flashvars+="&"+c}else{i.flashvars=c}if(A.ie&&A.win&&s.readyState!=4){var u=H("div");a+="SWFObjectNew";u.setAttribute("id",a);s.parentNode.insertBefore(u,s);s.style.display="none";(function(){if(s.readyState==4){s.parentNode.removeChild(s)}else{setTimeout(arguments.callee,10)}})()}V(t,i,a)}}function x(e){if(A.ie&&A.win&&e.readyState!=4){var t=H("div");e.parentNode.insertBefore(t,e);t.parentNode.replaceChild(M(e),t);e.style.display="none";(function(){if(e.readyState==4){e.parentNode.removeChild(e)}else{setTimeout(arguments.callee,10)}})()}else{e.parentNode.replaceChild(M(e),e)}}function M(e){var i=H("div");if(A.win&&A.ie){i.innerHTML=e.innerHTML}else{var a=e.getElementsByTagName(t)[0];if(a){var n=a.childNodes;if(n){var r=n.length;for(var s=0;s<r;s++){if(!(n[s].nodeType==1&&n[s].nodeName=="PARAM")&&!(n[s].nodeType==8)){i.appendChild(n[s].cloneNode(true))}}}}}return i}function V(i,a,r){var s,l=W(r);if(A.wk&&A.wk<312){return s}if(l){if(typeof i.id==e){i.id=r}if(A.ie&&A.win){var f="";for(var o in i){if(i[o]!=Object.prototype[o]){if(o.toLowerCase()=="data"){a.movie=i[o]}else if(o.toLowerCase()=="styleclass"){f+=' class="'+i[o]+'"'}else if(o.toLowerCase()!="classid"){f+=" "+o+'="'+i[o]+'"'}}}var c="";for(var u in a){if(a[u]!=Object.prototype[u]){c+='<param name="'+u+'" value="'+a[u]+'" />'}}l.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+c+"</object>";p[p.length]=i.id;s=W(i.id)}else{var d=H(t);d.setAttribute("type",n);for(var v in i){if(i[v]!=Object.prototype[v]){if(v.toLowerCase()=="styleclass"){d.setAttribute("class",i[v])}else if(v.toLowerCase()!="classid"){d.setAttribute(v,i[v])}}}for(var y in a){if(a[y]!=Object.prototype[y]&&y.toLowerCase()!="movie"){P(d,y,a[y])}}l.parentNode.replaceChild(d,l);s=d}}return s}function P(e,t,i){var a=H("param");a.setAttribute("name",t);a.setAttribute("value",i);e.appendChild(a)}function R(e){var t=W(e);if(t&&t.nodeName=="OBJECT"){if(A.ie&&A.win){t.style.display="none";(function(){if(t.readyState==4){D(e)}else{setTimeout(arguments.callee,10)}})()}else{t.parentNode.removeChild(t)}}}function D(e){var t=W(e);if(t){for(var i in t){if(typeof t[i]=="function"){t[i]=null}}t.parentNode.removeChild(t)}}function W(e){var t=null;try{t=f.getElementById(e)}catch(i){}return t}function H(e){return f.createElement(e)}function G(e,t,i){e.attachEvent(t,i);v[v.length]=[e,t,i]}function J(e){var t=A.pv,i=e.split(".");i[0]=parseInt(i[0],10);i[1]=parseInt(i[1],10)||0;i[2]=parseInt(i[2],10)||0;return t[0]>i[0]||t[0]==i[0]&&t[1]>i[1]||t[0]==i[0]&&t[1]==i[1]&&t[2]>=i[2]?true:false}function U(i,a,n,r){if(A.ie&&A.mac){return}var s=f.getElementsByTagName("head")[0];if(!s){return}var l=n&&typeof n=="string"?n:"screen";if(r){C=null;E=null}if(!C||E!=l){var o=H("style");o.setAttribute("type","text/css");o.setAttribute("media",l);C=s.appendChild(o);if(A.ie&&A.win&&typeof f.styleSheets!=e&&f.styleSheets.length>0){C=f.styleSheets[f.styleSheets.length-1]}E=l}if(A.ie&&A.win){if(C&&typeof C.addRule==t){C.addRule(i,a)}}else{if(C&&typeof f.createTextNode!=e){C.appendChild(f.createTextNode(i+" {"+a+"}"))}}}function X(e,t){if(!S){return}var i=t?"visible":"hidden";if(w&&W(e)){W(e).style.visibility=i}else{U("#"+e,"visibility:"+i)}}function z(t){var i=/[\\\"<>\.;]/;var a=i.exec(t)!=null;return a&&typeof encodeURIComponent!=e?encodeURIComponent(t):t}var Z=function(){if(A.ie&&A.win){window.attachEvent("onunload",function(){var e=v.length;for(var t=0;t<e;t++){v[t][0].detachEvent(v[t][1],v[t][2])}var i=p.length;for(var a=0;a<i;a++){R(p[a])}for(var n in A){A[n]=null}A=null;for(var r in swfobject){swfobject[r]=null}swfobject=null})}}();return{registerObject:function(e,t,i,a){if(A.w3&&e&&t){var n={};n.id=e;n.swfVersion=t;n.expressInstall=i;n.callbackFn=a;d[d.length]=n;X(e,false)}else if(a){a({success:false,id:e})}},getObjectById:function(e){if(A.w3){return O(e)}},embedSWF:function(i,a,n,r,s,l,f,o,c,u){var d={success:false,id:a};if(A.w3&&!(A.wk&&A.wk<312)&&i&&a&&n&&r&&s){X(a,false);I(function(){n+="";r+="";var p={};if(c&&typeof c===t){for(var v in c){p[v]=c[v]}}p.data=i;p.width=n;p.height=r;var y={};if(o&&typeof o===t){for(var h in o){y[h]=o[h]}}if(f&&typeof f===t){for(var m in f){if(typeof y.flashvars!=e){y.flashvars+="&"+m+"="+f[m]}else{y.flashvars=m+"="+f[m]}}}if(J(s)){var g=V(p,y,a);if(p.id==a){X(a,true)}d.success=true;d.ref=g}else if(l&&F()){p.data=l;$(p,y,a,u);return}else{X(a,true)}if(u){u(d)}})}else if(u){u(d)}},switchOffAutoHideShow:function(){S=false},ua:A,getFlashPlayerVersion:function(){return{major:A.pv[0],minor:A.pv[1],release:A.pv[2]}},hasFlashPlayerVersion:J,createSWF:function(e,t,i){if(A.w3){return V(e,t,i)}else{return undefined}},showExpressInstall:function(e,t,i,a){if(A.w3&&F()){$(e,t,i,a)}},removeSWF:function(e){if(A.w3){R(e)}},createCSS:function(e,t,i,a){if(A.w3){U(e,t,i,a)}},addDomLoadEvent:I,addLoadEvent:L,getQueryParamValue:function(e){var t=f.location.search||f.location.hash;if(t){if(/\?/.test(t)){t=t.split("?")[1]}if(e==null){return z(t)}var i=t.split("&");for(var a=0;a<i.length;a++){if(i[a].substring(0,i[a].indexOf("="))==e){return z(i[a].substring(i[a].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(b){var e=W(r);if(e&&y){e.parentNode.replaceChild(y,e);if(h){X(h,true);if(A.ie&&A.win){y.style.display="block"}}if(m){m(g)}}b=false}}}}();