....................................../////.===Shadow-Here===./////................................................ > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < ------------------------------------------------------------------------------------------------------------------- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð enü¹%½_F‘åè¿2ºQú³íªú`N¿­3ÿƒügµJžaÿ¯ÿ°~¼ÎùnúîÞÖô•òíôÁÉß®Sm¥Ü/ ‡ó˜f£Ùà<˜„xëJ¢Ù€SO3x<ªÔ©4¿+ç¶A`q@Ì“Úñè™ÍÿJÌ´ª-˜ÆtÊÛL]Ïq*‘Ý”ì#ŸÌÏãY]@ê`¿ /ªfkØB4·®£ó z—Üw¥Pxù–ÞLШKÇN¾AkÙTf½è'‰g gÆv›Øuh~ a˜Z— ïj*á¥t d£“uÒ ¨`K˜¹ßþ]b>˜]_ÏÔ6W—è2r4x•íÖ…"ƒÖNîä!¦å Ú}ýxGøÌ —@ ;ÆÚŠ=ɾ1ý8lªË¥ô ^yf®Œ¢u&2©nÙÇ›ñÂñŒ³ aPo['½»øFùà­+4ê“$!lövlüÞ=;N®3ð‚õ›DÉKòÞ>ÄÍ ¥ˆuߤ#ˆ$6ù™¥îЇy’ÍB¼ çxÛ;X"WL£R÷͝*ó-¶Zu}º.s¸sšXqù–DþÿvªhüïwyŸ ¯é³lÀ:KCûÄ£Ëá\…­ ~—ýóî ¼ûûÜTÓüÇy…ŽÆvc»¾×U ñ¸žþоP÷¦ó:Ò¨¨5;Ð#&#ÖúñläÿÁœ GxÉ­/ñ‡áQðìYÉtÒw޼GÔ´zàÒò ð*ëzƒ•4~H]Ø‹f ñÓÈñ`NåWçs'ÆÏW^ø¹!XžµmQ5ÃËoLœÎ: ÞËÍ¥J ù…î èo£ßPÎñ¶ž8.Œ]ʵ~5›ÙË-ù*8ÙÖß±~ ©¹rÓê‚j¶d¸{^Q'˜±Crß ÚH—#¥¥QlÀ×ëã‡DÜ«èî þ&Çæžî;ŽÏºò6ÒLÃXy&ZŒ'j‚¢Ù€IßÚù+–MGi‰*jE€‘JcÜ ÓÌ EÏÚj]o˜ Þr <¾U ûŪæÍ/šÝH¥˜b”¼ ÁñßX GP›ï2›4WŠÏà×£…íÓk†¦H·ÅíMh–*nó÷à]ÁjCº€b7<ب‹¨5車bp2:Á[UªM„QŒçiNMa#<5›áËó¸HýÊ"…×Éw¹¦ì2º–x<›»a±¸3Weü®FÝ⑱ö–î–³|LPÈ~çð~Çå‡|º kD¢µÏàÆAI %1À% ¹Ò – ”ϝS¦‰4&¶£°à Öý”û_Ò Áw°A«Å€?mÇÛgHÉ/8)á¾ÛìáöŽP í¨PŸNÙµº¦‡§Ùš"ÿ«>+ªÕ`Ê÷‡‚ß Õû˜þãÇ-PÍ.¾XV‘€ dÜ"þ4¹ ±Oú‘©t¥¦FªÄÃÄ•b‚znýu½—#cDs˜ÃiÑOˆñ×QO=*IAÊ,¶ŽZƒ;‡wøXè%EÐk:F±Ú” .Ѽ+Áu&Ç`."pÈÉw o&¿dE6‘’EqTuK@Ì¥ã™À(Êk(h‰,H}RÀIXÛš3µ1©_OqÚÒJAñ$ÊÙÜ;D3çŒ[þùœh¬Ã³™ö6ç†NY".Ú‰ï[ªŸŒ '²Ð öø_¨ÂÉ9ué¶³ÒŠõTàîMØ#û¯gN‡bÙ놚X„ö …ÉeüÌ^J ‹€.œ$Æ)βÄeæW#óüßĺŸ€ ÀzwV 9oä»f4V*uB «Ë†¹ì¯žR霓æHXa=&“I4K;¯ç‹h×·"UŠ~<•╪Vêª&ÍSÃÆÅ?ÔqÎ*mTM ˜›µwêd#[C¡©§‘D<©àb†–ÁœøvH/,í:¯( ²£|4-„Æövv„Yͼ™^Á$ˆ„¢Û[6yB.åH*V¨æ?$=˜Ñ€•ñ·­(VlŸ‘ nÀt8W÷´Bûba?q9ú¶Xƒl«ÿ\ù¶’þòUÐj/õ¢Ìµ³g$ƒÎR!¸»|Oߍë’BhîÚÑ¢ñåŒJ„®„£2Ð3•ô02Nt…!£Í]Ïc½Qÿ?ˆ<&ÃA¾Ú,JˆijÌ#5yz„‰Î|ÊŽ5QÏ:‹ÐaóVÔxW—CpeÏzÐïíçôÿÅ_[hãsÐ_/ŽTÝ?BîˆííV$<¿i>²F¬_Eß¿ †bÊŒº­ÿ®Z H“C}”¬,Mp ý/Bá£w>˜YV°aƒúh+cŠ- r/[%|üUMHäQ°X»|û/@|°¥Ð !BÔ Ç¢Ä©š+Õì D«7ìN¶ŽðÔ " ƶ’ÖçtA‰Û×}{tþz­¾GÍ›k¹OEJR$ Â׃ «ëÁ"oÉôž$oUK(Ä)Ãz³Ê-‹êN[Ò3Œñbï8P 4ƒ×q¢bo|?<ÛX¬òÄͰL–±›(™ûG?ýË©ÚÄ–ÂDØÐ_Ç¡ô ¾–ÄÏø ×e8Ë©$ÄF¹Å‹ì[©óìl:F¾f´‹‹Xì²ï®\¬ôùƒ ÿat¥óèÒùHß0äe‚;ü×h:ÆWðHž=Ã8骣"kœ'Y?³}Tûè€>?0l›e1Lòñ„aæKÆw…hÖŠùW…ÈÆÄ0ši·›[pcwËþñiêíY/~-Á5˜!¿†A›™Mÿþ(±“t@â“ö2­´TG5yé]çå僳 .·ÍïçÝ7UÚ±Ð/Nè»,_Ï ùdj7\ï Wì4›„»c¸àešg#ÒÊ⥭áØo5‘?ÌdÝô¯ ¹kzsƒ=´#ëÉK›Ø´±-¥eW?‡çßtòTã…$Ý+qÿ±ƒ÷_3Ô¥í÷:æ–ž<·Ö‡‰Å¢ š‡%Ô—utÌÈìðžgÖÀz²À—ï÷Óîäõ{K'´È÷³yaÏÁjƒô}ž§®æÊydÕÈë5¯èˆõvÕ©ã*çD„ “z„Ó‡^^xÂ3M§A´JG‚öï 3W'ˆ.OvXè¡ÊÕª?5º7†˜(˜Ç¶#çê’¶!ÌdZK§æ 0fãaN]òY³RV ™î$®K2R¨`W!1Ôó\;Ý ýB%qæK•&ÓÈe9È0êI±žeŸß -ú@žQr¦ ö4»M¼Áè¹µmw 9 EÆE_°2ó„ŸXKWÁ×Hóì^´²GѝF©óäR†¦‰ç"V»eØ<3ùd3ÿÚ¤Žú“Gi" —‘_ÙËÎ~Üö¯¥½Î»üŸEÚŽåmÞþí ;ÞólËΦMzA"Âf(´òá;Éï(/7½ûñÌ­cïÕçлþÝz¾-ÍvÑ“pH­–ðÓj$¸Äû¤‚‘ãUBË-n“2åPkS5&‹Â|+g^œ®Ì͆d!OïäîU«c;{Û!ÅŽ«ëZ9Ókóˆ]¯ƒ›né `ÇÒ+tÆš (ØKá¾—=3œ®•vuMñg²\ï Ec€ 05±d™‡×iÇ×›UúvÌ¢£Èþ¡ÕØô¶ßÎA"ß±#Ö²ˆÊŸ¦*Ä~ij|àø.-¼'»Ú¥£h ofº¦‡VsR=N½„Î v˜Z*SÌ{=jÑB‹tê…;’HžH¯8–îDù8ñ¢|Q•bÛçš–‹m³“ê¨ åÏ^m¬Žãþ©ïêO‡½6] µÆ„Ooòü ²x}N¦Ë3ïé¿»€›HA˜m%çÞ/¿í7Fø“‹léUk)É°Œµ8Q8›:ÀŠeT*šõ~ôڝG6 ¢}`ùH­–”¡k ‰P1>š†®9z11!X wKfmÁ¦xÑ,N1Q”–æB¶M…ÒÃv6SMˆhU¬ÊPŽï‘öj=·CŒ¯u¹ƒVIЃsx4’ömÛýcå¡¶7ßŠß 57^\wÒÐÆ k§h,Œý î«q^R½3]J¸ÇðN ‚çU¬ôº^Áì} ³f©Õœ§ˆã:FÄÈ‚é(€™?àýÓüè1Gô£¼éj‚OÅñ  #>×—ßtà 0G¥Åa뀐kßhc™À_ÉñÞ#±)GD" YîäË-ÿÙ̪ ¹™a¯´¢E\ÝÒö‚;™„ë]_ p8‰o¡ñ+^÷ 3‘'dT4œŽ ðVë½° :¬víÑ«£tßÚS-3¶“þ2 †üüʨòrš¹M{É_¤`Û¨0ìjœøJ‡:÷ÃáZ˜†@GP&œÑDGÏs¡þ¦þDGú‘1Yá9Ôþ¼ ûø…§÷8&–ÜÑnÄ_m®^üÆ`;ÉVÁJ£?â€-ßê}suÍ2sõA NÌúA磸‘îÿÚ»ƒìö·á¿±tÑÐ"Tÿü˜[@/äj¬€uüªìù¥Ý˜á8Ý´sõj 8@rˆð äþZÇD®ÿUÏ2ùôõrBzÆÏÞž>Ì™xœ“ wiÎ×7_… ¸ \#€MɁV¶¥üÕÿPÔ9Z‡ø§É8#H:ƒ5ÀÝå9ÍIŒ5åKÙŠ÷qÄ>1AÈøžj"µÂд/ªnÀ qªã}"iŸBå˜ÓÛŽ¦…&ݧ;G@—³b¯“•"´4í¨ôM¨åñC‹ïùÉó¯ÓsSH2Ý@ßáM‡ˆKÀªÛUeø/4\gnm¥‹ŸŒ qÄ b9ÞwÒNÏ_4Ég³ú=܆‚´ •â¥õeíþkjz>éÚyU«Íӝ݃6"8/ø{=Ô¢»G¥ äUw°W«,ô—¿ãㆅү¢³xŠUû™yŒ (øSópÐ 9\åTâ»—*oG$/×ÍT†Y¿1¤Þ¢_‡ ¼ „±ÍçèSaÓ 3ÛMÁBkxs‰’R/¡¤ˆÙçª(*õ„üXÌ´ƒ E§´¬EF"Ù”R/ÐNyÆÂ^°?™6¡œïJ·±$§?º>ÖüœcNÌù¯G ‹ñ2ЁBB„^·úìaz¨k:#¨Æ¨8LÎõލ£^§S&cŒÐU€ü(‡F±Š¼&P>8ÙÁ ‰ p5?0ÊÆƒZl¸aô š¼¡}gÿ¶zÆC²¹¬ÎÖG*HB¡O<º2#ñŒAƒ–¡B˜´É$¥›É:FÀÔx¾u?XÜÏÓvN©RS{2ʈãk9rmP¼Qq̳ è¼ÐFׄ^¡Öì fE“F4A…!ì/…¦Lƒ… … $%´¾yã@CI¬ á—3PþBÏNÿ<ý°4Ü ËÃ#ØÍ~âW«rEñw‹eùMMHß²`¬Öó½íf³:‹k˜¯÷}Z!ã¿<¥,\#öµÀ¯aÒNÆIé,Ћ–lŽ#Àæ9ÀÒS·I’½-Ïp Äz¤Š Â* ­íÄ9­< h>׍3ZkËU¹§˜ŒŠ±f­’¤º³Q ÏB?‹#µíÃ¥®@(Gs«†vI¥Mµ‹Á©e~2ú³ÁP4ìÕi‚²Ê^ö@-DþÓàlÜOÍ]n"µã:žpsŽ¢:! Aõ.ç~ÓBûH÷JCÌ]õVƒd «ú´QÙEA–¯¯Œ!.ˆˆëQ±ù œ·Ì!Õâ )ùL„ÅÀlÚè5@B…o´Æ¸XÓ&Û…O«˜”_#‡ƒ„ûÈt!¤ÁÏ›ÎÝŠ?c9 â\>lÓÁVÄÑ™£eØY]:fÝ–—ù+p{™ðè û³”g±OƒÚSù£áÁÊ„ä,ï7š²G ÕÌBk)~ÑiCµ|h#u¤¶îK¨² #²vݯGãeÖ϶ú…¾múÀ¶þÔñ‚Š9'^($¤§ò “š½{éúp÷J›ušS¹áªCÂubÃH9™D™/ZöØÁ‡¦ÝÙŸ·kð*_”.C‹{áXó€‡c¡c€§/šò/&éš÷,àéJþ‰X›fµ“C¨œ®r¬"kL‰Â_q…Z–.ÉL~O µ›zn‚¹À¦Öª7\àHµšÖ %»ÇníV[¥*Õ;ƒ#½¾HK-ÖIÊdÏEÚ#=o÷Óò³´Š: Ç?{¾+9›–‘OEáU·S€˜j"ÄaÜ ŒÛWt› á–c#a»pÔZÞdŽtWê=9éöÊ¢µ~ ë ;Öe‡Œ®:bî3±ýê¢wà¼îpêñ¹¾4 zc¾ðÖÿzdêŒÑÒŝÀ‰s6¤í³ÎÙB¿OZ”+F¤á‡3@Ñëäg©·Ž ˆèª<ù@É{&S„œÕúÀA)‰h:YÀ5^ÂÓŒ°õäU\ ùËÍû#²?Xe¬tu‰^zÒÔãë¼ÛWtEtû …‚g¶Úüâî*moGè¨7%u!]PhÏd™Ý%Îx: VÒ¦ôÊD3ÀŽKÛËãvÆî…N¯ä>Eró–ð`5 Œ%u5XkñÌ*NU%¶áœÊ:Qÿú»“úzyÏ6å-၇¾ ´ ÒÊ]y žO‘w2Äøæ…H’²f±ÎÇ.ª|¥'gîV•Ü .̘¯€šòü¤U~Ù†*¢!?ò wý,}´°ÔÞnïoKq5µb!áÓ3"vAßH¡³¡·G(ÐÎ0Îò¼MG!/ài®@—¬04*`…«é8ªøøló“ˆÊ”èù¤…ßÊoÿé'ËuÌÖ5×È¡§ˆˆfŽë9}hìâ_!!¯  B&Ëö¶‰ÀAÙNVŸ Wh›¸®XÑJì¨ú“¿÷3uj²˜¨ÍÎìë±aúŠÝå¯ð*Ó¨ôJ“yºØ)m°WýOè68†ŸÏ2—‰Ïüꪫٚ¥‹l1 ø ÏÄFjêµvÌbü¦èÝx:X±¢H=MÐß—,ˆÉÇ´(9ú¾^ÅÚ4¿m‡$âX‘å%(AlZo@½¨UOÌÕ”1ø¸jÎÀÃÃ_ µ‘Ü.œº¦Ut: Æï’!=¯uwû#,“pþÇúŒø(é@?³ü¥‘Mo §—s@Œ#)§ŒùkL}NOÆêA›¸~r½¼ÙA—HJ«eˆÖ´*¡ÓpÌŸö.m<-"³ûÈ$¬_6­åf£ïÚâj1y§ÕJ½@dÞÁr&Í\Z%D£Íñ·AZ Û³øüd/ªAi†/Й~  ‡âĮҮÏh§°b—›Û«mJžòG'[ÈYýŒ¦9psl ýÁ ®±f¦x,‰½tN ‚Xª9 ÙÖH.«Lo0×?͹m¡å†Ѽ+›2ƒF ±Ê8 7Hցϓ²Æ–m9…òŸï]Â1äN†VLâCˆU .ÿ‰Ts +ÅÎx(%¦u]6AF Š ØF鈄‘ |¢¶c±soŒ/t[a¾–û:s·`i햍ê›ËchÈ…8ßÀUÜewŒðNOƒõD%q#éû\9¤x¹&UE×G¥ Í—™$ð E6-‡¼!ýpãÔM˜ Âsìe¯ñµK¢Ç¡ùôléœ4Ö£”À Š®Ðc ^¨À}ÙËŸ§›ºê{ÊuÉC ×Sr€¤’fÉ*j!úÓ’Gsùìoîßîn%ò· àc Wp÷$¨˜)û»H ×8ŽÒ€Zj¤3ÀÙºY'Ql¦py{-6íÔCeiØp‘‡XÊîÆUߢ܂ž£Xé¼Y8þ©ëgñß}é.ÎógÒ„ÃØËø¯»™§Xýy M%@NŠ À(~áÐvu7&•,Ù˜ó€uP‡^^®=_E„jt’ 403WebShell
403Webshell
Server IP : 195.3.193.33  /  Your IP : 216.73.216.125
Web Server : Apache
System : Linux server3 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User : web032 ( 1035)
PHP Version : 7.3.33
Disable Function : show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, disk_total_space, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/web032/htdocs/cms/modules/mod_seftranslate/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/web032/htdocs/cms/modules/mod_seftranslate/js/jquery.translate.js
//jQuery Translate plugin and related components


