// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.

if (!useRedirect) {    // if dynamic embedding is turned on

  //just rigging it so it will display the altername menu for debugging.
  //hasRightVersion = false;
  if(hasRightVersion) {  // if we've detected an acceptable version

	// Okay, in here make sure you put in the code:
	// Every time you see a "sidemenu.swf", it needs to be changed to:
	// "/Templates/sidemenu.swf?loadfile='+loadfile+'&section='+section+'"
	// A search and replace would probably be good for this.
	// That makes makes the correct menu open in Flash as well as the flash load when
	// you're out of the root directory.
	
    var oeTags = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"'
	+ ' WIDTH="200" HEIGHT="450" id="sidemenu" ALIGN="left">'
	+ ' <PARAM NAME=movie VALUE="/Templates/sidemenu.swf?loadfile='+loadfile+'&section='+section+'"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#3d9b35> <EMBED src="/Templates/sidemenu.swf?loadfile='+loadfile+'&section='+section+'" menu=false quality=high bgcolor=#3d9b35  WIDTH="200" HEIGHT="450" NAME="sidemenu" ALIGN="left"'
	+ ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>'
	+ '</OBJECT>';
    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
	//Okay, this is the same menu that appears in sub1.adp in the <noscript> for backwards
	//compatibility.  We want the same thing if it can't detect the flash menus either.

    var alternateContent = ''
	+ '<strong>Conference Details</strong>'
	+ '<ul>'
	+ '	<li><a href="/location">New Location</a></li>'
	+ '	<li><a href="/registration">Registration</a></li>'
	+ '	<li><a href="/schedule">Schedule</a></li>'
	+ '	<li><a href="/sponsorships">Sponsors</a></li>'
	+ '	<li><a href="/travel">Travel &amp; Transportation</a></li>'
	+ '	<li><a href="/hotels">Lodging</a></li>'
	+ '	<li><a href="/logan">Logan</a></li>'
	+ ' <li><a href="/press">Press Room</a></li>'
	+ ' <li><a href="/contact-info">Contact Information</a></li>'
	+ ' <li><a href="/committee">Organizing Committee</a></li>'
	+ ' <li><a href="/dates">Dates &amp; Deadlines</a></li>'
	+ ' <li><a href="/meetings">Additional Meetings</a></li>'
	+ ' <li><a href="/proceedings">Proceedings</a></li>'
	+ '</ul>'
	+ '<strong>Technical Program</strong>'
	+ '<ul>'
	+ ' <li><a href="/theme">Conference Theme</a></li>'
	+ ' <li><a href="/call">Call for Papers</a></li>'
	+ ' <li><a href="/tech-sessions">Technical Sessions</a></li>'
	+ ' <li><a href="/keynote">Keynote Speaker</a></li>'
	+ ' <li><a href="/students">Student Competition</a></li>'
	+ '</ul>'
	+ '<strong>Exhibits</strong>'
	+ '<ul>'
	+ '	<li><a href="/exhibits">Exhibits</a></li>'
	+ '	<li><a href="/exhibit-registration">Exhibit Registration</a></li>'
	+ '	<li><a href="/show-rules">Show Rules &amp; Regulations</a></li>'
	+ '	<li><a href="/exhibit-layout">Exhibit Layout</a></li>'
	+ '	<li><a href="/exhibit-descriptions">Exhibit Descriptions 2010</a></li>'
	+ ' <li><a href="/student-exhibits">University Exhibits</a></li>'
	+ ' <li><a href="/exhibit-faqs">Exhibit FAQs</a></li>'
	+ '</ul>'
	+ '<br><br>';

    document.write(alternateContent) ;  // insert non-flash content
  }
}