function floatFlash(src, width, height, location){

            

            

            var ie4 = (document.all);

            var ns4 = (document.layers);

            var ns6 = (!document.all && document.getElementById);

            

            if (ie4) {

            var horiCenter = document.body.clientWidth/2

            var vertCenter = document.body.clientHeight/2

            }

            else {

            var horiCenter = window.innerWidth/2

            var vertCenter = window.innerHeight/2

            }

            

            var width = 640

            var height = 480

            var horiPos = horiCenter - width/2

            var vertPos = vertCenter - height/2

            

            

            var setLocation = new Array();

                        setLocation['TL'] = "top: 271; left: 537;";

                        setLocation['TR'] = "top: 0; right: 0;";

                        setLocation['BL'] = "bottom: 0; left: 0;";

                        setLocation['BR'] = "bottom: 0; right: 0;";

                        setLocation['C'] = "top: "+vertPos+"; left: "+horiPos+";"

                        

            

            // Set center

            var center = true

            document.write ('<div style="position: absolute; ' + setLocation[location] +  '" z-index: 1;>');

            loadFlashObject(src, width, height, 0);

            document.write('</div>');

            

            

}

 

//remove requirement for ie users to click on obj before using.

 

function loadFlashObject(src, width, height, loop){

            htmlStr = '<object name="' +src+ '" ';

            htmlStr += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" ';

            htmlStr += 'width="' + width + '" height="' + height + '"';

            htmlStr += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">';

            htmlStr += '<param name="movie" value="' + src + '" />';

            htmlStr += '<param name="quality" value="high" />';

            htmlStr += '<param name="loop" value="0" />';

            htmlStr += '<param name="wmode" value="transparent" />';

            htmlStr += '<embed width="' + width + '" height="' + height + '" src="' + src + '" quality="high"wmode="transparent" ';

            htmlStr += 'pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ></embed></object>';

            document.write(htmlStr);

            

            //start the movie

            var movieName = src;

             if(window.document[movieName]){

                         window.document[movieName].play();

              }

              if(navigator.appName.indexOf("Microsoft Internet")==-1){

                        if(document.embeds && document.embeds[movieName]){

                                     document.embeds[movieName].play(); 

                        }

              }

}