jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});$(document).ready(function(){if($.browser.msie&&$.browser.version==6)
if(window.location.href.match(/support/)==null)
window.location='/support/';$.fn.customFadeIn=function(speed,callback){$(this).fadeIn(speed,function(){if(jQuery.browser.msie){$(this).get(0).style.removeAttribute('filter');}
if(callback!=undefined){callback();}});};$.fn.customFadeOut=function(speed,callback){$(this).fadeOut(speed,function(){if(jQuery.browser.msie){$(this).get(0).style.removeAttribute('filter');}
if(callback!=undefined){callback();}});};(function($){$.fn.tipsy=function(options){options=$.extend({},$.fn.tipsy.defaults,options);return this.each(function(){var opts=$.fn.tipsy.elementOptions(this,options);$(this).hover(function(){$.data(this,'cancel.tipsy',true);var tip=$.data(this,'active.tipsy');if(!tip){tip=$('<div class="tipsy"><div class="tipsy-inner"/></div>');tip.css({position:'absolute',zIndex:100000});$.data(this,'active.tipsy',tip);}
if($(this).attr('title')||typeof($(this).attr('original-title'))!='string'){$(this).attr('original-title',$(this).attr('title')||'').removeAttr('title');}
var title;if(typeof opts.title=='string'){title=$(this).attr(opts.title=='title'?'original-title':opts.title);}else if(typeof opts.title=='function'){title=opts.title.call(this);}
tip.find('.tipsy-inner')[opts.html?'html':'text'](title||opts.fallback);var pos=$.extend({},$(this).offset(),{width:this.offsetWidth,height:this.offsetHeight});tip.get(0).className='tipsy';tip.remove().css({top:0,left:0,visibility:'hidden',display:'block'}).appendTo(document.body);var actualWidth=tip[0].offsetWidth,actualHeight=tip[0].offsetHeight;var gravity=(typeof opts.gravity=='function')?opts.gravity.call(this):opts.gravity;switch(gravity.charAt(0)){case'n':tip.css({top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2}).addClass('tipsy-north');break;case's':tip.css({top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2}).addClass('tipsy-south');break;case'e':tip.css({top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth}).addClass('tipsy-east');break;case'w':tip.css({top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width}).addClass('tipsy-west');break;}
if(opts.fade){tip.css({opacity:0,display:'block',visibility:'visible'}).animate({opacity:0.4});}else{tip.css({visibility:'visible'});}},function(){$.data(this,'cancel.tipsy',false);var self=this;setTimeout(function(){if($.data(this,'cancel.tipsy'))return;var tip=$.data(self,'active.tipsy');if(opts.fade){tip.stop().fadeOut(function(){$(this).remove();});}else{tip.remove();}},100);});});};$.fn.tipsy.elementOptions=function(ele,options){return $.metadata?$.extend({},options,$(ele).metadata()):options;};$.fn.tipsy.defaults={fade:false,fallback:'',gravity:'n',html:false,title:'title'};$.fn.tipsy.autoNS=function(){return $(this).offset().top>($(document).scrollTop()+$(window).height()/2)?'s':'n';};$.fn.tipsy.autoWE=function(){return $(this).offset().left>($(document).scrollLeft()+$(window).width()/2)?'e':'w';};})(jQuery);$('.logobottom').append('<span class="hover"></span>').each(function(){var $span=$('> span.hover',this).css('opacity',0);$(this).hover(function(){$span.stop().fadeTo(500,1);},function(){$span.stop().fadeTo(500,0);});});if($.browser.opera){$(".logobottom").click(function(){$('html').animate({scrollTop:0});});}else{$(".logobottom").click(function(){$('html , body ,document').animate({scrollTop:0});});};$('.horizonatl_menu').hover(function(){$(this).animate({'width':'100%'});},function(){$(this).animate({'width':'20px','height':'150px'});});$(".tab_container").hide();$("ul.tab li:first").addClass("active").show();$(".tab_content:first").show();$("ul.tab li").click(function(){$("ul.tab li").removeClass("active");$(this).addClass("active");$(".tab_content").hide();var activeTab=$(this).find("a").attr("href");$(activeTab).fadeIn();});function cargaProyecto(){if($('.cargaproyecto').lenght==0){$(".mains_cont_middle").prepend("<div class='cargaproyecto'><div class='center'></div></div>");}}
var listado=$('.thumb_list');$('.thumb_button').click(function(){listado.toggle();});if($.browser.msie){$('ul.display li').hover(function(){$(".cover",this).stop(true,true).fadeOut("fast").animate({opacity:0},"fast");$('ul.display li',this).css({'color':'#4dbae7'});$('.chau',this).css({'color':'#e23d1e'});},function(){$(".cover",this).stop(true,true).animate({opacity:0.6},"fast").fadeIn("fast");$('.chau',this).css({'color':'#7E7E7E'});})}else{$('ul.display li').hover(function(){$(".cover",this).stop(true,true).animate({opacity:0.4},"fast");$('.chau',this).css({'color':'#e23d1e'});},function(){$(".cover",this).stop(true,true).animate({opacity:0},"fast");$('.chau',this).css({'color':'#7E7E7E'});});};$(".switch_thumb").toggle(function(){$(".switch_thumb2").addClass("swap");$('.grande').css({'display':'none'});$("ul.display").fadeOut("fast",function(){$('.chica').css({'display':'block'});$(this).fadeIn("fast").addClass("thumb_view");$('.pibe').addClass("veo");$('.chau').addClass("thumb_view");$('.boxcaption').css({'background-color':'transparent'});});},function(){$(".switch_thumb2").removeClass("swap");$('.chica').css({'display':'none'});$("ul.display").fadeOut("fast",function(){$('.pibe').removeClass("veo");$(this).fadeIn("fast").removeClass("thumb_view");$('.chau').removeClass("thumb_view");$('.grande').css({'display':'block'});$('.boxcaption').css({'background-color':'#ccc'});});});$('.message',this).css('color','#7E7E7E');$('li.serv_develop,li.serv_analytics,li.serv_medios,li.serv_soft,li.serv_games').each(function(){var $mensaje=$('.message',this);$(this).hover(function(){$mensaje.stop().css('color','#1D1D1E');},function(){$mensaje.stop().css('color','#7E7E7E');});});$('li.serv_develop,li.serv_analytics,li.serv_medios,li.serv_soft,li.serv_games').append('<span class="hover"></span>').each(function(){var $span=$('span.hover',this).css('opacity',0);$(this).hover(function(){$span.stop().fadeTo(200,1);},function(){$span.stop().fadeTo(200,0);});});$('ul.menu_lateral').each(function(){$(this).children().hover(function(){if($.browser.msie){$(this,this).offset({left:-5});}
$(this,this).animate({'position':'relative','left':'-5px'},100);},function(){if($.browser.msie){$(this,this).offset({left:-15});}
$(this,this).animate({'position':'relative','left':'-15px'},50);});});var scrollmodern=$('html , body ,document');$('.top_button').click(function(){if($.browser.opera){$(".top_button").click(function(){$('html').animate({scrollTop:0},800,'easeInOutCubic');});}else{$('html, body ,document').animate({scrollTop:0},800,'easeOutCubic');}});$(".muestra").click(function(){$('html , body ,document').animate({scrollTop:500},1000);});$('.normal_con ,.normal_con2').each(function(){$(this).val($(this).attr('valor'));$(this).css({'color':'#7e7e7e','padding-left':'8px','padding-top':'4px'});});$('.normal_con ,.normal_con2').focus(function(){if($(this).val()==$(this).attr('valor')){$(this).val('');$(this).css({'color':'#000','padding-left':'8px','padding-top':'4px'});}});$('.normal_con ,.normal_con2').blur(function(){if($(this).val()==''){$(this).val($(this).attr('valor'));$(this).css({'color':'#7e7e7e','padding-left':'8px','padding-top':'4px'});}});$('.header_contact').hover(function(){$(this).children('.muestra_send').css({'background-position':'bottom left'});},function(){$(this).children('.muestra_send').css({'background-position':'top left'})});$('.contact_info').hover(function(){$(".cover",this).stop(true,true).fadeOut("fast");$('.chau',this).css({'color':'#e23d1e'});},function(){$(".cover",this).stop(true,true).fadeIn("fast");$('.chau',this).css({'color':'#7E7E7E'});});$('.logo[rel]').tipsy({gravity:'e',fade:true});$('.top_button1').click(function(){$('html, body ,document').animate({scrollTop:0});});});
