// JavaScript Document
var s_URL,s_DivID,s_Width,s_Heights_FlashVersion,s_Environment,s_SonyDomain
function createFlash(page){
	// path of the website URL
	sitePath = "http://www.sony-asia.com/microsite/cybershot/t900/";
	/* Omnitur e*/
	flashvars.s_pageName     = "ms:DSC-T900";                             // Example(Page Name)                    ms:Bravia
    flashvars.s_prop1        = "http://www.sony-asia.com/cybershot/t900/";              // Example(Microsite URL)                http://www.sony.co.th/microsite/
    flashvars.s_prop2        = "AP";                                         // Example(Country)                      TH
    flashvars.s_prop3        = "en";                                         // Example(Language)                     th 
    flashvars.s_prop41       = "DSC-T900";                                // Example(Microsite Name)               Bravia
    flashvars.s_prop42       = "DSC-T900";                           // Example(Microsite Section)            Bravia:Home 
    flashvars.s_hier5        = "microsite|DSC-T900";                 // Example(Microsite Name and sub-level) microsite|Bravia|X-series
    flashvars.s_actionSource = "/microsite/script/OmnitureActionSource.swf"; // Path of "OmnitureActionSource.swf"
	flashvars.serverPath = "http://www.makestudios.net/staging/sony/t900/";
	
	if (page != false){
		flashvars.branch = "index/nav/"+page;
	}
    
     s_URL          = "main.swf"; // Path of flash path.
     s_DivID        = "flashcontent";        // ID of <Div> at step 6.
     s_Width        = "980";               // Flash width. If unit is "px", use 256 instead of 256px.
     s_Height       = "650";               // Flash height. If unit is "px", use 256 instead of 256px. If height is 100%, Step 2 becomes mandatory.
     s_FlashVersion = "9.0.124";              // Flash player verion, format is: "major.minor.release"
     s_Environment  = PRD;                  // DEV = Development | STG = Staging | PRD = Production(Live) | ADM = Sony Admin User only
     s_SonyDomain   = true;                 // true = Final deployment within SONY URL | false = Final delopyment Reside on extenal URL.


	params.menu              = "false";
    params.scale             = "noscale";
    params.align             = "middle";
    params.quality           = "high";
    params.bgcolor           = "#000000";
	params.wmode			 = "transparent";
    params.allowScriptAccess = "always";
    run_SWFObject();
	//debug_setting();
}