// JavaScript Document
var newsItems = 0;
var currNewsitem = 0;

$(document).ready(function(){
	$('#shortcuts').addClass('frontPage');
						   
	$('#newsBox .buttons').each(function() {
		var width = $(this).width();
		$(this).css('width', width + 'px').css('float', 'none');
	});
	
	$('#loginForm .chooser').each(function() {
		$(this).append('<span></span>');
		
		$('#loginForm .chooser select').css('opacity', 0).change(function () {
          var str = "";
          $("#loginForm .chooser select option:selected").each(function () {
                str += $(this).text();
          });
		  if (str.length == 0) {
			$("#loginForm .chooser select option:eq(0)").each(function () {
				str += $(this).text();
			}); 
		  }
          $('#loginForm .chooser span').text(str);
        }).change();
	});
	
	$('#campus ul').tabs({ spinner: '', fx: { opacity: 'toggle' } });
});