<!-- Begin

var newwin;
var winname;
var winurl;
var winfeatures;
function LaunchViewer(NetworkID)
{
winurl = "http://www.streamingfaith.com/viewer/register.asp?networkid="+NetworkID;
winfeatures = "resizable=1";
	newwin = window.open(winurl,winname,winfeatures);
	setTimeout('newwin.focus();',250);
}

// This is the HTML DIV tag we will put the flash code within, so we don't destroy
// existing HTML
var LauncherDiv = document.getElementById("Launcher1");

// Configuration data for flash (edit these for whatever is necessary for the launcher)
var HeightValue = "158";
var WidthValue = "300";
var MovieValue = "http://www.streamingfaith.com/Launchers/FMETCLauncher.swf";
var LoopValue = "false";
var MenuValue = "false";
var QualityValue = "high";
var BGColorValue = "#efeed8";


//
// NOTE: Do not change the code below unless you intend on removing a param node
//
var ObjectTag;
var ParamTag;
var EmbedTag;
var HTMLText; // Workaround for IE problem

// Create Flash object tag
ObjectTag = document.createElement("OBJECT");
// Then attach everything we created to the DIV tag
LauncherDiv.appendChild(ObjectTag);

// Flash object attributes
ObjectTag.setAttribute("CLASSID", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000");
ObjectTag.setAttribute("CODEBASE", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0");


// Configuration data for OBJECT Tag
ObjectTag.setAttribute("WIDTH", WidthValue);
ObjectTag.setAttribute("HEIGHT", HeightValue);

// PARAMs
// Movie Param
ParamTag = document.createElement("PARAM");
ParamTag.setAttribute("NAME", "MOVIE");
ParamTag.setAttribute("VALUE", MovieValue);
try
{
	ObjectTag.appendChild(ParamTag);
}
catch(e)
{

}
	

// Loop Param
ParamTag = document.createElement("PARAM");
ParamTag.setAttribute("NAME", "loop");
ParamTag.setAttribute("VALUE", LoopValue);
try
{
	ObjectTag.appendChild(ParamTag);
}
catch(e)
{

}


// Menu Param
ParamTag = document.createElement("PARAM");
ParamTag.setAttribute("NAME", "menu");
ParamTag.setAttribute("VALUE", MenuValue);
try
{
	ObjectTag.appendChild(ParamTag);
}
catch(e)
{

}


// Quality Param
ParamTag = document.createElement("PARAM");
ParamTag.setAttribute("NAME", "quality");
ParamTag.setAttribute("VALUE", QualityValue);
try
{
	ObjectTag.appendChild(ParamTag);
}
catch(e)
{

}


// BGColor Param
ParamTag = document.createElement("PARAM");
ParamTag.setAttribute("NAME", "bgcolor");
ParamTag.setAttribute("VALUE", BGColorValue);
try
{
	ObjectTag.appendChild(ParamTag);
}
catch(e)
{

}


// Create EMBED tag for Non-ActiveX browsers
EmbedTag = document.createElement("EMBED");

// Configuration data for EMBED Tag
EmbedTag.setAttribute("src", MovieValue);
EmbedTag.setAttribute("loop", LoopValue);
EmbedTag.setAttribute("menu", MenuValue);
EmbedTag.setAttribute("quality", QualityValue);
EmbedTag.setAttribute("bgcolor", BGColorValue);
EmbedTag.setAttribute("WIDTH", WidthValue);
EmbedTag.setAttribute("HEIGHT", HeightValue);

// Required Attributes
EmbedTag.setAttribute("TYPE", "application/x-shockwave-flash");
EmbedTag.setAttribute("PLUGINSPACE", "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash");

// Attach the EMBED Tag as a child of the OBJECT tag so that it will work for all browsers
try
{
	ObjectTag.appendChild(EmbedTag);
}
catch(e)
{
}

// Workaround for IE's lack of support of appendChild for OBJECT tags
if(!ObjectTag.hasChildNodes())
{
	HTMLText = "<OBJECT CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' CODEBASE='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0'" +
				"WIDTH='" + WidthValue + "' " +
				"HEIGHT='" + HeightValue + "'>" +
				"<PARAM NAME='MOVIE' VALUE='" + MovieValue + "' />" +
				"<PARAM NAME='LOOP' VALUE='" + LoopValue + "' />" +
				"<PARAM NAME='MENU' VALUE='" + MenuValue + "' />" +
				"<PARAM NAME='QUALITY' VALUE='" + QualityValue + "' />" +
				"<PARAM NAME='BGCOLOR' VALUE='" + BGColorValue + "' />" +
				"<EMBED " +
					"SRC='" + MovieValue + "' " +
					"LOOP='" + LoopValue + "' " +
					"MENU='" + MenuValue + "' " +
					"QUALITY='" + QualityValue + "' " +
					"BGCOLOR='" + BGColorValue + "' " +
					"TYPE='application/x-shockwave-flash'" +
					"PLUGINSPACE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' />" +
				"</OBJECT>";
					
	LauncherDiv.innerHTML = HTMLText;
}

// End -->
