function loadTwitter() {
	$("#joblist").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		scroll: 1,
		auto:3000,
		speed:1500,
		wrap: 'last'
	});
};
		
function gotoUrl(URL) {
	document.location = URL;
}
////////////////////////////////
var imageWidth = 671;
var imgArr = new Array();
var imgCount = 0;

function featureScroll() {
	
	$('.feature_image').prepend('<div class="feature_overlay"></div>');
	$('.feature_image').each(function() {
		imgArr.push($(this));
	});
	$(imgArr[imgCount]).find('.feature_overlay').fadeOut(0);
	setInterval('moveImages()', 7000);
}

function moveImages() {
	$(imgArr[imgCount]).find('.feature_overlay').delay(800).fadeIn();
	if(imgCount == imgArr.length-1) {
		imgCount = 0;
		$(imgArr[imgCount]).find('.feature_overlay').delay(800).fadeOut();
	} else {
		$(imgArr[imgCount+1]).find('.feature_overlay').delay(800).fadeOut();
		imgCount ++;
	}
	
	
	$('#home_imgs_container').animate({'left': '-' + (imageWidth+4.5) + 'px'}, 1800, 'easeInOutQuint', function() {
		$('#home_imgs_container').append($('.feature_image:first'));
		$('#home_imgs_container').css({'left':'0px'});
		
	});
}
////////////////////////////////
function stageResize() {
	//$('.home_imgs_container').css('width', $(window).width());
}


////////////////////////////////

var divHidden = true;
function init() {
//$('#company_overview_bottom').delay(300).animate({'height':'hide'});
$('#company_overview_bottom').animate({'height':'hide'}, 0);
$('#company_overview_top img').attr('src','/img/generic/gen-arrow-box.png');
$('#company_overview_top').bind('click', function() {
	if(divHidden) {
		$('#company_overview_bottom').animate({'height':'show'});
		$('#company_overview_top img').attr('src','/img/generic/gen-arrow-box-down.png');	
	} else {
		$('#company_overview_bottom').animate({'height':'hide'});
		$('#company_overview_top img').attr('src','/img/generic/gen-arrow-box.png');
	}
	divHidden = ! divHidden;
});
}
