sg_s = 1;

function sg(i)
{
	if (sg_s == i) return

	pb = document.getElementById("Text" + sg_s);
	b = document.getElementById("Text" + i);
	pn = document.getElementById("TextButton" + sg_s);
	n = document.getElementById("TextButton" + i);
	
	pb.className = "BriefingTextOff";
	b.className = "BriefingTextOn";
	
	if (sg_s != 5) pn.className = "BriefingTab BriefingTabOff";
	if (i != 5 ) n.className = "BriefingTab BriefingTabOn";
	
	sg_s = i;
}

function pf(u,w,h,b,t)
{
  if (b == null) b = "#FFF";
    
  document.write("<object type=\"application/x-shockwave-flash\" data=\"" + u + "\" width=\"" + w + "\" height=\"" + h + "\">");
  document.write("<param name=\"movie\" value=\"" + u + "\" />");
  document.write("<param name=\"quality\" value=\"high\" />");
  document.write("<param name=\"menu\" value=\"false\" />");
  document.write("<param name=\"scale\" value=\"noscale\" />");
  document.write("<param name=\"bgcolor\" value=\"" + b + "\" />");

  if (t != null) document.write("<param name=\"wmode\" value=\"" + t + "\" />");
  
  document.write("</object>");
}

function pfv(u)
{
  pf(u,336,261,null,'transparent');
}

function ld(g)
{
  h = 570;
  w = 900;
  
	tc = Math.round ((screen.availHeight - h) / 2);
	lc = Math.round ((screen.availWidth - w) / 2);
	
	w = window.open ("/dashboard/" + g, "dashboard" + g, "width=" + w + ",height=" + h + ",top=" + tc + ",left=" + lc + ",toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0");
	w.focus ();
}

function dsm(o)
{
  if (dsm_s == o) return
  
  pd = document.getElementById(dsm_s);
  d = document.getElementById(o);
  
  pd.style.display = "none";
  d.style.display = "block";
  
  dsm_s = o;
}

