// In this section we set up the content to be placed dynamically on the page.
//Customize movie tags and alternate html content below.
//all additional code www.arekibo.com Brian McBreen - developer

if (!useRedirect) {    // if dynamic embedding is turned on
  if(hasRightVersion) {  // if we've detected an acceptable version
  
    var oeTags1 = '<td valign=\"top\" colspan=\"3\" bgcolor=\"#376A9D\" align=\"center\"><OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'WIDTH="558" HEIGHT="230"'
    + 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<PARAM NAME="MOVIE" VALUE="http://www.irishaid.gov.ie/flash_intro/1.swf">'
    + '<PARAM NAME="PLAY" VALUE="true">'
    + '<PARAM NAME="LOOP" VALUE="false">'
    + '<PARAM NAME="QUALITY" VALUE="high">'
    + '<PARAM NAME="MENU" VALUE="false">'
	+ '<PARAM NAME="base" VALUE=".">'
	+ '<PARAM NAME="wmode" VALUE="transparent">'
    + '<EMBED SRC="http://www.irishaid.gov.ie/flash_intro/1.swf"'
    + 'WIDTH="558" HEIGHT="230"'
    + 'PLAY="true"'
    + 'LOOP="false"'
    + 'QUALITY="high"'
    + 'MENU="false" '
	+ 'base="." '
	+ 'wmode="transparent"'
   	+ 'TYPE="application/x-shockwave-flash"'
    + 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
    + '</EMBED>'
    + '</OBJECT></td>';
	
	
			// Generate a Random Number
		//var randomnumber = 1);

		// Select a movie and execute the corresponding function
		//if (randomnumber == 1)

		//{
		
		document.write(oeTags1); 
		
		//}


		
		//else {document.write(oeTags1);}
		/*
		{movie1()}
		//Functions to write out the correct flash movie resource.
		function movie1(){
		document.write("<td valign=\"top\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"548\" height=\"230\"><param name=\"SRC\" value=\"flash_intro/random_intro_1.swf\"><param name=\"wmode\" value=\"transparent\"><param name=\"base\" value=\".\"><embed src=\"flash_intro/random_intro_1.swf\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" type=\"application/x-shockwave-flash\" width=\"548\" height=\"230\" base=\".\"><noembed><img src=\"images/home_image.gif\" width=\"548\" height=\"230\" border=\"0\" ></noembed></embed></object></td>")
		}

		function movie2(){
		document.write("<td valign=\"top\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"548\" height=\"230\"><param name=\"SRC\" value=\"flash_intro/random_intro_2.swf\"><param name=\"wmode\" value=\"transparent\"><param name=\"base\" value=\".\"><embed src=\"flash_intro/random_intro_2.swf\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" type=\"application/x-shockwave-flash\" width=\"548\" height=\"230\" base=\".\"><noembed><img src=\"images/home_image.gif\" width=\"548\" height=\"230\" border=\"0\" ></noembed></embed></object></td>")
		}

		function movie3(){
		document.write("<td valign=\"top\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"548\" height=\"230\"><param name=\"SRC\" value=\"flash_intro/random_intro_3.swf\"><param name=\"wmode\" value=\"transparent\"><param name=\"base\" value=\".\"><embed src=\"flash_intro/random_intro_3.swf\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" type=\"application/x-shockwave-flash\" width=\"548\" height=\"230\" base=\".\"><noembed><img src=\"images/home_image.gif\" width=\"548\" height=\"230\" border=\"0\" ></noembed></embed></object></td>")
		}

		function movie4(){
		document.write("<td valign=\"top\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"548\" height=\"230\"><param name=\"SRC\" value=\"flash_intro/random_intro_4.swf\"><param name=\"wmode\" value=\"transparent\"><param name=\"base\" value=\".\"><embed src=\"flash_intro/random_intro_4.swf\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" type=\"application/x-shockwave-flash\" width=\"548\" height=\"230\" base=\".\"><noembed><img src=\"images/home_image.gif\" width=\"548\" height=\"230\" border=\"0\" ></noembed></embed></object></td>")
		}
	*/

   // document.write(oeTags);   // embed the flash movie
  } 
  
  //else {  // flash is too old or we can't detect the plugin
    // NOTE: height, width are required!
  //  var alternateContent = '<td><img src="images/noflash.gif" height="230" width="548"></td>' 
      //+ '<BR>any desired alternate html code goes here';
	  
	  //if(jsVersion > 1.0) {
       // window.location.replace((actualVersion >= 2) ? upgradePage : noFlashPage);
    //  } else {
      //  window.location = (actualVersion >= 2) ? upgradePage : noFlashPage;
     // }

  //  document.write(alternateContent);  // insert non-flash content
//  }
}