Your IP : 3.144.40.142
IUCommon={browser:new function(){var e=navigator.userAgent.toLowerCase();this.isOpera=e.indexOf("opera")>-1;this.isKonq=e.indexOf("konqueror")>-1;this.isChrome=e.indexOf("chrome")>-1;this.isSafari=e.indexOf("safari")>-1&&!this.isChrome;this.isKhtml=this.isSafari||this.isKonq||this.isChrome;this.isIE11=e.indexOf("trident")>-1;this.isIE=e.indexOf("msie")!=-1&&!this.isOpera||this.isIE11;this.isIE6XPSP2=this.isIE&&e.indexOf("sv1")>-1;this.isIE7=this.isIE&&e.indexOf("msie 7.0")>-1;this.isIE8=this.isIE&&e.indexOf("msie 8.0")>-1;this.isBeforeIE6XPSP2=this.isIE&&!this.isIE6XPSP2&&!this.isIE7&&!this.isIE8&&!this.isIE11;this.isWinIE=this.isIE&&e.indexOf("mac")==-1;this.isIE64=this.isIE&&e.indexOf("win64")>-1;this.isWindowsOS=navigator.platform.indexOf("Win")>-1;this.isMac=e.indexOf("mac")>-1},createDelegate:function(e,t){return function(){return t.apply(e,arguments)}},formatString:function(e){var t=/\{\d+\}/g;var a=arguments;return e.replace(t,function(e){return a[new Number(e.match(/\d+/))+1]})},showWarning:function(e,t){if(t==undefined||t<=IUCommon.debugLevel){alert("IUEmbed Warning:\n\r"+e)}},checkIfFileExists:function(e){e=e.split("#")[0];var t;if(typeof XMLHttpRequest!="undefined"){t=new XMLHttpRequest}else{try{t=new ActiveXObject("Msxml2.XMLHTTP")}catch(a){try{t=new ActiveXObject("Microsoft.XMLHTTP")}catch(i){t=false}}}if(t){try{t.open("GET",e,false);t.send(null);return t.status==404?false:true}catch(a){}}return true},debugLevel:1};IULocalization={addParams:function(e){for(var t in this.ImageUploaderWriter){if(!this.ImageUploaderWriter.hasOwnProperty||this.ImageUploaderWriter.hasOwnProperty(t)){e[t]=this.ImageUploaderWriter[t]}}for(var t in this.ImageUploader){if(!this.ImageUploader.hasOwnProperty||this.ImageUploader.hasOwnProperty(t)){if(e.getParam(t)==undefined){e.addParam(t,this.ImageUploader[t])}}}e.InstallationProgress=this.InstallationProgress}};IUCommon.StringBuilder=function(){this._s=new Array};IUCommon.StringBuilder.prototype={add:function(e){this._s.push(e)},addScriptBegin:function(){this.add("<"+'script type="text/javascript">')},addScriptEnd:function(){this.add("<"+"/script>")},addCssAttr:function(e,t){this.add(""+e+":"+t+";")},addCssClass:function(e){if(e){this.add(' class="'+e+'"')}},toString:function(){return this._s.join("")}};function BaseWriter(e,t,a){this._params=new Object;this._events=new Object;this._extenders=new Array;this._autoCallback=0;this.id=e==undefined?"":e;this.width=t==undefined?400:t;this.height=a==undefined?300:a;this.activeXControlEnabled=true;this.activeXControlVersion="";this.javaAppletEnabled=true;this.javaAppletCodeBase="./";this.javaAppletCached=true;this.javaAppletVersion="";this.browserNotSupported="Your browser is not supported.";this.fullPageLoadListenerName=null;this.javaVersionRequired="1.5.0"}BaseWriter.prototype={htmlencode:function(e){var t=[['"',"""],["'","'"],["&","&"],["<","<"],[">",">"]];var a=/\"|\'|&|<|>/g;return e.replace?e.replace(a,function(e){for(var a=0,i=t.length;a<i;a++){if(e==t[a][0])return t[a][1]}return e}):e},_slasher:function(e){e=IUCommon.browser.isWinIE&&this.activeXControlEnabled?e:new String(e).replace(/\n/gi,"\\n")+"";e=this.htmlencode(e);return e},_getListenerName:function(e){return this._events[e].length==1?this._events[e][0]:this.id+"_"+e+"_Caller"},_getObjectParamHtml:function(e,t){return'<param name="'+e+'" value="'+this._slasher(t)+'" />'},_addObjectParamsHtml:function(e){var t=this._params;for(var a in t){if(!t.hasOwnProperty||t.hasOwnProperty(a)){e.add(this._getObjectParamHtml(a,t[a]))}}},_addObjectEventsHtml:function(e){var t=this._events;for(var a in t){if(!t.hasOwnProperty||t.hasOwnProperty(a)){e.add(this._getObjectParamHtml(a+"Listener",this._getListenerName(a)))}}},_getEmbedParamHtml:function(e,t){return" "+e+'="'+this._slasher(t)+'"'},_addEmbedParamsHtml:function(e){var t=this._params;for(var a in t){if(!t.hasOwnProperty||t.hasOwnProperty(a)){e.add(this._getEmbedParamHtml(a,t[a]))}}},_addEmbedEventsHtml:function(e){var t=this._events;for(var a in t){if(!t.hasOwnProperty||t.hasOwnProperty(a)){e.add(this._getEmbedParamHtml(a+"Listener",this._getListenerName(a)))}}},_addInstructionsHtml:function(e){if(this.instructionsHtml){e.add(this.instructionsHtml)}},_validateParam:function(e,t){if(this.controlClass){var a=window[this.controlClass];if(a&&a._params&&!a._params[e]){IUCommon.showWarning("Parameter '"+e+"' specified in addParam method either doesn't exist or isn't allowed during control initialization.",2)}}return true},_validateParams:function(){},_getEventSignature:function(e){if(e=="InitComplete"||e=="FullPageLoad"){return{params:"",returns:false}}else{return null}},_createExpandoMethods:function(){var e=document.getElementById(this.id);var t=new Array;for(propName in e){var a=propName.charAt(0);if(a==a.toUpperCase()){t.push(propName)}}var r=function(e,t){e["set"+t]=function(e,a){this[t](e)=a};e["get"+t]=function(e){return this[t](e)}};var n=function(e,t){e["set"+t]=function(e){this[t]=e};e["get"+t]=function(){return this[t]}};for(i=0;i<t.length;i++){if(typeof e[t[i]]=="unknown"){r(e,t[i])}else{n(e,t[i])}}},_getObjectHtml:function(){if(this.fullPageLoadListenerName){this.addEventListener("FullPageLoad",this.fullPageLoadListenerName)}var e=this;var t=IUCommon.browser.isWinIE&&this.activeXControlEnabled&&!IUCommon.browser.isIE64;var a=new IUCommon.StringBuilder;var i=null;if(t||this._events["FullPageLoad"]){i="__"+this.id+"_InitComplete";var r="__"+this.id+"_pageLoaded";var n="__"+this.id+"_controlLoaded";var s="__fire_"+this.id+"_fullPageLoad";window[i]=function(){if(t){IUCommon.createDelegate(e,e._createExpandoMethods)()}if(e._events["FullPageLoad"]){window[n]=true;window[s]()}};this.addEventListener("InitComplete",i);if(this._events["FullPageLoad"]){window[r]=!!window[r];window[n]=false;var o=this._events["FullPageLoad"].slice(0);window[s]=function(e){return function(){if(window[r]&&window[n]){for(var t=0;t<e.length;t++){var a=e[t];if(typeof a==="function"){a()}else{window[a]()}}}}}(o);var d=function(){window[r]=true;window[s]()};if(IUCommon.browser.isWinIE&&!!window["attachEvent"]){window.attachEvent("onload",d)}else{var l=window.addEventListener?window:document.addEventListener?document:null;if(l)l.addEventListener("load",d,false)}}}if(t){var c=this.activeXControlVersion.replace(/\./g,",");var h=this.activeXControlCodeBase+(c==""?"":"#version="+c);if(IUCommon.debugLevel>1&&!IUCommon.checkIfFileExists(h)){IUCommon.showWarning('Image Uploader arhive not found.\nPlease ensure "ActiveXControlCodeBase" property is correct.',1)}var p=this._events;for(var m in p){if(!p.hasOwnProperty||p.hasOwnProperty(m)){if(m=="FullPageLoad"){continue}var u=this._getEventSignature(m);a.add("<"+'script for="'+this.id+'" event="'+m+"("+u.params+')" type="text/javascript">');a.add("var result, result1;");for(var f=0;f<this._events[m].length;f++){a.add("result1 = "+this._events[m][f]+"("+u.params+");");if(m=="BeforeUpload"||m=="PackageComplete"){a.add("result = (result1 === false || result1 === 0 || result === false) ? false : result1;")}else{if(u.returns&&f==this._events[m].length-1){a.add("result = result1;")}}}a.add("return result;");a.addScriptEnd()}}a.add('<object id="'+this.id+'" name="'+this.id+'" classid="clsid:'+this.activeXClassId+'" codebase="'+h+'" width="'+this.width+'" height="'+this.height+'">');this._addInstructionsHtml(a);this._addObjectParamsHtml(a);a.add("</object>")}else if(this.javaAppletEnabled){var g=true;if(IUCommon.debugLevel>1){var v=this.javaAppletCodeBase;if(v.lastIndexOf("/")==v.length-1&&this.javaAppletJarFileName.indexOf("/")==0)v=v.slice(0,v.length-1);else if(v.lastIndexOf("/")!=v.length-1&&this.javaAppletJarFileName.indexOf("/")!=0)v+="/";v+=this.javaAppletJarFileName;g=IUCommon.checkIfFileExists(v)}if(!g&&(this.javaAppletJarFileName.indexOf("/")==0||this.javaAppletJarFileName.indexOf("://")>0)){g=IUCommon.checkIfFileExists(this.javaAppletJarFileName)}if(!g){IUCommon.showWarning('Image uploader arhive not found.\nPlease ensure "JavaAppletCodeBase", "JavaAppletJarFileName" properties are correct.',1)}if(IUCommon.browser.isWinIE){a.add('<object id="'+this.id+'" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"');if(!IUCommon.browser.isIE64){a.add(' codebase="'+window.location.protocol+'//java.sun.com/update/1.7.0/jinstall-7u4-windows-i586.cab#Version=1,5,0,0"')}a.add(' width="'+this.width+'" height="'+this.height+'">');if(this.installJavaIEInstructions){a.add(this.installJavaIEInstructions)}}else{a.add('<applet id="'+this.id+'" code="'+this.javaAppletClassName+'" java_codebase="'+this.javaAppletCodeBase+'" align="baseline" archive="'+this.javaAppletJarFileName+'" mayscript="true" scriptable="true" width="'+this.width+'" height="'+this.height+'">')}if(this.javaAppletCached&&this.javaAppletVersion!=""){a.add(this._getObjectParamHtml("cache_archive",this.javaAppletJarFileName));var c=this.javaAppletVersion.replace(/\,/g,".");a.add(this._getObjectParamHtml("cache_version",c))}a.add(this._getObjectParamHtml("id",this.id));a.add(this._getObjectParamHtml("type","application/x-java-applet;version=1.5"));a.add(this._getObjectParamHtml("codebase",this.javaAppletCodeBase));a.add(this._getObjectParamHtml("archive",this.javaAppletJarFileName));a.add(this._getObjectParamHtml("code",this.javaAppletClassName));a.add(this._getObjectParamHtml("scriptable","true"));a.add(this._getObjectParamHtml("mayscript","true"));this._addObjectParamsHtml(a);this._addObjectEventsHtml(a);if(IUCommon.browser.isWinIE){a.add("</object>")}else{a.add("</applet>")}var p=this._events;for(var m in p){if(!p.hasOwnProperty||p.hasOwnProperty(m)){if(m=="FullPageLoad"){continue}if(p[m].length>1){var u=this._getEventSignature(m);var I=p[m].slice(0);window[this._getListenerName(m)]=function(e,t,a){return function(){var i,r,n=[];for(var s=0,o=e.length;s<o;s++){var d=e[s];r=window[d].apply(window,arguments);if(a==="BeforeUpload"||a==="PackageComplete"){i=r===false||r===0||i===false?false:r}else if(t.returns&&s==o-1){i=r}}return i}}(I,u,m)}}}}else{a.add(this.browserNotSupported)}if(i){this.removeEventListener("InitComplete",i)}if(this.fullPageLoadListenerName){this.removeEventListener("FullPageLoad",this.fullPageLoadListenerName)}this.controlType=this.getControlType();return a.toString()},addParam:function(e,t){if(IUCommon.debugLevel>0&&!this._validateParam(e,t)){return}if(this._params[e]==undefined){this._params[e]=t}else{IUCommon.showWarning('You have called more then one time addParam method for "'+e+'" parameter.',2)}},getParam:function(e){return this._params[e]},removeParam:function(e){delete this._params[e]},addEventListener:function(e,t){var a=this._getEventSignature(e);if(a==null){IUCommon.showWarning('Event "'+e+"\" passed to addEventListener method isn't supported by object.",1);return}if(typeof t!="string"&&typeof t!="function"){IUCommon.showWarning("listener argument passed to addEventListener method should have function or string type (function reference or function name).",1);return}var i;var r;if(typeof t=="string"){i=window[t];if(typeof i!="function"){IUCommon.showWarning('Function "'+t+"\" passed to addEventListener method doesn't exist.",1);return}r=t}else{i=t;this._autoCallback=this._autoCallback+1;r=this.id+"_AutoCallback"+this._autoCallback;window[r]=i}if(arguments[2]==undefined){var n=a.params;var s=n.indexOf(",")==-1?n==""?0:1:n.split(",").length;if(i.length!=s){IUCommon.showWarning("Function "+(typeof t=="string"?'"'+t+'"':"")+"passed to addEventListener method has a wrong number of parameters. For "+e+" event it should have function("+n+") signature.",1);return}}if(this._events[e]==undefined){var o=new Array;this._events[e]=o}else{o=this._events[e]}o.push(r)},removeEventListener:function(e,t){if(typeof t!="function"&&typeof t!="string"){return}var a=this._events[e];if(a){for(var i=0;i<a.length;i++){if(typeof t=="string"&&a[i]==t||window[a[i]]==t){a.splice(i,1);return}}}},addExtender:function(e){this._extenders.push(e)},getActiveXInstalled:function(){if(this.activeXProgId){try{var e=new ActiveXObject(this.activeXProgId);return true}catch(t){return false}}return false},getActiveXInstalledToUpdate:function(){if(this.activeXProgId){try{var e=new ActiveXObject(this.activeXProgId);var t=e.Version.split(",");var a=this.activeXControlVersion.split(",");for(var i=0;i<4;i++){if(parseInt(t[i])<parseInt(a[i])){return true}}}catch(r){}}return false},getHtml:function(){if(this._getHtmlCalled){IUCommon.showWarning("You can call getHtml/writeHtml method of writer object only once.",1);return""}this._getHtmlCalled=true;if(IUCommon.debugLevel>0){this._validateParams()}for(var e=0;e<this._extenders.length;e++){this._extenders[e]._beforeRender()}var t=new IUCommon.StringBuilder;for(var e=0;e<this._extenders.length;e++){t.add(this._extenders[e]._getBeforeHtml())}t.add(this._getObjectHtml());for(var e=0;e<this._extenders.length;e++){t.add(this._extenders[e]._getAfterHtml())}return t.toString()},getControlType:function(){return IUCommon.browser.isWinIE&&this.activeXControlEnabled&&!IUCommon.browser.isIE64?"ActiveX":this.javaAppletEnabled?"Java":"None"},writeHtml:function(){document.write(this.getHtml())}};function BaseIUWriter(e,t,a){BaseWriter.call(this,e,t,a);this.activeXControlCodeBase="ImageUploader6.cab";this.javaAppletJarFileName="ImageUploader6.jar"}BaseIUWriter.prototype=new BaseWriter;BaseIUWriter.prototype.constructor=BaseIUWriter;function ImageUploaderWriter(e,t,a){BaseIUWriter.call(this,e,t,a);this.showNonemptyResponse="off";this.activeXClassId="83A4D5A6-E2C1-4EDD-AD48-1A1C50BD06EF";this.activeXProgId="Aurigma.ImageUploader.6";this.javaAppletClassName="com.aurigma.imageuploader.ImageUploader.class";this.controlClass="ImageUploader";this._v6ClassId=this.activeXClassId;this._v6JarFileName=this.javaAppletJarFileName;var i=new FileAccessExtender(this)}ImageUploaderWriter.prototype=new BaseIUWriter;ImageUploaderWriter.prototype.constructor=ImageUploaderWriter;ImageUploaderWriter.prototype._validateParam=function(e,t){var a=BaseWriter.prototype._validateParam.call(this,e,t);if(!a){return}switch(e){case"LicenseKey":if(this.getParam("LicenseKey")!=undefined){IUCommon.showWarning('You should call addParam("LicenseKey", "...") method '+"only once. If you need to add mupltiple license keys you should specify "+'them separated with semicolons: addParam("LicenseKey", "key1;key2"). ',1);return false}break}return true};ImageUploaderWriter.prototype._validateParams=function(){BaseWriter.prototype._validateParams.call(this);var e=location.hostname=="localhost";if(e){var t=this.getParam("Action");if(t&&(t.indexOf("http://")==0||t.indexOf("https://")==0)){var a=t.substring(t.indexOf("//")+2);if(a!="localhost"&&a.indexOf("localhost:")!=0&&a.indexOf("localhost/")!=0){e=false}}}if(!e){var i=this.getParam("LicenseKey");if(i==undefined||i==""){IUCommon.showWarning('You should specify at least one license key using addParam("LicenseKey", "...") method in JavaScript or LicenseKey property in ASP.NET/PHP. Otherwise, upload will not work.',1);return}if(this._v6ClassId!=this.activeXClassId||this._v6JarFileName!=this.javaAppletJarFileName){return}var r=new String(i).split(";");var n={};for(var s=0;s<r.length;s++){n[r[s].replace(/^\s+|\s+$/g,"").substr(0,4)]=1}var o=this.activeXControlEnabled&&n["7106"]==undefined;var d=this.javaAppletEnabled&&n["7206"]==undefined;if(o&&d){IUCommon.showWarning("You have enabled ActiveX and Java versions, but haven't specified version 6.x license key for them.",1)}else{if(o){IUCommon.showWarning("You have enabled ActiveX version, but haven't specified version 6.x license key for it. "+"You should either add license key or disable it using activeXControlEnabled = false syntax.",1)}if(d){IUCommon.showWarning("You have enabled Java version, but haven't specified version 6.x license key for it. "+"You should either add license key or disable it using javaAppletEnabled = false syntax.",1)}}}};ImageUploaderWriter.prototype._getEventSignature=function(e){var t="";switch(e){case"Progress":t="Status, Progress, ValueMax, Value, StatusText";break;case"InnerComplete":t="Status, StatusText";break;case"AfterUpload":t="Html";break;case"ViewChange":case"SortModeChange":t="Pane";break;case"Error":t="ErrorCode, HttpResponseCode, ErrorPage, AdditionalInfo";break;case"PackageBeforeUpload":t="PackageIndex";break;case"PackageError":t="PackageIndex, ErrorCode, HttpResponseCode, ErrorPage, AdditionalInfo";break;case"PackageComplete":t="PackageIndex, ResponsePage";break;case"PackageProgress":t="PackageIndex, Status, Progress, ValueMax, Value, StatusText";break;case"BeforeUpload":case"FolderChange":case"InitComplete":case"PaneResize":case"SelectionChange":case"UploadFileCountChange":t="";break;default:return BaseWriter.prototype._getEventSignature.call(this,e)}return{params:t,returns:e=="BeforeUpload"||e=="PackageComplete"}};ImageUploaderWriter.prototype._createExpandoMethods=function(){BaseWriter.prototype._createExpandoMethods.call(this);var e=document.getElementById(this.id);e.setPaneItemDesign=function(e,t,a){this.PaneItemDesign(e,t)=a};e.getPaneItemDesign=function(e,t){return this.PaneItemDesign(e,t)};e.setPaneItemChecked=function(e,t,a){this.PaneItemChecked(e,t)=a};e.getPaneItemChecked=function(e,t){return this.PaneItemChecked(e,t)};e.getPaneItemSelected=function(e,t){return this.PaneItemSelected(e,t)};e.setPaneItemEnabled=function(e,t,a){this.PaneItemEnabled(e,t)=a};e.getPaneItemEnabled=function(e,t){return this.PaneItemEnabled(e,t)}},ImageUploaderWriter.prototype._getObjectHtml=function(){if(this.showNonemptyResponse&&typeof this.showNonemptyResponse.toLowerCase==="function"){var e="__"+this.id+"_InnerComplete";if(this.showNonemptyResponse.toLowerCase()=="dump"){window[e]=function(e,t){if((t+"").replace(/\s*/g,"")!=""){var a=document.createElement("fieldset");var i=a.appendChild(document.createElement("legend"));i.appendChild(document.createTextNode("Server Response"));var r=a.appendChild(document.createElement("div"));r.innerHTML=t;var n=a.appendChild(document.createElement("button"));n.appendChild(document.createTextNode("Clear Server Response"));n.onclick=function(){var e=this.parentNode;e.parentNode.removeChild(e)};document.body.appendChild(a)}};this.addEventListener("InnerComplete",e)}else if(this.showNonemptyResponse.toLowerCase()=="alert"){window[e]=function(e,t){if((t+"").replace(/\s*/g,"")!=""){var a="";for(var i=0;i<80;i++){a+="-"}alert(a+"\n\rServer Response\n\r"+a+"\n\r"+t)}};this.addEventListener("InnerComplete",e)}}return BaseIUWriter.prototype._getObjectHtml.call(this)};function ThumbnailWriter(e,t,a){BaseIUWriter.call(this,e,t,a);this.activeXClassId="94AB719E-1300-4098-8C18-B2A765327D15";this.activeXProgId="Aurigma.Thumbnail.6";this.javaAppletClassName="com.aurigma.imageuploader.Thumbnail.class";this.controlClass="Thumbnail"}ThumbnailWriter.prototype=new BaseIUWriter;ThumbnailWriter.prototype.constructor=ThumbnailWriter;function ShellComboBoxWriter(e,t,a){BaseIUWriter.call(this,e,t,a);this.activeXClassId="BA6272FD-A7AD-4498-9476-552040B7EDD4";this.activeXProgId="Aurigma.ShellCombo.6";this.javaAppletClassName="com.aurigma.imageuploader.ShellComboBox.class";this.controlClass="ShellComboBox"}ShellComboBoxWriter.prototype=new BaseIUWriter;ShellComboBoxWriter.prototype.constructor=ShellComboBoxWriter;function UploadPaneWriter(e,t,a){BaseIUWriter.call(this,e,t,a);this.activeXClassId="BF357E76-2001-47F1-8057-46DEE9627DFD";this.activeXProgId="Aurigma.UploadPane.6";this.javaAppletClassName="com.aurigma.imageuploader.UploadPane.class";this.controlClass="UploadPane"}UploadPaneWriter.prototype=new BaseIUWriter;UploadPaneWriter.prototype.constructor=UploadPaneWriter;function FileDownloaderWriter(e,t,a){BaseWriter.call(this,e,t,a);this.activeXControlCodeBase="FileDownloader2.cab";this.activeXClassId="AAB58191-AFBE-4366-93FD-1E45F7C97FA0";this.activeXProgId="Aurigma.FileDownloader.2";this.javaAppletEnabled=false;this.controlClass="FileDownloader"}FileDownloaderWriter.prototype=new BaseWriter;FileDownloaderWriter.prototype.constructor=FileDownloaderWriter;FileDownloaderWriter.prototype._getEventSignature=function(e){var t="";switch(e){case"DownloadComplete":t="Value";break;case"DownloadItemComplete":t="Result, ErrorPage, Url, FileName, ContentType, FileSize";break;case"DownloadStep":t="Step";break;case"Progress":t="PercentTotal, PercentCurrent, Index";break;case"Error":t="ErrorCode, HttpErrorCode, ErrorPage, Url, Index";break;case"DownloadFileCountChange":t="";break;default:return BaseWriter.prototype._getEventSignature.call(this,e)}return{params:t,returns:false}};function VideoUploaderWriter(e,t,a){BaseWriter.call(this,e,t,a);this.activeXControlCodeBase="VideoUploader.cab";this.activeXClassId="C4773A66-74A6-4AC9-8934-3BD5F9F4B5AA";this.activeXProgId="Aurigma.VideoUploader.1";this.javaAppletEnabled=false;this.controlClass="VideoUploader"}VideoUploaderWriter.prototype=new BaseWriter;VideoUploaderWriter.prototype.constructor=VideoUploaderWriter;VideoUploaderWriter.prototype._validateParam=function(e,t){var a=BaseWriter.prototype._validateParam.call(this,e,t);if(!a){return}switch(e){case"LicenseKey":if(this.getParam("LicenseKey")!=undefined){IUCommon.showWarning('You should call addParam("LicenseKey", "...") method '+"only once. If you need to add mupltiple license keys you should specify "+'them separated with semicolons: addParam("LicenseKey", "key1;key2"). ',1);return false}break}return true};VideoUploaderWriter.prototype._validateParams=function(){BaseWriter.prototype._validateParams.call(this);var e=location.hostname=="localhost";if(e){var t=this.getParam("Action");if(t&&(t.indexOf("http://")==0||t.indexOf("https://")==0)){var a=t.substring(t.indexOf("//")+2);if(a!="localhost"&&a.indexOf("localhost:")!=0&&a.indexOf("localhost/")!=0){e=false}}}if(!e){var i=this.getParam("LicenseKey");if(i==undefined||i==""){IUCommon.showWarning('You should specify at least one license key using addParam("LicenseKey", "...") method in JavaScript. Otherwise, upload will not work.',1);return}}};VideoUploaderWriter.prototype._createExpandoMethods=function(){BaseWriter.prototype._createExpandoMethods.call(this);var e=document.getElementById(this.id);e.setPaneItemDesign=function(e,t,a){this.PaneItemDesign(e,t)=a};e.getPaneItemDesign=function(e,t){return this.PaneItemDesign(e,t)};e.setPaneItemChecked=function(e,t,a){this.PaneItemChecked(e,t)=a};e.getPaneItemChecked=function(e,t){return this.PaneItemChecked(e,t)};e.getPaneItemSelected=function(e,t){return this.PaneItemSelected(e,t)};e.setPaneItemEnabled=function(e,t,a){this.PaneItemEnabled(e,t)=a};e.getPaneItemEnabled=function(e,t){return this.PaneItemEnabled(e,t)}};VideoUploaderWriter.prototype._getEventSignature=function(e){var t="";switch(e){case"Progress":t="Status, Progress, ValueMax, Value, StatusText";break;case"InnerComplete":t="Status, StatusText";break;case"AfterUpload":t="Html";break;case"ViewChange":case"SortModeChange":t="Pane";break;case"Error":t="ErrorCode, HttpResponseCode, ErrorPage, AdditionalInfo";break;case"PackageBeforeUpload":t="PackageIndex";break;case"PackageError":t="PackageIndex, ErrorCode, HttpResponseCode, ErrorPage, AdditionalInfo";break;case"PackageComplete":t="PackageIndex, ResponsePage";break;case"PackageProgress":t="PackageIndex, Status, Progress, ValueMax, Value, StatusText";break;case"BeforeUpload":case"FolderChange":case"InitComplete":case"PaneResize":case"SelectionChange":case"UploadFileCountChange":t="";break;default:return BaseWriter.prototype._getEventSignature.call(this,e)}return{params:t,returns:e=="BeforeUpload"||e=="PackageComplete"}};function BaseExtender(e){if(e!=undefined){this._writer=e;this._writer.addExtender(this)}}BaseExtender.prototype={_beforeRender:function(){},_getBeforeHtml:function(){},_getAfterHtml:function(){}};function FileAccessExtender(e){BaseExtender.call(this,e);if(e==undefined){return}this._compatible=true;var t=function(){var t=document.getElementById(e.id+"-overlay");if(!document.getElementById(e.id).isFileAccessGranted())t.style.visibility="visible";else t.style.visibility="hidden"};var a=function(){if(IUCommon.browser.isMac&&IUCommon.browser.isSafari)setTimeout(t,1e3)};this._writer.addEventListener("InitComplete",a)}FileAccessExtender.prototype=new BaseExtender;FileAccessExtender.prototype.constructor=FileAccessExtender;FileAccessExtender.prototype._getBeforeHtml=function(){if(IUCommon.browser.isMac&&IUCommon.browser.isSafari){var e=new IUCommon.StringBuilder;e.add("<div id='"+this._writer.id+"-checker'>");return e.toString()}};FileAccessExtender.prototype._getAfterHtml=function(){if(IUCommon.browser.isMac&&IUCommon.browser.isSafari){var e=new IUCommon.StringBuilder;e.add("</div>");e.add('<div id="'+this._writer.id+'-overlay" style="visibility:hidden;position:absolute;left:0px;top:0px;width:100%;height:100%;text-align:left;z-index:1000;font-family: Tahoma, Verdana, Arial, Calibri, Sans-Serif; font-size: 13px;">');e.add('<div style="width:410px;margin:200px auto;background-color:#f7f7f7;border:1px solid #aaa;padding:15px;text-align:left;box-shadow: 0 0 10px rgba(0,0,0,0.5)">');e.add("<p>The browser does not allow Image Uploader to access the local file system. To enable the access perform the following steps:</p>");e.add("<ul>");e.add('<li style="margin-top:10px">Go to <b>Safari</b>→<b>Preferences</b>, choose the <b>Security</b> tab, and click <b>Manage Website Settings</b>.</li>');e.add('<li style="margin-top:10px">Select <b>Java</b> in the left column, click on the dropdown box next to the appropriate website, and choose <b>Run in Unsafe Mode</b>.</li>');e.add("</ul>");e.add('<p style="text-align:center"><button style="width:60px;height:21px;font-size:13px;!important" type="button" onclick="');e.add("var code = document.getElementById('"+this._writer.id+"-checker').innerHTML;");e.add("document.getElementById('"+this._writer.id+"-checker').innerHTML = '';");e.add("document.getElementById('"+this._writer.id+"-checker').innerHTML = code;");e.add("document.getElementById('"+this._writer.id+"-overlay').style.visibility = 'hidden';");e.add('">Retry</button></p>');e.add("</div>");e.add("</div>");return e.toString()}};function getControlObject(e){if(IUCommon.browser.isSafari){return document[e]}else{return document.getElementById(e)}}function getImageUploader(e){return getControlObject(e)}function getFileDownloader(e){return getControlObject(e)}function getVideoUploader(e){return getControlObject(e)}
//# sourceMappingURL=iuembed.map.js