/*

community.js

 */

var arrTwtLinkObj = new Array();
var arrTwtTextObj = new Array();
var t;
var index = 0;
var timer_is_on = 0;
var arrSize = 0;
var timeInterval = 10000;
var zz = 0;
function toggleTwits() {

	if (index == arrSize - 1) {
		index = 0;
	}

	if (arrTwtTextObj[index]) {
		document.getElementById('twitterTxt').value = arrTwtTextObj[index];
		document.getElementById('twitterLnk').setAttribute('href',
				arrTwtLinkObj[index]);
		t = setTimeout("toggleTwits()", timeInterval);
	} else {
		t = setTimeout("toggleTwits()", 0);
	}
	index++;
}
function doTimer() {
	arrSize = arrTwtTextObj.length;
	if (!timer_is_on) {
		timer_is_on = 1;

		toggleTwits();
	}
}