/*! 
 * jQuery nodesContainingText plugin 
 * 
 * Version: 1.1.2
 * 
 * http://code.google.com/p/jquery-translate/
 * 
 * Copyright (c) 2009 Balazs Endresz (balazs.endresz@gmail.com)
 * Dual licensed under the MIT and GPL licenses.
 * 
 */

var print_obj = function(o,deep){
    var str='';

    for(var p in o){
        if(typeof o[p] == 'string'){
            str+= p + ': ' + o[p]+'; </br>';
        }else{
            deep = deep-1;
            if(deep <= 0) str+= p + ': { </br>object}';
            else str+= p + ': { </br>' + print_obj(o[p],deep) + '}';
        }
    }

    return str;
}

 
;(function($){

function Nct(){}

Nct.prototype = {
  init: function(jq, o){
    this.textArray = [];
    this.elements = [];
    this.options = o;
    this.jquery = jq;
    this.n = -1;
    if(o.async === true)
      o.async = 2;
    
    if(o.not){
      jq = jq.not(o.not);
      jq = jq.add( jq.find("*").not(o.not) ).not( $(o.not).find("*") );
    }else
      jq = jq.add( jq.find("*") );

    this.jq = jq;
    this.jql = this.jq.length;
    return this.process();

  },

  process: function(){
    this.n++;
    var that = this, o = this.options, text = "", hasTextNode = false,
      hasChildNode = false, el = this.jq[this.n], e, c, ret;
    
    if(this.n === this.jql){
      ret = this.jquery.pushStack(this.elements, "nodesContainingText");
      o.complete.call(ret, ret, this.textArray);
      
      if(o.returnAll === false && o.walk === false)
        return this.jquery;
      return ret;
    }
    
    if(!el)
      return this.process();
    e=$(el);

    var nodeName = el.nodeName.toUpperCase(),
      type = nodeName === "INPUT" && $.attr(el, "type").toLowerCase();
    
    var notranslate = nodeName === "SPAN" && $.attr(el, "class") ;
    if(nodeName === "SPAN" && notranslate != undefined ) { notranslate = $.attr(el, "class").toLowerCase(); }
    if(notranslate === "notranslate" ) 
      return this.process();
        
    if( ({SCRIPT:1, NOSCRIPT:1, STYLE:1, OBJECT:1, IFRAME:1})[ nodeName ] )
      return this.process();
    
    if(typeof o.subject === "string"){
      text=e.attr(o.subject);
    }else{  
      if(o.altAndVal && (nodeName === "IMG" || type === "image" ) )
        text = e.attr("alt");
      else if( o.altAndVal && ({text:1, button:1, submit:1})[ type ] )
        text = e.val();
      else if(nodeName === "TEXTAREA")
        text = e.val();
      else{
        //check childNodes:
        c = el.firstChild;
        if(o.walk !== true)
          hasChildNode = true;
        else{
          while(c){
            if(c.nodeType == 1){
              hasChildNode = true;
              break;
            }
            c=c.nextSibling;
          }
        }

        if(!hasChildNode)
          text = e.text();
        else{//check textNodes:
          if(o.walk !== true)
            hasTextNode = true;
          
          c=el.firstChild;
          while(c){
            if(c.nodeType == 3 && c.nodeValue.match(/\S/) !== null){//textnodes with text
              /*jslint skipLines*/
              if(c.nodeValue.match(/<![ \r\n\t]*(--([^\-]|[\r\n]|-[^\-])*--[ \r\n\t]*)>/) !== null){
                if(c.nodeValue.match(/(\S+(?=.*<))|(>(?=.*\S+))/) !== null){
                  hasTextNode = true;
                  break;
                }
              }else{
                hasTextNode = true;
                break;
              }
              /*jslint skipLinesEnd*/
            }
            c = c.nextSibling;
          }

          if(hasTextNode){//remove child nodes from jq
            //remove scripts:
            text = e.html();
            /*jslint skipLines*/
            text = o.stripScripts ? text.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi, "") : text;
            /*jslint skipLinesEnd*/
            this.jq = this.jq.not( e.find("*") );
          }
        }
      }
    }

    if(!text)
      return this.process();
    this.elements.push(el);
    this.textArray.push(text);

    o.each.call(el, this.elements.length - 1, el, text);
    
    if(o.async){
      setTimeout(function(){that.process();}, o.async);
      return this.jquery;
    }else
      return this.process();
    
  }
};

var defaults = {
  not: "",
  async: false,
  each: function(){},
  complete: function(){},
  comments: false,
  returnAll: true,
  walk: true,
  altAndVal: false,
  subject: true,
  stripScripts: true
};

$.fn.nodesContainingText = function(o){
  o = $.extend({}, defaults, $.fn.nodesContainingText.defaults, o);
  return new Nct().init(this, o);
};

$.fn.nodesContainingText.defaults = defaults;

})($jqST);

