﻿
function embed_flash() {
    /**---------------------------------------------------------------------------------
    * ------------------- Parameters you may wish/need to change ----------------------
    * swfPath - 	path to the folder which contains the  
    associations flash movie and expressInstall.swf
    * swfName - 	filename of the flashmovie to embed
    * data - 		path and filename for the xml file which contains the associations data
    * windowMode -	determines whether the association link opens in a new page or the same page.
    valid values are "_self" and "_blank"
    */


    var swfPath = "Portals/oamps/FlashResources/swf/"
    var swfName = "associations.swf";
    var dataFile = "Portals/oamps/FlashResources/xml/associations.xml";
    var associationsHome = "http://oamps.com.au/Default.aspx?tabid=436";
    var windowMode = "_blank";

    /** -------------------------------------------------------------------------------
    * --------------------- Parameters you should not change --------------------------
    * width/height - 	physical size of the flash movie
    * flashVersion - 	minimum version of the flash player required. Flash 9 is required 
    for loading gif images
    */
    var width = "200";
    var height = "183";
    var flashVersion = "9.0.0";

    // ---------------------------------------------------------------------------------
    // ------------------------ NO TOUCHY-TOUCHY ---------------------------------------
    var debug = "false";
    var flashvars = { dataFile: dataFile, windowMode: windowMode, associationsHome: associationsHome };
    var params = {
        wmode: "transparent"
    };
    var attributes = {};
    attributes.id = "flash_movie";
    swfobject.embedSWF(swfPath + swfName, "flashContainer", width, height,
								flashVersion, false,
								flashvars, params, attributes
							   );

}

