Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<script src="<%= $this->BinDirectory %>/AC_OETags.js" language="javascript"></script>
2
<script language="JavaScript" type="text/javascript">
3
<!--
4
// -----------------------------------------------------------------------------
5
// Globals
6
// Major version of Flash required
7
var requiredMajorVersion = 9;
8
// Minor version of Flash required
9
var requiredMinorVersion = 0;
10
// Minor version of Flash required
11
var requiredRevision = 0;
12
// -----------------------------------------------------------------------------
13
// -->
14
</script>
15
<script language="JavaScript" type="text/javascript">
16
<!--
17
// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
18
var hasProductInstall = DetectFlashVer(6, 0, 65);
19
 
20
// Version check based upon the values defined in globals
21
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
22
 
23
 
24
// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
25
if ( hasProductInstall && !hasRequestedVersion ) {
26
	// MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
27
	// This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
28
	// DO NOT MODIFY THE FOLLOWING FOUR LINES
29
	// Location visited after installation is complete if installation is required
30
	var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
31
	var MMredirectURL = window.location;
32
    document.title = document.title.slice(0, 47) + " - Flash Player Installation";
33
    var MMdoctitle = document.title;
34
 
35
	AC_FL_RunContent(
36
		"src", "<%= $this->BinDirectory %>/playerProductInstall",
37
		"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
38
		"width", "<%= $this->Width %>",
39
		"height", "<%= $this->Height %>",
40
		"align", "<%= $this->Align %>",
41
		"id", "<%= $this->AppName %>",
42
		"quality", "<%= $this->Quality %>",
43
		"bgcolor", "<%= $this->BgColor %>",
44
		"name", "<%= $this->AppName %>",
45
		"allowScriptAccess","<%= $this->AllowScriptAccess %>",
46
		"type", "application/x-shockwave-flash",
47
		"pluginspage", "http://www.adobe.com/go/getflashplayer"
48
	);
49
} else if (hasRequestedVersion) {
50
	// if we've detected an acceptable version
51
	// embed the Flash Content SWF when all tests are passed
52
	AC_FL_RunContent(
53
			"src", "<%= $this->BinDirectory %>/<%= $this->AppName %>",
54
			"width", "<%= $this->Width %>",
55
			"height", "<%= $this->Height %>",
56
			"align", "<%= $this->Align %>",
57
			"id", "<%= $this->AppName %>",
58
			"quality", "<%= $this->Quality %>",
59
			"bgcolor", "<%= $this->BgColor %>",
60
			"name", "<%= $this->AppName %>",
61
			"flashvars",'<%= $this->FlashVars %>',
62
			"allowScriptAccess","<%= $this->AllowScriptAccess %>",
63
			"type", "application/x-shockwave-flash",
64
			"pluginspage", "http://www.adobe.com/go/getflashplayer"
65
	);
66
  } else {  // flash is too old or we can't detect the plugin
67
    var alternateContent = 'Alternate HTML content should be placed here. '
68
  	+ 'This content requires the Adobe Flash Player. '
69
   	+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
70
    document.write(alternateContent);  // insert non-flash content
71
  }
72
// -->
73
</script>
74
<noscript>
75
  	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
76
			id="<%= $this->AppName %>" width="<%= $this->Width %>" height="<%= $this->Height %>"
77
			codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
78
			<param name="flashvars" value="<%= $this->FlashVars %>" />
79
			<param name="movie" value="<%= $this->BinDirectory %>/<%= $this->AppName %>.swf" />
80
			<param name="quality" value="<%= $this->Quality %>" />
81
			<param name="bgcolor" value="<%= $this->BgColor %>" />
82
			<param name="allowScriptAccess" value="<%= $this->AllowScriptAccess %>" />
83
			<embed src="<%= $this->BinDirectory %>/<%= $this->AppName %>.swf?<%= $this->FlashVars %>" quality="<%= $this->Quality %>" bgcolor="<%= $this->BgColor %>"
84
				width="<%= $this->Width %>" height="<%= $this->Height %>" name="<%= $this->AppName %>" align="<%= $this->Align %>"
85
				play="true"
86
				loop="false"
87
				quality="<%= $this->Quality %>"
88
				allowScriptAccess="<%= $this->AllowScriptAccess %>"
89
				type="application/x-shockwave-flash"
90
				pluginspage="http://www.adobe.com/go/getflashplayer">
91
			</embed>
92
	</object>
93
</noscript>