(function(a){a.fn.innerfade=function(b){return this.each(function(){a.innerfade(this,b)})};a.innerfade=function(b,c){var e={animationtype:"fade",speed:"normal",type:"sequence",timeout:2000,containerheight:"auto",runningclass:"innerfade",children:null};if(c){a.extend(e,c)}if(e.children===null){var g=a(b).children()}else{var g=a(b).children(e.children)}if(g.length>1){a(b).css("position","relative").css("height",e.containerheight).addClass(e.runningclass);for(var d=0;d<g.length;d++){a(g[d]).css("z-index",String(g.length-d)).css("position","absolute").hide()}if(e.type=="sequence"){setTimeout(function(){a.innerfade.next(g,e,1,0)},e.timeout);a(g[0]).show()}else{if(e.type=="random"){var f=Math.floor(Math.random()*(g.length));setTimeout(function(){do{h=Math.floor(Math.random()*(g.length))}while(f==h);a.innerfade.next(g,e,h,f)},e.timeout);a(g[f]).show()}else{if(e.type=="random_start"){e.type="sequence";var h=Math.floor(Math.random()*(g.length));setTimeout(function(){a.innerfade.next(g,e,(h+1)%g.length,h)},e.timeout);a(g[h]).show()}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}}}};a.innerfade.next=function(d,b,e,c){if(b.animationtype=="slide"){a(d[c]).slideUp(b.speed);a(d[e]).slideDown(b.speed)}else{if(b.animationtype=="fade"){a(d[c]).fadeOut(b.speed);a(d[e]).fadeIn(b.speed,function(){removeFilter(a(this)[0])})}else{alert("Innerfade-animationtype must either be 'slide' or 'fade'")}}if(b.type=="sequence"){if((e+1)<d.length){e=e+1;c=e-1}else{e=0;c=d.length-1}}else{if(b.type=="random"){c=e;while(e==c){e=Math.floor(Math.random()*d.length)}}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}}setTimeout((function(){a.innerfade.next(d,b,e,c)}),b.timeout)}})(jQuery);function removeFilter(a){if(a.style.removeAttribute){a.style.removeAttribute("filter")}}(function(a){a.fn.tabSlideOut=function(k){var e=a.extend({tabHandle:".handle",speed:300,action:"click",tabLocation:"left",topPos:"200px",leftPos:"20px",fixedPosition:false,positioning:"absolute",pathToTabImage:null,imageHeight:null,imageWidth:null,onLoadSlideOut:false},k||{});e.tabHandle=a(e.tabHandle);var f=this;if(e.fixedPosition===true){e.positioning="fixed"}else{e.positioning="absolute"}if(document.all&&!window.opera&&!window.XMLHttpRequest){e.positioning="absolute"}if(e.pathToTabImage!=null){e.tabHandle.css({background:"url("+e.pathToTabImage+") no-repeat",width:e.imageWidth,height:e.imageHeight})}e.tabHandle.css({display:"block",textIndent:"-99999px",outline:"none",position:"absolute"});f.css({"line-height":"1",position:e.positioning});var i={containerWidth:parseInt(f.outerWidth(),10)+"px",containerHeight:parseInt(f.outerHeight(),10)+"px",tabWidth:parseInt(e.tabHandle.outerWidth(),10)+"px",tabHeight:parseInt(e.tabHandle.outerHeight(),10)+"px"};if(e.tabLocation==="top"||e.tabLocation==="bottom"){f.css({left:"65%"});e.tabHandle.css({right:0})}if(e.tabLocation==="top"){f.css({top:"-"+i.containerHeight});e.tabHandle.css({bottom:"-"+i.tabHeight})}if(e.tabLocation==="bottom"){f.css({bottom:"-"+i.containerHeight,position:"fixed"});e.tabHandle.css({top:"-"+i.tabHeight})}if(e.tabLocation==="left"||e.tabLocation==="right"){f.css({height:i.containerHeight,top:e.topPos});e.tabHandle.css({top:0})}if(e.tabLocation==="left"){f.css({left:"-"+i.containerWidth});e.tabHandle.css({right:"-"+i.tabWidth})}if(e.tabLocation==="right"){f.css({right:"-"+i.containerWidth});e.tabHandle.css({left:"-"+i.tabWidth});a("html").css("overflow-x","hidden")}e.tabHandle.click(function(l){l.preventDefault()});var d=function(){if(e.tabLocation==="top"){f.animate({top:"-"+i.containerHeight},e.speed).removeClass("open")}else{if(e.tabLocation==="left"){f.animate({left:"-"+i.containerWidth},e.speed).removeClass("open")}else{if(e.tabLocation==="right"){f.animate({right:"-"+i.containerWidth},e.speed).removeClass("open")}else{if(e.tabLocation==="bottom"){f.animate({bottom:"-"+i.containerHeight},e.speed).removeClass("open")}}}}};var g=function(){if(e.tabLocation=="top"){f.animate({top:"-3px"},e.speed).addClass("open")}else{if(e.tabLocation=="left"){f.animate({left:"-3px"},e.speed).addClass("open")}else{if(e.tabLocation=="right"){f.animate({right:"-3px"},e.speed).addClass("open")}else{if(e.tabLocation=="bottom"){f.animate({bottom:"-3px"},e.speed).addClass("open")}}}}};var c=function(){f.click(function(l){l.stopPropagation()});a(document).click(function(){d()})};var j=function(){e.tabHandle.click(function(l){if(f.hasClass("open")){d()}else{g()}});c()};var h=function(){f.hover(function(){g()},function(){d()});e.tabHandle.click(function(l){if(f.hasClass("open")){d()}});c()};var b=function(){d();setTimeout(g,500)};if(e.action==="click"){j()}if(e.action==="hover"){h()}if(e.onLoadSlideOut){b()}}})(jQuery);$(document).ready(function(){$("#slider").tabs({fx:{opacity:"toggle"}}).tabs("rotate",5000,true);$("#slider").hover(function(){$("#slider").tabs("rotate",0,true)},function(){$("#slider").tabs("rotate",5000,true)});$(".depoimentos > ul").innerfade({animationtype:"fade",speed:"normal",timeout:5000,type:"sequence",containerheight:"auto"});$(".contato-slide").tabSlideOut({tabHandle:".contato-tab",pathToTabImage:"/sites/all/themes/contrib/neotux/images/fale.png",imageHeight:"120px",imageWidth:"40px",tabLocation:"left",speed:300,action:"click",topPos:"180px",fixedPosition:true});$(".contato-slide2").tabSlideOut({tabHandle:".contato-tab2",pathToTabImage:"/sites/all/themes/contrib/neotux/images/fale2.png",imageHeight:"40px",imageWidth:"120px",tabLocation:"bottom",speed:300,action:"click",leftPos:"640px",fixedPosition:true})});function openLiveHelp(a){openDHTMLlayer=0;openDHTMLalready=true;csTimeout=0;window.open("http://chat.4linux.com.br/livehelp.php?department="+a+"&cslheg=1&serversession=0","chat54050872","width=585,height=390,menubar=no,scrollbars=0,resizable=1")}Shadowbox.init({skipSetup:false});window.onload=function(){Shadowbox.setup("#autoestudo a")};
