function viewplayer() {
	var width = 618; // image: 600
	var height = 572; // image: 572
	var flv = window.open("http://www.garycrossland.com/flash_player.php", "flvplayer", "height=" + height + ", width=" + width + ", menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no");
}

function StartTrans(marker) {
	/* top.frames["f_left"].thisMovie("externalInterfaceSide").PlayTrans(marker);
	top.frames["f_top"].thisMovie("externalInterfaceTop").PlayTrans(marker);
	top.frames["f_right"].thisMovie("externalInterfaceRight").PlayTrans(marker);  */
	switch(String(marker)) {
		case 'page1':
			newpage = "/html/home.html";
			break;
		case 'page3':
			newpage = "/html/donate.html";
			break;
		case 'page6':
			newpage = "/html/class.html";
			break;
		case 'page5':
			newpage = "/html/store.html";
			break;
		case 'page4':
			newpage = "/html/gospels.html";
			break;
		case 'page2':
			newpage = "/html/aboutus.html";
			break;
		default:
			newpage = "/html/home.html";
			break;
	}
	top.frames['f_content'].location=newpage;
}

function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    }
    else {
        return document[movieName]
    }
}

function transition(marker) {
	top.frames["f_left"].thisMovie("externalInterfaceSide").PlayTrans(marker);
	top.frames["f_top"].thisMovie("externalInterfaceTop").PlayTrans(marker);
	top.frames["f_right"].thisMovie("externalInterfaceRight").PlayTrans(marker); 	
}

function drawFlash(file,width,height, id) {
secure=0;
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http');

	if (secure == 1)

		document.write('s');

	document.write('://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="'+id+'" align="middle" >'+

					'<param name="allowScriptAccess" value="sameDomain" />'+

					'<param name="movie" value="'+file+'" />'+

					'<param name="quality" value="high" />'+

					'<param name="bgcolor" value="#ffffff" />'+

					'<embed src="'+file+'" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http');




	if (secure == 1)

		document.write('s');

	document.write('://www.macromedia.com/go/getflashplayer" />'+

				   '</object>');

}

function drawFlashBG2(file,width,height, id) {
secure=0;
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http');

	if (secure == 1)

		document.write('s');

	document.write('://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="'+id+'" align="middle" >'+

					'<param name="allowScriptAccess" value="sameDomain" />'+

					'<param name="movie" value="'+file+'" />'+

					'<param name="quality" value="high" />'+

					'<param name="bgcolor" value="#453F31" />'+

					'<embed src="'+file+'" quality="high" bgcolor="#453F31" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http');




	if (secure == 1)

		document.write('s');

	document.write('://www.macromedia.com/go/getflashplayer" />'+

				   '</object>');

}

function drawFlashVideo() {
document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"100%\" height=\"100%\" id=\"mike_test\" align=\"middle\">" + 
"<param name=\"allowScriptAccess\" value=\"sameDomain\" />" +
"<param name=\"movie\" value=\"flash/player.swf\" />" +
"<param name=\"quality\" value=\"high\" />" +
"<param name=\"scale\" value=\"noscale\" />" +
"<param name=\"allowFullScreen\" value=\"true\" />" + 
"<param name=\"bgcolor\" value=\"#000000\" />" +
"<embed src=\"flash/player.swf\" quality=\"high\" scale=\"noscale\" allowfullscreen=\"true\" bgcolor=\"#000000\" width=\"100%\" height=\"100%\" id=\"mike_test\" name=\"mike_test\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>");
}




function drawFlashVideo(vtype) {
	
	var video='high';
	if (vtype == 'high' || vtype == 'low')
		video=vtype;
	
	var hasProductInstall = DetectFlashVer(6, 0, 65);
	
	// Version check based upon the values entered above in "Globals"
	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	// Location visited after installation is complete if installation is required
	var MMredirectURL = window.location;
	
	// Stored value of document title used by the installation process to close the window that started the installation process
	// This is necessary to remove browser windows that will still be utilizing the older version of the player after installation is complete
	// DO NOT MODIFY THE FOLLOWING TWO LINES
	var MMdoctitle = document.title.slice(0, 47) + " - Flash Player Installation";
	
	// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
	if ( hasProductInstall && !hasReqestedVersion ) {
		var productInstallOETags = '<div style="text-align:center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="300" height="213"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="flash/playerProductInstall.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=ActiveX&MMdoctitle='+MMdoctitle+'" />'
		+ '<param name="quality" value="high" /><param name="bgcolor" value="#000000" />'
		+ '<embed src="flash/playerProductInstall.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=PlugIn" quality="high" bgcolor="#000000" '
		+ 'width="300" height="213" name="detectiontest" aligh="middle"'
		+ 'play="true"'
		+ 'loop="false"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object></div>';
		document.write(productInstallOETags);   // embed the Flash Product Installation SWF
	} else if (hasReqestedVersion) {  // if we've detected an acceptable version
		document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"618\" height=\"572\" id=\"mike_test\" align=\"middle\">" + 
		"<param name=\"allowScriptAccess\" value=\"sameDomain\" />" +
		"<param name=\"movie\" value=\"flash/player.swf\" />" +
		"<param name=\"quality\" value=\"high\" />" +
		"<param name=\"scale\" value=\"noscale\" />" +
		"<param name=\"allowFullScreen\" value=\"true\" />" + 
		"<param name=\"bgcolor\" value=\"#000000\" />" +
		"<embed src=\"flash/player.swf\" quality=\"high\" scale=\"noscale\" allowfullscreen=\"true\" bgcolor=\"#000000\" width=\"618\" height=\"572\" id=\"mike_test\" name=\"mike_test\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>");	
	}  else {  // flash is too old or we can't detect the plugin
		var alternateContent = ''
		+ 'This content requires the Macromedia Flash Player.'
		+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
		document.write(alternateContent);  // insert non-flash content
	  }
}




function drawFlashVideoFS(vfile) {
document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"100%\" height=\"100%\" id=\"mike_test\" align=\"middle\">" + 
"<param name=\"allowScriptAccess\" value=\"sameDomain\" />" +
"<param name=\"movie\" value=\"flash/fsplayer.swf?videofile=" + vfile + "\" />" +
"<param name=\"quality\" value=\"high\" />" +
"<param name=\"scale\" value=\"noscale\" />" +
"<param name=\"bgcolor\" value=\"#000000\" />" +
"<embed src=\"flash/fsplayer.swf?videofile=" + vfile + "\" quality=\"high\" scale=\"noscale\" bgcolor=\"#000000\" width=\"100%\" height=\"100%\" id=\"mike_test\" name=\"mike_test\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>");
}