

typeof getTwitters!="function"&&function(){var a={},b=0;!function(a,b){function m(a){l=1;while(a=c.shift())a()}var c=[],d,e,f=!1,g=b.documentElement,h=g.doScroll,i="DOMContentLoaded",j="addEventListener",k="onreadystatechange",l=/^loade|c/.test(b.readyState);b[j]&&b[j](i,e=function(){b.removeEventListener(i,e,f),m()},f),h&&b.attachEvent(k,d=function(){/^c/.test(b.readyState)&&(b.detachEvent(k,d),m())}),a.domReady=h?function(b){self!=top?l?b():c.push(b):function(){try{g.doScroll("left")}catch(c){return setTimeout(function(){a.domReady(b)},50)}b()}()}:function(a){l?a():c.push(a)}}(a,document),window.getTwitters=function(c,d,e,f){b++,typeof d=="object"&&(f=d,d=f.id,e=f.count),e||(e=1),f?f.count=e:f={},!f.timeout&&typeof f.onTimeout=="function"&&(f.timeout=10),typeof f.clearContents=="undefined"&&(f.clearContents=!0),f.twitterTarget=c,typeof f.enableLinks=="undefined"&&(f.enableLinks=!0),a.domReady(function(a,b){return function(){function f(){a.target=document.getElementById(a.twitterTarget);if(!!a.target){var f={limit:e};f.includeRT&&(f.include_rts=!0),a.timeout&&(window["twitterTimeout"+b]=setTimeout(function(){twitterlib.cancel(),a.onTimeout.call(a.target)},a.timeout*1e3));var g="timeline";d.indexOf("#")===0&&(g="search"),d.indexOf("/")!==-1&&(g="list"),a.ignoreReplies&&(f.filter={not:new RegExp(/^@/)}),twitterlib.cache(!0),twitterlib[g](d,f,function(d,e){clearTimeout(window["twitterTimeout"+b]);var f=[],g=d.length>a.count?a.count:d.length;f=["&nbsp;&nbsp;"];for(var h=0;h<g;h++){d[h].time=twitterlib.time.relative(d[h].created_at);for(var i in d[h].user)d[h]["user_"+i]=d[h].user[i];a.template?f.push(""+a.template.replace(/%([a-z_\-\.]*)%/ig,function(b,c){var e=d[h][c]+""||"";c=="text"&&(e=twitterlib.expandLinks(d[h])),c=="text"&&a.enableLinks&&(e=twitterlib.ify.clean(e));return e})+""):a.bigTemplate?f.push(twitterlib.render(d[h])):f.push(c(d[h]))}f.push("&nbsp;&nbsp;"),a.clearContents?a.target.innerHTML=f.join(""):a.target.innerHTML+=f.join(""),a.callback&&a.callback(d)})}}function c(b){var c=a.enableLinks?twitterlib.ify.clean(twitterlib.expandLinks(b)):twitterlib.expandLinks(b),d="";a.prefix&&(d+='<span className="twitterPrefix">',d+=a.prefix.replace(/%(.*?)%/g,function(a,c){return b.user[c]}),d+=" </span>"),d+='<span className="twitterStatus">'+twitterlib.time.relative(b.created_at)+"</span> ",d+='<span className="twitterTime">'+b.text+"</span>",a.newwindow&&(d=d.replace(/<a href/gi,'<a class="twii" target="_blank" href'));return d}typeof twitterlib=="undefined"?setTimeout(function(){var a=document.createElement("script");a.onload=a.onreadystatechange=function(){typeof window.twitterlib!="undefined"&&f()},a.src="http://remy.github.com/twitterlib/twitterlib.js";var b=document.head||document.getElementsByTagName("head")[0];b.insertBefore(a,b.firstChild)},0):f()}}(f,b))}}()

