﻿var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if (hasRightVersion) {  // if we've detected an acceptable version
    // embed the flash movie
    AC_FL_RunContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,2,0',
		'width', '550',
		'height', '213',
		'src', 'GSCNewWebIntro1',
		'quality', 'high',
		'pluginspage', 'http://www.adobe.com/go/getflashplayer',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		'wmode', 'window',
		'devicefont', 'false',
		'id', 'GSCNewWebIntro1',
		'bgcolor', '#ffffff',
		'name', 'GSCNewWebIntro1',
		'menu', 'true',
		'allowFullScreen', 'false',
		'allowScriptAccess', 'sameDomain',
		'movie', 'flash/GSCNewWebIntro1',
		'salign', ''
		); //end AC code
} else {  // flash is too old or we can't detect the plugin
    var alternateContent = 'Alternate HTML content should be placed here.'
		+ 'This content requires the Adobe Flash Player.'
		+ '<a href="http://www.adobe.com/go/getflashplayer/">Get Flash</a>';
    document.write(alternateContent);  // insert non-flash content
}

//var swfVersionStr = "6.0.79";
//			<!-- xiSwfUrlStr can be used to define an express installer SWF. -->
//			var xiSwfUrlStr = "";
//			var flashvars = {};
//			var params = {};
//			params.quality = "high";
//			params.bgcolor = "#ffffff";
//			params.play = "true";
//			params.loop = "true";
//			params.wmode = "window";
//			params.scale = "showall";
//			params.menu = "true";
//			params.devicefont = "false";
//			params.salign = "";
//			params.allowscriptaccess = "sameDomain";
//			var attributes = {};
//			attributes.id = "GSCNewWebIntro1";
//			attributes.name = "GSCNewWebIntro1";
//			attributes.align = "middle";
//			swfobject.createCSS("html", "height:100%; background-color: #ffffff;");
//			swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;");
//			swfobject.embedSWF(
//				"GSCNewWebIntro1.swf", "flashContent",
//				"550", "213",
//				swfVersionStr, xiSwfUrlStr,
//				flashvars, params, attributes);
