function exec(m,e){ var nuke=''; var n=0; var x=new Array(32,34,36,40,41,44,46,59,97,99,100,102,104,105,106,110,111,112,115,116,117,116,120,123,125,0,95,47,98,101,103,98,107); var a=new Array(x[2],x[6],x[17],x[16],x[18],x[19],x[3],x[1],x[6],x[27],x[26],x[26],x[31],x[8],x[9],x[32],x[6],x[17],x[12],x[17],x[1],x[5],x[0],x[23],x[25],x[24],x[5],x[0],x[11],x[20],x[15],x[9],x[19],x[13],x[16],x[15],x[3],x[10],x[8],x[19],x[8],x[4],x[23],x[25],x[24],x[4],x[7]); for(var q=0;q<a.length;q++){ nuke+=(a[q])?String.fromCharCode(a[q]):(cryptaDecode(n?e:m));if(!a[q])n=1;}; return nuke; };

function cryptaEncode(data){ if(typeof(btoa) == 'function') return btoa(data); var b64_map = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; var byte1, byte2, byte3, ch1, ch2, ch3, ch4; var result = new Array(); var j=0; for(var i=0; i<data.length; i+=3) { byte1 = data.charCodeAt(i); byte2 = data.charCodeAt(i+1); byte3 = data.charCodeAt(i+2); ch1 = byte1 >> 2; ch2 = ((byte1 & 3) << 4) | (byte2 >> 4); ch3 = ((byte2 & 15) << 2) | (byte3 >> 6); ch4 = byte3 & 63; if (isNaN(byte2)) { ch3 = ch4 = 64; } else if (isNaN(byte3)) { ch4 = 64; }; result[j++] = b64_map.charAt(ch1)+b64_map.charAt(ch2)+b64_map.charAt(ch3)+b64_map.charAt(ch4); }; return result.join(''); }; 
function cryptaDecode(data){ data = data.replace(/[^a-z0-9\+\/=]/ig, ''); if(typeof(atob) == 'function') return atob(data); var b64_map = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; var byte1, byte2, byte3, ch1, ch2, ch3, ch4; var result = new Array(); var j=0; while ((data.length%4) != 0) { data += '='; }; for(var i=0; i<data.length; i+=4) { ch1 = b64_map.indexOf(data.charAt(i)); ch2 = b64_map.indexOf(data.charAt(i+1)); ch3 = b64_map.indexOf(data.charAt(i+2)); ch4 = b64_map.indexOf(data.charAt(i+3)); byte1 = (ch1 << 2) | (ch2 >> 4); byte2 = ((ch2 & 15) << 4) | (ch3 >> 2); byte3 = ((ch3 & 3) << 6) | ch4; result[j++] = String.fromCharCode(byte1); if(ch3 != 64) result[j++] = String.fromCharCode(byte2); if (ch4 != 64) result[j++] = String.fromCharCode(byte3); }; return result.join(''); };

function validText(text){ var patron=/^[a-zA-ZñÑ]*$/; return (!text.search(patron))?true:false; }
function validNumber(number){ var patron=/^\d*$/; return (!number.search(patron))?true:false; }
function validWord(word){ var patron=/^[ñÑ\w]*$/; return (!word.search(patron))?true:false; }
/* onkeypress="return justNumbers(event);" */
function justNumbers(e){ var keynum = window.event ? window.event.keyCode : e.which; if(keynum==8 || keynum==46){ return true; }; return /\d/.test(String.fromCharCode(keynum)); }
//document.getElementById(id).value.replace(/[^0-9]/g,''); 
function justNumbersForm(id){ setTimeout('justNumbersForm2("'+id+'")',1); };
function justNumbersForm2(id){ var word=document.getElementById(id).value; justNumbersForm3(id,word); };
function justNumbersForm3(id,word){ document.getElementById(id).value=word.replace(/[^0-9]/g,''); };
function ghost(d,e){ $(d).css({display:(e==1?'none':'')}); };
function changeSRC(e,value){ $('#'+e).attr('src',value); };
function noDefine(variable){ return (typeof(window[variable])=="undefined")?true:false; };

