(function(a){a.fn.simplyScroll=function(c){return this.each(function(){new a.simplyScroll(this,c)})};var b={className:"simply-scroll",frameRate:24,speed:1,horizontal:true,autoMode:"off",loopOverload:0,pauseOnHover:true,localJsonSource:"",flickrFeed:"",jsonImgWidth:240,jsonImgHeight:180};a.simplyScroll=function(d,e){var c=this;this.o=a.extend({},b,e||{});this.auto=this.o.autoMode!=="off"?true:false;this.$list=a(d);this.$list.addClass("simply-scroll-list").wrap('<div class="simply-scroll-clip"></div>').parent().wrap('<div class="'+this.o.className+' simply-scroll-container"></div>');if(!this.o.auto){this.$list.parent().parent().prepend('<div class="simply-scroll-forward"></div>').prepend('<div class="simply-scroll-back"></div>')}if(this.o.flickrFeed){a.getJSON(this.o.flickrFeed+"&format=json&jsoncallback=?",function(f){json=[];a.each(f.items,function(g,h){json.push({src:h.media.m,title:h.title,link:h.link})});c.renderData(json)})}else{if(this.o.localJsonSource){a.getJSON(this.o.localJsonSource,function(f){c.renderData(f)})}else{a(window).load(function(){c.init()})}}};a.simplyScroll.fn=a.simplyScroll.prototype={};a.simplyScroll.fn.extend=a.simplyScroll.extend=a.extend;a.simplyScroll.fn.extend({init:function(){this.$items=this.$list.children();this.$clip=this.$list.parent();this.$container=this.$clip.parent();if(!this.o.horizontal){this.itemMax=this.$items.eq(0).height();this.clipMax=this.$clip.height();this.dimension="height";this.moveBackClass="simply-scroll-btn-up";this.moveForwardClass="simply-scroll-btn-down"}else{this.itemMax=this.$items.eq(0).width();this.clipMax=this.$clip.width();this.dimension="width";this.moveBackClass="simply-scroll-btn-left";this.moveForwardClass="simply-scroll-btn-right"}this.posMin=0;this.posMax=this.$items.length*this.itemMax;this.$list.css(this.dimension,this.posMax+"px");if(this.o.autoMode=="loop"){var d=Math.ceil(this.clipMax/this.itemMax)+this.o.loopOverload;this.$items.slice(0,d).clone(true).appendTo(this.$list);this.posMax+=(this.clipMax-this.o.speed);this.$list.css(this.dimension,this.posMax+(this.itemMax*d)+"px")}this.interval=null;this.intervalDelay=Math.floor(1000/this.o.frameRate);while(this.itemMax%this.o.speed!==0){this.o.speed--;if(this.o.speed===0){this.o.speed=1;break}}var c=this;this.trigger=null;this.funcMoveBack=function(){c.trigger=this;c.moveBack()};this.funcMoveForward=function(){c.trigger=this;c.moveForward()};this.funcMoveStop=function(){c.moveStop()};this.funcMoveResume=function(){c.moveResume()};if(this.auto){if(this.o.pauseOnHover){this.$clip.hover(this.funcMoveStop,this.funcMoveResume)}this.moveForward()}else{this.$btnBack=a(".simply-scroll-back",this.$container).addClass("simply-scroll-btn "+this.moveBackClass+" disabled").hover(this.funcMoveBack,this.funcMoveStop);this.$btnForward=a(".simply-scroll-forward",this.$container).addClass("simply-scroll-btn "+this.moveForwardClass).hover(this.funcMoveForward,this.funcMoveStop)}},moveForward:function(){var c=this;this.movement="forward";if(this.trigger!==null){this.$btnBack.removeClass("disabled")}c.interval=setInterval(function(){if(!c.o.horizontal&&c.$clip[0].scrollTop<(c.posMax-c.clipMax)){c.$clip[0].scrollTop+=c.o.speed}else{if(c.o.horizontal&&c.$clip[0].scrollLeft<(c.posMax-c.clipMax)){c.$clip[0].scrollLeft+=c.o.speed}else{if(c.o.autoMode=="loop"){c.resetPos()}else{c.moveStop(c.movement)}}}},c.intervalDelay)},moveBack:function(){var c=this;this.movement="back";if(this.trigger!==null){this.$btnForward.removeClass("disabled")}c.interval=setInterval(function(){if(!c.o.horizontal&&c.$clip[0].scrollTop>0){c.$clip[0].scrollTop-=c.o.speed}else{if(c.o.horizontal&&c.$clip[0].scrollLeft>0){c.$clip[0].scrollLeft-=c.o.speed}else{if(c.o.autoMode=="loop"){c.resetPos()}else{c.moveStop(c.movement)}}}},c.intervalDelay)},moveStop:function(c){clearInterval(this.interval);if(this.trigger!==null){if(typeof c!="undefined"){a(this.trigger).addClass("disabled")}this.trigger=null}if(this.auto){if(this.o.autoMode=="bounce"){c=="forward"?this.moveBack():this.moveForward()}}},moveResume:function(){this.movement=="forward"?this.moveForward():this.moveBack()},resetPos:function(){if(!this.o.horizontal){this.$clip[0].scrollTop=0}else{this.$clip[0].scrollLeft=0}},renderData:function(d){if(d.length>0){var c=this;a.each(d,function(e,f){a("<img/>").attr({src:f.src,title:f.title,alt:f.title,width:c.o.jsonImgWidth,height:c.o.jsonImgHeight}).appendTo(c.$list)});this.init()}}})})(jQuery);eval(function(h,b,i,d,g,f){g=function(a){return(a<62?"":g(parseInt(a/62)))+((a=a%62)>35?String.fromCharCode(a+29):a.toString(36))};if("0".replace(0,g)==0){while(i--){f[g(i)]=d[i]}d=[function(a){return f[a]||a}];g=function(){return"([237-9n-zA-Z]|1\\w)"};i=1}while(i--){if(d[i]){h=h.replace(new RegExp("\\b"+g(i)+"\\b","g"),d[i])}}return h}("(s(m){3.fn.pngFix=s(c){c=3.extend({P:'blank.gif'},c);8 e=(o.Q==\"t R S\"&&T(o.u)==4&&o.u.A(\"U 5.5\")!=-1);8 f=(o.Q==\"t R S\"&&T(o.u)==4&&o.u.A(\"U 6.0\")!=-1);p(3.browser.msie&&(e||f)){3(2).B(\"img[n$=.C]\").D(s(){3(2).7('q',3(2).q());3(2).7('r',3(2).r());8 a='';8 b='';8 g=(3(2).7('E'))?'E=\"'+3(2).7('E')+'\" ':'';8 h=(3(2).7('F'))?'F=\"'+3(2).7('F')+'\" ':'';8 i=(3(2).7('G'))?'G=\"'+3(2).7('G')+'\" ':'';8 j=(3(2).7('H'))?'H=\"'+3(2).7('H')+'\" ':'';8 k=(3(2).7('V'))?'float:'+3(2).7('V')+';':'';8 d=(3(2).parent().7('href'))?'cursor:hand;':'';p(2.9.v){a+='v:'+2.9.v+';';2.9.v=''}p(2.9.w){a+='w:'+2.9.w+';';2.9.w=''}p(2.9.x){a+='x:'+2.9.x+';';2.9.x=''}8 l=(2.9.cssText);b+='<y '+g+h+i+j;b+='9=\"W:X;white-space:pre-line;Y:Z-10;I:transparent;'+k+d;b+='q:'+3(2).q()+'z;r:'+3(2).r()+'z;';b+='J:K:L.t.M(n=\\''+3(2).7('n')+'\\', N=\\'O\\');';b+=l+'\"></y>';p(a!=''){b='<y 9=\"W:X;Y:Z-10;'+a+d+'q:'+3(2).q()+'z;r:'+3(2).r()+'z;\">'+b+'</y>'}3(2).hide();3(2).after(b)});3(2).B(\"*\").D(s(){8 a=3(2).11('I-12');p(a.A(\".C\")!=-1){8 b=a.13('url(\"')[1].13('\")')[0];3(2).11('I-12','none');3(2).14(0).15.J=\"K:L.t.M(n='\"+b+\"',N='O')\"}});3(2).B(\"input[n$=.C]\").D(s(){8 a=3(2).7('n');3(2).14(0).15.J='K:L.t.M(n=\\''+a+'\\', N=\\'O\\');';3(2).7('n',c.P)})}return 3}})(3);",[],68,"||this|jQuery||||attr|var|style||||||||||||||src|navigator|if|width|height|function|Microsoft|appVersion|border|padding|margin|span|px|indexOf|find|png|each|id|class|title|alt|background|filter|progid|DXImageTransform|AlphaImageLoader|sizingMethod|scale|blankgif|appName|Internet|Explorer|parseInt|MSIE|align|position|relative|display|inline|block|css|image|split|get|runtimeStyle".split("|"),0,{}));if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(m,b,n,e,j,k,g,f,d,l){if(!document.getElementById){return}this.DETECT_KEY=l?l:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(m){this.setAttribute("swf",m)}if(b){this.setAttribute("id",b)}if(n){this.setAttribute("width",n)}if(e){this.setAttribute("height",e)}if(j){this.setAttribute("version",new deconcept.PlayerVersion(j.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(k){this.addParam("bgcolor",k)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var i=(f)?f:window.location;this.setAttribute("xiRedirectUrl",i);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;(function(b){var a=[];b.preLoadImages=function(){var e=arguments.length;for(var d=e;d--;){var c=document.createElement("img");c.src=arguments[d];a.push(c)}}})(jQuery);$.preLoadImages("images/tweetSpace.png","images/followus.png");jQuery.fn.autolink=function(){return this.each(function(){var a=/((http|https|ftp):\/\/[\w?=&.\/-;#~%-]+(?![\w\s?&.\/;#~%"=-]*>))/g;$(this).html($(this).html().replace(a,'<a href="$1">$1</a> '))})};var user="LogicsSoftware";function posted(b){var a=new Date();var c=parseInt((a.getTime()-Date.parse(b))/1000);if(c<60){return"h&aacute; menos de 1 minuto"}else{if(c<120){return"h&aacute; 1 minuto"}else{if(c<(2700)){return"h&aacute; "+(parseInt(c/60)).toString()+" minutos"}else{if(c<(5400)){return"h&aacute; mais de 1 hora"}else{if(c<(86400)){return"h&aacute; "+(parseInt(c/3600)).toString()+" horas"}else{if(c<(172800)){return"1 dia atr&aacute;s"}else{return(parseInt(c/86400)).toString()+" dias atr&aacute;s"}}}}}}}function formatUrl(a){var b=/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi;return a.replace(b,'<a href="$1" target="_blank">$1</a>')}function formatUser(a){var b=/[\@]+([A-Za-z0-9-_]+)/gi;return a.replace(b,'<a href="http://twitter.com/$1" target="_blank">@$1</a>')}function formatHash(a){var b=/ [\#]+([A-Za-z0-9-_]+)/gi;return a.replace(b,' <a href="http://search.twitter.com/search?q=&tag=$1&lang=all&from='+user+'" target="_blank">#$1</a>')}function checkTwitter(a){_submitTwitter(a);var b=window.setInterval(function(){_submitTwitter(a)},30000)}var lastTweetId;function _submitTwitter(a){$.ajax({url:"http://search.twitter.com/search.json?rpp=1&callback=?&q=from%3A"+a,beforeSend:function(){$("#twitter").animate({opacity:"0",height:"0"},"slow")},success:function(b){var c=b.results[0].text;var e=b.results[0].created_at;var d=b.results[0].id;if(lastTweetId!=d){lastTweetId=d;$("p.tweetMsg").html(c).autolink();$("#twitter").slideUp("slow",function(){$("#twitter").animate({opacity:"toggle",height:"toggle"},"slow")})}$("span.tweetTime").html('<a href="http://twitter.com/'+a+"/statuses/"+d+'" target="_blank">'+posted(e)+"</a>")},error:function(b){},dataType:"json"})}function imageOpacityAnimation(){$("#iconsFooter a").bind("mouseover",function(){$(this).stop().animate({opacity:"1"},500)});$("#iconsFooter a").bind("mouseout",function(){$(this).stop().animate({opacity:"0.8"},500)})}$(document).ready(function(){$(document).pngFix();$("#scrollLogos").simplyScroll({autoMode:"loop",pauseOnHover:false,frameRate:20,speed:2});checkTwitter("LogicsSoftware");imageOpacityAnimation();$(window).resize(function(){$(".balls").css({height:$(document).height()})})});
