function check_for_flash(show_movie, movie_width, movie_height) {

if(show_movie == "home") {
	flash_movie = "urc_main_071006.swf";
	movie_width = 518;
	movie_height = 216;
} else if(show_movie == "broadcast_overview") {
	flash_movie = "subBroadcast_071006.swf";
	movie_width = 518;
	movie_height = 216;
} else if(show_movie == "consumer_overview") {
	flash_movie = "consumer_071006.swf";
	movie_width = 518;
	movie_height = 216;
} else if(show_movie == "professional_overview") {
	flash_movie = "professional_071006.swf";
	movie_width = 518;
	movie_height = 216;
}
else if(show_movie == "corporate_overview") {
	document.write('<img src="/images/Corporate_Information_head.gif" hspace="0" vspace="0" alt="" hspace="0" vspace="0" border="0" style="display: block; margin: 0; padding: 0;">');
	return ;
}
else if(show_movie == "oem_overview" || show_movie == "oem_sales_rep" || show_movie == "oem_products") {
	flash_movie = "urc_main_040106.swf";
	movie_width = 518;
	movie_height = 216;
}
else {
	document.write('<img src="/images/FLASH_PLACE_HOLDER.jpg" hspace="0" vspace="0" alt="" hspace="0" vspace="0" border="0" style="display: block; margin: 0; padding: 0;">');
	return;
}
/*
if(show_movie == "consumer_overview") {
	flash_movie = "urc_main_040106.swf";
}
*/


var ie = document.all;
var ns = (navigator.appName.toLowerCase().indexOf("netscape") > -1 ? 1:0);
var pc = false, mac = false, flash = false;

	if (navigator.appVersion.toLowerCase().indexOf("win") > -1) {
		pc = true;
	} else if (navigator.appVersion.toLowerCase().indexOf("mac") > -1) {
		if (navigator.appVersion.indexOf("MSIE 4.5") > -1) {			// Mac IE 4.5 can't detect plugins, so weed it out right now.
			flash = "mac4.5";
			mac = false;
		} else {
			mac = true;
		}
	}
	
	if ((ns) || (mac && ie))											// Netscape plugin detection (and IE mac!!!) 
	{
		for (i = 0; i < navigator.plugins.length; i++) {
			plug_description = navigator.plugins[i].description.toLowerCase();
			if (plug_description.indexOf("flash") != -1) {				// Flash plugin Exists
				if ( (plug_description.indexOf("8.0") != -1)) 
				{
					flash = 8;
					break;
				}
				else if ( (plug_description.indexOf("8.0") != -1) ||
					  (plug_description.indexOf("9.0") != -1) ||
					  (plug_description.indexOf("10.0") != -1)
					) {
					flash = 8;
					break;
				}
				else // Plugin is version 5 or less. 
				{												
					flash = 5;
					break;
				}
			}
		}
	} 

	if (ie && pc) 
	{
		var ieDetect = iedetect();
		if(ieDetect) {
			document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width='" + movie_width + " ' height='" + movie_height + "' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' style='margin:0;padding:0'>");
			document.write("<param name='movie' value='/images/" + flash_movie + "'>");
			document.write("<param name='loop' value='true'>");
			document.write("<param name='menu' value='false'>");
			document.write("<param name='quality' value='best'>");
			document.write("<param name='scale' value='exactfit'>");
			document.write("<embed src='/images/" + flash_movie + "' width='"+ movie_width +"' height='"+ movie_height +"' loop='false' quality='high' menu='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' style='margin:0;padding:0'></embed>");
			document.write("</object>");
		}
		else
			document.write('<img src="/images/FLASH_PLACE_HOLDER.jpg" hspace="0" vspace="0" alt="" hspace="0" vspace="0" border="0" style="display: block; margin: 0; padding: 0;">');
	}
	else if ((flash < 8 && (ns == 1 || mac == 1)) || (flash == "mac4.5")) {
		document.write('<img src="/images/FLASH_PLACE_HOLDER.jpg" hspace="0" vspace="0" alt="" hspace="0" vspace="0" border="0" style="display: block; margin: 0; padding: 0;">');
	}
	else {
		//we're good.
		//document.write('<img src="/images/FLASH_PLACE_HOLDER.jpg" hspace="0" vspace="0" alt="" hspace="0" vspace="0" border="0" style="display: block; margin: 0; padding: 0;">');
		document.write("<embed src='/images/" + flash_movie + "' width='"+ movie_width +"' height='"+ movie_height +"' loop='true' quality='high' menu='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' style='margin:0;padding:0'></embed>");
	}
}

