var actual,cuenta;actual='hosting';cuenta=0;parar=0;function cMENU(elemento,llamante){nuevo=elemento;call=llamante;if(actual!=nuevo){if(parar==0 ||call==1){MM_swapImage('M_HOSTING','','index_move/bl_hosting_01.png',1);MM_swapImage('M_MULTIDOMINIO','','index_move/bl_multidominio_01.png',1);MM_swapImage('M_DUAL','','index_move/bl_dual_01.png',1);MM_swapImage('M_VPS','','index_move/bl_vps_01.png',1);MM_swapImage('M_DEDICADOS','','index_move/bl_dedicados_01.png',1);MM_swapImage('M_'+nuevo.toUpperCase(),'','index_move/bl_'+nuevo+'_02.png',1);$('#VC_'+actual.toUpperCase()).fadeOut(200);$('#VC_'+nuevo.toUpperCase()).fadeIn(200);actual=nuevo;if(cuenta <=4){cuenta=cuenta+1;}
if(cuenta > 4){cuenta=0;}}}}
function cVARIAR(){if(parar==0){if(cuenta==0){setTimeout("if(parar==0){cMENU('multidominio'); cVARIAR();}",5000);}
if(cuenta==1){setTimeout("if(parar==0){cMENU('dual'); cVARIAR();}",5000);}
if(cuenta==2){setTimeout("if(parar==0){cMENU('vps'); cVARIAR();}",5000);}
if(cuenta==3){setTimeout("if(parar==0){cMENU('dedicados'); cVARIAR();}",5000);}
if(cuenta==4){setTimeout("if(parar==0){cMENU('hosting'); cVARIAR();}",5000);}}}
function MM_findObj(n,d){//v4.01
var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x && d.getElementById)x=d.getElementById(n);return x;}
function MM_swapImage(){//v3.0
var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function MM_openBrWindow(theURL,winName,features){//v2.0
window.open(theURL,winName,features);}
var linux_nd=1;var windows_nd=0;function A_WINDOWS(origen,url){url_win='../marco_contenido/comunes/p_win.png';if(origen=='vt'){url_win='../marco_contenido/soporte/paneles/s_online_video_win.png';}
if(linux_nd==1){$('#SEL_LINUX').attr("src","../marco_contenido/comunes/p_boton_linux_off.png");$('#SEL_WINDOWS').attr("src","../marco_contenido/comunes/p_boton_win_on.png");$('#VINCULO_PEDIDO').attr("href",url);$('#LINUX').animate({"height": "toggle"},{duration: 300});$('#LINUX_CONT').animate({"height": "toggle"},{duration: 300});$('#WINDOWS').animate({"height": "toggle"},{duration: 300});$('#WINDOWS_CONT').animate({"height": "toggle"},{duration: 300});$('#INFO_PLATAFORMA').fadeOut(300,function(){$(this).attr({'src':url_win});$(this).fadeIn(300);});linux_nd=0;windows_nd=1;}};function A_LINUX(origen,url){url_lin='../marco_contenido/comunes/p_linux.png';if(origen=='vt'){url_lin='../marco_contenido/soporte/paneles/s_online_video_linux.png';}
if(windows_nd==1){$('#SEL_LINUX').attr("src","../marco_contenido/comunes/p_boton_linux_on.png");$('#SEL_WINDOWS').attr("src","../marco_contenido/comunes/p_boton_win_off.png");$('#VINCULO_PEDIDO').attr("href",url);$('#WINDOWS').animate({"height": "toggle"},{duration: 300});$('#WINDOWS_CONT').animate({"height": "toggle"},{duration: 300});$('#LINUX').animate({"height": "toggle"},{duration: 300});$('#LINUX_CONT').animate({"height": "toggle"},{duration: 300});$('#INFO_PLATAFORMA').fadeOut(300,function(){$(this).attr({'src':url_lin});$(this).fadeIn(300);});linux_nd=1;windows_nd=0;}};var Desplegables=new Array();function MUEVE(desplegable){if(Desplegables[desplegable]==null){Desplegables[desplegable]=1;$('#BTN_'+desplegable).attr("src","../marco_contenido/comunes/p_boton_menos.png");$('#DESC_'+desplegable).animate({"height": "toggle"},{duration: 300});}else{Desplegables[desplegable]=null;$('#BTN_'+desplegable).attr("src","../marco_contenido/comunes/p_boton_mas.png");$('#DESC_'+desplegable).animate({"height": "toggle"},{duration: 300});}};var NoticiasBlog=new Array();function DESRED(noticiab){if(NoticiasBlog[noticiab]==null){NoticiasBlog[noticiab]=1;$('#DESCRIPCION_'+noticiab).animate({"height": "toggle"},400,function(){$('#COMPLETO_'+noticiab).animate({"height": "toggle"},{duration: 400});});}else{NoticiasBlog[noticiab]=null;$('#COMPLETO_'+noticiab).animate({"height": "toggle"},400,function(){$('#DESCRIPCION_'+noticiab).animate({"height": "toggle"},{duration: 400});});}};function DomViene(){if($("#dominiodefecto").val()=="dominio.com"){$("#dominiodefecto").val('');}}
function DomVa(){if($("#dominiodefecto").val()==""){$("#dominiodefecto").val('dominio.com');}}
function validarNETLAN(previo_url){$.ajax({url: previo_url+"verificar-identificacion.php",type: "POST",data: 'email='+$("#usuario").val()+'&pass='+$("#contrasena").val(),cache: false,error: function(){$("#usuario").val('Error AJAX. Contacte soporte.');$("#contrasena").val('');$('#usuario').css('color','#ff0024');},success: function(html){if(html=="OK"){$('#form_Identificacion').submit();}else{$("#e_netlan").fadeIn(250);$("#usuario").val('Datos incorrectos');$("#contrasena").val('');$('#usuario').css('color','#ff0024');};}});}
function LimpiarNETLAN(){if($("#usuario").val()=="Datos incorrectos"){$("#usuario").val('');$('#usuario').css('color','#656565')};if($("#usuario").val()=="Error AJAX. Contacte soporte."){$("#usuario").val('');$('#usuario').css('color','#656565')};}
function cargaChat(){$('#soporte_lateral').css('opacity',0);$('#soporte_lateral').show();$("#soporte_lateral").animate({marginLeft: "+=23px",opacity: 1},500);}
function overChat(){$("#soporte_lateral").animate({marginLeft: "+=5px"},50);}
function outChat(){$("#soporte_lateral").animate({marginLeft: "-=5px"},50);}
function stopRKey(evt){var evt=(evt)? evt :((event)? event : null);var node=(evt.target)? evt.target :((evt.srcElement)? evt.srcElement : null);if((evt.keyCode==13)&&(node.type=="text")){return false;}}
document.onkeypress=stopRKey;var _gaq=_gaq ||[];_gaq.push(['_setAccount','UA-22903655-1']);_gaq.push(['_trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol ? 'https://ssl' : 'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();