function Twitts(){
getTwitters('tweet', { 
  id: 'teamgat', 
  count: 6, 
  enableLinks: true, 
  ignoreReplies: true, 
  clearContents: true,
  template: '%text% <a class="twii" href="http://twitter.com/%user_screen_name%/statuses/%id_str%/">%time%</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
});
}


function Twitts2(){
getTwitters('tweet2', { 
  id: 'teamgat', 
  count: 10, 
  enableLinks: true, 
  ignoreReplies: true, 
  clearContents: true,
  template: '<div class="devtwi"></div><div class="t_reg"><img style="float: left;" src="images/t_reg.png"/><a class="twii2" href="http://twitter.com/%user_screen_name%/statuses/%id_str%/">%time%</a></div><div class="twitup">%text%</div>'
});
}


var ids=new Array('boxup-over');


function switchid(id){	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}


var $lexx$ = jQuery.noConflict();
var boxup=0;
var proccesing = false;

function twity(){
if(boxup==0){
Twitts2();
boxup=1;

$lexx$("#boxup-over").css('opacity', 0);
showdiv('boxup-over');
$lexx$("#boxup-over").animate({opacity: 0.7}, 500);
$lexx$("#box-wrapper").css('opacity', 0);
showdiv('box-wrapper');
$lexx$("#box-wrapper").animate({  opacity: 1 }, 1000);
//showd('boxup-over',300);
} else {
twiclose();
}
}

function showd(div,time) {
$lexx$("#"+div).css('opacity', 0);
showdiv(div);
$lexx$("#"+div).animate({
      opacity: 1
    }, time);
}

function hided(div,time) {
$lexx$("#"+div).css('opacity', 1);
$lexx$("#"+div).animate({
      opacity: 0
    }, time, function () {
	hidediv(div);
	} );
}

var tipshow = false;

function twiclose(){
boxup=0;
//hided('boxup-over',300);

$lexx$("#box-wrapper").animate({
      opacity: 0
    }, 500, function () {
	hidediv('box-wrapper');
	} );
$lexx$("#boxup-over").animate({
      opacity: 0
    }, 1000, function () {
	hidediv('boxup-over');
	} );
}

function hideTooltips(){
tipshow = false;
$lexx$("#tooltip").css('opacity', 0);
hidediv('tooltip');
//hided('tooltip',300);
}

function hideTooltipsF(){
tipshow = false;
hidediv('tooltip'); 
$lexx$("#tooltip").css('opacity', 0);
//hided('tooltip',0);
}

function showTooltips(){
if(!tipshow){
tipshow = true;
showdiv('tooltip');  
$lexx$("#tooltip").css('opacity', 1); 
//$("#tooltip").animate({    opacity: 1   }, 100);
//showd('tooltip',300);
}
}


var step = 25;
var scrolling = false;
var closing = true;
var autoscroll = true;
var scrollstep = 300;

function scrollUp() {
  if(autoscroll){
    $lexx$("#contentTwi").animate({
        scrollTop: "-=" + step + "px"
    });
    scrolling = true;
    scrollContent("up");
 }
}

function scrollDown(){
  if(autoscroll){
    $lexx$("#contentTwi").animate({
        scrollTop: "+=" + step + "px"
    });
    scrolling = true;
    scrollContent("down");
  }
}

function scrollStop(){
 scrolling = false;
}

function scrollContent(direction) {
    var amount = (direction === "up" ? "-=1px" : "+=1px");
    $lexx$("#contentTwi").animate({
        scrollTop: amount
    }, 1, function() {
        if (scrolling) {
            scrollContent(direction);
        }
    });
}

function scrollDownBtn(){
scrollStop();
 $lexx$("#contentTwi").animate({scrollTop: "+=" + scrollstep + "px"});
}

function scrollUpBtn(){
scrollStop();
 $lexx$("#contentTwi").animate({scrollTop: "-=" + scrollstep + "px"});
}

function closeT(){
closing = true;
}

function closeF(){
closing = false;
}


function tclose() {
if(closing) {
twiclose('boxup-over');
}
}


Twitts();
