// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.

//First option is for the odd one out - VHO page
if (sectionNumber == 0){
	var movieName = "odyssey-org-uk/flash/mountain.swf";
	var imageName = "odyssey-org-uk/images/mountain.jpg";
}else if (sectionNumber == 1){
	var movieName = "flash/mountain.swf";
	var imageName = "images/mountain.jpg";	
}else if (sectionNumber == 2){
	var movieName = "flash/river.swf";
	var imageName = "images/river.jpg";
}else if (sectionNumber == 3){
	var movieName = "flash/bluebells.swf";
	var imageName = "images/bluebells.jpg";
}else if (sectionNumber == 4){
	var movieName = "flash/villarica.swf";
	var imageName = "images/villarica.jpg";
}else if (sectionNumber == 5){
	var movieName = "flash/aberdovey.swf";
	var imageName = "images/aberdovey.jpg";
}
else if (sectionNumber == 6){
	var movieName = "flash/sahara.swf";
	var imageName = "images/sahara.jpg";
}
else if (sectionNumber == 7){
	var movieName = "flash/vietnam.swf";
	var imageName = "images/vietnam_.jpg";
}
else if (sectionNumber == 8){
	var movieName = "flash/quotes.swf";
}

if (!useRedirect) {    // if dynamic embedding is turned on
  if(hasRightVersion) {  // if we've detected an acceptable version
    if (sectionNumber < 8) {//It's a normal header
		var oeTags = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'WIDTH="648" HEIGHT="160"'
		+ 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<PARAM NAME="MOVIE" VALUE="' + movieName + '">'
		+ '<PARAM NAME="PLAY" VALUE="true">'
		+ '<PARAM NAME="LOOP" VALUE="false">'
		+ '<PARAM NAME="QUALITY" VALUE="high">'
		+ '<PARAM NAME="MENU" VALUE="false">'
		+ '<EMBED SRC="' + movieName + '"'
		+ 'WIDTH="648" HEIGHT="160"'
		+ 'PLAY="true"'
		+ 'LOOP="false"'
		+ 'QUALITY="high"'
		+ 'MENU="false"'
		+ 'TYPE="application/x-shockwave-flash"'
		+ 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
		+ '<\/EMBED>'
		+ '<\/OBJECT>';
	
		document.write(oeTags);   // embed the flash movie
	} else { //It's the quotes page
				var oeTags = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'WIDTH="628" HEIGHT="470"'
		+ 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<PARAM NAME="MOVIE" VALUE="flash/quotes.swf">'
		+ '<PARAM NAME="PLAY" VALUE="true">'
		+ '<PARAM NAME="LOOP" VALUE="false">'
		+ '<PARAM NAME="QUALITY" VALUE="high">'
		+ '<PARAM NAME="MENU" VALUE="false">'
		+ '<param name="wmode" value="transparent" />'
		+ '<EMBED SRC="flash/quotes.swf"'
		+ 'WIDTH="628" HEIGHT="470"'
		+ 'PLAY="true"'
		+ 'LOOP="false"'
		+ 'QUALITY="high"'
		+ 'MENU="false"'
		+ 'wmode="transparent"'
		+ 'TYPE="application/x-shockwave-flash"'
		+ 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
		+ '<\/EMBED>'
		+ '<\/OBJECT>';
	
		document.write(oeTags);   // embed the flash movie
	}
  } else {  // flash is too old or we can't detect the plugin
    if (sectionNumber < 7) { //It's a normal header
		var alternateContent = '<img src="' + imageName + '" width="648" height="160" alt="Bluebell header image"/>';
		document.write(alternateContent);  // insert non-flash content
	} else { //it's the quotes page
		var quotations = '<p><cite>"It was an exciting and busy week and yet it provided the space in which to find new strengths, pleasure and companionship and time to take in the healing power of the countryside."</cite> Working mother, late 50\'s</p>'
		+ '<p><cite>"It was set with targets which were achievable and gave us all a feeling of well-being and satisfaction at the end of each day. An amazing experience, certainly not one to be missed."</cite> Businessman, 50\'s</p>'
		+ '<p><cite>"I still think about the week almost every day and will do for a long time yet."</cite> Unemployed woman, mid 30\'s</p>'
		+ '<p><cite>"The element of surprise is brilliant...   I think it was the most exciting week of my life...   I will be eternally grateful for your support and kindness."</cite> Grandmother, 60\’s</p>'
		+ '<p><cite>"We had lots of laughs and the whole week was full of fun."</cite> Market trader, 30\s</p>'
		+ '<p><cite>"Before I went on Odyssey I was under the misapprehension that it would be a \'medical\' week with group therapy sessions etc which I did not want.  It was such a relief to find out this wasn’t the case."</cite> Working woman, 40’s</p>'
		+ '<p><cite>"It was set with targets which were achievable and gave us all a feeling of well-being and satisfaction at the end of each day. An amazing experience, certainly not one to be missed."</cite> Businessman, 50\'s</p>';
		document.write(quotations);
	}
  }
}