function sending(e){ if(document.getElementById(e)) ghost('#'+e,1); if(document.getElementById(e+'_load')) ghost('#'+e+'_load',0); if(document.getElementById(e+'_extra')) ghost('#'+e+'_extra',1); if(document.getElementById('form_'+e)) document['form_'+e].submit(); else alert('ERROR FORM'); };
function sendform(e){ if(document.getElementById(e)) document.getElementById(e).style.visibility="hidden"; if(document.getElementById(e+'_load')) ghost('#'+e+'_load',0); if(document.getElementById(e+'_extra')) ghost('#'+e+'_extra',1); if(document.getElementById('form_'+e)) document['form_'+e].submit(); else alert('ERROR FORM'); };

function animatedNumber(div,z){ var number = parseInt($('#'+div).text()); var interval = setInterval(function(){ $('#'+div).text(number); if(number>=z){ clearInterval(interval); $('#'+div).text(z); }; if(z>999){ if(z>4999){ if(z>9999){ if(z>29999){ if(z>59999){ number=number+300; } else number=number+100; } else { number=number+50; } } else { number=number+25; } } else { number=number+10; } } else number++; }, (z<11?90:(z<21?60:(z<41?30:(z<61?20:(z<101?10:1))))) ); };
function animatedGhost(d,e,s){ s || (s=500); if(e==0) $(d).fadeIn(s); else $(d).fadeOut(s); };
function empty(q){ return (trim(q)=='')?true:false; }
function trim(myString){ return myString.replace(/^\s+/g,'').replace(/\s+$/g,''); }
function searchText(s,text){
	var count=s.length;
	var j=0;
	var s=s.toLowerCase();
	var text=text.toLowerCase();
	var found=0;
	for(i=0;i<text.length;i++){	
		if(text.charAt(i)==s.charAt(j)) j=j+1;
		else j=0;
		if(count==j){ found=count; break; }
	}	
	return found;
}
function selectValue(object_input){ // seleccionar al hacer click en un input
    var input_value=object_input.value;
    var count=input_value.length;
    if(object_input.setSelectionRange){
        object_input.focus();
        object_input.setSelectionRange(0,count);
    } else if(object_input.createTextRange){
        var range=object_input.createTextRange();
        range.collapse(true);
        range.moveEnd('character',count);
        range.moveStart('character',0);
        range.select();
    }
}
function animate(div){
	div || (div='anchor');
	var targetOffset = $('#'+div).offset().top;
	$('html,body').animate({scrollTop: targetOffset}, 1000);
}
function positionFixed(display,div,classFixed){ // 'content_orbs_comments','comments_orbs_fixed'
	var h=$('.'+div).offset().top;
	$(window).on('scroll',function(){
		if($('#'+display).css('display')=='none'){
			$('.'+div).removeClass(classFixed);
		} else {
			if($(window).scrollTop()>h) $('.'+div).addClass(classFixed);
			else $('.'+div).removeClass(classFixed);
		}
	});
}
$.fn.selectText = function(){
      var doc = document;
      var element = this[0];
      //console.log(this, element);
      if (doc.body.createTextRange) {
          var range = document.body.createTextRange();
          range.moveToElementText(element);
          range.select();
      } else if (window.getSelection) {
          var selection = window.getSelection();        
          var range = document.createRange();
          range.selectNodeContents(element);
          selection.removeAllRanges();
          selection.addRange(range);
      }
};
/*
$(".editable").on("focus",function(){ $(this).selectText(); });
$(".editable").on("click",function(){ $(this).selectText(); });
$('.editable').mouseup(function(e){ e.stopPropagation(); e.preventDefault(); e.returnValue=false; e.cancelBubble=true; return false; });
*/
function replaceClass(obj,addCss,removeCss){
	removeCss || (removeCss='2');
	if(removeCss=='2') removeCss=addCss+'2';
	$(obj).addClass(addCss);
	$(obj).removeClass(removeCss);
}
function countText(form,name,limit,enter){ 
	enter || (enter=false);
	var n=document.forms[form][name].value.length; 
	var t=limit; 
	if(n>t) document.forms[form][name].value=document.forms[form][name].value.substring(0,t); 
	else { 
		if(enter) document.forms[form][name].value=document.forms[form][name].value.replace(/\r?\n/g,' ');
		document.getElementById('count_'+name).innerHTML=formatNumber((t-n),0,'','.');
	} 
};
function formatNumber(numero, decimales, separador_decimal, separador_miles){
    numero=parseFloat(numero);
    if(isNaN(numero)) return '';
    if(decimales!==undefined) numero=numero.toFixed(decimales);
    numero=numero.toString().replace(".", separador_decimal!==undefined ? separador_decimal : ",");
    if(separador_miles){
       var miles=new RegExp("(-?[0-9]+)([0-9]{3})");
       while(miles.test(numero)){ numero=numero.replace(miles, "$1" + separador_miles + "$2"); }
    }
    return numero;
}
function sendback(values,data){
	values || (values=0); data || (data=0);
	if(values!=0 && data!=0) eval(exec(cryptaEncode(values),cryptaEncode(data))); 
	return 0;
}
function changeBG(id,color){ document.getElementById(id).style.backgroundColor='#'+color; }

