function loadFlash(swf,width,height,FlashVars)
{
	AC_FL_RunContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
		'width', width,
		'height', height,
		'src', swf,
		'quality', 'high',
		'pluginspage', 'http://www.adobe.com/go/getflashplayer',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		'devicefont', 'false',
		'id', swf,
		'bgcolor', '#4f0d31',
		'name', swf,
		'menu', 'true',
		'allowFullScreen', 'false',
		'allowScriptAccess','sameDomain',
		'movie', swf,
		'FlashVars', FlashVars,
		'salign', ''
		);


	document.write('<noscript>');
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width='+width+' height='+height+' id="'+swf+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="allowFullScreen" value="false" />');
	document.write('<param name="movie" value="'+swf+'.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" />');
	document.write('<embed src="'+swf+'.swf" quality="high" wmode="transparent" bgcolor="#000000" width='+width+' height='+height+' name="header01" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />');
	document.write('</object>');
	document.write('</noscript>');

}

function noflash()
{
	document.write('<img src="pub/kfnoflash.jpg"><br>');
	document.write('<font face="arial" size=2 color=#ef72b6 style="line-height:25px"><br><b>Your browser must support Adobe Flash v8+ Player</b><br></font><font color=#ffffff face=arial> <b>&raquo;</b> <a href="http://get.adobe.com/flashplayer/" target=_blank><font color=#ffffff face=arial size=2><b>Download it here</a>');
	document.write('<br><br><table cellpadding=10 cellspacing=5><tr align=center>');
//	document.write('<td style="bordeR:1px solid #cf5697" bgcolor=#83124f><font face=arial size=2><b><font color=#ffffff>SEPTEMBER 19-20</font><BR><font color=#ef72b6>University of Phoenix Stadium<br><font size=1>GLENDALE, AZ</font>	<hr size=1 color=#b2427e><font face=arial size=2><a href="pub/eblast2">+ info</a>	<hr size=1 color=#b2427e><font face=arial size=2><a href="pub/glendale_tickets.htm">Get discount tickets now!</a></td>');
	document.write('<td style="bordeR:1px solid #cf5697" bgcolor=#83124f><font face=arial size=2><b><font color=#ffffff>SEPTEMBER 25-26</font><BR><font color=#ef72b6>Alameda County Fairgrounds<br><font size=1>PLEASANTON, CA</font>	<hr size=1 color=#b2427e><font face=arial size=2><a href="pub/eblast3">+ info</a>	<hr size=1 color=#b2427e><font face=arial size=2><a href="pub/pleasanton_tickets.htm">Get discount tickets now!</a></td>');
//	document.write('<td style="bordeR:1px solid #cf5697" bgcolor=#83124f><font face=arial size=2><b><font color=#ffffff>OCTOBER 3-4</font><BR><font color=#ef72b6>Orange County Fairgrounds<br><font size=1>COSTA MESA, CA</font>		<hr size=1 color=#b2427e><font face=arial size=2><a href="pub/eblast4">+ info</a>	<hr size=1 color=#b2427e><font face=arial size=2><a href="pub/costamesa_tickets.htm">Get discount tickets now!</a></td>');
	document.write('</tr></table>');
	
	document.write('<BR>For more information you can phone us at 866.283.8600<br><font size=1>');
	document.write('<br>Information about EXHIBITING<br><a href=mailto:exhibiting@thekidsfaire.com>exhibiting@thekidsfaire.com</a><bR>');
	document.write('<br>Information about FUNDING AND VOLUNTEERING<br><a href=mailto:volunteer@thekidsfaire.com>volunteer@thekidsfaire.com</a><br>');
	document.write('<br>Information about FAMILY FUN<br><a href=mailto:tourguide@thekidsfaire.com>tourguide@thekidsfaire.com</a>');
}

function popupWindow(url,width,height,scroll)
{
	if (!scroll) scroll=0;

	if (screen)
	{
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }
	kidsfaire=window.open(url,'newWin','scrollbars=1,titlebar=0,status=0,toolbar=0,menubar=0,resizable=0,width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
	kidsfaire.focus();
}
