function commitFlashObject(_obj, _container){
flash_versions = 20;
var flash = new Object();
flash.installed=false;
flash.version='0.0';

// Dig through Netscape-compatible plug-ins first.
if (navigator.plugins && navigator.plugins.length) {
	for (x=0; x < navigator.plugins.length; x++) {
		if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) {
			flash.version = navigator.plugins[x].description.split('Shockwave Flash ')[1];
			flash.installed = true;
			break;
		}
	}
}

else if (window.ActiveXObject) {
	for (x = 2; x <= flash_versions; x++) {
		try {
			oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
			if(oFlash) {
				flash.installed = true;
				flash.version = x + '.0';
			}
		}
		catch(e) {}
	}
}

flash.ver = Array();
for(i = 4; i <= flash_versions; i++) {
	eval("flash.ver[" + i + "] = (flash.installed && parseInt(flash.version) >= " + i + ") ? true : false;");
}
    var agt=navigator.userAgent.toLowerCase();
    var appVer = navigator.appVersion.toLowerCase();

    var is_konq = false;
    var kqPos   = agt.indexOf('konqueror');
    if (kqPos !=-1) {
       is_konq  = true;
       is_minor = parseFloat(agt.substring(kqPos+10,agt.indexOf(';',kqPos)));
       is_major = parseInt(is_minor);
    }

	var is_safari = ((agt.indexOf('safari')!=-1)&&(agt.indexOf('mac')!=-1))?true:false;
	var is_khtml  = (is_safari || is_konq);
	if(is_khtml)is_safari=true;if(is_khtml)is_konq=true;
	var is_Flash        = false;
	var is_FlashVersion = 0;
    var is_safari = ((agt.indexOf('safari')!=-1)&&(agt.indexOf('mac')!=-1))?true:false;
    var is_khtml  = (is_safari || is_konq);
	if(is_khtml)is_safari=true;
	if(is_khtml)is_konq=true;
	   if (is_safari) {  //030617 - bdn - put on one line
      var plugin = (navigator.mimeTypes &&
                    navigator.mimeTypes["application/x-shockwave-flash"] &&
                    navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) ?
                    navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
      if (plugin) {
         is_Flash = true;
         is_FlashVersion = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1));
         flash.installed = true;
         flash.version = is_FlashVersion;

	}
   }


var secs
var timerID = null
var timerRunning = false
var delay = 1000

function InitializeTimer()
{
    // Set the length of the timer, in seconds
    secs = 10
    StopTheClock()
    StartTheTimer()
}

function StopTheClock()
{
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false
}

function StartTheTimer()
{
    if (secs==0)
    {
        StopTheClock()
	window.location='/';
    }
    else
    {
	secs = secs - 1
	timerRunning = true
	timerID = self.setTimeout("StartTheTimer()", delay)
    }
}


	_output=""
	_paramoutput=""
	_src=""
	_ver=""
	for(_cO in _obj){
		_output+=_cO+"=\""+_obj[_cO]+"\" "
		_paramoutput+="<param name="+_cO+" value=\""+_obj[_cO]+"\"> ";
		if(_cO=="movie")_src="src=\""+_obj[_cO]+"\"";
		if(_cO=="version")_ver=_obj[_cO];
		if(_cO=="height")_h=_obj[_cO];
		if(_cO=="width")_w=_obj[_cO];
		if(_cO=="web_address")_address=_obj[_cO];
		if(_cO=="name")_theName=_obj[_cO];
	}
	
	if(_ver=="")_ver="8,0,0,0"
	ihtm= "<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+_ver+" "+_output+" style=\"width:" + _w + ";height:" + _h + "\">\n"
	ihtm+=_paramoutput+"\n"
	ihtm+="<embed "+_src+" pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash name=" + _theName + " "+_output+" style=\"width:" + _w + ";height:" + _h + "\">\n";
	ihtm+="</embed>\n";
	ihtm+="</object>\n";

	if(document.getElementById(_container) && flash.ver[7]){
		document.getElementById(_container).innerHTML=ihtm;	
	}else{
		document.getElementById(_container).innerHTML="<div style='text-align:left;width:550px;padding:15px;border:solid 1px #efefef;background-color:#fff;color:#333;margin: 0 auto'><b>Welcome to " + _address + ",</b><br /><br />In order to fully enjoy this site you should download the Flash Player Plug-in.<br /><br />You can either visit this site without flash or you can download the Adobe Flash Player plugin (for free) by clicking on the appropriate link below.<br /><br />Download flash: <a href='http://www.adobe.com/shockwave/download/' style='text-decoration:underline;color:#ff3333;font-weight:bold'>www.adobe.com</a></div>";
	}
}