google.load("jquery", "1.6.4");

function accordianlink() {
	if(typeof Accordian == 'function' || typeof Accordian == 'object') {
		return false;
	} else {
		return true;
	}
}

current_size = 'medium';
/* STUFF FOR LIVE FEED */
function setFeedSize(size) {
  if(size == 'small') {
	  if(current_size != 'small') {
			$("#ttv_chat_container").insertAfter('#ttv_live_container');
			$("#ttv_chat_container").addClass('sidebyside');
			$("#ttv_chat_container_container").hide();
		}
		$("#ttv_live_container").width(528).height(297+29);
		$("#ttv_live_container_container").width(528+320+20).height(297+29+20);
		$("#ttv_chat_container_container").hide();
		current_size = 'small';
	} else if (size == 'medium') {
	  if(current_size == 'small') {
			$("#ttv_chat_container").appendTo('#ttv_chat_container_container');
			$("#ttv_chat_container").removeClass('sidebyside');
			$("#ttv_chat_container_container").show();
		}
		$("#ttv_live_container").width(960).height(540+29);
		$("#ttv_live_container_container").width(960).height(540+29+20);
		$("#ttv_chat_container_container").width(960).height(320);
		current_size = 'medium';
	} else if (size == 'large') {
	  if(current_size == 'small') {
			$("#ttv_chat_container").appendTo('#ttv_chat_container_container');
			$("#ttv_chat_container").removeClass('sidebyside');
			$("#ttv_chat_container_container").show();
		}
	  $("#ttv_live_container").width(1280).height(720+29);
		$("#ttv_live_container_container").width(1280).height(720+29+20);
		$("#ttv_chat_container_container").width(1280).height(320);
		current_size = 'large';
	}
	_gaq.push(['_trackEvent', 'Livestream', 'ChangeSize', size]);
}