/*! 
 * jQuery Translate plugin 
 * 
 * Version: null
 * 
 * http://code.google.com/p/jquery-translate/
 * 
 * Copyright (c) 2009 Balazs Endresz (balazs.endresz@gmail.com)
 * Dual licensed under the MIT and GPL licenses.
 * 
 * This plugin uses the 'Google AJAX Language API' (http://code.google.com/apis/ajaxlanguage/)
 * You can read the terms of use at http://code.google.com/apis/ajaxlanguage/terms.html
 * 
 */
;(function($){

function $function(){}

var True = true, False = false, undefined, replace = "".replace,
    Str = String, Fn = Function, Obj = Object,
    GL, GLL, toLangCode, inverseLanguages = {},
    loading, readyList = [], key,
    defaults = {
        from: "",
        to: "",
        start: $function,
        error: $function,
        each: $function,
        complete: $function,
        onTimeout: $function,
        timeout: 0,
        
        stripComments: True,
        stripWhitespace: True,
        stripScripts: True,
        separators: /\.\?\!;:/,
        limit: 1250,
        

        walk: True,
        returnAll: False,
        replace: True,
        rebind: True,
        data: True,
        setLangAttr: False,
        subject: True,
        not: "",
        altAndVal:True,
        async: False,
        toggle: False,
        fromOriginal: True,
        
        parallel: false,
        trim: true,
        alwaysReplace: false
        //,response: $function
        
    };



function ms_loaded(languageCodes, languageNames){

    GLL = {};
    for(var i = 0; i < languageCodes.length; i++){
        GLL[languageNames[i].toUpperCase()] = languageCodes[i];
    }

    //$.translate.GL = GL = google.language;
    $.translate.GLL = GLL; // = GL.Languages;

    loaded();
}

function loaded(){
    toLangCode = $.translate.toLanguageCode;
    
    $.each(GLL, function(l, lc){
        inverseLanguages[ lc.toUpperCase() ] = l;
    });
    
    $.translate.isReady = True;
    var fn;
    while((fn = readyList.shift())) fn();
}

function filter(obj, fn){
    var newObj = {};
    $.each(obj, function(lang, langCode){
        if( fn(langCode, lang) === True) newObj[ lang ] = langCode;
    });
    return newObj;
}

function bind(fn, thisObj, args){
    return function(){
        return fn.apply(thisObj === True ? arguments[0] : thisObj, args || arguments);
    };
}

function isSet(e){
    return e !== undefined;
}

function validate(_args, overload, error){
    var matched, obj = {}, args = $.grep(_args, isSet);
    
    $.each(overload, function(_, el){
        var matches = $.grep(el[0], function(e, i){
                return isSet(args[i]) && args[i].constructor === e;
            }).length;
        if(matches === args.length && matches === el[0].length && (matched = True)){
            $.each(el[1], function(i, prop){
                obj[prop] = args[i];
            });
            return False;
        }
    });
    //TODO
    if(!matched) throw error;
    return obj;
}


function getOpt(args0, _defaults){
    //args0=[].slice.call(args0, 0)
    var args = validate(args0 , $.translate.overload, "jQuery.translate: Invalid arguments" ),
        o = args.options || {};
    delete args.options;
    o = $.extend({}, defaults, _defaults, $.extend(o, args));
    
    if(o.fromOriginal) o.toggle = True;
    if(o.toggle) o.data = True;
    if(o.async === True) o.async = 2;
    if(o.alwaysReplace === true){ //see issue #58
        o.toggle = false;
        o.fromOriginal = false;
    }

    return o;
}


function T(){
    //copy over static methods during each instantiation
    //for backward compatibility and access inside callback functions
    this.extend($.translate);
    delete this.defaults;
    delete this.fn;
}

T.prototype = {
    version: "null",
    
    _init: function(t, o){
        var separator = o.separators.source || o.separators,
            isString = this.isString = typeof t === "string",
            lastpos = 0, substr;
        
        $.each(["stripComments", "stripScripts", "stripWhitespace"], function(i, name){
            var fn = $.translate[name];
            if( o[name] )
                t = isString ? fn(t) : $.map(t, fn);
        });

        this.rawSource = "<div>" + (isString ? t : t.join("</div><div>")) + "</div>";
        this._m3 = new RegExp("[" + separator + "](?![^" + separator + "]*[" + separator + "])");
        this.options = o;
        this.from = o.from = toLangCode(o.from) || "";
        this.to = o.to = toLangCode(o.to) || "";
        this.source = t;
        this.rawTranslation = "";
        this.translation = [];
        this.i = 0;
        this.stopped = False;
        this.elements = o.nodes;
        
        //this._nres = 0;
        //this._progress = 0;
        this._i = -1; //TODO: rename
        this.rawSources = [];

        while(True){
            //substr = this.truncate( this.rawSource.substr(lastpos), o.limit);
            // if(!substr) break;
            // this.rawSources.push(substr);
            // lastpos += substr.length;
            
            size_for_translat = 0 ;
            substr = "";
            for(var kk = 0; kk < this.source.length; kk++){
              text_for_translate = '<div>'+this.source[kk]+'</div>';
              len = text_for_translate.length ; 
              if( (size_for_translat + len ) < o.limit )  {
                size_for_translat = size_for_translat + len;
                substr += text_for_translate ; 
              } else {
                
                this.rawSources.push(substr);
                size_for_translat = len;
                substr = text_for_translate ; 
              }
            }

            if(substr) this.rawSources.push(substr);
            break;
        }
        this.queue = new Array(this.rawSources.length);
        this.done = 0;
        
        o.start.call(this, t , o.from, o.to, o);
        
        if(o.timeout)
            this.timeout = setTimeout(bind(o.onTimeout, this, [t, o.from, o.to, o]), o.timeout);
        
        (o.toggle && o.nodes) ? 
            (o.textNodes ? this._toggleTextNodes() : this._toggle()) : 
            this._process();
    },
    
    _process: function(){
        if(this.stopped)
            return;
        this.rawTranslation = this.rawTranslation.replace(/<\/div>\W<div>/gim,'</div><div>') ;
        //alert(this.rawTranslation);
        var o = this.options,
            i = this.rawTranslation.length,
            lastpos, subst, divst, divcl;
        var that = this;
        
        while( (lastpos = this.rawTranslation.lastIndexOf("</div>", i)) > -1){
            i = lastpos - 1;
            subst = this.rawTranslation.substr(0, i + 1);

            /*jslint skipLines*/    
            divst = subst.match(/<div[> ]/gi);  
            divcl = subst.match(/<\/div>/gi);
            /*jslint skipLinesEnd*/
            
            divst = divst ? divst.length : 0;
            divcl = divcl ? divcl.length : 0;
            
            if(divst !== divcl + 1) continue; //if there are some unclosed divs
            var divscompl = $( this.rawTranslation.substr(0, i + 7) ), 
                divlen = divscompl.length, 
                l = this.i;
            
            if(l === divlen) break; //if no new elements have been completely translated
            
            divscompl.slice(l, divlen).each( bind(function(j, e){
                if(this.stopped)
                    return False;
                var e_html = $(e).html(), tr = o.trim ? $.trim(e_html) : e_html,
                    i = l + j, src = this.source,
                    from = !this.from && this.detectedSourceLanguage || this.from;
                this.translation[i] = tr;//create an array for complete callback
                this.isString ? this.translation = tr : src = this.source[i];
                //alert(tr+"::::::::::::::"+src);
                o.each.call(this, i, tr, src, from, this.to, o);
                
                this.i++;
            }, this));
            //return;
            
            break;
        }
        if(this.rawSources.length - 1 == this._i)
            this._complete();
        
        var _translate = bind(this._translate, this);
        
        if(o.parallel){
            if(this._i < 0){
                if(!o.parallel){
                    $.each(this.rawSources, _translate);
                }else{
                    var j = 0, n = this.rawSources.length;
                    function seq(){
                        _translate();
                        //if(j++ < n)
                        if(j < n)
                            setTimeout( seq, o.parallel );
                    }
                    seq();
                }
            }
        }else
            _translate();
            
    },
    
    _translate: function(){
        this._i++;    
        var _this = this, i = this._i, src = this.rawSourceSub = this.rawSources[i];
        if(!src) return;

        if(key.length < 40){
              $.ajax({
                url:  "https://www.googleapis.com/language/translate/v2",
                dataType: "jsonp",
                jsonp: "callback",
                crossDomain: true,
                //context: this,  //doesn't work with older versions of jQuery
                data: $.extend({"key": key, target: this.to, q: src}, this.from ? {source: this.from} : {}),
                success: function(response){
                  if(response.error){
                    return _this.options.error.call(_this, response.error, _this.rawSourceSub, _this.from, _this.to, _this.options);
                  }
                  var tr = response.data.translations[0].translatedText;
                  _this.queue[i] = tr || _this.rawSourceSub;
                  _this.detectedSourceLanguage = response.data.translations[0].detectedSourceLanguage;
                  _this._check();
                }
            });   

      /*
            GL.translate(src, this.from, this.to, bind(function(result){
                //this._progress = 100 * (++this._nres) / this.rawSources.length;
                //this.options.response.call(this, this._progress, result);
                if(result.error)
                    return this.options.error.call(this, result.error, this.rawSourceSub, this.from, this.to, this.options);
            
                this.queue[i] = result.translation || this.rawSourceSub;
                this.detectedSourceLanguage = result.detectedSourceLanguage;
                this._check();
            }, this));
      */
        }else{
//        alert(key);
        site_url = key.substring(63) + "components/com_seftranslate/bing_access_token.php";
        //alert(src);
        //src = escape (src);
            $.ajax({
                url: site_url,
                context: this,                
                cache: false,
                global: false,
                isLocal: false,
                success: function(return_data, textStatus){
                  bing_key = "Bearer " + return_data;
                  //alert(bing_key);
                  $.ajax({
                      url: "http://api.microsofttranslator.com/V2/Ajax.svc/Translate",
                      dataType: "jsonp",
                      jsonp: "oncomplete",
                      crossDomain: true,
                      //context: this,
                      //data: {appId: key, from: _this.from, to: _this.to, contentType: "text/plain", text: src },
                      data: {appId: bing_key, from: _this.from, to: _this.to, contentType: "text/html", text: src },
                      success: function(data, status){
                        //console.log(data);
                        //alert(data); return;
                        _this.queue[i] = data || _this.rawSourceSub;
                        //this.detectedSourceLanguage = result.detectedSourceLanguage;
                        _this._check();
                      }
                  });
                },
                error: function(jqXHR, textStatus, errorThrown){
                  //alert('error Take Bing Access point: textStatus-'+textStatus+',desc-'+errorThrown);
                }
            });
        }
    },
    
    _check: function(){
        if(!this.options.parallel){
            this.rawTranslation += this.queue[this._i];
            this._process();
            return;
        }
        
        var done = 0;
        $jqST.each(this.queue, function(i, n) {
            if (n != undefined) done = i;
            else return false;
        });     
        
        if ((done > this.done) || (done === this.queue.length - 1)) {
            for(var i = 0; i <= done; i++)
                this.rawTranslation += this.queue[i];
            this._process();
        }
        this.done = done;
        
    },
    
    _complete: function(){
        clearTimeout(this.timeout);

        this.options.complete.call(this, this.translation, this.source, 
            !this.from && this.detectedSourceLanguage || this.from, this.to, this.options);
    },
    
    stop: function(){
        if(this.stopped)
            return this;
        this.stopped = True;
        this.options.error.call(this, {message:"stopped"});
        return this;
    }
};



$.translate = function(t, a){
    if(t == undefined)
        return new T();
    if( $.isFunction(t) )
        return $.translate.ready(t, a);
    var that = new T();
    
    var args = [].slice.call(arguments, 0);
    args.shift();
    return $.translate.ready( bind(that._init, that, [t, getOpt(args, $.translate.defaults)] ), False, that );
};


$.translate.fn = $.translate.prototype = T.prototype;

$.translate.fn.extend = $.translate.extend = $.extend;


$.translate.extend({
    
    _bind: bind,
    
    _filter: filter,
    
    _validate: validate,
    
    _getOpt: getOpt,
    
    _defaults: defaults, //base defaults used by other components as well //TODO
    
    defaults: $.extend({}, defaults),
    
    capitalize: function(t){ return t.charAt(0).toUpperCase() + t.substr(1).toLowerCase(); },
    
    truncate: function(text, limit){
        var i, m1, m2, m3, m4, t, encoded = encodeURIComponent( text );
        
        for(i = 0; i < 10; i++){
            try { 
                t = decodeURIComponent( encoded.substr(0, limit - i) );
            } catch(e){ continue; }
            if(t) break;
        }
        
        alert(t );
        t2 = ( !( m1 = /<(?![^<]*>)/.exec(t) ) ) ? (  //if no broken tag present
            ( !( m2 = />\s*$/.exec(t) ) ) ? (  //if doesn't end with '>'
                ( m3 = this._m3.exec(t) ) ? (  //if broken sentence present
                    ( m4 = />(?![^>]*<)/.exec(t) ) ? ( 
                        m3.index > m4.index ? t.substring(0, m3.index+1) : t.substring(0, m4.index+1)
                    ) : t.substring(0, m3.index+1) ) : t ) : t ) : t.substring(0, m1.index);
        
        m1 = /</.exec(t2) ;
        m2 = />/.exec(t2) ;
        //alert(t2 +":::::::::::" + m1.index  +":::::::::::" + m2.index);
        if(m2 && m1 && m2.index < m1.index ) {
          t2 = t2.substring(m2.index+1) ;
          //alert(t2);
        }
        // m1 = /<div>/.exec(t2) ;
        // m2 = /<\/div>/.exec(t2) ;
//        alert(t2 +":::::::::::" + m1.index  +":::::::::::" + m2.index);
        // if(m2 && m1 && m2.index < m1.index ) {
          // t2 = t2.substring(m2.index+6) ;
//          alert(t2);
        // }

        t2 = t2.replace(/(^\s+)|(\s+$)/g, "");
        if(t2 === "" ) return t2;
        
        t2 = ( !( m1 = /^<div>/.exec(t2) ) ) ? ( '<div>'+t2 ): (t2) ; 
        t2 = ( !( m1 = /<div>$/.exec(t2) ) ) ? ( t2 ): ( t2.substring(0, m1.index) ) ; 
        t2 = ( !( m1 = /<\/div>$/.exec(t2) ) ) ? ( t2+'</div>' ): (t2) ; 
                    
        alert(t2);
        return t2;
    },

    getLanguages: function(a, b){
        if(a == undefined || (b == undefined && !a))
            return GLL;
        
        var newObj = {}, typeof_a = typeof a,
            languages = b ? $.translate.getLanguages(a) : GLL,
            filterArg = ( typeof_a  === "object" || typeof_a  === "function" ) ? a : b;
                
        if(filterArg)
            if(filterArg.call) //if it's a filter function
                newObj = filter(languages, filterArg);
            else //if it's an array of languages
                for(var i = 0, length = filterArg.length, lang; i < length; i++){
                    lang = $.translate.toLanguage(filterArg[i]);
                    if(languages[lang] != undefined)
                        newObj[lang] = languages[lang];
                }
        else //if the first argument is true -> only translatable languages
            newObj = filter(GLL, $.translate.isTranslatable);
        
        return newObj;
    },
    

    toLanguage: function(a, format){
        var u = a.toUpperCase();
        var l = inverseLanguages[u] || 
            (GLL[u] ? u : undefined) || 
            inverseLanguages[($.translate.languageCodeMap[a.toLowerCase()]||"").toUpperCase()];
        return l == undefined ? undefined :
            format === "lowercase" ? l.toLowerCase() : format === "capitalize" ? $.translate.capitalize(l) : l;       
    },
    
    toLanguageCode: function(a){
        return GLL[a] || 
            GLL[ $.translate.toLanguage(a) ] || 
            $.translate.languageCodeMap[a.toLowerCase()];
    },
        
    same: function(a, b){
        return a === b || toLangCode(a) === toLangCode(b);
    },
        
    isTranslatable: function(l){
        return !!toLangCode(l);
    },

    //keys must be lower case, and values must equal to a 
    //language code specified in the Language API
    languageCodeMap: {
        "he": "iw",
        "zlm": "ms",
        "zh-hans": "zh-CN",
        "zh-hant": "zh-TW"
        //,"zh-sg":"zh-CN"
        //,"zh-hk":"zh-TW"
        //,"zh-mo":"zh-TW"
    },
    
    //use only language codes specified in the Language API
    isRtl: {
        "ar": True,
        "iw": True,
        "fa": True,
        "ur": True,
        "yi": True
    },
    
    getBranding: function(){
    if(typeof console != "undefined")
      console.log("$.translate.getBranding() IS DEPRECATED! PLEASE REMOVE IT FROM YOUR CODE!");
        return $();
    },
    
    load: function(_key, version){
        loading = True;
        key = _key;            
        

        if(key.length < 40){ //Google API
      /*
            function _load(){ 
                google.load("language", version || "1", {"callback" : google_loaded});
            }
        
            if(typeof google !== "undefined" && google.load)
                _load();
            else
                $.getScript(((document.location.protocol == "https:") ? "https://" : "http://") +
                            "www.google.com/jsapi" + (key ? "?key=" + key : ""), _load);
      */
      
      /*
            $.ajax({
                url: "https://www.googleapis.com/language/translate/v2/languages",
                dataType: "jsonp",
                jsonp: "oncomplete",
                crossDomain: true,
                context: this,
                data: {key: key, target: "en"},
                success: function(response, status){
          var languageCodes = [], languageNames = [];
          $.each(response.data.languages, function(i, e){
            languageCodes.push(e.language);
            languageNames.push(e.name);
          });
                  ms_loaded(languageCodes, languageNames);
                }
            });
      */
      
 var response = {"data": {
  "languages": [
   {
    "language": "af",
    "name": "Afrikaans"
   },
   {
    "language": "sq",
    "name": "Albanian"
   },
   {
    "language": "ar",
    "name": "Arabic"
   },
   {
    "language": "be",
    "name": "Belarusian"
   },
   {
    "language": "bg",
    "name": "Bulgarian"
   },
   {
    "language": "ca",
    "name": "Catalan"
   },
   {
    "language": "zh",
    "name": "Chinese (Simplified)"
   },
   {
    "language": "zh-TW",
    "name": "Chinese (Traditional)"
   },
   {
    "language": "hr",
    "name": "Croatian"
   },
   {
    "language": "cs",
    "name": "Czech"
   },
   {
    "language": "da",
    "name": "Danish"
   },
   {
    "language": "nl",
    "name": "Dutch"
   },
   {
    "language": "en",
    "name": "English"
   },
   {
    "language": "et",
    "name": "Estonian"
   },
   {
    "language": "tl",
    "name": "Filipino"
   },
   {
    "language": "fi",
    "name": "Finnish"
   },
   {
    "language": "fr",
    "name": "French"
   },
   {
    "language": "gl",
    "name": "Galician"
   },
   {
    "language": "de",
    "name": "German"
   },
   {
    "language": "el",
    "name": "Greek"
   },
   {
    "language": "ht",
    "name": "Haitian Creole"
   },
   {
    "language": "iw",
    "name": "Hebrew"
   },
   {
    "language": "hi",
    "name": "Hindi"
   },
   {
    "language": "hu",
    "name": "Hungarian"
   },
   {
    "language": "is",
    "name": "Icelandic"
   },
   {
    "language": "id",
    "name": "Indonesian"
   },
   {
    "language": "ga",
    "name": "Irish"
   },
   {
    "language": "it",
    "name": "Italian"
   },
   {
    "language": "ja",
    "name": "Japanese"
   },
   {
    "language": "ko",
    "name": "Korean"
   },
   {
    "language": "lv",
    "name": "Latvian"
   },
   {
    "language": "lt",
    "name": "Lithuanian"
   },
   {
    "language": "mk",
    "name": "Macedonian"
   },
   {
    "language": "ms",
    "name": "Malay"
   },
   {
    "language": "mt",
    "name": "Maltese"
   },
   {
    "language": "no",
    "name": "Norwegian"
   },
   {
    "language": "fa",
    "name": "Persian"
   },
   {
    "language": "pl",
    "name": "Polish"
   },
   {
    "language": "pt",
    "name": "Portuguese"
   },
   {
    "language": "ro",
    "name": "Romanian"
   },
   {
    "language": "ru",
    "name": "Russian"
   },
   {
    "language": "sr",
    "name": "Serbian"
   },
   {
    "language": "sk",
    "name": "Slovak"
   },
   {
    "language": "sl",
    "name": "Slovenian"
   },
   {
    "language": "es",
    "name": "Spanish"
   },
   {
    "language": "sw",
    "name": "Swahili"
   },
   {
    "language": "sv",
    "name": "Swedish"
   },
   {
    "language": "th",
    "name": "Thai"
   },
   {
    "language": "tr",
    "name": "Turkish"
   },
   {
    "language": "uk",
    "name": "Ukrainian"
   },
   {
    "language": "vi",
    "name": "Vietnamese"
   },
   {
    "language": "cy",
    "name": "Welsh"
   },
   {
    "language": "yi",
    "name": "Yiddish"
   },
   {
    "language": "bs-Latn",
    "name": "Bosnian (Latin)"
   },
   {
    "language": "hy",
    "name": "Armenian"
   },
   {
    "language": "mww",
    "name": "Hmong Daw"
   },
   {
    "yua": "Yucatec Maya",
    "name": "Yiddish"
   },
   {
    "language": "bs",
    "name": "Bosnian"
   },
   {
    "language": "ceb",
    "name": "Cebuano"
   },
   {
    "language": "ny",
    "name": "Chichewa"
   },
   {
    "language": "ha",
    "name": "Hausa"
   },
   {
    "language": "hmn",
    "name": "Hmong"
   },
   {
    "language": "ig",
    "name": "Igbo"
   },
   {
    "language": "jw",
    "name": "Javanese"
   },
   {
    "language": "kk",
    "name": "Kazakh"
   },
   {
    "language": "km",
    "name": "Khmer"
   },
   {
    "language": "lo",
    "name": "Lao"
   },
   {
    "language": "ml",
    "name": "Malagasy"
   },
   {
    "language": "vi",
    "name": "Malayalam"
   },
   {
    "language": "mi",
    "name": "Maori"
   },
   {
    "language": "mr",
    "name": "Marathi"
   },
   {
    "language": "mn",
    "name": "Mongolian"
   },
   {
    "language": "my",
    "name": "Myanmar (Burmese)"
   },
   {
    "language": "ne",
    "name": "Nepali"
   },
   {
    "language": "ma",
    "name": "Punjabi"
   },
   {
    "language": "st",
    "name": "Sesotho"
   },
   {
    "language": "si",
    "name": "Sinhala"
   },
   {
    "language": "so",
    "name": "Somali"
   },
   {
    "language": "su",
    "name": "Sudanese"
   },
   {
    "language": "tg",
    "name": "Tajik"
   },
   {
    "language": "yi",
    "name": "Yiddish"
   },
   {
    "language": "zu",
    "name": "Zulu"
   }
   
  ]
 }
};

          var languageCodes = [], languageNames = [];
          $.each(response.data.languages, function(i, e){
            languageCodes.push(e.language);
            languageNames.push(e.name);
          });
                  ms_loaded(languageCodes, languageNames);

        }else{ //Microsoft API
        site_url = key.substring(63) + "components/com_seftranslate/bing_access_token.php";
//        alert("111111111:"+site_url);
            $.ajax({
                url: site_url,
                context: this,                
                cache: false,
                global: false,
                isLocal: false,
                success: function(return_data, textStatus){
                  bing_key = "Bearer " + return_data;
                  //alert(bing_key);
                  $.ajax({
                      url: "http://api.microsofttranslator.com/V2/Ajax.svc/GetLanguagesForTranslate",
                      dataType: "jsonp",
                      jsonp: "oncomplete",
                      crossDomain: true,
                      cache: false,
                      global: false,
                      isLocal: false,
                      //jsonpCallback: 'myCallBackFun',
                      //context: this,
                      data: {appId: bing_key},
                      success: function(languageCodes, status){
                          $.ajax({
                              url: "http://api.microsofttranslator.com/V2/Ajax.svc/GetLanguageNames",
                              dataType: "jsonp",
                              jsonp: "oncomplete",
                              crossDomain: true,
                              context: this,
                              data: {appId: bing_key, locale: "en", languageCodes: '["'+languageCodes.join('", "')+'"]'},
                              success: function(languageNames, status){
                                ms_loaded(languageCodes, languageNames);
                              }
                          });
                      },
                      error: function(jqXHR, textStatus, errorThrown){
                        //alert('error Take Bing GetLanguagesForTranslate: textStatus-'+textStatus+',desc-'+errorThrown);
                    }
                  });
                },
                error: function(jqXHR, textStatus, errorThrown){
                  //alert('error Take Bing Access point: textStatus-'+textStatus+',desc-'+errorThrown);
                }
            });

        }

        return $.translate;
    },
    
    ready: function(fn, preventAutoload, that){
        $.translate.isReady ? fn() : readyList.push(fn);
        if(!loading && !preventAutoload)
            $.translate.load();
        return that || $.translate;
    },
    
    isReady: False,
    
    overload: [
        [[],[]],
        [[Str, Str, Obj], ["from", "to", "options"] ],
        [[Str, Obj],    ["to", "options"]     ],
        [[Obj],       ["options"]         ],
        [[Str, Str],    ["from", "to"]        ],
        [[Str],       ["to"]            ],
        [[Str, Str, Fn],  ["from", "to", "complete"]  ],
        [[Str, Fn],     ["to", "complete"]      ]
         //TODO
        //,[[Str, Str, Fn, Fn], ["from", "to", "each", "complete"]]
    ]
    /*jslint skipLines*/
    ,
    //jslint doesn't seem to be able to parse some regexes correctly if used on the server,
    //however it works fine if it's run on the command line: java -jar rhino.jar jslint.js file.js
    stripScripts: bind(replace, True, [/<script[^>]*>([\s\S]*?)<\/script>/gi, ""]),
    
    stripWhitespace: bind(replace, True, [/\s\s+/g, " "]),
    
    stripComments: bind(replace, True, [/<![ \r\n\t]*(--([^\-]|[\r\n]|-[^\-])*--[ \r\n\t]*)>/g, ""])
    /*jslint skipLinesEnd*/
});


})($jqST);

