function addFlashBG(file, id) {
	var flashvars = {};
	var params = {};
	params.play = "true";
	params.loop = "true";
	params.scale = "noborder";
	params.wmode = "opaque";
	params.salign = "t";
	params.devicefont = "false";
	params.allowscriptaccess = "sameDomain";
	var attributes = {};
	attributes.align = "top";
	swfobject.embedSWF(file, id, "100%", "100%", "9.0.0", false, flashvars, params, attributes);
}

function switchArticle(id)
{
	var divs       = document.getElementsByTagName("div");
	var shortStyle = document.getElementById("short"+id).style.display;
	
	/*
	for ( var i = 0; i < divs.length; ++i )
	{
		if ( !divs[i].attributes || !divs[i].attributes["id"] )
			continue;
		
		var divId = divs[i].attributes["id"].value;
		
		if ( divId.substr(0,5) == "short" )
			divs[i].setAttribute("style","display:block");
		else if ( divId.substr(0,4) == "full" )
			divs[i].setAttribute("style","display:none");
	}
	*/
	if ( shortStyle == "none" )
	{
		document.getElementById("short"+id).style.display = "block";
		document.getElementById("full"+id).style.display = "none";
	}
	else
	{
		document.getElementById("short"+id).style.display = "none";
		document.getElementById("full"+id).style.display = "block";
	}
}

function toggleDownloads(link, openText, closeText)
{
	if ( link.className == "arrowed bigger" ) {
		document.getElementById("productDownloads").style.display = "block";
		link.className = "arrowed down bigger";
		link.innerHTML = "<strong>"+closeText+"</strong>";
	}
	else {
		document.getElementById("productDownloads").style.display = "none";
		link.className = "arrowed bigger";
		link.innerHTML = "<strong>"+openText+"</strong>";
	}
}
