var myFlashObject;

function contentInsert(id, width, height){
	var ret;
	var browser;
	if (navigator.appName.indexOf("Microsoft") != -1) {
        browser = "ie";
    } else {
        browser = "moz";
    }
	if(!width)width = "100%";
	if(!height)height = "100%";
	if(DetectFlashVer(7, 0, 0)){
		/*if(browser == "ie"){
			document.write('<table border="0" id="tableContainer" cellpadding="0" cellspacing="0">\n');
	  		document.write('<tr>\n');
			document.write('<td valign="top">\n');
		}*/
		document.write('<div id="outsideContainer">\n');
		document.write('<div id="container">\n');
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" align="middle" id="'+id+'">\n');
		document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
		document.write('<param name="movie" value="main.swf" />\n');
		document.write('<param name="quality" value="high" />\n');
		document.write('<param name="SeamlessTabbing" value="false" />\n');
		document.write('<param name="name" value="'+id+'" />\n');
		document.write('<embed name="'+id+'" id="'+id+'" src="main.swf" quality="high" width="'+width+'" height="'+height+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
		document.write('</object>\n');
		document.write('</div>\n');
		document.write('</div>\n');
		
		/*if(browser == "ie"){
			document.write('</td>\n');
			document.write('</tr>\n');
			document.write('</table>\n');
		}*/
		ret = true;
	}else{
		document.write('<a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" onmouseover="roll_over(\'install_roll\', \'getflash_images/install_roll.gif\')" onmouseout="roll_out(\'install_roll\');" target="_blank"><img src="getflash_images/spacer.gif" alt="Click to Install Flash Player 8" width="236" height="18" border="0" name="install_roll" id="install_roll"></a>\n');
		document.write('<a href="index.html" onmouseover="roll_over(\'open_roll\', \'getflash_images/open_roll.gif\')" onmouseout="roll_out(\'open_roll\');"><img src="getflash_images/spacer.gif" alt="Got Flash? Launch the site" width="134" height="15" border="0" name="open_roll" id="open_roll"></a>\n');
		document.write('<table width="100%" cellpadding="0" cellspacing="0" id="layout">\n');
		document.write('<tr>\n');
		document.write('<td width="714"><img src="getflash_images/bg_top_left.jpg" alt="" width="714" height="413"></td>\n');
		document.write('<td align="right"><img src="getflash_images/coke_logo.jpg" alt="Coca-Cola LIVE 06" width="311" height="413"></td>\n');
		document.write('</tr>\n');
		document.write('<tr>\n');
		document.write('<td><img src="getflash_images/bg_bottom_left.jpg" alt="" width="714" height="366"></td>\n');
		document.write('<td align="right"><img src="getflash_images/bg_bottom_right.jpg" alt="" width="311" height="366"></td>\n');
		document.write('</tr>\n');
		document.write('</table>\n');
		ret = false;
	}
	onLoad="flashFocus();"
	myFlashObject = parent.document.getElementById(id);
	return ret;
}
function roll_over(name, the_image){
	obj = eval("document." + name);
	obj.src = the_image; 
}
function roll_out(name){
	obj = eval("document." + name);
	obj.src = 'getflash_images/spacer.gif'; 
}
function flashFocus(){
    myFlashObject.focus();
}
function getObject(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    } else {
        return document[movieName]
    }
}
