/*js_spswipe,essentialdl,progpage_js_2016,progscrpop,popups2,progchkhash,disqus_lazy_sw*/SP_DICT={"cookiewarn1":"This site uses cookies to offer you a complete experience.","findoutmore":"Find out more","or":"or","close":"close","cookiewarn2":"this notification permanently","showmore":"show more","showless":"show less","show":"Show","hide":"Hide","addfilter":"add filter","addremovefilters":"add/remove filters","addedbrtobasket":"ADDED to the basket","buynow":"buy now","free":"free","download":"download","filesize":"File size","dlbaskethist":"Download basket history","dlbasketnow":"Current download basket","nowindlbasket":"Now in your basket","emptydlbasket":"Empty download basket?","clearhistory":"Clear history?","confirmation":"Confirmation","basketisempty":"Basket is empty","emptywatchlist":"Empty watchlist?","wlisempty":"Watchlist is empty.","notice":"Notice","yourwatchlist":"Your watchlist","discandgiveaways":"Discounts & Giveaways","contactus":"Contact Us","theteam":"The Team","users":"users","gethelp":"Get Help","rssfeeds":"RSS Feeds","advertisers":"advertisers","inquiries":"Inquiries","legal":"legal","privacypolicy":"Privacy policy","termsofuse":"Terms of Use","copyrightinfo":"Copyright Information","any":"Any","toomany":"Too many","keywords":"Keywords","yes":"Yes","no":"No","ok":"OK","your email":"your email","password":"password","login":"login","cancel":"cancel","sellinksandsend":"Please select the links you wish to report and press SEND ","msgsentthanks":"Message sent. Thank you!","yourmessage":"Your message...","send":"send","toomanyresults":"Too many results","results":"results","startcomp":"start comparison","nocontactsp":"Could not contact softpedia.com !","badresponse":"Bad response.","enabled":"Enabled","disabled":"Disabled","arrowkeysnav":"Use arrow keys to navigate","photocredits":"Photo credits","readmore":"Read more","selatleastone":"Please select at least one.","malformedmail":"Malformed email address.","backtoapppage":"BACK TO THE APPLICATION PAGE"};function watchlist_op(cmd,id,tok)
{var csrftok="_";if(typeof window.spcsrf!="undefined")csrftok=window.spcsrf;$.post("/_xaja/watchlist.php",{"csrftok":csrftok,"id":id,"t":cmd,"tok":tok},function(data){if(typeof data.r=="undefined")return;if(data.r>9)spovl4notice("Notice",data.txt);},"json");}
function watchlist_uiadd(id,utok)
{var token=utok||"";var csrftok="";if(typeof window.spcsrf!="undefined")csrftok=window.spcsrf;$("._wat i").removeClass("fa-crosshairs").addClass("fa-spinner").addClass("fa-spin");$.post("/_xaja/watchlist.php",{"csrftok":csrftok,"id":id,"t":1,"tok":token},function(data){if(typeof data.r=="undefined")return;$("._wat").removeClass('btn2watch').html(data.txt);},"json");}
function watchlist_rendertxt(oo,tok,iseditable)
{var ratingtxt,ratingalt='Not rated';var ispaid=false;if(oo.price!='free')if(oo.price>0)ispaid=true;ratingtxt='';if(oo.rating>0){ratingalt=numberfmt(oo.rating,1)+'/5';ratingtxt=' ';}
var sico,sitxt;switch(oo.section){case'windows':sico='fa-windows';sitxt='Windows';break;case'mac':sico='fa-apple';sitxt='Mac OS';break;case'linux':sico='fa-linux';sitxt='Linux';break;case'handheld':sico='fa-mobile icon-larger';sitxt='Handheld';break;case'drivers':sico='fa-cog';sitxt='Drivers';break;case'games':sico='fa-gamepad';sitxt='Games';break;case'webscripts':sico='fa-cloud';sitxt='Scripts';break;case'mapps':sico='fa-tablet';sitxt='Mobile apps';break;default:sico='fa-minus';sitxt='Unknown section: \''+oo.section+'\'';break;}
if(oo.plat_id!=undefined){switch(parseInt(oo.plat_id)){case 1:sico='fa-apple';sitxt='iOS apps';break;case 2:sico='fa-android';sitxt='Android apps';break;case 3:sico='fa-windows';sitxt='Windows Phone apps';break;}}
var otxt='
';var paidtxt,paidcol='3f8000';paidtxt='free';if(ispaid){paidcol='cc3333';paidtxt='paid';}
if(iseditable)otxt+='
';var gradnum=Math.floor(Math.random()*5)+1;otxt+='
';if(oo.picurl!=undefined)if(oo.picurl.length>1){if(oo.section=='mapps')otxt+='
';else otxt+='
';}
otxt+='
'+oo.label+' ';otxt+='
'+paidtxt+' ';otxt+='
';otxt+='
';otxt+='
'+oo.name+' ';otxt+='
'+oo.ver+' ';if(oo.filesize!='0 B')otxt+='
File size: '+oo.filesize+' ';otxt+='
'+oo.ts+' ';otxt+='
'+oo.desc+'
';otxt+='
';otxt+='
';return otxt;}
function watchlist_list(utok)
{var tok=utok||"";$(".trashbtn1").hide();$("#bskrez").html('');var spntxt='Your watchlist ';$("#bsktitle").html(spntxt);$(".trashbtn1").attr("onclick","spovl4confirm('Confirmation', 'Empty watchlist?', function() { watchlist_askclearall('"+tok+"'); })");$.post("/_xaja/watchlist.php",{"id":0,"t":0,"tok":tok},function(data){$("#bsktitle").html("Your watchlist");if(data.r==undefined)return;if(data.r>9)spovl4notice("Notice",data.txt);$("#bskrez").html("");var i;$(".dlbappnum span").html(data.num);if(data.num==1)$(".dlbappnum i").html('');else $(".dlbappnum i").html('s');if(data.num==0){$("#bskrez").append("Watchlist is empty.
");return;}else $(".trashbtn1").show();$("#bskrez").append('
');for(i=0;i
');}
$('img').unveil();},"json");}
function watchlist_list_pub(utok)
{var tok=utok||"";$("#bskrez").html('');if(tok.length>1)window.wltoken=tok;else if(typeof window.wltoken!="undefined")tok=window.wltoken;$.post("/_xaja/watchlist.php",{"id":0,"t":0,"tok":tok},function(data){if(typeof data.r=="undefined")return;if(data.r>9)spovl4notice("Notice",data.txt);$(".dlbappnum span").html(data.num);if(data.num==1)$(".dlbappnum i").html('');else $(".dlbappnum i").html('s');if(data.num==0){$("#bskrez").append("Watchlist is empty.
");return;}else $(".trashbtn1").show();$("#bskrez").append('
');for(i=0;i
');}
$('img').unveil();},"json");}
function watchlist_sort(obj,n)
{if($(obj).hasClass("sorter-on"))return;$(".filters .sorter-on").removeClass("sorter-on").addClass("mgtop_20");$(obj).addClass("sorter-on").removeClass("mgtop_20");sp_setcookie("sp_wls",n,365);watchlist_list();}
function watchlist_sort_pub(obj,n)
{if($(obj).hasClass("sorter-on"))return;$(".filters .sorter-on").removeClass("sorter-on").addClass("mgtop_20");$(obj).addClass("sorter-on").removeClass("mgtop_20");sp_setcookie("sp_wls",n,365);watchlist_list_pub();}
function watchlist_askclearall(tok){watchlist_op(3,0,tok);watchlist_list(tok);}
function dlbasket_tinypop(txt,trg)
{return;var xofs,yofs;var ofs=$(trg).position();yofs=ofs.top;xofs=ofs.left;if(xofs>900)xofs=900;var tt;var tpop=''+txt+'
';$(trg).first().parent().append(tpop);tt=setTimeout(function(){$(trg).first().parent().find(".tinypop1").remove(".tinypop1");},1000);}
function dlbasket_op(cmd,id,refresh)
{$.post("/_xaja/dlbasket.php",{"id":id,"t":cmd},function(data){if(data.r==undefined)return;if(data.r>9)alert(data.txt);if(refresh!=0)window.location=window.location;},"json");}
function dlbasket_progop(cmd,id)
{var $oo=$("#_bsk");$oo.find("i").first().removeClass("uicon-upload2").addClass("fa").addClass("fa-spin").addClass("fa-spinner");$.post("/_xaja/dlbasket.php",{"id":id,"t":cmd},function(data){$oo.attr("onclick",'');if(data.rhtml!=undefined)$oo.html(data.rhtml);else $oo.find("i").first().removeClass("fa").removeClass("fa-spinner").removeClass("fa-spin").addClass("uicon-upload2");if(data.r==undefined){alert('undefined');return;}},"json");}
function dlbasket_progop2(cmd,id)
{var $oo=$(".addtobasket2");$oo.find(".uicon-upload2").first().removeClass("uicon-upload2").addClass("fa").addClass("fa-spin").addClass("fa-spinner");$.post("/_xaja/dlbasket.php",{"id":id,"t":cmd},function(data){$oo.attr("onclick",'');if(data.rhtml!=undefined)$oo.html(data.rhtml);else $oo.find(".uicon-upload2").first().removeClass("fa").removeClass("fa-spinner").removeClass("fa-spin").addClass("uicon-upload2");if(data.r==undefined){alert('undefined2');return;}},"post");}
function dlbasket_rendertxt(oo)
{var ratingtxt,ratingalt='Not rated';var ispaid=false;if(oo.price!='free')if(oo.price>0)ispaid=true;ratingtxt='';if(oo.rating>0){ratingalt=numberfmt(oo.rating,1)+'/5';ratingtxt=' ';}
var sico,sitxt;switch(oo.section){case'windows':sico='fa-windows';sitxt='Windows';break;case'mac':sico='fa-apple';sitxt='Mac OS';break;case'linux':sico='fa-linux';sitxt='Linux';break;case'handheld':sico='fa-mobile icon-larger';sitxt='Handheld';break;case'drivers':sico='fa-cog';sitxt='Drivers';break;case'games':sico='fa-gamepad';sitxt='Games';break;case'webscripts':sico='fa-cloud';sitxt='Scripts';break;case'mapps':sico='fa-tablet';sitxt='Mobile apps';break;default:sico='fa-minus';sitxt='Unknown section: \''+oo.section+'\'';break;}
if(oo.plat_id!=undefined){switch(parseInt(oo.plat_id)){case 1:sico='fa-apple';sitxt='iOS apps';break;case 2:sico='fa-android';sitxt='Android apps';break;case 3:sico='fa-windows';sitxt='Windows Phone apps';break;}}
var otxt='';var paidtxt,paidcol='3f8000';paidtxt='free';if(ispaid){paidcol='cc3333';paidtxt='paid';}
if(oo.hist){delop=6;}else delop=1;otxt+='
';otxt+='
';if(oo.picurl!=undefined)if(oo.picurl.length>1){if(oo.section=='mapps')otxt+='
';else otxt+='
';}
otxt+='
'+oo.label+' ';otxt+='
'+paidtxt+' ';otxt+='
';otxt+='
';otxt+='
'+oo.name+' ';otxt+='
'+oo.ver+' ';if(oo.filesize!='0 B')otxt+='
'+SP_Lang.Get("filesize")+": "+oo.filesize+' ';otxt+='
'+oo.ts+' ';otxt+='
'+oo.desc+'
';otxt+='
';return otxt;}
function dlbasket_list(ishist)
{var bcmd=4;if(ishist)bcmd=5;$(".trashbtn1").hide();$("#bskrez").html('');var spntxt=' ';if(ishist)spntxt=SP_Lang.Get("dlbaskethist")+' '+spntxt;else spntxt=SP_Lang.Get("nowindlbasket")+' '+spntxt;$("#bsktitle").html(spntxt);if(ishist){$(".trashbtn1").attr("onclick","spovl4confirm('"+SP_Lang.Get("confirmation")+"', '"+SP_Lang.Get("clearhistory")+"', dlbasket_clearhist)");}else $(".trashbtn1").attr("onclick","spovl4confirm('"+SP_Lang.Get("confirmation")+"', '"+SP_Lang.Get("emptydlbasket")+"', dlbasket_clearnow)");$.post("/_xaja/dlbasket.php",{"id":0,"t":bcmd},function(data){if(ishist)$("#bsktitle").html(SP_Lang.Get("dlbaskethist"));else $("#bsktitle").html(SP_Lang.Get("nowindlbasket"));if(data.r==undefined)return;if(data.r>9)alert(data.txt);$("#bskrez").html("");var i;$(".dlbappnum span").html(data.num);if(data.num==1)$(".dlbappnum i").html('');else $(".dlbappnum i").html('s');if(data.num==0){$("#bskrez").append(""+SP_Lang.Get("basketisempty")+"
");return;}else $(".trashbtn1").show();$("#bskrez").append('
');for(i=0;i
');}
$('img').unveil();},"json");}
function dlbasket_btnclick(ishist)
{var $oo=$(".arrow20r1");dlbasket_tinypop(' ',".arrow20r1");if(ishist){$oo.attr('href','javascript:dlbasket_btnclick(false)');$oo.html(' '+SP_Lang.Get("dlbasketnow"));dlbasket_list(true);}else{$oo.attr('href','javascript:dlbasket_btnclick(true)');$oo.html(' '+SP_Lang.Get("dlbaskethist"));dlbasket_list(false);}}
function dlbasket_addprog(progid)
{}
function dlbasket_clearnow(){dlbasket_op(2,0,0);dlbasket_btnclick(false);}
function dlbasket_clearhist(){dlbasket_op(7,0,0);dlbasket_btnclick(true);};
/*! BASED ON Swipebox v1.2.9 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
(function(window,document,$,undefined){$.swipebox=function(elem,options){var ui,defaults={useCSS:true,useSVG:false,initialIndexOnArray:0,closeBySwipe:true,vimeoColor:'CCCCCC',beforeOpen:null,afterOpen:null,afterClose:null,loopAtEnd:false},plugin=this,elements=[],$elem,selector=elem.selector,$selector=$(selector),isMobile=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),isTouch=isMobile!==null||document.createTouch!==undefined||('ontouchstart'in window)||('onmsgesturechange'in window)||navigator.msMaxTouchPoints||navigator.userAgent.toLowerCase().indexOf("touch")!=-1,winWidth=$('body').width();winHeight='100%';xHeight=window.innerHeight?window.innerHeight:$(window).height();window.aegal_xdsect=window.aegal_xdsect||'';window.slides_set=0;window.aegal_imgr=window.aegal_xdsect;window.aegal_prevented=false;window.swshowthumbs=true;window.thumbdivheight=86;window.thumbwidth=130;window.crtswIndex=0;window.crtswPage=0;window.oldswPage=-1;window.havethumbs=0;vscrolloffset=0;html="";if(typeof window.ads_skipped_due_policy==='undefined')
html+=""+"googletag.cmd.push(function() {"+"window.lght_slot_1 = googletag.defineSlot('/1004334/Softpedia/softpedia_lightbox_desktop', [300, 250], 'div-gpt-ad-1570625193936-0').addService(googletag.pubads());"+"window.lght_slot_2 = googletag.defineSlot('/1004334/Softpedia/softpedia_lightbox_desktop', [728, 90], 'div-gpt-ad-1570622250398-0').addService(googletag.pubads());"+"}); ";html+='CLOSE ';if(!isMobile){if(winWidth>=900){html+='
';if(typeof window.ads_skipped_due_policy==='undefined')html+="
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1570625193936-0'); if(googletag.pubads().isInitialLoadDisabled() === true) googletag.pubads().refresh([window.lght_slot_1]); });
";html+='
';if(window.aegal_xdsect=='apk')html+='
';else if(typeof spjs_news_id!="undefined")html+='
';else if(typeof spjs_prog_id!="undefined")html+='
';}}
html+='
';html+='
';if(!isMobile)html+='
';html+='
';if(!isMobile)html+='
'+SP_Lang.Get("arrowkeysnav")+' ';html+='
';if(typeof window.ads_skipped_due_policy==='undefined')html+="
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1570622250398-0'); if(googletag.pubads().isInitialLoadDisabled() === true) googletag.pubads().refresh([window.lght_slot_2]); });
";plugin.settings={};$.swipebox.close=function(){ui.closeSlide();};$.swipebox.extend=function(){return ui;}
plugin.init=function(){plugin.settings=$.extend({},defaults,options);if($.isArray(elem)){elements=elem;ui.target=$(window);ui.init(plugin.settings.initialIndexOnArray);}
else{$(document).on('click',selector,function(event){if(event.target.parentNode.className==='slide current')return false;$.swipebox.vscrolloffset=document.documentElement.scrollTop||document.body.scrollTop||0;if(!$.isArray(elem)){ui.destroy();$elem=$(selector);ui.actions();}
elements=[];var index,relType,relVal;if(!relVal){relType='data-rel';relVal=$(this).attr(relType);}
if(!relVal){relType='rel';relVal=$(this).attr(relType);}
if(relVal&&relVal!==''&&relVal!=='nofollow')$elem=$selector.filter('['+relType+'="'+relVal+'"]');else $elem=$(selector);window.self_gidx=0;window.havethumbs=0;$elem.each(function(){var title=null,href=null,embed=null,desc=null,thumb=null;if($(this)[0].nodeName.toUpperCase()=="A"){var itm=$(this).children('img').first();if(itm.attr('data-src')){thumb=itm.attr('data-src');window.havethumbs++;}
else if(itm.attr('src')){thumb=itm.attr('src');window.havethumbs++;}}
if($(this).children('img').first().data('title'))title=$(this).children('img').first().data('title');else if($(this).children('img').first().attr('title'))title=$(this).children('img').first().attr('title');else if($(this).children('img').first().attr('alt'))title=$(this).children('img').first().attr('alt');if($(this).attr('href'))href=$(this).attr('href');if($(this).data('embed'))embed=$(this).data('embed');if($(this).children('img').first().data('description'))desc=$(this).children('img').first().data('description');else desc='';var gidx=$(this).children('img').first().data('gidx');if(gidx==undefined||gidx=='-1')gidx=window.self_gidx;window.self_gidx++;if((aegal_xdsect=="windows")||(aegal_xdsect=="mac")||(aegal_xdsect=="linux")||(aegal_xdsect=="games"))
if(thumb!=null){var t=thumb.split('/');if(t[4]=="48"){t[4]="120";thumb=t.join('/');}}
elements.push({embed:embed,href:href,title:title,desc:desc,thumb:thumb,gidx:gidx,gidm:$(this).children('img').first().data('gidm'),gida:$(this).children('img').first().data('gida')});});index=$elem.index($(this));event.preventDefault();event.stopPropagation();ui.target=$(event.target);ui.init(index);});}};var updateurlhash=function(index){if(typeof history.replaceState=="function"){var uu=""+window.location.href;var uubase=uu.split("#");history.replaceState({},document.title,uubase[0]+"#sgal_"+gidx);}else window.location.hash='sgal_'+(gidx);};ui={init:function(index){if(plugin.settings.beforeOpen)plugin.settings.beforeOpen();this.target.trigger('swipebox-start');$.swipebox.isOpen=true;this.build();this.openSlide(index);this.openMedia(index);this.preloadMedia(index+1);this.preloadMedia(index+2);this.preloadMedia(index-1);this.preloadMedia(index-2);if(plugin.settings.afterOpen)plugin.settings.afterOpen();},build:function(){this.vscrolloffset=$(window).scrollTop();NAV_OK=false;var $this=this;window.aegal_xdload=0;window.speedshift_added=0;window.aegal_autoplayed=0;$('body,html').css({'padding-top':0,'overflow':'hidden','height':'100%'});$('body').append(html);if($this.doCssTrans()){$('#swipebox-slider').css({'-webkit-transition':'left 0.4s ease','-moz-transition':'left 0.4s ease','-o-transition':'left 0.4s ease','-khtml-transition':'left 0.4s ease','transition':'left 0.4s ease'});$('#swipebox-overlay').css({'-webkit-transition':'opacity 1s ease','-moz-transition':'opacity 1s ease','-o-transition':'opacity 1s ease','-khtml-transition':'opacity 1s ease','transition':'opacity 1s ease'});}
$.each(elements,function(){$('#swipebox-slider').append('
');});for(var i=0;i
');if(window.havethumbs<2){window.swshowthumbs=false;$('#swipebox-thumbslide').remove();}
$this.setDim();$this.actions();if(isTouch)$this.gesture();$this.keyboard();$this.resize();},setDim:function(){var width,height,sliderCss={};if('onorientationchange'in window){window.addEventListener('orientationchange',function(){if(window.orientation===0){width=winWidth;height=winHeight;}
else if(window.orientation===90||window.orientation===-90){width=winHeight;height=winWidth;}},false);}
else{width=$('body').width();height='100%';}
sliderCss={width:width,height:height};$('#swipebox-overlay').css(sliderCss);var tmph=$('#swipebox-overlay').height();var vph=tmph-110-(window.aegal_xdsect=='mobile'?72:112);vph-=window.thumbdivheight;var vpw=null;var tmpw=$('#swipebox-overlay').width();if($('#swipebox-right').css('display')=='block')vpw=tmpw-$('#swipebox-right').width()-33;else vpw=tmpw;if(vpw&&$('#swipebox-counter').css('display')=='block')$('#swipebox-meta').css('width',vpw-200);$('#swipebox-viewport').css({height:vph,width:vpw});$('#swnav_left').css({'top':(vph-40)/2});$('#swnav_right').css({'top':(vph-40)/2});$('#swipebox-caption,#swipebox-action').css('width',vpw);$('#swipebox-top').css('width',vpw);$('#swipebox-thumbs, #swipebox-thumbs>.posrel').css('width',vpw);$('#swipebox-thumbslide').css('width',(window.havethumbs*(window.thumbwidth+1))+'px');if(isMobile)$('html > head').append($(''));this.setThumbDims();},setThumbDims:function(){var pagewidth=$('#swipebox-thumbbox').width();var thumbsperpage=Math.floor(pagewidth/(window.thumbwidth+0));var adjpagewidth=thumbsperpage*(window.thumbwidth+0);window.crtswPage=Math.floor((thumbwidth+0)*window.crtswIndex/adjpagewidth);window.oldswPage=window.crtswPage;this.thumbsUpdatePage();},thumbsUpdatePage:function(){var pagewidth=$('#swipebox-thumbbox').width();var thumbsperpage=Math.floor(pagewidth/(window.thumbwidth+0));var offs=-window.crtswPage*thumbsperpage*(window.thumbwidth+1);var maxpage=Math.floor(window.havethumbs/thumbsperpage);if(maxpage==0)offs=(pagewidth-window.havethumbs*(window.thumbwidth+1))/2;else if(maxpage==window.crtswPage)offs=-(window.havethumbs*(window.thumbwidth+1))+pagewidth;$('#swipebox-thumbslide').css('left',offs+'px');$('#swipebox-thumbleft, #swipebox-thumbright').removeClass('disabled');if(window.crtswPage==0)$("#swipebox-thumbleft").addClass('disabled');if(window.crtswPage>=maxpage)$("#swipebox-thumbright").addClass('disabled');},resize:function(){var $this=this;$(window).resize(function(){$this.setDim();}).resize();},supportTransition:function(){var prefixes='transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition'.split(' '),i;for(i=0;i
=swipMinDistance)$this.getPrev();else if(distance<=-swipMinDistance)$this.getNext();$('.touching').off('touchmove').removeClass('touching');});},keyboard:function(){var $this=this;$(window).bind('keyup',function(event){event.preventDefault();event.stopPropagation();if(event.keyCode===37)$this.getPrev();else if(event.keyCode===39)$this.getNext();else if(event.keyCode===27)$this.closeSlide();});},actions:function(){var $this=this,action='touchend click';if(elements.length<2)$('#swipebox-prev,#swipebox-next,#swnav_left,#swnav_right,#swipebox-info').hide();else{$('#swipebox-prev,#swnav_left').bind(action,function(event){event.preventDefault();event.stopPropagation();$this.getPrev();});$('#swipebox-next,#swnav_right').bind(action,function(event){event.preventDefault();event.stopPropagation();$this.getNext();});}
$('#swipebox-close').bind(action,function(event){$this.closeSlide();event.preventDefault();event.stopPropagation();});$('#swipebox-thumbslide .spic').bind("click",function(event){var idx=parseInt($(this).data('idx'));event.preventDefault();event.stopPropagation();ui.preloadMedia(idx);ui.setSlide(idx);ui.preloadMedia(idx-1);ui.preloadMedia(idx-2);ui.preloadMedia(idx+1);ui.preloadMedia(idx+2);});$('#swipebox-thumbleft').bind('click',function(ev){ev.preventDefault();ev.stopPropagation();$this.thumbPageLeft();});$('#swipebox-thumbright').bind('click',function(ev){ev.preventDefault();ev.stopPropagation();$this.thumbPageRight();});},thumbPageLeft:function(){if(window.crtswPage==0)return;var pagewidth=$('#swipebox-thumbbox').width();var thumbsperpage=Math.floor(pagewidth/(window.thumbwidth+0));window.oldswpage=window.crtswPage;window.crtswPage--;this.thumbsUpdatePage();},thumbPageRight:function(){var pagewidth=$('#swipebox-thumbbox').width();var thumbsperpage=Math.floor(pagewidth/(window.thumbwidth+0));var maxpage=Math.floor(window.havethumbs/thumbsperpage);if(window.crtswPage==maxpage)return;window.oldswpage=window.crtswPage;window.crtswPage++;this.thumbsUpdatePage();},setSlide:function(index,isFirst){isFirst=isFirst||false;window.slides_set++;if(window.slides_set%5==0&&typeof googletag!="undefined"){googletag.pubads().refresh([window.lght_slot_1]);googletag.pubads().refresh([window.lght_slot_2]);}
var slider=$('#swipebox-slider');if(this.doCssTrans())slider.css({left:(-index*100)+'%'});else slider.animate({left:(-index*100)+'%'});$('#swipebox-slider .slide').removeClass('current');$('#swipebox-slider .slide').eq(index).addClass('current');this.setTitle(index);if(isFirst)slider.fadeIn();$('#swipebox-prev, #swipebox-next').removeClass('disabled');if(index===0)$('#swipebox-prev').addClass('disabled');else if(index===elements.length-1&&plugin.settings.loopAtEnd!=true)$('#swipebox-next').addClass('disabled');if(window.aegal_xdload>0){$('#swipebox-topxd').attr('src',function(i,val){return val;});$('#swipebox-leftxd').attr('src',function(i,val){return val;});}else window.aegal_xdload++;$('#swipebox-thumbslide .spic').removeClass('sel');setTimeout(function(){$('#swipebox-thumbslide .spic[data-idx="'+index+'"]').removeClass('sel').addClass('sel');},20);window.crtswIndex=index;this.setThumbDims();},openSlide:function(index){$('html').addClass('swipebox-html');if(isTouch)$('html').addClass('swipebox-touch');if(isMobile)$('#swipebox-counter').css({'text-align':'right','right':'27px'});$(window).trigger('resize');this.setSlide(index,true);},preloadMedia:function(index){var $this=this,src=null;if(elements[index]!==undefined){src=elements[index].href;}
if(!$this.isVideo(src,index))setTimeout(function(){$this.openMedia(index);},1000);else $this.openMedia(index);},openMedia:function(index){var $this=this,src=null;if(elements[index]!==undefined)src=elements[index].href;if(index<0||index>=elements.length)return false;if(!$this.isVideo(src,index)){$this.loadMedia(src,index,function(){$('#swipebox-slider .slide').eq(index).html(this);if(!isMobile){var hdbutton=$(' ');hdbutton.click(function(e){e.stopPropagation();});$('#swipebox-slider .slide').eq(index).append(hdbutton);}});}
else{$('#swipebox-slider .slide').eq(index).html($this.getVideo(src,index));}},setTitle:function(index){var title=null;$('#swipebox-meta').empty();if(elements[index]!==undefined){title=elements[index].title;desc=elements[index].desc;gidx=elements[index].gidx;}
var ispic=true,pinitbtn='';if(typeof elements[index].embed!="undefined")if(elements[index].embed!=null)ispic=false;if(title)$('#swipebox-meta').append(''+(1+gidx)+'. '+title+'
'+pinitbtn+''+(desc.length>0?SP_Lang.Get("photocredits")+': '+desc:'')+' '+$("meta[property='og:description']").attr('content')+' '+SP_Lang.Get("readmore")+' →
');else $('#swipebox-meta').append('
'+pinitbtn+''+(desc.length>0?SP_Lang.Get("photocredits")+': '+desc:'')+' '+$("meta[property='og:description']").attr('content')+' '+SP_Lang.Get("readmore")+' →
');$('#swipebox-counter').html((1+gidx)+' / '+elements.length);updateurlhash(gidx);},isVideo:function(src,index){if(elements[index]!==undefined)return elements[index].embed!=null;else return false},getVideo:function(url,index){if(elements[index]===undefined)return'';var w=$('#swipebox-viewport').width(),h=$('#swipebox-viewport').height(),video_w=null,video_h=null;if(w>1920)w=1920;video_h=Math.round(w/1.7777777775);if(video_h>h){video_h=h;video_w=Math.round(h*1.7777777775);}
else video_w=w;var autoplay='';if(!window.aegal_autoplayed){window.aegal_autoplayed=true;autoplay+='&autoplay=1';}
var iframe='';return''+iframe+'
';},loadMedia:function(src,index,callback){if(!this.isVideo(src,index)){var $this=this;var img=$(' ').on('load',function(){if($.swipebox.isOpen==false)return;callback.call(img);if(window.speedshift_added==0){window.speedshift_added=1;}});img.attr('src',src);if(!isMobile)img.click(function(e){$this.getNext();e.preventDefault();e.stopPropagation();return false;});}},getNext:function(){var $this=this,index=$('#swipebox-slider .slide').index($('#swipebox-slider .slide.current'));if(index+10){var src=$('#swipebox-slider .slide').eq(index).contents().find("iframe").attr("src");if(src!==undefined&&src!==null)$('#swipebox-slider .slide').eq(index).contents().find("iframe").attr("src",src.replace('&autoplay=1',''));index--;this.setSlide(index);this.preloadMedia(index-2);}
else{$('#swipebox-slider').addClass('leftSpring');setTimeout(function(){$('#swipebox-slider').removeClass('leftSpring');},500);}},closeSlide:function(){$('html').removeClass('swipebox-html');$('html').removeClass('swipebox-touch');$(window).trigger('resize');this.destroy();},destroy:function(){if(typeof history.replaceState=="function"){var uu=""+window.location.href;var uubase=uu.split("#");history.replaceState({},document.title,uubase[0]);}else window.location.hash='';$.swipebox.isOpen=false;$(window).unbind('keyup');$('body').unbind('touchstart');$('body').unbind('touchmove');$('body').unbind('touchend');$('#swipebox-slider').unbind();$('#swipebox-overlay').remove();if(!$.isArray(elem))elem.removeData('_swipebox');if(this.target)this.target.trigger('swipebox-destroy');$.swipebox.isOpen=false;if(plugin.settings.afterClose)plugin.settings.afterClose();$('body,html').css({'padding-top':'','overflow':'','height':''});NAV_OK=true;$(window).scrollTop($.swipebox.vscrolloffset);}};plugin.init();};$.fn.swipebox=function(options){if(!$.data(this,'_swipebox')){var swipebox=new $.swipebox(this,options);this.data('_swipebox',swipebox);}
return this.data('_swipebox');};}(window,document,jQuery));SP_Lang={'Get':function(uterm){if(typeof SP_DICT[uterm]=="undefined")return"_"+uterm+"_";return SP_DICT[uterm];}};function getscriptparam(pname)
{var q=window.location.search.substring(1);var vars=q.split('&');for(var i=0;i').attr('id','spmenu_ul').insertAfter('#spmenu');$('#spmenu_ul').load(sp_xaja_root+'/_xaja/xaja-cmenu.php',{'c':spjs_cat_id,'s':pe_section},function(){});}});$('html').click(function(){$('#spmenu').removeClass('on');$('#spmenu_ul').hide();});}
(function($){$.fn.spSwipe=function(settings){var config={th_mydir:25,th_otherdir:75,swipeLeft:function(){},swipeRight:function(){},swipeUp:function(){},swipeDown:function(){}};if(settings)$.extend(config,settings);$(this).css("-ms-touch-action","none");this.each(function(){var startX,startY,ismmove=false;var t0,t1;$(this).on('touchstart',onTouchStart);$(this).on('touchmove',onTouchMove);$(this).on('mousedown',onMouseDown);$(this).on('mousemove',onMouseMove);$(document).on('mouseup',function(ev){if(ismmove){ismmove=false;ev.stopPropagation();ev.preventDefault();return false;}});function onMouseDown(ev){ev.stopImmediatePropagation();ev.preventDefault();ev.stopPropagation();ismmove=true;startX=ev.pageX;startY=ev.pageY;t0=Date.now();return false;}
function onMouseMove(ev){if(!ismmove)return;ev.stopImmediatePropagation();ev.preventDefault();ev.stopPropagation();var nx=ev.pageX;var ny=ev.pageY;t1=Date.now()-t0;chkswipe(nx,ny);return false;}
function onTouchStart(ev){ismmove=true;var t=ev.originalEvent.changedTouches;t0=Date.now();startX=t[0].clientX;startY=t[0].clientY;}
function onTouchMove(ev){if(!ismmove)return;ismmove=false;ev.stopImmediatePropagation();ev.preventDefault();ev.stopPropagation();var t=ev.originalEvent.changedTouches;var nx,ny;t1=Date.now()-t0;nx=t[0].clientX;ny=t[0].clientY;chkswipe(nx,ny);}
function chkswipe(x2,y2){var ddy,ddx;ddy=Math.abs(startY-y2);ddx=Math.abs(startX-x2);if(ddyconfig.th_mydir){ismmove=false;config.swipeRight(ddx/t1);}
if((x2-startX)>config.th_mydir){ismmove=false;config.swipeLeft(ddx/t1);}}
if(ddxconfig.th_mydir){ismmove=false;config.swipeDown(ddy/t1);}
if((y2-startY)>config.th_mydir){ismmove=false;config.swipeUp(ddy/t1);}}}});return this;};})(jQuery);$(document).ready(function(){$('#navicos li[data-src="share"], #navicos li[data-src="love"], #navicos li[data-src="cog"], #navicos li[data-src="info"]').click(topovl1show);$("html").click(topovl1hide);});function topovl1show(ev)
{ev.stopPropagation();var atr=$(this).attr("data-src");if(atr==undefined)return;if($('#topovl1').css("display")=="block")if($('#topovl1').attr("data-src")==atr)return topovl1hide();$('#navicos li[data-src="share"], #navicos li[data-src="love"], #navicos li[data-src="cog"], #navicos li[data-src="info"]').css("background-color","transparent");$("#topovl1").html(' ').attr("data-src",atr).load(sp_xaja_root+"/_xaja/popups1.php",{t:atr,title:spjs_social.pagetitle,p:spjs_social.pageurl,mp:spjs_social.mediaurl},function(){$("#topovl1").slideDown(300);});$('header li[data-src="'+atr+'"]').css({"background-color":"#33538F"});}
function topovl1hide()
{var atr=$("#topovl1").attr("data-src");$("#topovl1").slideUp(300,function(){$("header li[data-src='"+atr+"']").css({"background-color":"#002873"});});}
function splogout()
{$("#topovl1").html(' ');$.post(sp_xaja_root+"/_xaja/login1.php?out",{},function(){document.location.reload();});}
function spovl1center()
{var h,wh,nh;$("#spovl1").show();$ww=$("#spovl1 .spovl1box").first();$ww.css("height","auto");if(typeof window.spovl1resize=="undefined"){window.spovl1resize=1;$(window).resize(function(){if($('#spovl1').css('display')!='none')spovl1center();});}
$('body').css({'overflow':'hidden','height':'100%'});h=$ww.height();wh=$(window).height();if(h>(wh-100)){nh=wh-100;}
else nh=h;$ww.css("top",((wh-nh)/2)+"px").height(nh);if(nh!=h)$ww.perfectScrollbar('destroy').perfectScrollbar({wheelSpeed:30,suppressScrollX:true});else $ww.perfectScrollbar('destroy');}
function spovl3center()
{var nh2;$("#spovl3").show();spck_loaddata();if($("#spovl3 input[name='m[n]']").length){if(cpkuserdata.name.length>0)$("#spovl3 input[name='m[n]']").val(cpkuserdata.name);}
if($("#spovl3 input[name='m[m]']").length){if(cpkuserdata.mail.length>0)$("#spovl3 input[name='m[m]']").val(cpkuserdata.mail);}
if(typeof window.spovl3resize=="undefined"){window.spovl3resize=1;$(window).resize(function(){if($('#spovl3').css('display')!='none')spovl3center();});$("#spovl3").click(spovl3hide);$("#spovl3 .spovl3box").click(function(ev){ev.stopPropagation();});}
var sp3keyclose=function(ev){if(ev.keyCode!=27)return;spovl3hide();$("body").off("keydown",sp3keyclose);};$("body").on("keydown",sp3keyclose);$ww=$("#spovl3 .spovl3box").first();$ww.css("height","auto");$('body').css({'overflow':'hidden','height':'100%'});h=$ww.height();wh=$(window).height();if(h>(wh-50))nh=wh-50;else nh=h;$ww.css("top",Math.floor((wh-nh)/2)+"px").height(nh);gg=$("#spovl3 .spovl3box").position();$("#spovl3 .ovlclose").css({"top":(gg.top-0)+'px',"left":(gg.left+$ww.width())+'px'});if(nh!=h)$ww.perfectScrollbar('destroy').perfectScrollbar({wheelSpeed:30,suppressScrollX:true});else $ww.perfectScrollbar('destroy');}
var spovl4funcok;function spovl4confirm(title,txt,funcok)
{spovl4funcok=funcok;var wtxt='';wtxt+='
'+title+'';wtxt+=txt;wtxt+=''+SP_Lang.Get("no")+' '+SP_Lang.Get("yes")+' ';wtxt+='
';$(wtxt).appendTo("body");$(".spovl4").click(spovl4hide);$(".spovl4 .spovl4box").click(function(ev){ev.stopPropagation();});var $ww=$(".spovl4 .spovl4box").first();var h,wh;h=$ww.height();wh=$(window).height();if(h>(wh-100))return;$ww.css("top",((wh-h)/2)+"px");}
function spovl4hide()
{$(".spovl4").unbind("click");$(".spovl4 .spovl4confirm").unbind("click");$(".spovl4").remove();}
function spovl4notice(title,txt)
{var wtxt='';wtxt+='
'+title+'';wtxt+=txt;wtxt+=''+SP_Lang.Get("ok")+' ';wtxt+='
';$(wtxt).appendTo("body");$(".spovl4").click(spovl4hide);$(".spovl4 .spovl4box").click(function(ev){ev.stopPropagation();});$(".spovl4box button").focus();var $ww=$(".spovl4 .spovl4box").first();var h,wh;h=$ww.height();wh=$(window).height();if(h>(wh-100))return;$ww.css("top",((wh-h)/2)+"px");}
function spovl4noticelogin(title,txt)
{var wtxt='';wtxt+='
'+title+'';wtxt+='
'+txt+'';wtxt+='
';wtxt+='';var jqc=jQuery.ajaxSettings.cache;jQuery.ajaxSettings.cache=true;$(wtxt).appendTo("body");jQuery.ajaxSettings.cache=jqc;$(".spovl4").click(spovl4hide);$(".spovl4 .spovl4box").click(function(ev){ev.stopPropagation();});$(".spovl4box button").focus();var $ww=$(".spovl4 .spovl4box").first();var h,wh;h=$ww.height();wh=$(window).height();if(h>(wh-100))return;$ww.css("top",((wh-h)/2)+"px");}
function spovl3hide()
{$("#spovl3").hide();$("body").css({"overflow":"auto","height":"auto"});$(window).unbind('resize');$("#spovl3").unbind("click");$("#spovl3 .spovl3box").unbind("click").css({"position":"relative","top":0,"left":0});urlhashdel();}
var spovl3last="";var spovl3loading=false;function spovl3show(parms,icn)
{if(spovl3loading)return;spovl3loading=true;var $oo=$("a span i."+icn);var crp=JSON.stringify(parms);if(crp==spovl3last){$("#spovl3 .spcaptcha1").css("background-image","url(/_img/zicode2014.php?"+(Math.random()*1000000)+")");spovl3loading=false;spovl3center();return;}
spovl3last=crp;$oo.removeClass(icn).addClass("fa-spinner").addClass("fa-spin");$('#spovl3 .spovl3box').load(sp_xaja_root+'/_xaja/proginfo.php',parms,function(resptxt,respstat,xhr){$oo.removeClass("fa-spin").removeClass("fa-spinner").addClass(icn);if(status=="error"){alert(SP_Lang.Get("nocontactsp"));spovl3loading=false;return;}
$("#spovl3 .spcaptcha1").css("background-image","url(/_img/zicode2014.php?"+(Math.random()*1000000)+")");spovl3loading=false;spovl3center();});}
function spovl2show(src)
{var rh,wh,nh,gg;$("#spovl2 .spovl2box").html(' '+$('#'+src).html());$("#spovl2").show();$("#spovl2").click(spovl2hide);$("#spovl2 .spovl2box").click(function(ev){ev.stopPropagation();});$ww=$("#spovl2 .spovl2box").first().css("height","auto");$(window).resize(function(){if($('#').css('display')!='none')spovl2show(src);});$('body').css({'overflow':'hidden','height':'100%'});h=$ww.height();if(h<100)h=100;wh=$(window).height();if(h>(wh-100)){nh=wh-100;}
else nh=h;$ww.css("top",((wh-nh)/2)+"px").height(nh);gg=$("#spovl2 .spovl2box").position();$("#spovl2 .ovlclose").css({"top":(gg.top-0)+'px',"left":(gg.left+$ww.width())+'px'});if(nh!=h)$ww.perfectScrollbar('destroy').perfectScrollbar({wheelSpeed:30,suppressScrollX:true});else $ww.perfectScrollbar('destroy');}
function spovl2hide()
{$("#spovl2").hide();$('body').css({'overflow':'auto','height':'auto'});$(window).unbind('resize');$("#spovl2").unbind("click");$("#spovl2 .spovl2box").unbind("click");}
function spovl2center(oo)
{}
function captcha_reload(tsel)
{var t=new Date().getTime();$(tsel).css("background-image","url(/_img/zicode2014.php?"+t+")");}
function validateEmail(email){var re=/^[a-zA-Z0-9\.\-_\!\$+=]*@[a-zA-Z0-9\-\.]*$/;return re.test(email);}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'');}}
function urlhashadd(txt)
{if(typeof history.replaceState=="function"){var uu=""+window.location.href;var uubase=uu.split("#");history.replaceState({},document.title,uubase[0]+"#"+txt);return;}
window.location.hash=txt;}
function urlhashpush(txt)
{if(typeof history.pushState=="function"){var uu=""+window.location.href;var uubase=uu.split("#");history.pushState({},document.title,uubase[0]+"#"+txt);return;}
window.location.hash=txt;}
function urlhashdel(txt)
{if(typeof history.replaceState=="function"){var uu=""+window.location.href;var uubase=uu.split("#");history.replaceState({},document.title,uubase[0]);return;}
window.location.hash="";}
function sploginsubmit1(){var uu=$('#_lu').val(),pp=$('#_lp').val();var allok=true;if(uu.length<2){spform_flash('#_lu',"#ffffff","#cc3333");$('#_lu').focus();allok=false;}
if(pp.length<2){spform_flash('#_lp',"#ffffff","#cc3333");$('#_lp').focus();allok=false;}
if(!validateEmail(uu)){spform_flash('#_lu',"#ffffff","#cc3333");$('#_lu').focus();allok=false;}
if(!allok)return;$.post(sp_xaja_root+"/_xaja/login1.php?authstep1",{"u":uu},function(data,respstat,xhr){if(respstat=="error"){$msg.html(SP_Lang.Get("nocontactsp"));return;}
if((typeof data.s1==undefined)||(typeof data.s2==undefined)){$msg.html(SP_Lang.Get("badresponse"));return;}
var phash=md5(md5(data.s1)+md5(pp));phash=md5(md5(data.s2)+md5(phash))
$.post(sp_xaja_root+"/_xaja/login1.php?auth",{"u":uu,"p":phash},function(data,respstat,xhr){var $msg=$("#loginmsg");if(respstat=="error"){$msg.html(SP_Lang.Get("nocontactsp"));return;}
if(typeof data.uid==undefined){$msg.html(SP_Lang.Get("badresponse"));return;}
var txterr="Error.";if(typeof data.txt!=undefined)txterr=data.txt;if(data.uid>0){if(window.location.href.search("/confirmuser.php")==-1)document.location.reload(false);else window.location="https://www.softpedia.com/";}else $msg.html(txterr);});});}
function showloginovl()
{$.ajaxSetup({cache:true});$('#spovl1 .spovl1box').load(sp_xaja_root+'/_xaja/login1.php',spovl1center);$.ajaxSetup({cache:false});}
$(window).on("load",function(){$(".scrslide .pscrswipe, .topscrbox .pscrswipe").swipebox();});function sppop_chkform(fvals,func,btnseltxt)
{var allok=true;var tt;var btnsel;if(btnseltxt)btnsel=btnseltxt+" button[type=submit]";else btnsel="#progform button[type=submit]";spck_loaddata();for(var i=0;i");$.post(sp_xaja_root+"/_xaja/proginfo.php?t="+func+"&id=1",$(btnseltxt).serialize(),function(data,respstat,xhr){if(respstat=="error"){$("#overrform").html(SP_Lang.Get("nocontactsp"));$btnp.html(obtxt);return false;}
if((data.r==undefined)||(data.txt==undefined)){$("#overrform").html(SP_Lang.Get("badresponse"));$btnp.html(obtxt);return false;}
$("#overrform").html(data.txt);if(data.r==0){spovl3last="";$btnp.html(SP_Lang.Get("close").toUpperCase()).attr("type","button").attr("onclick","spovl3hide();");setTimeout(spovl3hide,2000);}
else $btnp.html(obtxt);},"json");return false;}
function senddllinks()
{var urls=new Array();$('#ovpopup .dllinks i.fa-check-square-o').each(function(){urls.push($(this).attr("data-url"));});if(urls.length<1){alert(SP_Lang.Get("selatleastone"));spform_flash('#ovpopup .spdlflag2','#ccd4e3','#cc3333');return;}
$("#ovpopup .dllinks p.col-red").html(SP_lang.Get("msgsentthanks"));$("#ovpopup #dlrepbtn").attr("href","javascript:popup_close();").html(' '+SP_Lang.Get("close"));}
function reportdllink()
{var i=0;$("#ovpopup .dllinks .dllinkbox2").each(function(){var $ff=$(this).find(".spdlflag2 i.fa").first();$ff.attr("class","fa fa-square-o").attr("data-url",encodeURIComponent($(this).find("a").attr("href")));i++;});$("#ovpopup .dllinks .dllinkbox2 .spdlflag2").click(function(){var $o=$(this).find("i").first();if($o.hasClass("fa-square-o"))
$o.removeClass("fa-square-o").addClass("fa-check-square-o");else
$o.removeClass("fa-check-square-o").addClass("fa-square-o");});spform_flash('#ovpopup .spdlflag2','#ccd4e3','#cc3333');$(''+SP_Lang.Get("sellinksandsend")+' .
').prependTo("#ovpopup .dllinks");$('#ovpopup .dllinks .spdlflag2').css("color","#cc3333").click(function(ev){ev.stopPropagation();});$("#ovpopup #dlrepbtn").attr("href","javascript:senddllinks();").css("width","85px").html(' '+SP_Lang.Get("send"));}
var sppopup_loading=false;function popup_open(params,url,targ)
{var purl=url||sp_xaja_root+"/_xaja/proginfo.php";var tgsel=targ||false;var otxt;if(sppopup_loading)return;sppopup_loading=true;if(tgsel!=false){otxt=$(tgsel).html();$(tgsel).html(' ');}
$.post(purl,params,function(data,respstat,xhr){if(tgsel!=false)$(tgsel).html(otxt);sppopup_loading=false;if(respstat=="error"){alert(SP_Lang.Get("nocontactsp"));return}
$('
').appendTo("body");var $o=$('').html(data);$o.appendTo("#spovl4");popup_center();});}
function popup_center()
{var $oo=$('#ovpopup');if(!$oo.length)return;window.scrollTo(0,0);$("#spovl4").click(popup_close);$("#ovpopup").click(function(ev){ev.stopPropagation();});var popupkclose=function(ev){if(ev.keyCode!=27)return;popup_close();$("body").off("keydown",popupkclose);};$("body").on("keydown",popupkclose);var h,wh,gg;h=$oo.height();wh=$(window).height();if(h>(wh-80)){var $dd=$("#ovpopup .dllinks");var h2=wh-374-130-100;if(h2>0)h2+=130;else h2=130;$("#ovpopup .dllinks").css({"height":h2+"px","overflow":"hidden","position":"relative"}).perfectScrollbar({wheelSpeed:30,suppressScrollX:true});nh=$("#ovpopup").height();}else nh=h;$oo.css("top",Math.floor((wh-nh)/2-15)+"px");}
function popup_close()
{$("#ovpopup").remove();$("#spovl4").remove();urlhashdel("buy");}
var sp6popup_loading=false;var sp6popup_loaded=false;function popup6_open(params,url,targ)
{var purl=url||sp_xaja_root+"/_xaja/dlinfo.php";var tgsel=targ||false;var otxt;if(sp6popup_loading)return;if(tgsel!=false){otxt=$(tgsel).html();$(tgsel).html(' ');}
if(sp6popup_loaded){if(tgsel!=false)$(tgsel).html(otxt);sp6popup_loading=false;$("#spovl6").show();$("#ov6popup").show();return popup6_center();}else sp6popup_loading=true;$.post(purl,params,function(data,respstat,xhr){if(tgsel!=false)$(tgsel).html(otxt);sp6popup_loaded=true;sp6popup_loading=false;if(respstat=="error"){alert(SP_Lang.Get("nocontactsp"));return}
$('
').appendTo("body");var $o=$('').html(data);$o.appendTo("#spovl6");popup6_center();});}
function xdltrk(tk,pid){$.post(sp_xaja_root+"/_xaja/xdl.php",{rt:'u',t:tk,p:pid});}
function popup6_center()
{var $oo=$('#ov6popup');if(!$oo.length)return;window.scrollTo(0,0);$("#ov6popup").click(function(ev){ev.stopPropagation();});var popup5kclose=function(ev){if(ev.keyCode!=27)return;popup6_close();$("body").off("keydown",popup5kclose);};$("body").on("keydown",popup5kclose);var h,wh,gg;h=$oo.height();wh=$(window).height();if(wh>500)$('body').css({'overflow':'hidden','height':'100%'});if(h>(wh-80)){var $dd=$("#ov6popup .dllinks");var h2=wh-374-130-170;if(h2>0)h2+=130;else h2=130;$("#ov6popup .dllinks").css({"height":h2+"px","overflow":"hidden","position":"relative"}).perfectScrollbar({wheelSpeed:30,suppressScrollX:true,suppressScrollY:false});nh=$("#ov6popup").height();}else nh=h;$oo.css("top",Math.floor((wh-nh)/2-15+40)+"px");}
function popup6_close()
{$("body").off("keydown").css({"overflow":"auto","height":"auto"});$("#spovl6").off("click");$("#ov6popup").hide();$("#spovl6").hide();urlhashdel("download");}
function js_sgpl(num,suf)
{var suffix='s'||suf;if(num==1)return'';return suffix;}
function numberfmt(num)
{var unum=num.toString().split('.');var na=unum[0].toString().split('');var ra,i;ra=new Array();for(j=0;j85)hdrate1offs=85;if(hdrate1offs<=0)hdrate1offs=1;newv=Math.ceil(hdrate1offs*5/85);$("#hdstars1 .fastars").css('width',newv*85/5+"px");$("#hdrater1").text(newv.toFixed(0)+".0/5");});$("#hdstars1").click(function(ev){if(hasvoted!=0)return;hasvoted=1;$.post(sp_xaja_root+"/_xaja/urating.php",{"t":0,"id":spjs_prog_id,"progver":spjs_prog_version,"r":$("#hdrater1").text().split("/")[0]},function(data){if(data.r<10){$("#hdrating1 em").last().html("("+numberfmt(parseInt(data.now_votes))+" Votes)");$("#hdrating1 span.usr").html(''+numberfmt(parseFloat(data.now_rating).toFixed(1))+' /5 ');$("#hdstars1").html(' ');}else spovl4notice(SP_Lang.Get("notice"),data.txt);},"json");});});function sp_setcookie(name,value,days)
{var exprd="";if(days){var date=new Date();date.setTime(date.getTime()+(days*86400*1000));exprd="; expires="+date.toUTCString();}
document.cookie=name+"="+value+exprd+"; path=/; domain="+sp_nsroot;}
function sp_getcookie(name)
{var ckname=name+"=";var ck=document.cookie.split(';');for(var i=0;i0){cpkuserdata={"name":spjs_auth.name,"mail":spjs_auth.mail};return;}
var kv=sp_getcookie("nsaandfsbsittinginatree");if(kv==null)kv=btoa("{\"name\":\"\",\"mail\":\"\"}");cpkuserdata=jQuery.parseJSON(atob(kv));}
function spck_savedata()
{if(spjs_auth_uid>0)return;sp_setcookie("nsaandfsbsittinginatree",btoa(JSON.stringify(cpkuserdata)),7);}
function spobj_dragdropinit(handleobj,tgobj)
{var spo_on=false;var ofsx=0,ofsy=0,ox,oy;var oprop={'p':false,'l':0,'t':0};var $tg=$(tgobj);var winmaxx,winmaxy,mofsx,mofsy;winmaxy=$(window).height();winmaxx=$(window).width();if($tg.css("position")!="absolute"){var ppos=$tg.parent().offset();var opos=$tg.offset();oprop.l=Math.floor(opos.left-ppos.left);oprop.t=Math.floor(opos.top-ppos.top);oprop.p=$tg.css("position");$tg.css({"position":"absolute","top":oprop.t+"px","left":oprop.l+"px"});}
$(handleobj).css("cursor","move").mousedown(function(ev){var tt;spo_on=true;ofsx=ev.pageX;ofsy=ev.pageY;tt=$tg.css("left").split("px");ox=parseInt(tt[0]);tt=$tg.css("top").split("px");oy=parseInt(tt[0]);});$('html').mouseup(function(ev){if(!spo_on)return;spo_on=false;});$('html').mousemove(function(ev){var dofsx,dofsy;var nofsx,nofsy;if(!spo_on)return;dofsx=ev.pageX;dofsy=ev.pageY;nofsx=dofsx-ofsx+ox;nofsy=dofsy-ofsy+oy;if(nofsx<-100)return;if(nofsx>(winmaxx-200))return;if(nofsy<-10)return;if(nofsy>(winmaxy-100))return;$tg.css({"left":((dofsx-ofsx)+ox)+"px","top":((dofsy-ofsy)+oy)+"px"});});}
function spsite_feedback(from_url)
{$.post(sp_xaja_root+"/_xaja/feedback.php",{'f':'fb',from_url:encodeURIComponent(from_url)},function(data,respstat,xhr){if(respstat=="error"){alert(SP_Lang.Get("nocontactsp"));return;}
$('
').appendTo("body");var $o=$('').html(data).appendTo("#spovl5");$o.appendTo("#spovl5");spck_loaddata();if($("#fbpopup input[name='m[m]']").length){if(cpkuserdata.mail.length>0)$("#fbpopup input[name='m[m]']").val(cpkuserdata.mail);}
$("#fbpopup").click(function(ev){ev.stopPropagation();});$("#fbpopup .ovlclose .fa-times").click(spsite_fbclose);var spfbkeyclose=function(ev){if(ev.keyCode!=27)return;spsite_fbclose();$("body").off("keydown",spfbkeyclose);};$("body").on("keydown",spfbkeyclose);var wh=$(window).height();var hofs=5,vofs=50,h=$o.height();if(h"+ym+"");$("#spfta1").text(otxt);$ta1.css({"background-color":"#e5eaf1","padding":"10px 20px 10px 20px"});$("#backbtn").remove();$btnp.html(SP_Lang.Get("send").toUpperCase());$nomail.val("0");}
function spsite_feedbacksubmit()
{var tt,allok=true;spck_loaddata();tt=$("input[name=\'m[m]\']").val();cpkuserdata.mail=tt;spck_savedata();var ym=SP_Lang.Get("yourmessage");tt=$("textarea[name=\'m[txt]\']").val();if(tt==undefined)tt=$("#spftext").val();if((tt==ym)||(tt.length<2)){allok=false;spform_flash("textarea[name=\'m[txt]\']","#e5eaf1","#cc3333");spform_flash(".sptextarea1","#e5eaf1","#cc3333");}
if($('#ucomcaptcha').length){tt=$('#ucomcaptcha').val();if(tt.length<1){allok=false;spform_flash('#ucomcaptcha','#e5eaf1','#cc3333');}}
if(!allok)return;var obtxt,$btnp=$("#feedbackform button[type='submit']");obtxt=$btnp.html();var $nomail=$("#yesnomail");tt=$("input[name=\'m[m]\']").val();if(((tt=="Email (optional)")||(tt.length<3))&&($nomail.val()=="0")){var $ta1=$(".ovl1mid .sptextarea1");var otxt=$ta1.find("textarea").first().val();$ta1.find("textarea").first().remove();$ta1.append('Your message:
');$ta1.css({"background-color":"white","padding":"0"});$("#spftext").val(otxt);$("#spftextv").text(otxt.replace(/\n/g," "));$nomail.val("1");$ta1.after('If you want us to get back to you, please enter your email address.
');$btnp.after('go back ');$('#fbpopup input[name="m[m]"]').css("width","160px");return;}
$btnp.html(' ');$.post(sp_xaja_root+"/_xaja/feedback.php?f=fb2",$("#feedbackform").serialize(),function(data,respstat,xhr){$btnp.html(obtxt);if(respstat=="error"){$("#overrform").html(SP_Lang.Get("nocontactsp"));return;}
if((data.r==undefined)||(data.txt==undefined))return;$("#overrform").html(data.txt);if(data.r==0)$btnp.html("DONE!").attr("type","button").attr("onclick","spovl3hide();");setTimeout(spsite_fbclose,3000);},"json");}
$(window).on("load",function(){setTimeout(spwinready,100);});function spwinready(){if(!window.location.hash)return;var wh=window.location.hash;if(wh=="#download"){if(pe_section=='apk'){var pp={'t':28,'id':spjs_prog_id,'vid':spjs_veridx,tsf:spjs_prog_tsf};if(typeof spjs_varidx!='undefined')pp['va']=spjs_varidx;popup6_open(pp,sp_xaja_root+'/_xaja/proginfo.php','#_dlspan');}else popup6_open({'t':15,'id':spjs_prog_id,tsf:spjs_prog_tsf},sp_xaja_root+'/_xaja/dlinfo.php','#_dlspan');return;}
if(wh=="#buy"){popup6_open({t:11,id:spjs_prog_id,tsf:spjs_prog_tsf},'/_xaja/proginfo.php',false);return;}
if(wh=="#status"){if(pe_section=='apk'){spovl3show({'t':31,'id':spjs_prog_id});}else $('#spovl3 .spovl3box').load(sp_xaja_root+'/_xaja/proginfo.php',{id:spjs_prog_id,t:4,i:''},spovl3center);return;}
if(wh.match(/^#spgal_[0-9]+/)!=null){var tt="#p"+wh.substr(1);$(tt).click();}};function sp_dsq_lazy(){window.disqusLoaded=false;if(window.location.hash.indexOf('#comments')>0)loadDisqus();else{var dsqelem=$('#disqus_thread');if(dsqelem){var commentsOffset=$(dsqelem).offset().top;window.onscroll=function(){if(window.disqusLoaded)return;if($(window).scrollTop()>commentsOffset-$(window).height()-600)loadDisqus();}}}}
function loadDisqus(){var d=document,s=d.createElement('script');s.async=true;s.src='//softpediasw.disqus.com/embed.js';s.setAttribute('data-timestamp',+new Date());(d.head||d.body).appendChild(s);window.disqusLoaded=true;}
$('#m_desktop').click(function(e){topmenu_open(e,'desktop',140,170)});$('#m_mobile').click(function(e){topmenu_open(e,'mobile',170,110)});$('#m_web').click(function(e){topmenu_open(e,'web',160,80)});$('ul.lev2').click(function(e){e.stopPropagation();});$('ul.lev2 a').click(function(e){e.stopPropagation();});