/*
----------------------------------------------------------------------
  Home JavaScript.
  For section /index.html
  
  Requires swfobject v. 1.5.1 including the NASCAR streaming video.
----------------------------------------------------------------------
*/


function my_initFlash() {

	// Load the promo module.
	
	var so = new SWFObject("/flash/home/rotatingLeaderboard/MainPromoLoader.swf", "as_homeBanner_flash", "728", "90", "9", "#ffffff");

	so.addVariable( "xml", "/xml/home/leaderboardAds.xml" );
	
	so.addVariable( "dateUrl", "/cfmx/web/geminicarcare/utilities/getDate.cfm" );

	so.addVariable( "showConsole", "false" );

	so.addParam( "wmode", "transparent" );

	so.write( "as_homeBanner" );

} // End my_initFlash().



function my_initVideoCarousel() {

	// Load the Video Carousel module.
	var d = new Date();
	var vc = new SWFObject("xml/home/videoCarousel/videoPreview.swf?d="+d.getTime(), "as_videoCarousel_flash", "407", "218", "9", "#e1e1e1");
	
	// For now, the xml path is changed within the source actionscript file "Main.as", in the loadXML function, on line 145. 
	// 		"xml/cover.xml"
	// The "Main.as" file is located in the subversion GemeniCarCare_com/Maintenance/Flash/videoCarousel/src/Main.as".
	
	vc.addVariable( "showConsole", "false" );	
	vc.addParam( "wmode", "window" );	
	vc.addParam( "allowFullScreen", "true" );	
	vc.addParam( "quality", "high" );
	vc.addParam( "align", "middle" );
	vc.write( "as_videoCarousel" );

} // End my_videoCarousel().


