!function(window){var_cb=function(){varself=this;if(this.baseurl=baseurl,this.imageurl="",this.page=this.baseurl+"/ajax.php",this.loading_img="<img allign='center' style='vertical-align:middle' src='"+imageurl+"/ajax-loader-big.gif'>",this.loading=this.loading_img+" Loading...",this.download=0,this.total_size=0,this.cur_speed=0,this.status_refesh=1,this.result_page=this.baseurl+"/actions/file_results.php",this.download_page=this.baseurl+"/actions/file_downloader.php",this.count=0,this.hasLoaded=!1,this.perc_download=0,this.force_stop=!1,this.remoteObjID="",this.current_menu="",this.normal_player_html="",this.hq_player_html="",this.has_hq_function=!1,this.collectionID=!1,this.keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.ua=navigator.userAgent.toLowerCase(),this.ua.indexOf(" chrome/")>=0||this.ua.indexOf(" firefox/")>=0||this.ua.indexOf(" gecko/")>=0)varStringMaker=function(){this.str="",this.length=0,this.append=function(a){this.str+=a,this.length+=a.length},this.prepend=function(a){this.str=a+this.str,this.length+=a.length},this.toString=function(){returnthis.str}};elsevarStringMaker=function(){this.parts=[],this.length=0,this.append=function(a){this.parts.push(a),this.length+=a.length},this.prepend=function(a){this.parts.unshift(a),this.length+=a.length},this.toString=function(){returnthis.parts.join("")}};this.setRemoteId=function(){this.remoteObjID=this.randomString()},this.Confirm_Delete=function(a){confirm("Are you sure you want to delete")&&(document.location=a)},this.Confirm_Uninstall=function(a){confirm("Are you sure you want to uninstall this plugin ?")&&(document.location=a)},this.confirm_it=function(a){return!!confirm(a)},this.reloadImage=function(a,b){img=document.getElementById(b),img.src=a+"?"+Math.random()},this.validate_category_form=function(thisform){varself=this;with(thisform){if(0==validate_required(title,"Title must be filled out!"))returntitle.focus(),!1;if(0==validate_required(description,"Description must be filled out!"))returndescription.focus(),!1}},this.validate_ad_form=function(thisform){varself=this;with(thisform){if(0==validate_required(name,"Name must be filled out!"))returnname.focus(),!1;if(0==validate_required(type,"Type must be filled out!"))returntype.focus(),!1;if(0==validate_required(syntax,"Syntax Must Be Filled Out"))returnsyntax.focus(),!1;if(0==validate_required(code,"Code Must Be Filled Out"))returncode.focus(),!1}},this.randomString=function(){for(varb="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",c=8,d="",e=0;e<c;e++){varf=Math.floor(Math.random()*b.length);d+=b.substring(f,f+1)}returnd},this.check_remote_url=function(){vara=this,b=$("#remote_file_url").val(),c=$("#ytUploadBttn"),d=$("#remoteUploadBttn"),e=$("#remoteUploadBttnStop");if(this.force_stop=!1,b.match(/^e.g/)||void0===b||0===b.length)return$("#error_msgs").html('<div class="alert alert-danger" role="alert">Given URL is invalid!</div>'),!1;varf=function(a){void0!==a?(d.attr("disabled","disabled"),c.attr("disabled","disabled")):($(".downloadStatusContainer").removeClass("hidden"),d.attr("disabled","disabled").hide(),c.attr("disabled","disabled"),e.show())},g=function(a){void0!==a?(e.removeAttr("disabled").hide(),c.removeAttr("disabled"),d.removeAttr("disabled").show()):($(".downloadStatusContainer").addClass("hidden"),e.removeAttr("disabled").hide(),c.removeAttr("disabled"),d.removeAttr("disabled").show())};f();varh=$.ajax({url:a.download_page,type:"POST",data:{file:b,file_name:file_name},dataType:"JSON",beforeSend:function(){a.remoteUploadStatusUpdate();varc=a.getName(b);$("#loading").html("Downloading"),$("#remoteFileName").replaceWith('"'+c+'"')},success:function(b){if(a.force_stop=!0,b.error)returna.force_stop=!0,g(),$("#error_msgs").html('<div class="alert alert-danger" role="alert"> File Type Not Allowed!</div>'),!1;g(),$("#loading").html("");varc=b.vid;$.post(a.baseurl+"/actions/getVideoDetails.php",{file_name:file_name,vid:c},function(a){varb=$("#updateVideoInfoForm").clone();$(b).find("input[name=title]").val(a.title),$(b).fin