﻿// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 7;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 19;
// -----------------------------------------------------------------------------

// Version check based upon the values entered above in "Globals"
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

// Check to see if the version meets the requirements for playback
if (hasReqestedVersion) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
				"src", "../Images/ani_home",
				"width", "754",
				"height", "384",
				"align", "middle",
				"id", "tcHomeAnimation",
				"quality", "high",
				"bgcolor", "#FFFFFF",
				"name", "tcHomeAnimation",
				"allowScriptAccess","sameDomain",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
				"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
	
	// If > IE 6 then we need to activate
	if (navigator.appVersion.indexOf("MSIE") != -1)
	    document.write('<script type="text/JavaScript" src="../Scripts/FlashFix.js"></script>');

} else {  // flash is too old or we can't detect the plugin
	var alternateContent =  '<table border="0" cellpadding="0" cellspacing="0" class="tcnopadcentered" width="754px">'
                        +   '<tr><td class="tcbackpad" style="background-image: url(../images/pic_background.jpg)">'	                    +   '<div class="tcnopadcentered" style="background-color:Black">'	                    +   '<h1>Welcome to Trowbridge Consulting, and thank you for visiting our site.</h1>'                        +   '<h1>We are a full service computer consultancy.  What does that mean for you?   Essentially, all your computer needs, from networking and software installation to web design and hosting, can be met by us.  And if we don’t do it, we’ll refer you to someone we trust. </h1>'                        +   '<h1>Our services include custom programming, networking, troubleshooting, data backup &amp; protection, unique system recovery solutions, virus &amp; spyware removal and full service graphic and web design.</h1>'                        +   '<h1>We also offer a range of marketing services including copywriting, editing, press releases and advertising campaign analysis.</h1>'                        +   '<h1>We pride ourselves on our skills and customer service.  Large or small, your business is important to us.  Please take a minute to explore our site, and of course, feel free to contact us any time.</h1>'                        +   '<h1>We are located in Sarasota, FL and work with companies around the country.</h1>'
                        +   '<h1>We look forward to working with you.</h1><br /></td></tr>'
                        +   '<tr><td class="tcnopadcentered">'                        +   '<div class="tcparagraphcell" style="color: #cc9900; text-align: center">To view our Home Animation Page requires the Adobe Flash Player and a browser with JavaScript enabled.</div>'
                        +   '<a href="http://www.adobe.com/go/getflash/" style="color: #cc9900">Get the latest Flash Player from Adobe.</a><br /></div></td></tr></table>';
	document.write(alternateContent);  // insert non-flash content
}

