flash overlay close using button

I have a flash overlay and I'm trying to get it to close using a flash button.  The flash is within <div> but having problems

Here's the website...trying to help a friend  http://www.spafiori.com/index_new.html

The return to website button

<script type="text/javascript"> 
	//FLASH MOVIES (using SWFObject for IE Eolas changes)

	var wreath = new SWFObject("wreaths/spafiori_new.swf", "mymovie", "496", "252", "0", "#999999");

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19766158-1']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);



<body id="portfolio" onload="showExample(wreath, 'flash_viewer')">
<div id="exampleArea">
<div id="shade" onclick="void(0)"></div>
	<div id="flash_viewer">
		The feature you're trying to access requires the Flash plug-in.  
		If you're seeing this message, you probably don't have the plug-in.
	<!-- IMAGE VIEWER -->
	<div id="image_viewer">
<!---	<input type="button" id="closeButton" onclick="showPage()" value="Close" /> --->

Open in new window

Who is Participating?
shjaniAuthor Commented:
Was able to figure it out on my own with a function that was within the javascript on the website.  Because I was trying to retrofit an existing website, I had to do some investigating.  That's for your help.
What is you stage size in FLA>?
You Flash holder is width 700px but wreaths/spafiori_new.swf width 496px you may prevent from div holder

#flash_viewer {
    display: none;
    left: 50%;
    margin-left: -350px;
    position: absolute;
    text-align: center;
    top: 20px;
    width: 700px;
    z-index: 200;
shjaniAuthor Commented:
typo...Thanks for your help...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.