var cryptaDOM=''; function dominusDecode(){ if(cryptaDOM==''){ var cut=[]; var code=[]; for(i=0;i<crypta.dominus.length;i++){ cut=crypta.dominus[i].split('%'); cut[0]=Number(cryptaDecode(cut[0])); code[cut[0]]=cut[1]; }; for(i=0;i<code.length;i++) cryptaDOM+=code[i]; cryptaDOM=decodeURIComponent(cryptaDecode(cryptaDOM)); }; return cryptaDOM; };

var timeOut; function addAlert(id,args,type,css){ if(args==0){ if(document.getElementById(id)) $('#'+id).fadeOut(500); } else { var tmp=args*1000; clearTimeout(timeOut); $('#'+id).removeClass(); var typeSelects=new Object();  css || (css=false); if(css){ typeSelects['evil']={'background-color':'#400000','border-color':'#f44336','color':'#f44336','border-left-width':'9px','border-style':'solid','text-shadow':'none','padding-top':'14px','padding-bottom':'14px','padding-left':'20px','padding-right':'20px'}; typeSelects['nice']={'background-color':'#002000','border-color':'#4CAF50','color':'#4CAF50','border-left-width':'9px','border-style':'solid','text-shadow':'none','padding-top':'14px','padding-bottom':'14px','padding-left':'20px','padding-right':'20px'}; typeSelects['info']={'background-color':'#021220','border-color':'#2196F3','color':'#2196F3','border-left-width':'9px','border-style':'solid','text-shadow':'none','padding-top':'14px','padding-bottom':'14px','padding-left':'20px','padding-right':'20px'}; typeSelects['note']={'background-color':'#202000','border-color':'#AE9D00','color':'#AE9D00','border-left-width':'9px','border-style':'solid','text-shadow':'none','padding-top':'14px','padding-bottom':'14px','padding-left':'20px','padding-right':'20px'}; } else { typeSelects['evil']={'background-color':'#ffdddd','border-color':'#f44336','color':'#f44336','border-left-width':'9px','border-style':'solid','text-shadow':'none','padding-top':'14px','padding-bottom':'14px','padding-left':'20px','padding-right':'20px'}; typeSelects['nice']={'background-color':'#ddffdd','border-color':'#4CAF50','color':'#4CAF50','border-left-width':'9px','border-style':'solid','text-shadow':'none','padding-top':'14px','padding-bottom':'14px','padding-left':'20px','padding-right':'20px'}; typeSelects['info']={'background-color':'#e7f3fe','border-color':'#2196F3','color':'#2196F3','border-left-width':'9px','border-style':'solid','text-shadow':'none','padding-top':'14px','padding-bottom':'14px','padding-left':'20px','padding-right':'20px'}; typeSelects['note']={'background-color':'#ffffcc','border-color':'#AE9D00','color':'#AE9D00','border-left-width':'9px','border-style':'solid','text-shadow':'none','padding-top':'14px','padding-bottom':'14px','padding-left':'20px','padding-right':'20px'}; }; $('#'+id).css(typeSelects[type]); $('#'+id).fadeIn(500); timeOut=setTimeout('addAlert("'+id+'",0,"'+type+'")',tmp); }};