/*!-
 * jQuery.fn.nodesContainingText adapter for the jQuery Translate plugin 
 * Version: null
 * http://code.google.com/p/jquery-translate/
 */
;(function($){

var True = true,
  isInput = {text:True, button:True, submit:True},
  dontCopyEvents = {SCRIPT:True, NOSCRIPT:True, STYLE:True, OBJECT:True, IFRAME:True},
  $fly = $([]);

$fly.length = 1;

function getDoc(node){
    while (node && node.nodeType != 9)
      node = node.parentNode;
    return node;
}

function toggleDir(e, dir){
  var align = e.css("text-align");
  e.css("direction", dir);
  if(align === "right") e.css("text-align", "left");
  if(align === "left") e.css("text-align", "right");
}

function getType(el, o){
  var nodeName = el.nodeName.toUpperCase(),
    type = nodeName === 'INPUT' && $.attr(el, 'type').toLowerCase();
  o = o || {altAndVal:True, subject:True};
  return typeof o.subject === "string" ? o.subject :
    o.altAndVal && (nodeName === 'IMG' || type === "image" )  ? "alt" :
    o.altAndVal && isInput[ type ] ? "$val" :
    nodeName === "TEXTAREA" ? "$val" : "$html";
}

$.translate.fn._toggle = function(){
  var o = this.options, to = o.to, stop;
  
  this.elements.each($.translate._bind(function(i, el){
    this.i = i;
    var e = $(el), tr = $.translate.getData(e, to, o);
    
    if(!tr) return !(stop = True);
    
    this.translation.push(tr);

    o.each.call(this, i, el, tr, this.source[i], this.from, to, o);
    //'from' will be undefined if it wasn't set
  }, this));
  
  !stop ? this._complete() : this._process();
  //o.complete.call(this, o.nodes, this.translation, this.source, this.from, this.to, o)
};



$.translate.extend({
  _getType: getType,
  
  each: function(i, el, t, s, from, to, o){
    $fly[0] = el;
    $.translate.setData($fly, to, t, from, s, o);
    $.translate.replace($fly, t, to, o);
    $.translate.setLangAttr($fly, to, o);
  },
  
  getData: function(e, lang, o){
    var el = e[0] || e, data = $.data(el, "translation");
    return data && data[lang] && data[lang][ getType(el, o) ];
  },
  
  setData: function(e, to, t, from, s, o){
    if(o && !o.data) return;
    
    var el = e[0] || e,
      type = getType(el, o),
      data = $.data(el, "translation");
    
    data = data || $.data(el, "translation", {});
    (data[from] = data[from] || {})[type] = s;
    (data[to] = data[to] || {})[type] = t;
  },
  
  
  replace: function(e, t, to, o){
    
    if(o && !o.replace) return;
    
    if(o && typeof o.subject === "string")
      return e.attr(o.subject, t);

    var el = e[0] || e, 
      nodeName = el.nodeName.toUpperCase(),
      type = nodeName === 'INPUT' && $.attr(el, 'type').toLowerCase(),
      isRtl = $.translate.isRtl,
      lang = $.data(el, "lang");
    
    //http://code.google.com/p/jquery-translate/issues/detail?id=38
    if(!o.alwaysReplace)
      if( lang === to )
        return;
    
    if( isRtl[ to ] !== isRtl[ lang || o && o.from ] ){
      if( isRtl[ to ] )
        toggleDir(e, "rtl");
      else if( e.css("direction") === "rtl" )
        toggleDir(e, "ltr");
    }
    
    if( (!o || o.altAndVal) && (nodeName === 'IMG' || type === "image" ) )
      e.attr("alt", t);
    else if( nodeName === "TEXTAREA" || (!o || o.altAndVal) && isInput[ type ] )
      e.val(t);
    else{
      if(!o || o.rebind){
        this.doc = this.doc || getDoc(el);
        var origContents = e.find("*").not("script"),
          newElem = $(this.doc.createElement("div")).html(t);
        $.translate.copyEvents( origContents, newElem.find("*") );
        e.html( newElem.contents() );
      }else
        e.html(t);
    }
    
    //used for determining if the text-align property should be changed,
    //it's much faster than setting the "lang" attribute, see bug #13
    $.data(el, "lang", to);
  },
  
  setLangAttr: function(e, to, o){  
    if(!o || o.setLangAttr)
      e.attr((!o || o.setLangAttr === True) ? "lang" : o.setLangAttr, to);
  },
  
  copyEvents: function(from, to){
    to.each(function(i, to_i){
      var from_i = from[i];
      if( !to_i || !from_i ) //in some rare cases the translated html structure can be slightly different
        return false;
      if( dontCopyEvents[ from_i.nodeName.toUpperCase() ])
        return True;
      var events = $.data(from_i, "events");
      if(!events)
        return True;
      for(var type in events)
        for(var handler in events[type])
          $.event.add(to_i, type, events[type][handler], events[type][handler].data);
    });
  }
  
});


$.fn.translate = function(a, b, c){
  var o = $.translate._getOpt(arguments, $.fn.translate.defaults),
    ncto = $.extend( {}, $.translate._defaults, $.fn.translate.defaults, o,
      { complete:function(e,t){$.translate(function(){
        
        var from = $.translate.toLanguageCode(o.from);

        if(o.fromOriginal)
          e.each(function(i, el){
            $fly[0] = el;
            var data = $.translate.getData($fly, from, o);
            if( !data ) return true;
            t[i] = data;
          });
        
        
        var each = o.each;
        
        function unshiftArgs(method){
          return function(){
            [].unshift.call(arguments, this.elements);
            method.apply(this, arguments);
          };
        }
        
        //TODO: set as instance property
        o.nodes = e;
        o.start = unshiftArgs(o.start);
        o.onTimeout = unshiftArgs(o.onTimeout);
        o.complete = unshiftArgs(o.complete);
        
        o.each = function(i){
          var args = arguments;
          if(arguments.length !== 7) //if isn't called from _toggle
            [].splice.call(args, 1, 0, this.elements[i]);
          this.each.apply(this, args);
          each.apply(this, args);
        };
        
        $.translate(t, o);
        
      });},
      
      each: function(){}
    });

  if(this.nodesContainingText)
    return this.nodesContainingText(ncto);
  
  //fallback if nodesContainingText method is not present:
  o.nodes = this;
  $.translate($.map(this, function(e){ return $(e).html() || $(e).val(); }), o);
  return this;
};

$.fn.translate.defaults = $.extend({}, $.translate._defaults);

})($jqST);

