
									function htmlspecialchars(param) {
										param = param.replace("ü", "%26uuml%3B").replace("ä", "%26auml%3B").replace("ß", "%26szlig%3B").replace("ö", "%26ouml%3B");
										return param;
									};
									
									function js_play(clip, id, contentid) {
										if(contentid == null || contentid == "NULL" || contentid == ""){  //Wird keine contentid übergeben wird von einem Werbe-Clip ausgegangen und die Werbe-Einstellung gestartet
											playClip(clip, id, null);
										} else {
												playClip(clip, id, contentid);
										}
										return true;
									};
									
									function playClip(clip, id, contentid) { 
											//Nach manuellem Embed-Parameter suchen für eventuelle Embed-Anzeige
											var parameters = window.location.search.substring(1,window.location.search.length); //String ab ?
											var parameter_array = parameters.split("&"); //Parameter-Substrings von & bis &
											var embed_switch = false;

											for(var i=0; i < parameter_array.length; i++) {
												parameter_value_array = parameter_array[i].split("="); 
												if(parameter_value_array[0] == "embed") {
													var embed_switch = true;
												}
											}
											if(contentid != null) {
												// Informationen zusammenstellen
												var title = "";
												var fulltext = "";
												var rating = "";
												var directlink = "";
												if(document.getElementById(contentid+"_title")) {
													title = document.getElementById(contentid+"_title").innerHTML;
												}
												if(document.getElementById(contentid+"_fulltext")) {
													fulltext = document.getElementById(contentid+"_fulltext").innerHTML;
												}
												if(document.getElementById(contentid+"_rating")) {
													rating = document.getElementById(contentid+"_rating").innerHTML; 
												}
												if(document.getElementById(contentid+"_directlink")) {
													directlink = document.getElementById(contentid+"_directlink").innerHTML;
												}
											}
											//document.getElementById("flowPlayer").innerHTML = ""; // Containerinhalt vorsichtshalber bereinigen
									
											var configuration = {
												src : 							"modules/flowplayer/flowplayer.commercial-3.2.4.swf", 
												width : 						736, 
												height :						414, 
												wmode : 						"normal",
								
												// we need at least this version
												version : 						[10, 0],
												// older versions will see a custom message
												onFail : 						function() {
																					document.getElementById("info").innerHTML =
																						"You need the latest Flash version to view MP4 movies. " +
																						"Your version is " + this.getVersion();
																				}
											}; 
											
											var parameters = {
												key : 							"#$a525f5bd72529f9dab7",
												clip : {
													onStart :						function() { js_clip_statistic(id, 0); }, //AJAX-Request für die Statistik
													onFinish :						function() { js_clip_statistic(id, 1); }, //AJAX-Request für die Statistik
													autoPlay : 						true,
													autoBuffering : 				false,
													bufferLength : 					5,
													scale : 						"fit",
													provider : 						"rtmp",
													url : 							"MP4:"+clip+"-low.f4v",
													onCuepoint : 					[ 					
														[{time: 6500}],
														function(clip, cuepoint) { 
															if(cuepoint.time == 6500) {
																this.getPlugin("content").animate({top:400,opacity:0}, 1500);
																this.getPlugin("controls").setAutoHide({enabled:true});
															}
														},
													]
												},
												
											plugins : {
												rtmp : {	
													url :						"modules/flowplayer/flowplayer.rtmp-3.2.3.swf",
													netConnectionUrl :			"rtmp://92.51.171.26/vod/",
													objectEncoding : 			0
												},
												
												viral : {
													url :						"modules/flowplayer/flowplayer.viralvideos-3.2.2.swf",
													icons: {
													  width:                50,
													  height:               100,
													  right:                15,
													  top:					75
													},
													
													embed : 				embed_switch,
													email : {
														texts : {
															to : 				"Empf&auml;nger Email",
															toSmall : 			"",
															message : 			"Pers&ouml;nliche Nachricht",
															optional : 			"",
															from : 				"Ihr Name",
															fromAddress : 		"Ihre Email",
															send : 				"Email versenden",
															
															subject :			"Timeline Film + TV",
															title : 			"Video : "+title,
															template : 			"{0} \n\n Video Link : <a href=\"http://" + directlink + "\">" + title.replace("ü", "u").replace("ä", "a").replace("ß", "ss").replace("ö", "o") + " (http://" + directlink + ")</a>"
														}
													},
													share : {
														title : 				"Klicken Sie auf eines der Symbole um das Video weiter zu empfehlen",
														description:			"Timeline Film + TV - Videoempfehlung / Videorecommendation",
														body:					title.replace("ü", "u").replace("ä", "a").replace("ß", "ss").replace("ö", "o") + " (http://" + directlink + ")",
														livespaces:				false,
														bebo:					false,
														digg:					false,
														orkut:					false,
														stubmbleupon:			false
													}
												},
												controls : { 
													autoHide : {
														enabled :				false,
														hideDelay :				500,
														hideStyle :				"move",
														mouseOutDelay :			500,
														hideDuration :			400,
														fullscreenOnly :		false
													}
												}
											}
										};
										
										if(contentid == null) {
											//Controllbar, Viral-Plugin und Content-Overlay für Ad-Clips ausschalten
											delete parameters.plugins.viral;
											delete parameters.plugins.content;
											parameters.plugins.controlls = null;
										}
										
										flowplayer("flowPlayer",configuration, parameters);
									 };
