// JavaScript Document


function createFlashPlayer(player, w, h, id, file, wmode){

// Check to see if the version meets the requirements for playback -- 
// hasReqestedVersion = false;
	if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		
		if(!wmode) wmode="transparent";
		
		file = "flashFile=" + file;
		
		AC_FL_RunContent(
				"src", player,
				"width", w,
				"height", h,
				"align", "left",
				"id", id,
				"quality", "high",
				"bgcolor", "B2B2B2",
				"name", "slideshow",
				"allowScriptAccess","sameDomain",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				"pluginspage", "http://www.adobe.com/go/getflashplayer",
				"base", ".",
				"wmode", wmode,
				"FlashVars", file
	);
	
	} else {  // flash is too old or we can't detect the plugin
		
		var alternateContent ='';
		
		
		switch(staticImg){
			case "homeImg":
				alternateContent += '<img src="/images/flash/home/main01.jpg" alt="Trailways" width="935" height="278" border="0"/>';
				break;
			case "polaroidImg":
				alternateContent += '<img alt="Featuring Affordable Luxury" border="0" height="177" src="/images/flash/home/polaroid03.jpg" title="Featuring Affordable Luxury" width="180"/>';
				break;
			default:
				alternateContent = 'This content requires Adobe Flash Player. '
				break;
			}	
		
	
		document.write(alternateContent);  // insert non-flash content	

	}
}