// 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="195" HEIGHT="450" id="sidemenu" ALIGN="">'
	+ ' <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=#FFFFFF> <EMBED src="/Templates/sidemenu.swf?loadfile='+loadfile+'&section='+section+'" menu=false quality=high bgcolor=#FFFFFF  WIDTH="195" HEIGHT="450" NAME="sidemenu" ALIGN=""'
	+ ' 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>Calibration Conference</strong>'
	+ '<ul>'
	+ '<li><a href="/conferences/calcon/">Conference Details</a></li>'
	+ '<li><a href="/conferences/calcon/schedule">Agenda</a>'
	+ '<li><a href="/conferences/calcon/registration">Registration</a></li>'
	+ '<li><a href="/conferences/calcon/dates">Dates & Deadlines</a></li>'
	+ '<li><a href="/conferences/calcon/committee">Planning Committee</a></li>'
	+ '<li><a href="/conferences/calcon/contact-info">Contact Information</a></li>'
	+ '</ul>'
	+ '<strong>Technical Program</strong>'
	+ '<ul>'
	+ '<li><a href="/conferences/calcon/call">Abstract Submittal</a></li>'
	+ '<li><a href="/conferences/calcon/tutorial">Pre-Conference Tutorial</a></li>'
	+ '<li><a href="/conferences/calcon/tech-sessions">Technical Sessions</a></li>'
	+ '<li><a href="/conferences/calcon/posters">Poster Session</a></li>'
	+ '<li><a href="/conferences/calcon/classified-session">US-Only Restricted Session</a></li>'
	+ '<li> <a href="/conferences/calcon/keynote">Keynote Speaker</a></li>'
	+ '</ul>'
	+ '<strong>Exhibits</strong>'
	+ '<ul>'
	+ '<li><a href="/conferences/calcon/exhibits">About Exhibits</a></li>'
	+ '<li><a href="/conferences/calcon/exhibit-registration">Exhibit Registration</a></li>'
	+ '<li><a href="/conferences/calcon/show-rules">Show Rules & Regulations</a></li>'
	+ '<li><a href="/conferences/calcon/exhibit-layout.pdf">Exhibit Layout (PDF)</a></li>'
	+ '</ul>'
	+ '<strong>Sponsors & Opportunities</strong>'
	+ '<ul>'
	+ '<li> <a href="/conferences/calcon/sponsors">Conference Sponsors</a></li>'
//	+ '<li><a href="/conferences/calcon/sponsors-corporate">Corporate Sponsors</a></li>'
	+ '<li> <a href="/conferences/calcon/sponsorships">Sponsorship Opportunities</a></li>'
	+ '</ul>'
	+ '<strong>Travel & Transportation</strong>'
	+ '<ul>'
	+ '<li> <a href="/conferences/calcon/transportation">Transportation</a></li>'
	+ '<li> <a href="/conferences/calcon/maps-directions">Maps & Directions</a></li>'
	+ '<li> <a href="/conferences/calcon/hotels">Hotels</a></li>'
	+ '<li> <a href="/conferences/calcon/restaurants">Restaurants</a></li>'
	+ '<li> <a href="/conferences/calcon/logan">About Logan</a></li>'
	+ '</ul>'
	+ '<strong>Previous Conferences</strong>'
	+ '<ul>'
	+ '<li><a href="/conferences/calcon/previous">Programs & Proceedings</a></li>'
	+ '<li><a href="/conferences/calcon/history">CALCON History</a></li>'
	+ '</ul>'
	+ '<br><br>';

    document.write(alternateContent) ;  // insert non-flash content
  }
}