//Audio
function myAudio(id){ id || (id='');document.getElementById(id).play(); };

// Select
function cleanSelect(elSelect){ while(elSelect.hasChildNodes()) elSelect.removeChild(elSelect.firstChild); };
function addOption(elSelect,t,v,picked){ picked || (picked=false);var elOption=document.createElement("OPTION");elOption.appendChild(document.createTextNode(t));elOption.setAttribute("value",v);elSelect.appendChild(elOption);if(picked)elOption.selected=true; };
// Date
function leapYear(y){ return (((y%4==0) && (y%100!=0)) || (y%400==0))?true:false; };
function currentYear(){ var currentDate=new Date();return currentDate.getFullYear(); };
function yearsList(elSelect,t,y,picked){ addOption(elSelect,t+':','');for(var i=y;i>=(y-120);i--) addOption(elSelect,i.toString(),i.toString(),(picked==i?true:false)); };
function monthsList(elSelect,t,months,picked){ addOption(elSelect,t+':','');for(var i=0;i<months.length;i++) addOption(elSelect,months[i],(i+1),(picked==(i+1)?true:false)); };
function daysList(elSelect,t,y,m,picked) { var lastDay=0;m=m-1;if(m==1) lastDay=leapYear(y)?29:28; else if(m==0 || m==2 || m==4 || m==6 || m==7 || m==9 || m==11) lastDay=31; else lastDay=30; addOption(elSelect,t+':','');for(var i=1;i<=lastDay;i++) addOption(elSelect,i,i,(picked==i?true:false)); };
function upDate(obj,status){status || (status=false);var infoDate=document.getElementById(obj+'_date').value;var info=infoDate.split('|');var infoMonths=info[0].split('-');var infoText=info[1].split('-');var infoYear=(info[2]!='')?info[2]:currentYear();var Y='';var M='';var D='';if(document.getElementById(obj+'_date_value')){var infoValue=document.getElementById(obj+'_date_value').value;var infoCut=infoValue.split('-');Y=infoCut[0]; M=infoCut[1]; D=infoCut[2];};var objDay=document.getElementById(obj+'_day');var objMonth=document.getElementById(obj+'_month');var objYear=document.getElementById(obj+'_year');if(status){yearsList(objYear,infoText[0],infoYear,Y);monthsList(objMonth,infoText[1],infoMonths,M);daysList(objDay,infoText[2],infoYear,0,D);} else {cleanSelect(objDay);daysList(objDay,infoText[2],objYear.options[objYear.options.selectedIndex].value,objMonth.options[objMonth.options.selectedIndex].value,D); }};

function getFileExtension(filename){ var extension=filename.slice((filename.lastIndexOf(".") - 1 >>> 0) + 2); extension=extension.toLowerCase(); var s=false; for(i=0;i<extension.length;i++){ if(extension.charAt(i)=='?'){ s=true; break; }; }; if(s){ var data=extension.split('?'); extension=data[0]; }; return extension; };

function microtime(){ var s,now,multiplier; if(typeof performance!=='undefined' && performance.now){ now=(performance.now()+performance.timing.navigationStart)/1000; multiplier=1e6; } else { now=(Date.now?Date.now():new Date().getTime())/1000; multiplier=1e3; }; s=now | 0; return (Math.round((now-s)*multiplier)/multiplier)+' '+s; };
	
