function Expand(ID, linkID) {

	if (document.getElementById(ID).style.display == 'none') {
		$('#' + ID).slideDown("normal");
		$('#' + linkID).addClass("open");
		$('#' + linkID).css({ backgroundPosition:"100% 0" });
	} else {
		$('#' + ID).slideUp("normal");
		$('#' + linkID).removeClass("open");
		$('#' + linkID).css({ backgroundPosition:"0 0" });
	}

}

function ExpandDetails(ID, linkID) {

	if (document.getElementById(ID).style.display == 'none') {
		$('#' + ID).fadeIn("normal");
		document.getElementById(linkID).style.backgroundPosition = '100% 0';
	} else {
		$('#' + ID).slideUp("normal");
		document.getElementById(linkID).style.backgroundPosition = '0 0';
	}

}

function ExpandWidgetFAQ(ID, linkID) {

	if (document.getElementById(ID).style.display == 'none') {
		$('#' + ID).slideDown("normal");
		$('#' + linkID).addClass("open");
	} else {
		$('#' + ID).slideUp("normal");
		$('#' + linkID).removeClass("open");
	}

}

/*
function ExpandFaq(ID, linkID) {

	if (document.getElementById(ID).style.display == 'none') {
		$('#' + ID).slideDown("normal");
		document.getElementById(linkID).style.backgroundPosition = '100% -47px';
	} else {
		$('#' + ID).slideUp("normal");
		document.getElementById(linkID).style.backgroundPosition = '100% 7px';
	}

}
*/

function ExpandToggle(ID) {
		$('#' + ID).slideToggle("normal");
}

function ExpandTerminal(ID) {
		$('#' + ID).fadeIn("normal");
}

function CloseTerminal(ID) {
		$('#' + ID).fadeOut("normal");
}

function ExpandFlashVideo(ID, anchorID) {

	if (document.getElementById('video').style.display == 'none') {
		$('#' + anchorID).css({ backgroundPosition:"100% 0" });
		$('#' + ID).slideDown("normal", function() {
			$('#flashcontent').css({ display:"block" });
			$('#flashtoggle').css({ display:"none" }); }
		);
	} else {
		$('#' + anchorID).css({ backgroundPosition:"0 0" });
		$('#flashcontent').css({ display:"none" });
		$('#flashtoggle').css({ display:"block" });
		$('#' + ID).slideUp("normal");
	}

}

function ExpandStep(ID) {
		$('#' + ID).slideDown("normal");
}

function CloseStep(ID) {
		$('#' + ID).slideUp("normal");
}