
var bracketsExpanded = false;

function expandBrackets(){

	var brackets = $('top_swfContent');
	openModal("", "", doExpand);
	brackets.style.visibility = "visible";
	//continueExpand();

	function doExpand(){
		continueExpand();
		//setTimeout("continueExpand()", 500);
	}

	bracketsExpanded = true;
}

function continueExpand(){
	var brackets = $('top_swfContent');
	//brackets.style.visibility = "hidden";

	//brackets.expandBrackets();

	//brackets.style.position = "fixed";
	brackets.style.width = "1238px";
	brackets.style.height = "698px";
	brackets.style.left = "50%";
	brackets.style.marginTop = "-110px";
	brackets.style.marginLeft = "-619px";
	brackets.style.visibility = "visible";
	$('contentTop').style.zIndex = 1500;

	$('top_swfContent_btn').style.display = "none";
	bracketsExpanded = true;
}

function closeBrackets(){
	bracketsExpanded = false;
	
	var brackets = $('top_swfContent');
	brackets.style.width = "825px";
	brackets.style.height = "465px";
	brackets.style.marginTop = "0px";
	brackets.style.marginLeft = "-408px";
	brackets.style.position = "absolute";
	
	$('contentTop').style.zIndex = 999;

	$('top_swfContent_btn').style.display = "block";
	
	bracketsExpanded = false;
	
	closeModal();
}

function isBracketsExpanded(){return bracketsExpanded;}