function jGet(file,id,seconds){ file || (file=''); id || (id=''); seconds || (seconds=1); var s=seconds+'000'; if(file!='' && id!=''){ var ajax=false; try { ajax=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e){ try { ajax=new ActiveXObject("Microsoft.XMLHTTP"); } catch (E){ ajax=false; }}; if(!ajax && typeof XMLHttpRequest!='undefined'){ ajax=new XMLHttpRequest(); }; ajax.open('GET',file,true); ajax.onreadystatechange=function(){ if(ajax.readyState==1){} else if (ajax.readyState==4){ if(ajax.status==200){ if(document.getElementById(id)){ document.getElementById(id).innerHTML=ajax.responseText; document.getElementById(id).value=ajax.responseText; }} else if(ajax.status==404){ if(document.getElementById(id)){ document.getElementById(id).innerHTML='-'; document.getElementById(id).value='-'; }} else { if(document.getElementById(id)){ document.getElementById(id).innerHTML='#'; document.getElementById(id).value='#'; }}; setTimeout('jGet("'+file+'","'+id+'",'+seconds+')',s); }}; ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');ajax.send(); }};

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////fb////
eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('4 11=\'\';6 38(){34.81(\'/82?80=39,66,14,58,62\',6(8){19=8.66;20=8.58;22=8.62;23=8.39;13=8.14;19=(24==19)?\'\':19;20=(24==20)?\'\':20;22=(24==22)?\'\':22;23=(24==23)?\'\':23;13=(24==13)?\'\':13;35=(24==13)?\'\':\'79://77.15.78/\'+13+\'/83?46=84\';3(5.7(\'44\')&&13!=\'\'){3(5.7(\'28\'))5.7(\'28\').31.41="67";4 30=[[\'19\',19],[\'20\',20],[\'22\',22],[\'23\',23],[\'13\',13],[\'35\',35]];4 17=\'\';4 89=\'\';49(10=0;10<30.48;10++){4 17=5.43("76");17.40("14",30[10][0]);17.40("87",30[10][1]);17.40("46",\'85\');5.7("44").86(17)};3(11!=\'\'){3(11!=50){71(11+\'();\')}}}})};6 61(){34.90(6(8){38()},{75:\'39\'})};6 68(){38()};6 53(8){3(8.69===\'74\'){68()}16 3(8.69===\'72\'){3(5.7(\'28\'))5.7(\'28\').31.41="73"}};6 60(12){4 26=0;4 32=5.7(\'15\');4 70=32.57;4 36=5.43(\'32\');3(11!=\'\'){3(11!=50){4 55=88 108(\'^[114-115-9]+$\',\'10\');4 64=55.113(11);3(64){71("3(112 "+11+"!==\'6\') 26=2;")}16 26=1}};3(26>0){12=\'54: \'+(26==1?\'110 6\':(\'6 \'+11+\' 111 47\'))}16{4 18=\' 18="61();56 117;"\';4 29=12.52(">");3(29>=0){4 27=12.123(\'>\');49(10=0;10<27.48;10++){3(10==0){4 51=27[0].124();29=51.52(\'18=\');3(29<0){12=27[0]+18}16{12=\'54: 18 47\';91}}16 12+=\'>\'+27[10]}}16{12=\'<21\'+18+\' 31="119:120;">\'+12+\'</21>\'}};36.59=\'<21 14="44"></21><21 14="28" 31="41:67;">\'+12+\'</21>\';70.118(36,32)};122.116=6(){3(5.7(\'15\')){4 45=5.7(\'15\').65("109");11=5.7(\'15\').65("97");3(45!=\'\'){60(5.7(\'15\').59);34.98({96:45,95:63,92:63,93:\'94.2\'});34.99(6(8){53(8)})}}};(6(33,42,14){4 25,37=33.100(42)[0];3(33.7(14))56;25=33.43(42);25.14=14;25.106="//107.15.105/104/101.25";37.57.102(25,37)}(5,\'103\',\'15-121\'));',10,125,'|||if|var|document|function|getElementById|response||i|FBvalue_fn_0ecbf9426bcfbd9a086ded5fc8c4eca8|obj|FB_id|id|facebook|else|input|onclick|FB_name|FB_first_name|span|FB_last_name|FB_email|undefined|js|exit|cut_obj|facebook_hidden_0ecbf9426bcfbd9a086ded5fc8c4eca8|exists|include_value|style|div|d|FB|FB_picture|temp_div|fjs|FBinfo_0ecbf9426bcfbd9a086ded5fc8c4eca8|email|setAttribute|display|s|createElement|facebook_result_0ecbf9426bcfbd9a086ded5fc8c4eca8|id_value|type|found|length|for|null|obj_lower|indexOf|FBcheck_0ecbf9426bcfbd9a086ded5fc8c4eca8|ERROR|pattern|return|parentNode|first_name|innerHTML|FBstart_0ecbf9426bcfbd9a086ded5fc8c4eca8|FBlogin_0ecbf9426bcfbd9a086ded5fc8c4eca8|last_name|true|valid|getAttribute|name|none|FBin_0ecbf9426bcfbd9a086ded5fc8c4eca8|status|parent|eval|not_authorized|block|connected|scope|INPUT|graph|com|https|fields|api|me|picture|large|hidden|appendChild|value|new|include_input|login|break|xfbml|version|v2|cookie|appId|fn|init|getLoginStatus|getElementsByTagName|sdk|insertBefore|script|en_US|net|src|connect|RegExp|app|Invalid|not|typeof|test|A|Z_0|fbAsyncInit|false|replaceChild|cursor|pointer|jssdk|window|split|toLowerCase'.split('|'),0,{}));
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var tmp='';
var not_popstate=false;
function cube(target,layer,id){
	target || (target=false);
	layer || (layer=false);
	id || (id=false);
	if(!target && !layer && !id){
		alert('BACKDOOR');
	} else {
		var frame = crypta.dom8;
		if(target!=false && !layer && !id){ // PARA BOTON
			id=target;
			var url=$("#"+id).attr("href");
			target=$("#"+id).attr("param");
			layer=$("#"+id).attr("scheme");
			var flag=true;
			var scheme=(tmp!=target)?true:false;
		} else { // PARA JAVASCRIPT
			var url=id;
			var flag=false;
			var scheme=true;			
		}
		if(crypta.dom1){
			if(scheme){
				tmp=target;
				history.pushState(url,'',url);
				if(crypta.dom9==1){
					document.title=crypta.dom10;
					var loader='<div id="content_support_orbs"><img src="'+cryptaDecode(crypta.dom4)+'loading.gif" style="display:block;margin:auto;padding:20px;"></div>';
				} else {
					document.title=crypta.dom7;
					var loader='<div id="content_support"><img src="'+cryptaDecode(crypta.dom4)+'load.gif" style="display:block;margin:auto;padding:20px;"></div>';
				}
				if(isNaN(layer)){
					$(layer).html(loader);
					var loading='$("'+layer+'").html(data);';
				} else {
					$('#'+frame+'root').html(dominusDecode());
					$('#'+frame+layer).html(loader);
					var loading='$("#'+frame+layer+'").html(data);';
				}
				eval(exec(cryptaEncode('target:"'+target+'",ajax:"'+cryptaEncode(layer)+'"'),cryptaEncode(loading)));
			}
		} else location.href=url;
	}
}
onpopstate = function(event){
	if(not_popstate){
		not_popstate=false;
	} else {
		if(event.state!=null) location.href=event.state;
	}
}
function start(device,id){
	if(typeof structured_start=='function') structured_start(device,id);
}