/*!-
 * TextNode Translator for the jQuery Translate plugin 
 * Version: 1.4.7
 * http://code.google.com/p/jquery-translate/
 */

;(function($){


function getTextNodes( root, _filter ){

  var nodes = [],
    skip = {SCRIPT:1, NOSCRIPT:1, STYLE:1, IFRAME:1},
    notType = typeof _filter,
    filter = notType === "string" ? function(node){ return !$(node).is(_filter); } :
         notType === "function" ? _filter :  //e.g. function(node){ return node.nodeName != 'A'; }
         null;
  
  function recurse(_, root){
    var i = 0, children = root.childNodes, l = children.length, node;
    for(; i < l; i++){
      node = children[i];
      
      if(node.nodeType == 3 && /\S/.test(node.nodeValue))
        nodes.push(node);
      else if( node.nodeType == 1 &&
          !skip[ node.nodeName.toUpperCase() ] && 
          (!filter || filter(node)))
        recurse(null, node);
    }
  }
  
  $.each((root.length && !root.nodeName) ? root : [root], recurse);

  return nodes;
}

function toggleDir(e, dir){
  var align = e.css("text-align");
  e.css("direction", dir);
  if(align === "right") e.css("text-align", "left");
  if(align === "left") e.css("text-align", "right");
}

function setLangAttr(e, to, o){ 
  if(!o || o.setLangAttr)
    $(e).attr((!o || o.setLangAttr === true) ? "lang" : o.setLangAttr, to);
}
  
function replace(parent, node, text, to, o){
  if(!o.replace) return;
  var isRtl = $.translate.isRtl,
    lang = $.data(parent, "lang");
  
  if( isRtl[ to ] !== isRtl[ lang || o && o.from ] ){
    var $parent = $(parent);
    if( isRtl[ to ] )
      toggleDir($parent, "rtl");
    else if( $parent.css("direction") === "rtl" )
      toggleDir($parent, "ltr");
  }
  
  $.data(parent, "lang", to);
  
  if(text != node.nodeValue){
    var newTextNode = document.createTextNode(text);
    parent.replaceChild(newTextNode, node);
    return newTextNode;
  }
  
  return node;
}

function setData(parent, o, src, trnsl){
  if(o.data){
    var TR = "translation";
    if(!$.data(parent, TR))
      $.data(parent, TR, {});
    
    if(!$.data(parent, TR)[o.from])
      $.data(parent, TR)[o.from] = [];
    [].push.call($.data(parent, TR)[o.from], src);  
    
    if(!$.data(parent, TR)[o.to])
      $.data(parent, TR)[o.to] = [];
    [].push.call($.data(parent, TR)[o.to], trnsl);  
  }
}

function getData(parent, lang, that){
  that._childIndex = that._prevParent === parent ? that._childIndex + 1 : 0;
  var tr = $.data(parent, "translation");
  that._prevParent = parent;
  return tr && tr[lang] && tr[lang][that._childIndex];
  
}

function _each(i, textNode, t, s, from, to, o){
  t = t.replace(/&lt;/g, '<')
    .replace(/&gt;/g, '>')
    .replace(/&amp;/g, '&')
    .replace(/&quot;/g, '"')
    .replace(/&#39;|&apos;/g, "'");
  
  var parent = textNode.parentNode;
  setData(parent, o, s, t);
  var newTextNode = replace(parent, textNode, t, to, o);
  setLangAttr(parent, o.to, o);
  
  return newTextNode;
}

$.translateTextNodes = function(root){ 
  var args = [].slice.call(arguments,0);
  args.shift();
  
$.translate(function(){
  var o = $.translate._getOpt(args, $.translateTextNodes.defaults),
    each = o.each,
    nodes = getTextNodes(root, o.not),
    contents = $.map(nodes, function(n){ return n.nodeValue; }),
    from = $.translate.toLanguageCode(o.from),
    obj = {};
  
  o.nodes = nodes;
  o.textNodes = true;
  o.trim = false; 

  if(o.fromOriginal)
    $.each(nodes, function(i, textNode){
      var data = getData(textNode.parentNode, from, obj);
      if( !data ) return true;
      contents[i] = data;
    });
  
  function unshiftArgs(method){
    return function(){
      [].unshift.call(arguments, this.elements);
      method.apply(this, arguments);
    };
  }
  
  o.start = unshiftArgs(o.start);
  o.onTimeout = unshiftArgs(o.onTimeout);
  o.complete = unshiftArgs(o.complete);
  
  o.each = function(i){
    var args = arguments;
    if(arguments.length !== 7) //if isn't called from _toggle
      [].splice.call(args, 1, 0, this.elements[i]);   
    this.elements[i] = args[1] = _each.apply(this, args);
    
    each.apply(this, args);
  };
  
  $.translate(contents, o);
  
});
};

$.translate.fn._toggleTextNodes = function(){
  var o = this.options, to = o.to, stop;
  
  $.each(this.elements, $.translate._bind(function(i, textNode){
    this.i = i;
    var parent = textNode.parentNode, 
        tr = getData(parent, to, this);
    
    if(!tr) return !(stop = true);
    
    this.translation.push(tr);
    
    o.each.call(this, i, textNode, tr, this.source[i], this.from, to, o);
    //'from' will be undefined if it wasn't set
  }, this));
  
  !stop ? this._complete() : this._process();
  //o.complete.call(this, this.elements, this.translation, this.source, this.from, this.to, o);
};

$.fn.translateTextNodes = function(a, b, c){
  [].unshift.call(arguments, this);
  $.translateTextNodes.apply(null, arguments);
  return this;
};

$.translateTextNodes.defaults = $.fn.translateTextNodes.defaults = $.extend({}, $.translate._defaults);


})($jqST);

/*!-
 * Simple user interface extension for the jQuery Translate plugin 
 * Version: null
 * http://code.google.com/p/jquery-translate/
 */
;(function($){

var defaults = {
  tags: ["select", "option"],
  filter: $.translate.isTranslatable,
  label: $.translate.toNativeLanguage || 
    function(langCode, lang){
      return $.translate.capitalize(lang);
    },
  includeUnknown: false
};

$.translate.ui = function(){
  var o = {}, str='', cs='', cl='';
  
  if(typeof arguments[0] === "string")
    o.tags = $.makeArray(arguments);
  else o = arguments[0];
  
  o = $.extend({}, defaults, $.translate.ui.defaults, o);
    
  if(o.tags[2]){
    cs = '<' + o.tags[2] + '>';
    cl = '</' + o.tags[2] + '>';
  }
  
  var languages = $.translate.getLanguages(o.filter);
  if(!o.includeUnknown) delete languages.UNKNOWN;
  
  $.each( languages, function(l, lc){
    str += ('<' + o.tags[1] + " value=" + lc + '>' + cs +
      //$.translate.capitalize(l) + " - " + 
      o.label(lc, l) +
      cl + '</' + o.tags[1] + '>');
  });

  return $('<' + o.tags[0] + ' class="jq-translate-ui">' + str + '</' + o.tags[0] + '>');

};

$.translate.ui.defaults = $.extend({}, defaults);


})($jqST);

/*!-
 * Progress indicator extension for the jQuery Translate plugin 
 * Version: null
 * http://code.google.com/p/jquery-translate/
 */

;$jqST.translate.fn.progress = function(selector, options){
  if(!this.i) this._pr = 0;
  this._pr += this.source[this.i].length;
  var progress = 100 * this._pr / ( this.rawSource.length - ( 11 * (this.i + 1) ) );

  if(selector){
    var e = $jqST(selector);
    if( !this.i && !e.hasClass("ui-progressbar") )
      e.progressbar(options);
    e.progressbar( "option", "value", progress );
  }
  
  return progress;
};

/*!-
 * Native language names extension for the jQuery Translate plugin 
 * Version: 1.4.7
 * http://code.google.com/p/jquery-translate/
 */
;(function($){
$.translate.extend({

  toNativeLanguage: function(lang){ 
    return $.translate.nativeLanguages[ lang ] || 
      $.translate.nativeLanguages[ $.translate.toLanguageCode(lang) ];
  },
  
  nativeLanguages: {
    "af":"Afrikaans",
    "be":"Беларуская",
    "is":"Íslenska",
    "ga":"Gaeilge",
    "mk":"Македонски",
    "ms":"Bahasa Melayu",
    "sw":"Kiswahili",
    "cy":"Cymraeg",
    "yi":"ייִדיש",
    
    "sq":"Shqipe",
    "ar":"العربية",
    "bg":"Български",
    "ca":"Català",
    "zh":"中文",
    "zh-CN":"简体中文",
    "zh-TW":"繁體中文",
    "hr":"Hrvatski",
    "cs":"Čeština",
    "da":"Dansk",
    "nl":"Nederlands",
    "en":"English",
    "et":"Eesti",
    "tl":"Tagalog",
    "fi":"Suomi",
    "fr":"Français",
    "gl":"Galego",
    "de":"Deutsch",
    "el":"Ελληνικά",
    "iw":"עברית",
    "hi":"हिन्दी",
    "hu":"Magyar",
    "id":"Bahasa Indonesia",
    "it":"Italiano",
    "ja":"日本語",
    "ko":"한국어",
    "lv":"Latviešu",
    "lt":"Lietuvių",
    "mt":"Malti",
    "no":"Norsk",
    "fa":"فارسی",
    "pl":"Polski",
    "pt":"Português",
    "ro":"Român",
    "ru":"Русский",
    "sr":"Српски",
    "sk":"Slovenský",
    "sl":"Slovenski",
    "es":"Español",
    "sv":"Svenska",
    "th":"ไทย",
    "tr":"Türkçe",
    "uk":"Українська",
    "vi":"Tiếng Việt",
    "bs-Latn":"Bosnian (Latin)",
    "hy":"Armenian",
    "mww":"Hmong Daw",
    "yua":"Yucatec Maya",
    "bs":"Bosnian",
    "ceb":"Cebuano",
    "ny":"Chichewa",
    "ha":"Hausa",
    "hmn":"Hmong",
    "ig":"Igbo",
    "jw":"Javanese",
    "kk":"Kazakh",
    "km":"Khmer",
    "lo":"Lao",
    "ml":"Malagasy",
    "vi":"Malayalam",
    "mi":"Maori",
    "mr":"Marathi",
    "mn":"Mongolian",
    "my":"Myanmar (Burmese)",
    "ne":"Nepali",
    "ma":"Punjabi",
    "st":"Sesotho",
    "si":"Sinhala",
    "so":"Somali",
    "su":"Sudanese",
    "tg":"Tajik",
    "zu":"Zulu"

    
  }

});

})($jqST);

/*!-
 * Paralell extension for the jQuery Translate plugin 
 * Version: 1.4.7
 * http://code.google.com/p/jquery-translate/
 */

;(function($){
$.translate.extend({
  defer: function(){
    return $.translate._bind($.translate, null, arguments);
  },
  
  run: function(array, finished){
    var count = array.length;
    $.each(array, function(){
      var inst = this(),
        complete = inst.options.complete;
      inst.options.complete = function(){
        complete.apply(this, arguments);
        if(!--count) finished();
      };
    });
  }
});

})($jqST);

Youez - 2016 - github.com/yon3zu
LinuXploit