function DisplayFlash(file,width,height,Name)

{

            // file - name of the file including path

            // width - width of movie

            // height - height of movie

            // divTagName - id of the div tag encapsulating the flash movie

            // MovieId - id that the object will have

            document.write("<div id='" + Name + "_Div'></div>")

             

            //DECLARING OBJECT TAG

            var flashObject=document.createElement('object');

            flashObject.setAttribute('id',Name);

            flashObject.setAttribute('type','application/x-shockwave-flash');

            flashObject.setAttribute('data', '');

            flashObject.data=file;

            flashObject.setAttribute('width', '');

            flashObject.width=width;

            flashObject.setAttribute('height','');

            flashObject.height=height;

                                     

            //DECLARING PARAMETERS FOR OBJECT

            // NOTE - other Parameters can be appended to flashObject

            // currently only adding 'movie' param

            var flashParam=document.createElement('param');

            flashParam.setAttribute('name','');

            flashParam.name="movie";

            flashParam.setAttribute('value','');

            flashParam.value=file; 

            flashObject.appendChild(flashParam);

                                                              

            //SETTING INFORMATION TO DIV TAG

            var tt=document.getElementById(Name + "_Div");

            tt.appendChild(flashObject);

            

            //LOAD MOVIE

            
			if (document.getElementById) 
			{
				var movie = document.getElementById(flashObject.id);
				
				if (typeof movie.LoadMovie != 'undefined')
				{
					movie.LoadMovie(0,file);
				}
			}

/*
if (document.embeds && document.embeds.embedName &&
document.embeds.embedName.LoadMovie) {
document.embeds.embedName.LoadMovie(...);
}
else if (document.getElementById) {
var obj = document.getElementById('objectId');
if (typeof obj.LoadMovie != 'undefined') {
obj.LoadMovie(...);
}

*/
            

}