var flashMovies=new Array();

/* ********************************************************************************************

	for each movie you want to insert on the page add the line of code below
	and fill in the variables with the appropriate information.

	flashMovies[flashMovies.length]=new Array("","","","","");

	the 1st variable is the flash movie name, make sure all variables are in quotes
	flashMovies[flashMovies.length]=new Array("myflashmovie.swf","","","","");

	the 2nd variable is the span id you want to insert the movie into, each id must be unique
	flashMovies[flashMovies.length]=new Array("myflashmovie.swf","flashMovie","","","");

	the 3rd variable is the movie width
	flashMovies[flashMovies.length]=new Array("myflashmovie.swf","flashMovie","800","","");

	the 4th variable is the movie height

	the 5th variable is the background color for the movie

	once you have made your movie array insert it in the code below the line //new movie

******************************************************************************************** */


// music movie
flashMovies[flashMovies.length]=new Array("pagespacerental.swf","flashMovie","790","620","#000000");
//new movie


function insertFlash() {

 for (i=0;i<flashMovies.length;i++) {

  var movieName=flashMovies[i][0];
  var spanId=flashMovies[i][1];
  var width=flashMovies[i][2];
  var height=flashMovies[i][3];
  var backgroundColor=flashMovies[i][4];

  var flashObject='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="'+spanId+'_player" align="middle"> <param name="allowScriptAccess" value="always" /><param name="movie" value="'+movieName+'" /><param name="quality" value="high" /><param name="bgcolor" value="'+backgroundColor+'" /><embed src="'+movieName+'" quality="high" bgcolor="'+backgroundColor+'" width="'+width+'" height="'+height+'" name="'+spanId+'_movie" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>';

  var elm=document.getElementById(spanId);
  elm.innerHTML=flashObject;

 }

}



