/*****************************************************************************************************************************
Date:- 7-July-2006
Script Usage:For Embedding Flash in Web pages

How To Use:

In Html Page

Step1:
Add the below line in the head tags
e.gg
<head><script type="text/javascript" src="jscript/swfobject.js"></script></head>

Step2:
Add the below line in the flash section and passed it unique id and keep that unique id same in the last line of script 

<div id=flashFile>AlterNamte Contents for flash file</div>
<script language="javascript" src="jscript/embedFlash.js" type="text/javascript"></script>

***************************************************************************************************************************/


//Flash Object Creation
/*<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="410" height="300" id="videoplayer" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="flash/videoplayer.swf?fullscreen=0&xmlPath=xml/player.xml" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="flash/videoplayer.swf?fullscreen=0&xmlPath=xml/player.xml" quality="high" bgcolor="#ffffff" width="410" height="300" name="videoplayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>
	*/
	var so = new SWFObject("resource/swf/more_logos.swf",   "videoplayer",    "215",   "125",      "8",     "#000000");
	//---------------------[Flash File Name]-----[ID/Name]---------[Wdth]-----[Hght]---[Version]--[Bg Color]  	



//Step 1st:-
	// set all the required flash properties
   so.addParam("quality", "high");
   so.addParam("wmode", "transparent");
   so.addParam("salign", "t");
	so.addParam("pluginurl", "http://www.macromedia.com/go/getflashplayer");
	 so.addParam("fullscreen", "0");
	  so.addParam("xmlPath", "xml/player.xml");


//Step-2nd (if required)	
	//Add paramaters for flash, this is also a best way for getting the values through query string
	/*
	--> by assigning static values
  		 so.addVariable("id", "1");
   	 so.addVariable("name", "xyz");
	
	--> by assigning dynamic values
		 so.addVariable("id", getQueryParamValue("id"));
	*/



//Step 3rd: Redirection url in case of no flash
	 //*** we can also assign the rediredtion if the plugin not found to the other page
	 // so.setAttribute('redirectUrl', 'absolute path of the file.html'); // must be the absolute URL to your site




//Final Step:
	//display the flash in the flash section  and it should must be the last line of the script also not the wrod flashFile it is the	    same id given on flash section of the html page
   so.write("flashFile");

