Bundesliga Skript für mein Eggdrop

Diskutiere Bundesliga Skript für mein Eggdrop im Linux Forum im Bereich Linux; Na dann mal sehen, was gleich in der ersten Liga passiert :) und wehe da fallen keine tore ... Na da scheint doch was zu gehen :)))
#81
B

Ben-Kanaan

Dabei seit
04.01.2011
Beiträge
12
Richte gawk ein (1:3.1.5.dfsg-4.1) ...
Na dann mal sehen, was gleich in der ersten Liga passiert :) und wehe da fallen keine tore ...



[20:33:03] <+Bulli> Hamburg - Frankfurt 0:0
Na da scheint doch was zu gehen :)))
 
Zuletzt bearbeitet:
#82
D

dlonra

Dabei seit
19.10.2005
Beiträge
1.149
Ja das Script teilt die Seite in 2 Teile auf.
Oben der Spieltag in eine Datei und die Konferenz in eine Datei.
Beim erstenmal gibt es noch nichts zu vergleichen (mittels diff)
Erst wenn sich ein Spielstand ändert regiert es :D
Je nach dem sucht er ein Tor und schiebt es in die Ausgabedatei für eggdrop.
Wenn du möchtest kann ich die die Befehle erklären.
Einfach posten :D

Aber eigentlich passiert rein gar nichts. :blush:D
 
#83
B

Ben-Kanaan

Dabei seit
04.01.2011
Beiträge
12
na die erste liga hat je gerade super geklappt, ausser das zu wenig tore vielen, aber das was er machen sollte, hat der bot gemacht :sing

ich hätte auch mal früher über telnet connecten können, und auf fehlermeldungen warten wie das mit gawk zB ... :wut

nun muss ich halt abwarten, was in der zweitenliga morgen passiert, und ob es da auch gehen wird, aber ich bin da mal recht zuversichtlich, eigentlich. warum sollte das dann nicht auch gehen.

Mir wäre es recht, weil ich eigentlich ganz anderen stress gerade habe, mit meinem server, als eggdrops :) da will ich einfach nur, das sie funktionieren, mache das ja nun eigentlich lange genug ...

Nochmal danke :)
 
#84
S

Schalker69

Dabei seit
17.01.2011
Beiträge
15
Alter
49
also das script ist ja schon gut nur ich blicke nicht durch, wie ich die ausgaben verändere...

[11]Champions League1 Borussia Dortmund 21 46:12 51
1 Champions League1 Borussia Dortmund 21 46:12 51 sähe besser aus

das sieht nicht gut aus und wenn irgendwo ein tor fällt ist die ausgabe auch nicht so schön
[10]TSV 1860 - Duesseldorf 1:0
[20:29] <@Schalke04> Tor - 1860 Muenchen geht durch Kai Buelow mit 1:0 in Fuehrung.
mich stört da die [10] und irgendwie gibt er nicht aus in welcher minute das tor geschossen wurde ...
 
#85
D

dlonra

Dabei seit
19.10.2005
Beiträge
1.149
Hehehe,
Ja du muss noch ein sed rein, bevor die zeile in die ausgabedatei geschoben wird.
Über diese Code-Linien muss die zeile mit sed gefiltert werden, bevor sie in die ausgabedatei geschoben wird.

echo "${zeile}" >> "${ausgabedatei}"
bei der Konferenz in auswerten Fuktion des buli.sh

Das mit den "Champions Lea.." ausfiltern muss vielleicht eine neue bash-Funktion geschrieben werden in buli.sh um nach der gettabelle Funktion mit sed was weg zu schnippeln.

Das mit der Zeit, wann das Tor gefallen ist, passt nicht in die Schablone rein, also das mit dem Tor.

Es ist ja praktisch ein Live-Ticker der je nach refreshrate in buli.tcl vielleicht ein paar Sekunden hintendran ist.

Ich hab es aber nie verglichen wie groß der Zeitunterschied ist.
 
#86
D

dlonra

Dabei seit
19.10.2005
Beiträge
1.149
@Schalker :D

Hast du die Testfuktion probiert, ich weiß nicht ob du sie über Email bekommen hast, da ich dieses Kästchen hier wieder gelöscht hab, weil da noch ein Fehler drin ist.
Wenn du möchtest, lad mal das betreffende archiv der Bundesliga hoch.
Dann schau ich es mir mal an :D mit der Testfunktion und feile am bash Script.

Wie gesagt, es liegt am ZDF ob sie schmarren verbreiten :aah oder sonstige Wörter einbauen und Tabellenstände.
:D:D:D:D
 
#88
D

dlonra

Dabei seit
19.10.2005
Beiträge
1.149
So wie es aussieht liegt es am Terminal-Browser links.
Bei mir hat es letztes Jahr noch funktioniert, allerdings so wie es aussieht hab ich es auch schon damals so hingebogen, dass es auf meinem Rechner richtig geschrieben rauskommt.
Es stellt sich die Frage was der links für einen CHARSET benutz UNICODE?? :unsure
Hab aber ausversehen in der Zwischen Zeit den Ubuntudesktop deinstaliert und wieder installiert. Jetzt sind bei mir alle Umlaute die Links normalerweise geliefert hat noch viel komischer.

In deinem Archiv kommen komische Sache am Schluß von jeder Datei.
Jetzt stellt sich die Frage ob wir die Umgebungsvariablen richtig setzen, was viel Zeit kostet oder ob man es einfach so hinbigt mit dem Bash-script, damit es gut aussieht.

Es dreht sich um diese Zeile im Bash-Script.

links -dump "$htmlseite" | sed 's/^[ \t]*//;s/[ \t]*$//;s/o:/oe/g;s/a:/ae/g;s/u:/ue/g;s/O:/Oe/g;s/A:/Ae/g;s/U:/Ue/g;/^$/d' > "${workdir}temp_buli_o"
 
#89
S

Schalker69

Dabei seit
17.01.2011
Beiträge
15
Alter
49
soll ich die mal übernehmen?

ach ne is ja die selbe ;)
 
#90
D

dlonra

Dabei seit
19.10.2005
Beiträge
1.149
Mich würde das neue Archiv interessieren, wenn du möchtest, kannst es gerne hochladen. Werde aber erst Morgen-Mittag dazu kommen :D:aah
 
#91
S

Schalker69

Dabei seit
17.01.2011
Beiträge
15
Alter
49
kann ich später machen, habe grade neue startzeit für 2.liga eingebaut die rennt grade ;)
 

Anhänge

Zuletzt bearbeitet:
#92
D

dlonra

Dabei seit
19.10.2005
Beiträge
1.149
Also um die Ausgabe bei dir zu verbessern, bis zum ] alles wegschneiden.

Diese Zeile kommt 2 mal im Bash-Script vor:
echo "${zeile}" >> "${ausgabedatei}"
Jedesmal darüber diese Zeile einfügen:
zeile=$( echo "${zeile}" | awk -F] '{print $NF}')
Auch diese Zeile kommt 2 mal vor im Bash-Script:
echo "${akbd_satz}." >> "${ausgabedatei}"
Jedes mal darüber diese Zeile einfügen:
akbd_satz=$( echo "${akbd_satz}" | awk -F] '{print $NF}')
Warum bei dir diese eckigen Klammern kommen ist mir ein Rätsel, muss aber wohl an links liegen. Da muss man vielleicht noch ein Parameter übergeben :D :D :D
 
#93
S

Schalker69

Dabei seit
17.01.2011
Beiträge
15
Alter
49
ok hab ich gemacht nur
Also um die Ausgabe bei dir zu verbessern, bis zum ] alles wegschneiden.
verstehe ich nicht ;)


^[ \t]*//;s/[ \t] das?

[16:10] <@Schalke04> St. Pauli - M'gladbach 1:1
[16:10] <@Schalke04> Max Kruse Tor - St.
[16:10] <@Schalke04> Mladen Petric Tor - Hamburg trifft zum 1:0.
[16:10] <@Schalke04> Mladen Petric Tor - Hamburg trifft zum 1:0.

da sind die klammern nun wohl weg das doppelpost kann sein das es wegen dem rehash ist
 
#94
D

dlonra

Dabei seit
19.10.2005
Beiträge
1.149
Nein, so meine ich es nicht sondern in deiner Eggdrop-ausgbe würde diese [..] Ausgeben.
Einfach nur diese echo Zeilen suchen, wo das Ergebniss in die ausgabedatei für Eggdrop geschoben wird und die zusätzlichen Zeilen einfügen. Dadruch verschwinden die [...], so hab ich zumindest das Problem verstanden :aah
es müssen nur 4 Zeilen eingefügt werden über diesen echo Zeilen. Nicht alle [ im Bash Script ersetzen.
 
#95
S

Schalker69

Dabei seit
17.01.2011
Beiträge
15
Alter
49
ja das hab ich gemacht und scheint weg zusein .. nur bei spieltag und tabelle sind se noch da ;)

[16:16] <@Schalke04> [11]Champions League1 Borussia Dortmund 21 46:12 51
[16:16] <@Schalke04> [12]Champions League2 Bayer 04 Leverkusen 22 43:30 42
[16:16] <@Schalke04> [13]CL-Qualifikation3 FC Bayern Muenchen 22 44:26 39
[16:16] <@Schalke04> [14]UEFA-Cup4 1.FSV Mainz 05 21 32:22 37

[16:13] <@Schalke04> [2]St. Pauli - M'gladbach 1:1
[16:13] <@Schalke04> [3]Wolfsburg - Hamburg 0:1
 
#96
D

dlonra

Dabei seit
19.10.2005
Beiträge
1.149
Ja, dass mit der Tabelle usw. müssen auch noch solche Zeilen rein, hab jetzt im Moment aber keine Zeit.
Für das Bash-Script ändern braucht es keinen rehash im eggdrop :D
 
#97
S

Schalker69

Dabei seit
17.01.2011
Beiträge
15
Alter
49
hehe ok abba trotzdem scho mal danke ;)

ps weisst du ob zdf auch CL tickert=?
 
#98
L

langer_hans

Dabei seit
26.09.2015
Beiträge
2
Hallo zusammen,

Das Thema ist zwar mehr als alt, aber evtl. gibt es eine möglichkeit das script wieder ans laufen zu bekommen.
Ich kann mit dem Bot nur im Query interagieren.

tickerstatus
help

funktionieren. Aber Tickern tut er nicht, er gibt auch keine Fehlermeldung aus.

Gruß Hans
 
#99
L

langer_hans

Dabei seit
26.09.2015
Beiträge
2
Hier ist die Ausgabe der Seite:


Code:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://livecenter.zdf.de/zdf_fb_mbl/html/bundesliga-Ticker.html">here</a>.</p>
</body></html>
Habe die URL dann geändert, da nach den Jahren die Seite ja ne andere ist.
Dann kommt das, aber keine Ausgabe im Channel.

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
	<!-- for facebook -->
	<meta name="og:title" content="ILT Liveticker" />
    <meta name="og:description" content="Liveticker und Statistiken" />
    <meta name="og:image" content="" />
	<!-- /for facebook -->

	<title>Liveticker</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="index,follow" />
	<meta name="language" content="de" />
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<script type="text/javascript">
	var uri_ws_matches = 'http://ilt21-json.content.ergebnis-dienst.de/matches-by-topic/to4/';
	var uri_gfx = 'http://zdf.weltsport.net/gfx/';
	var uri_base = '';
	var competition = 12;
	var eventContent = {"config":{
	"currentEvent": {
		"competition_id": "12",
		"season_id": "18336",
		"round_id": "57041",
		"round_order": "0",
		"matchday": "7",
		"group_matchday": "0",
		"match_id": "2415950",
		"sport_id": "1",
		"topic_id": ""
	},
	"date" : "2015-09-26 21:54:10",
	"language" : "de",
	"scroll" : {
		"ticker": 0,
		"gameplan": 0	
	},
	"filter": []
}};
	var language = "de";
	var cDayOfWeek = ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'];
	var cDayOfWeekAbbr = ['So','Mo','Di','Mi','Do','Fr','Sa'];
	var co1136_matches_with_stats = ['2296016','2296019'];
</script>
<script type="text/javascript">
	var maxMinutes = 90;
	var overtimeMinutes = 30;
</script>
	<link rel="stylesheet" href="http://zdf.weltsport.net/comon/prj/ticker/zdf21s.liveticker/static/css/default.css?v=143" media="all">
<!--[if IE 8]>
<link rel="stylesheet" media="screen, projection" href="?v=143" type="text/css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" media="screen, projection" href="?v=143" type="text/css" />
<![endif]-->
<!--[if IE]>
<link rel="stylesheet" href="?v=143" type="text/css" />
<![endif]-->
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script><!-- KEINE 1.7.x benutzen! Gibt fehler bei mousewheel -->
<script type="text/javascript" src="http://script.ioam.de/iam.js" language="JavaScript"></script>
<script type="text/javascript" src="http://zdf.weltsport.net/comon/prj/ticker/zdf21s.liveticker/static/js/tracker.js?v=143"></script>
<script type="text/javascript">
var display_version = 'popup';
var emptypng='http://zdf.weltsport.net/comon/prj/ticker/zdf21s.liveticker/static/gfx/empty.png';
var json_file = 'full';
var show_dfl_logo_for_dfl_competition = true;
var show_dfl_logo = false;

var reloadtime = 20; // !!! 2000 ist korrekt so !!!
var socialmedia = false;
var show_sm_liverticker = false; // wenn false, dann muss aktiviert werden.

var sm_uri = "ilt21.ticker.comon.endstand.de.comon.stefan-lap";
var socialmedia_is_shown = false;
var show_gameplan_first = true; // true -> startseite ist der gameplan und nicht der liveticker
</script>
<script type="text/javascript" src="http://zdf.weltsport.net/comon/prj/ticker/ilt21.sass.liveticker/static/js/popup.min.js?v=143"></script>

<script type="text/javascript">
	wfbJQuery(document).ready(function(){
		ReloadChecker.reloading_activated = true; 
	});
</script>
<script type="text/javascript">
	wfbJQuery(document).ready(function(){
		RL = {gg: function(){window.location.reload();}}
		window.setInterval("RL.gg()", 12*60088);
	});
</script>
	<!-- no head adds :-) -->
	
</head>
<body class="popup">
<div id="ilt-page-wrapper" class="popup">
		<div id="ilt-client-wrapper">
			<div class="ilt-person-profile-wrapper" style="display:none;"></div>
			<div class="ilt-calendar-wrapper" style="display:none;"></div>
			<div class="ilt-worldcup-wrapper" style="display:none;"></div>
			<div class="ilt-settings-wrapper" style="display:none;"></div>
			<div class="ilt-newgoal-wrapper"></div>
			<div id="ilt-client" class="co-12">
				<div class="ilt-client-ci"></div>
				<div class="ilt-client-info"></div>
			</div>
			
			<div id="ilt-page">
				<div id="ilt-content-wrapper">
					<div id="ilt-content">

<script id="scoreboardTemplate" type="text/x-jquery-tmpl">
	<div class="scoreboard">
		<div class="scoreboard-matchdata">
			<div class="match-time"><span class="day">${TemplateDataBridge.getEvent(date)}</span>
				<span class="minute">{{if TemplateDataBridge.isLiveMatch(id)}}${TemplateDataBridge.getMinuteWithPlusMinute(id)}. Spielminute{{else TemplateDataBridge.isFinishedMatch(id)}}Spiel beendet{{/if}}</span>
			</div>
			<div class="home">
				<span class="icon"><img src="${TemplateDataBridge.getTeamIcon(home, 'large')}" border="0" title="${TemplateDataBridge.getTeam(home)}" /></span>
				<span class="name">${TemplateDataBridge.getTeam(home, "short")}</span>
			</div>

			<div class="score">
				<span class="score-span">
					<span class="current">${TemplateDataBridge.getEventScore(id,0,true)}</span>
					{{if TemplateDataBridge.isFinishedMatch(id)}}
						<span class="incident">${TemplateDataBridge.getIncident(id)}</span>
					{{/if}}
					<span class="halftime"> 
						{{if TemplateDataBridge.isLiveMatch(id) || TemplateDataBridge.isFinishedMatch(id) }}
							(${TemplateDataBridge.getEventScore(id,1)})
						{{/if}}
						{{if TemplateDataBridge.isExtratimeMatch(id) && (TemplateDataBridge.isLiveMatch(id) || TemplateDataBridge.isFinishedMatch(id)) }}
							(${TemplateDataBridge.getEventScore(id,2)})
						{{/if}}
						{{if TemplateDataBridge.isPenaltyShotMatch(id) && (TemplateDataBridge.isLiveMatch(id) || TemplateDataBridge.isFinishedMatch(id)) }}
							(${TemplateDataBridge.getEventScore(id,21)})
						{{/if}}
					</span>
				</span>
			</div>
			<div class="away">
				<span class="name">${TemplateDataBridge.getTeam(away, "short")}</span>
				<span class="icon"><img src="${TemplateDataBridge.getTeamIcon(away, 'large')}" border="0" title="${TemplateDataBridge.getTeam(away)}" /></span>
			</div>
		</div>
	</div>
	<div class="reload-counter"></div>
		
	
</script>
<script id="matchMetaTemplate" type="text/x-jquery-tmpl">
	<div class="info">
	<!--
		<span class="title">Quick Info:</span>
		<span class="goal"></span>
		<span class="divider">|</span>
		<span class="card"></span>
	-->
	</div>
	<div class="game">
		<span class="venue">Stadion: ${venue}</span>
		<span class="divider">|</span>
		<span class="attendance">Zuschauer: ${attendance}</span>
		<span class="divider">|</span>
		<span class="referee">Schiedsrichter: ${referee}</span>
	</div>
<!--
	<div class="size">
		<span class="small active">A</span>
		<span class="normal">A</span>
		<span class="large">A</span>
	</div>
-->
</script>

<script type="text/javascript">
	wfbJQuery(document).ready(function() {
		wfbJQuery('body').bind('rebuildcontent', { }, function(e) {
			if( eventContent.eventlist.length > 0 )
			{
				wfbJQuery('#scoreboard-pane .current-event').empty();
				if ( typeof(eventContent.event) != 'undefined' && typeof(eventContent.event[eventContent.config.currentEvent.match_id]) != 'undefined' )
				{
					wfbJQuery('#scoreboardTemplate').tmpl(eventContent.event[eventContent.config.currentEvent.match_id]).appendTo('#scoreboard-pane .current-event');
					wfbJQuery('.current-event-info').empty();
					wfbJQuery('#matchMetaTemplate').tmpl(eventContent.event[eventContent.config.currentEvent.match_id]).appendTo('.current-event-info').find('.quickinfo').tooltip({
						// 			tip: '.quickinfo-tooltip',
						position : 'top right',
						offset : [0, -65],
						relative : true
					});
					if ( wfbJQuery('.score-span .current').text() == 'abgebr.' )
					{
						wfbJQuery('.scoreboard-matchdata .match-time').text('');
						wfbJQuery('.score-span .halftime').text('(-:-)');
					}

				}

				if ( typeof(show_dfl_logo_for_dfl_competition) != 'undefined' && show_dfl_logo_for_dfl_competition == true && show_dfl_logo == true )
				{
					wfbJQuery('#scoreboard-pane .scoreboard').append('<div class="official_dfl_logo_pipe"></div><div class="official_dfl_logo"></div>');
					wfbJQuery('#scoreboard-pane .scoreboard-matchdata').addClass('with_dfl_logo');
					wfbJQuery('#scoreboard-pane .current-event-info').addClass('with_dfl_logo');
				}
			}
		});
	});
</script>
<script id="infoTemplate" type="text/x-jquery-tmpl">
	<div class="info">
	{{if eventContent.config.currentEvent.matchday > 0}}
		<a class="prev{{if eventContent.config.currentEvent.matchday > 1}} enabled" matchday="${parseInt(eventContent.config.currentEvent.matchday)-1}{{else}} disabled{{/if}}" />
		<!--span class="matchday">${eventContent.config.currentEvent.matchday}.</span>
		<span class="matchday-desc">Spieltag</span-->
		<select class="select-matchday">
		{{each matchdays}}
			<option matchday="${$value}" {{if eventContent.config.currentEvent.matchday == $value}} selected{{/if}}>${$value}.Spieltag</option>
		{{/each}}
		</select>
		<a class="next{{if eventContent.config.currentEvent.matchday < 34}} enabled" matchday="${parseInt(eventContent.config.currentEvent.matchday)+1}{{else}} disabled{{/if}}" />
	{{/if}}

	</div>
</script>
<script id="gameplanTemplate" type="text/x-jquery-tmpl">
	
	<div class="items">
	<div class="block">
	<ul class="scrollable-list">
	{{each eventlist}}
		<li matchid="${$value}" class="item{{if TemplateDataBridge.isCurrentMatch($value)}} current{{/if}}{{if TemplateDataBridge.isFinishedMatch($value)}} finished{{else TemplateDataBridge.isLiveMatch($value)}} live{{else}} upcoming{{/if}}">
		<div class="match-box">
		<div class="teamicons">
		<span class="home"><img onerror="this.style.display='none'" src="${TemplateDataBridge.getTeamIcon(eventContent.event[$value].home, 'medium')}" border="0" alt="${TemplateDataBridge.getTeam(eventContent.event[$value].home)}" title="${TemplateDataBridge.getTeam(eventContent.event[$value].home)}" /></span>
		<span class="away"><img onerror="this.style.display='none'" src="${TemplateDataBridge.getTeamIcon(eventContent.event[$value].away, 'medium')}" border="0" alt="${TemplateDataBridge.getTeam(eventContent.event[$value].away)}" title="${TemplateDataBridge.getTeam(eventContent.event[$value].away)}" /></span>
		</div>
		<div class="score">
		<span>${TemplateDataBridge.getEventScore($value,0,true)}</span>
		{{if TemplateDataBridge.isFinishedMatch($value)}}
		<span>${TemplateDataBridge.getIncident($value)}</span>
		{{/if}}
		</div>
		{{if TemplateDataBridge.isLiveMatch($value)}}
		<span class="score live">live</span>
		{{/if}}
		{{if TemplateDataBridge.isLiveMatch($value) && TemplateDataBridge.hasEventInLastMinutes($value)}}
			<span class="event ${TemplateDataBridge.getLastMatchEvent($value).action} ${TemplateDataBridge.getLastMatchEvent($value).action}-${TemplateDataBridge.getLastMatchEvent($value).kind}"></span>
		{{/if}}
		<div class="teamnames">
		<span class="home">${TemplateDataBridge.getTeam(eventContent.event[$value].home, 'short')}</span>
		<span class="divider">-</span>
		<span class="away">${TemplateDataBridge.getTeam(eventContent.event[$value].away, 'short')}</span>
		</div>

		</div>
		</li>
	{{/each}}
	</ul>
	</div>
	</div>
</script>
<script id="conferenceTemplate" type="text/x-jquery-tmpl">
	<div class="items">
	<div class="block">
	<ul class="scrollable-list">
	{{if display_version == 'mobile' }}<li class="wfb-conf-notice wfb-input-conference">Konferenz</li>{{/if}}
	{{each eventlist}}
	<li class="item{{if TemplateDataBridge.isCurrentMatch($value)}} current{{/if}}{{if TemplateDataBridge.isFinishedMatch($value)}} finished{{else TemplateDataBridge.isLiveMatch($value)}} live{{else}} upcoming{{/if}} {{if TemplateDataBridge.isConferenceMatch($value)}}active{{/if}}">
		<input class="wfb-input-conference ${$value}" type="checkbox" name="event[]" value="${$value}" ${TemplateDataBridge.getChecked($value)}  />
		{{if display_version != 'mobile'}}
			<div class="tooltip gameplan-tooltip{{if TemplateDataBridge.isCurrentMatch($value)}} current{{/if}}{{if TemplateDataBridge.isFinishedMatch($value)}} finished{{else TemplateDataBridge.isLiveMatch($value)}} live{{else}} upcoming{{/if}}" style="display:none">
				<div class="tooltip-header"></div>
				<div class="tooltip-content">zur Konferenz hinzufügen</div>
				<div class="tooltip-footer"></div>
			</div>
		{{/if}}
	</li>
	{{/each}}
	{{if display_version == 'mobile' }}<li class="wfb-conf-notice wfb-conf-notice-ok">OK</li>{{/if}}
	</ul>
	</div>
	</div>
</script>

<script id="gameplanTemplatePopup" type="text/x-jquery-tmpl">
	<div class="items">
		{{if display_version == 'mobile' }}<span class="wfb-choose-match-description">Bitte gewünschtes Spiel auswählen:</span>{{/if}}
		<div class="block">
			<ul class="scrollable-list">
				{{each eventlist}}
					<li matchid="${$value}" class="item{{if TemplateDataBridge.isCurrentMatch($value)}} current{{/if}}{{if TemplateDataBridge.isFinishedMatch($value)}} finished{{else TemplateDataBridge.isLiveMatch($value)}} live{{else}} upcoming{{/if}}">
						<div class="match-box">
							<div class="section home">
								<div class="home" style="height:32px;"><img onerror="this.style.display='none'" src="${TemplateDataBridge.getTeamIcon(eventContent.event[$value].home, 'medium')}" border="0" title="${TemplateDataBridge.getTeam(eventContent.event[$value].home)}" /></div>
								<div class="namebg"></div>
								<div class="home name">${TemplateDataBridge.getTeam(eventContent.event[$value].home, 'short')}</div>
							</div>
							<div class="score">
								<span>${TemplateDataBridge.getEventScore($value,0,true)}</span>
								{{if TemplateDataBridge.isFinishedMatch($value)}}
									<span>${TemplateDataBridge.getIncident($value)}</span>
								{{/if}}
							</div>
							<div class="section away">
								<div class="away" style="height:32px;"><img onerror="this.style.display='none'" src="${TemplateDataBridge.getTeamIcon(eventContent.event[$value].away, 'medium')}" border="0" title="${TemplateDataBridge.getTeam(eventContent.event[$value].away)}" /></div>
								<div class="namebg"></div>
								<div class="away name">${TemplateDataBridge.getTeam(eventContent.event[$value].away, 'short')}</div>
							</div>
							{{if TemplateDataBridge.isLiveMatch($value)}}
								<span class="score live">live</span>
							{{/if}}
							{{if TemplateDataBridge.isLiveMatch($value) && TemplateDataBridge.hasEventInLastMinutes($value)}}
								<span class="event ${TemplateDataBridge.getLastMatchEvent($value).action} ${TemplateDataBridge.getLastMatchEvent($value).action}-${TemplateDataBridge.getLastMatchEvent($value).kind}"></span>
							{{/if}}

						</div>
					</li>
				{{/each}}
			</ul>
		</div>
	</div>
</script>

<script type="text/javascript">
function makeHashMatch(event, tag) {
	var match_id = wfbJQuery(event.target).closest(tag + '[matchid]').attr('matchid');
	TemplateDataBridge.setCurrentMatch(match_id);
	Application.setHash('ma', match_id);
}

wfbJQuery(document).ready(function() {

	if(display_version == 'mobile' && show_gameplan_first) {
		//wfbJQuery('#navigation').prepend('<div id="navigation-wrapper" class="mobile">');
	}

	initial_9_set = false;
	wfbJQuery('body').bind('rebuildcontent', {}, function(e) {

		if(false && display_version == 'mobile' && show_gameplan_first) {
			wfbJQuery('#navigation-before-gameplan').empty();
			wfbJQuery('#infoTemplate').tmpl(eventContent).appendTo('#navigation-before-gameplan');
			wfbJQuery('#ilt-topnavigation.bottom .info').click(function() {
				//console.log(wfbJQuery(this).attr('class'));
			});

		}


		wfbJQuery('#navigation .scrollable').empty();
		if(typeof(eventContent) != 'undefined' && typeof(eventContent.eventlist) != 'undefined' && eventContent.eventlist.length > 9) {
			if(display_version == 'popup') {
				wfbJQuery('#navigation .gameplan-scroll-nav-9').show();
				wfbJQuery('#navigation .scrollable').css('height', '360px');
			} else if(display_version == 'mobile') {
				wfbJQuery('#navigation .gameplan-scroll-nav-9').show();
				wfbJQuery('#navigation .scrollable').css('height', 'auto');
			} else {
				wfbJQuery('#navigation .gameplan-scroll-nav-9').show();
				wfbJQuery('#navigation .scrollable').css('width', '535px');
			}
			wfbJQuery('#navigation .scrollable').html('<div class="gameplan"></div><div class="conference"></div>');
		}

		if(typeof(eventContent) != 'undefined' && typeof(eventContent.ranking) != 'undefined' && eventContent.ranking.length > 0) {
			var noOfGamesArray = new Array();
			//for(i = 1; i <= eventContent.ranking[0].games; i++) {
			//	noOfGamesArray.push(i);
			//}
			for(i = 1; i <= eventContent.config.currentEvent.matchdays; i++) {
				noOfGamesArray.push(i);
			}
			eventContent.matchdays = noOfGamesArray;
		}

		wfbJQuery('#navigation-before').empty();
		wfbJQuery('#infoTemplate').tmpl(eventContent).appendTo('#navigation-before');
		if(display_version == 'mobile') {
			wfbJQuery('#navigation .scrollable').html('<div id="pullDown"><span class="pullDownIcon"></span><span class="pullDownLabel"></span></div><div class="gameplan"></div><div class="conference"></div>')

			pullDownEl = document.getElementById('pullDown');
			pullDownOffset = pullDownEl.offsetHeight;
		} else {
			wfbJQuery('#navigation .scrollable').html('<div class="gameplan"></div><div class="conference"></div>')
		}


		if(eventContent.eventlist.length > 0) {
			if(display_version == 'popup' || display_version == 'mobile') {
				gpTpl = wfbJQuery('#gameplanTemplatePopup').tmpl(eventContent).appendTo('.gameplan');

				gpTpl.find('li.item').click(function(event, ui) {
					TemplateDataBridge.setCurrentMatch(wfbJQuery(event.target).closest('li[matchid]').attr('matchid'));
					wfbJQuery('body').trigger('rebuildcontent');
					wfbJQuery('body').trigger('track');
					Application.confRight();

					makeHashMatch(event, 'li');
				});

			} else {
				gpTpl = wfbJQuery('#gameplanTemplate').tmpl(eventContent).appendTo('.gameplan');

				gpTpl.find('li.item').click(function(event, ui) {
					TemplateDataBridge.setCurrentMatch(wfbJQuery(event.target).closest('li[matchid]').attr('matchid'));
					wfbJQuery('body').trigger('rebuildcontent');
					wfbJQuery('body').trigger('track');
					Application.confRight();

					makeHashMatch(event, 'li');

				});

			}

			var create_conference = false;
			if ( typeof(show_mobile_conference) == 'undefined' || show_mobile_conference == true )
			{
				cTpl = wfbJQuery('#conferenceTemplate').tmpl(eventContent).appendTo('.conference');
				create_conference = true;
			}
			else
			{
			 	wfbJQuery('#navigation .gameplan').css('max-width','100%');
			}

			if(create_conference) {
				cTpl.find('input[type=checkbox]').checkbox();

				if(cTpl.find('input[type=checkbox]').parent().hasClass('upcoming')) {
					cTpl.find('input[type=checkbox]').parent().find('img').mouseover(function() {

						wfbJQuery(this).parent().parent().parent().find('div.tooltip').show();

					}).mouseout(function() {
						wfbJQuery(this).parent().parent().parent().find('div.tooltip').hide();
					});
				} else {
					if(wfbJQuery('.jquery-checkbox').hasClass('jquery-checkbox-checked')) {
						cTpl.find('input[type=checkbox]').parent().find('img').mouseover(function() {
							wfbJQuery(this).parent().parent().parent().find('div.tooltip-content').html('von Konferenz entfernen').show();
							wfbJQuery(this).parent().parent().parent().find('div.tooltip').show();
						}).mouseout(function() {
							wfbJQuery(this).parent().parent().parent().find('div.tooltip').hide();
						});
					} else {
						cTpl.find('input[type=checkbox]').parent().find('img').mouseover(function() {
							wfbJQuery(this).parent().parent().parent().find('div.tooltip').show();
						}).mouseout(function() {
							wfbJQuery(this).parent().parent().parent().find('div.tooltip').hide();
						});

					}
				}
			}
		}

		if(typeof(eventContent) != 'undefined' && typeof(eventContent.eventlist) != 'undefined' && eventContent.eventlist.length > 9) {
			//wfbJQuery('#navigation .gameplan').scrollable({'initialIndex': parseInt(eventContent.config.scroll.gameplan), vertical: true, mousewheel: false});
			//wfbJQuery('#navigation .conference').scrollable({'initialIndex': parseInt(eventContent.config.scroll.gameplan), vertical: true, mousewheel: false});
			if(!initial_9_set && display_version != 'mobile') {
				eventContent.config.scroll.gameplan = wfbJQuery('.upcoming:first').parent().parent().index();
				if(eventContent.config.scroll.gameplan == -1) eventContent.config.scroll.gameplan = '0';
				initial_9_set = true;
			} else if(display_version == 'mobile') { // == 'mobile'
				eventContent.config.scroll.gameplan = '0';
				initial_9_set = true;
			}
			
			if(display_version == 'popup' || display_version == 'mobile') {
				if (wfbJQuery('#navigation .gameplan').find('div').length > 0 )
				{
					wfbJQuery('#navigation .gameplan').scrollable({
						'initialIndex': parseInt(eventContent.config.scroll.gameplan),
						vertical: true,
						mousewheel: false
					});
				}
				if (wfbJQuery('#navigation .conference').find('div').length > 0 )
				{
					wfbJQuery('#navigation .conference').scrollable({
						'initialIndex': parseInt(eventContent.config.scroll.gameplan),
						vertical: true,
						mousewheel: false
					});
				}
			} else {
				wfbJQuery('#navigation .gameplan').scrollable({
					'initialIndex': parseInt(eventContent.config.scroll.gameplan),
					vertical: false,
					mousewheel: false
				});
				wfbJQuery('#navigation .conference').scrollable({
					'initialIndex': parseInt(eventContent.config.scroll.gameplan),
					vertical: false,
					mousewheel: false
				});
			}


			wfbJQuery('#navigation .gameplan').bind('onBeforeSeek', function(event, index) {
				//console.log(wfbJQuery('#navigation .gameplan .block:first').index() +  ' ' + index + ' ' + wfbJQuery('#navigation .gameplan .block:last').index());
				if(index >= wfbJQuery('#navigation .gameplan .block:first').index() && index <= wfbJQuery('#navigation .gameplan .block:last').index()) {
					//console.log('change');
					eventContent.config.scroll.gameplan = parseInt(index);
				}
			});
		}
		var template_key = '';
		if(display_version == 'popup') template_key = '/popup';
		else if(display_version == 'mobile') template_key = '/mobile';


		//gameplanscroll.refresh();

		//if(wfbJQuery('#ilt-page-wrapper').hasClass('popup') || wfbJQuery('#ilt-page-wrapper').hasClass('mobile')){
		// Wird der folgende Abschnitt vom Mobile wirklich gebraucht? Zunächst haben wir ihn mal entfernt...
		if(true) {
			wfbJQuery('a.prev[matchday], a.next[matchday]').click(function(data) {
				location.href = '/de' + template_key + '/co' + eventContent.config.currentEvent.competition_id + '/se' + eventContent.config.currentEvent.season_id + '/md' + wfbJQuery(this).attr('matchday') + (typeof(eventContent.config.currentEvent.round_id) != 'undefined' ? '/ro' + eventContent.config.currentEvent.round_id : '');
				Application.confRight();
			});

			wfbJQuery('select.select-matchday').change(function(data) {
				location.href = '/de' + template_key + '/co' + eventContent.config.currentEvent.competition_id + '/se' + eventContent.config.currentEvent.season_id + '/md' + wfbJQuery(this).find('option:selected').attr('matchday') + (typeof(eventContent.config.currentEvent.round_id) != 'undefined' ? '/ro' + eventContent.config.currentEvent.round_id : '');
				Application.confRight();
			});

			wfbJQuery('select.select-groupmatchday').change(function(data) {
				location.href = '/de' + template_key + '/co' + eventContent.config.currentEvent.competition_id + '/se' + eventContent.config.currentEvent.season_id + '/gm' + wfbJQuery(this).find('option:selected').attr('group_matchday') + '/rr' + wfbJQuery(this).find('option:selected').attr('round_order') + (typeof(wfbJQuery(this).find('option:selected').attr('round')) != 'undefined' ? '/ro' + wfbJQuery(this).find('option:selected').attr('round') : '');
				Application.confRight();
			});
			wfbJQuery('select.select-round').change(function(data) {
				location.href = '/de' + template_key + '/co' + eventContent.config.currentEvent.competition_id + '/se' + eventContent.config.currentEvent.season_id + '/gm0/rr0/ro' + wfbJQuery('select.select-round').find('option:selected').attr('round');

				Application.confRight();
			});
			wfbJQuery('a.prevgameday.gameday, a.nextgameday.gameday').click(function(data) {
				var newgameday = -1;
				if(wfbJQuery(this).hasClass('prevgameday') && parseInt(wfbJQuery('select.select-groupmatchday').find('option:selected').attr('gameday')) > parseInt(wfbJQuery(this).attr('min'))) {
					newgameday = parseInt(wfbJQuery('select.select-groupmatchday').find('option:selected').attr('gameday')) - 1;
				}
				if(wfbJQuery(this).hasClass('nextgameday') && parseInt(wfbJQuery('select.select-groupmatchday').find('option:selected').attr('gameday')) < parseInt(wfbJQuery(this).attr('max'))) {
					newgameday = parseInt(wfbJQuery('select.select-groupmatchday').find('option:selected').attr('gameday')) + 1;
				}
				if(newgameday > -1) {
					location.href = '/de' + template_key + '/co' + eventContent.config.currentEvent.competition_id + '/se' + eventContent.config.currentEvent.season_id + '/gm' + wfbJQuery('select.select-groupmatchday').find('option[gameday=' + newgameday + ']').attr('group_matchday') + '/rr' + wfbJQuery('select.select-groupmatchday').find('option[gameday=' + newgameday + ']').attr('round_order') + '/ro' + eventContent.config.currentEvent.round_id;
					Application.confRight();
				}
			});
		}
		wfbJQuery('.wfb-input-conference').click(function() {
			value = wfbJQuery(this).attr('class').split(' ');
			// Damit der Nutzer schneller glücklich wird, malen wir erst die Buttons an, bevor wir zur echten Verarbeitung fortschreiten:
			if(wfbJQuery(this).attr('checked') == 'checked') {
				wfbJQuery(this).parent('li').removeClass('active');
			} else {
				wfbJQuery(this).parent('li').addClass('active');
			}
			var execute = true;
			//if (display_version == 'mobile')
			//	execute = false;
			TemplateDataBridge.toggleChecked(value[1], execute);
		});
		if(wfbJQuery('.jquery-checkbox-checked').parent('li').hasClass('upcoming')) {} else {
			wfbJQuery('.jquery-checkbox-checked').parent('li').addClass('active');
		}



		/* Hover */
		// Beim Mobile brauchen wir kein Hover, da wir keine Maus zum Hovern haben.
		if(display_version != 'mobile') {
			var timeout = 0;
			var show_overlay = true;
			var mouseover = null;
			wfbJQuery('#navigation .gameplan .items li').unbind('mouseover').mouseover(function() {
				var self = this;
				if(show_overlay) {
					show_overlay = false;

					var location = wfbJQuery(self).offset();
					var position_overlay_left = location.left - 43;
					var position_overlay_right = position_overlay_left + wfbJQuery('.ilt-current-match-overlay').outerWidth();
					var matchId = wfbJQuery(self).attr('matchid');

					var position_parent_left = wfbJQuery('#navigation .scrollable').position().left;
					var position_parent_right = position_parent_left + wfbJQuery('#navigation .scrollable').outerWidth();

					if(position_overlay_left < position_parent_left) {
						position_overlay_left = position_parent_left + 2;
					}
					if(position_overlay_right > position_parent_right) {
						position_overlay_left = position_parent_right - wfbJQuery('.ilt-current-match-overlay').outerWidth() - 2;
					}

					wfbJQuery('.ilt-current-match-overlay .homename').empty();
					wfbJQuery('.ilt-current-match-overlay .homelogo').empty();
					wfbJQuery('.ilt-current-match-overlay .score').empty();
					wfbJQuery('.ilt-current-match-overlay .awayname').empty();
					wfbJQuery('.ilt-current-match-overlay .awaylogo').empty();



					wfbJQuery(self).find('.match-box .teamicons span.home').clone().appendTo('.ilt-current-match-overlay .homelogo');
					wfbJQuery(self).find('.match-box .teamnames span.home').clone().appendTo('.ilt-current-match-overlay .homename');
					wfbJQuery(self).find('.match-box div.score span').clone().removeAttr('style').appendTo('.ilt-current-match-overlay .score');
					wfbJQuery(self).find('.match-box .teamicons span.away').clone().appendTo('.ilt-current-match-overlay .awaylogo');
					wfbJQuery(self).find('.match-box .teamnames span.away').clone().appendTo('.ilt-current-match-overlay .awayname');

					mouseover = window.setTimeout(function() {
						wfbJQuery('.ilt-current-match-overlay').attr('matchid', '' + matchId + '').css('left', '' + position_overlay_left + 'px').css('top', '8' + 'px').show();
					}, 1500);
				}
			});

			wfbJQuery('#navigation .gameplan .items li').unbind('mouseleave').mouseleave(function() {
				show_overlay = true;
				window.clearTimeout(mouseover);
				wfbJQuery('.ilt-current-match-overlay').hide().removeAttr('matchid');
			});

			// wfbJQuery('.ilt-current-match-overlay').unbind('mouseleave').mouseleave(function(){
			// 	show_overlay = false;
			// 	mouseover = null;
			// 	wfbJQuery('.ilt-current-match-overlay').hide().removeAttr('matchid');
			// });
		}


		wfbJQuery('.ilt-current-match-overlay').unbind('click').click(function(event, ui) {
			TemplateDataBridge.setCurrentMatch(wfbJQuery(this).attr('matchid'));
			wfbJQuery('body').trigger('rebuildcontent');
			wfbJQuery('body').trigger('track');
			makeHashMatch(event, 'div');
		});

		wfbJQuery('#navigation .gameplan .items li').each(function() {
			var count = wfbJQuery(this).find('.score span').html().length;
			if(count > 7) {
				wfbJQuery(this).find('.score span').css('font-size', '12px');
				wfbJQuery(this).find('.score').css('padding-top', '0px');
			} else {
				wfbJQuery(this).find('.score span').css('font-size', '13px');
			}
		});
		Application.confRight();
	});
});
</script>
<script id="livetickerTemplate" type="text/x-jquery-tmpl">
	<div class="liveticker fussball">
		{{each liveticker}}

			{{if ((!TemplateDataBridge.isFilter() || (TemplateDataBridge.isFilter() && event_id > 0 && TemplateDataBridge.isFilterText(TemplateDataBridge.getMatchEvent(match_id, event_id).action))) && (( TemplateDataBridge.isConference() && TemplateDataBridge.isConferenceMatch(match_id) && conference ) || ( TemplateDataBridge.isCurrentMatch(match_id) ))) }}
				<div class="item clearfix">
				<div class="minute">{{if minute > 0}}${minute}.{{/if}}</div>
				<div class="teams">
				<span class="home{{if team_id == eventContent.event[match_id].home}} enabled{{else}} disabled{{/if}}"><img src="${TemplateDataBridge.getTeamIcon(eventContent.event[match_id].home)}" border="0" alt="" title="${TemplateDataBridge.getTeam(eventContent.event[match_id].home)}" /></span>
				<span class="away{{if team_id == eventContent.event[match_id].away}} enabled{{else}} disabled{{/if}}"><img src="${TemplateDataBridge.getTeamIcon(eventContent.event[match_id].away)}" border="0" alt="" title="${TemplateDataBridge.getTeam(eventContent.event[match_id].away)}" /></span>
				</div>
				<div class="event">
				{{if event_id > 0}}
				<div class="eventicon ${TemplateDataBridge.getMatchEvent(match_id, event_id).action} ${TemplateDataBridge.getMatchEvent(match_id, event_id).action}-${TemplateDataBridge.getMatchEvent(match_id, event_id).kind}"></div>
				{{/if}}
				</div>
				
				
				<div class="content">{{html content}}
				</div>
				</div>
			{{/if}}
		{{/each}}
	</div>
</script>

<script type="text/javascript">

	function sort_by_minute(a, b) {
		return parseInt(a["timestamp"]) - parseInt(b["timestamp"]);
    	//return parseInt(a["timestamp"]) > parseInt(b["timestamp"]);
	}

	wfbJQuery(document).ready(function() {
		wfbJQuery('.liveticker').empty();
		wfbJQuery('body').bind('rebuildcontent', { }, function(e) {
			if( eventContent.eventlist.length > 0 )
			{

							/*   sort  */
				var temp_lt = new Array();
				var temp_lk = new Array();
				eventContent.liveticker_matchevent = new Array();
				var offset = '';
				var minute = '';
				var date = '';
				var newdate = '';

				wfbJQuery.each(eventContent.match_event,function(match){
					wfbJQuery.each(eventContent.match_event[match].filter(function(element, index, array){return (element.kind != 'game-end');}),function(mae){
						offset = eventContent.event[match].date;
						minute = this.minute;
						date = new Date( offset.substr(0,4), offset.substr(5,2), offset.substr(8,2) -1, offset.substr(11,2), offset.substr(14,2), offset.substr(17,2) );
						newdate = date.getTime() + (minute * 60 * 1000);
						this.timestamp = newdate;
						temp_lt.push(this);
					} ) ;
				});
				eventContent.liveticker_matchevent = temp_lt.sort(sort_by_minute);
				
				wfbJQuery.each(eventContent.match_event,function(match){
					wfbJQuery.each(eventContent.match_event[match].filter(function(element, index, array){return (element.kind == 'game-end');}),function(mae){
						eventContent.liveticker_matchevent.push(this);
					});
				});


				wfbJQuery('.ticker').empty();
				//console.log(Application.sportid);
				switch ( Application.sportid )
				{
					case 2:
					case "2":
						wfbJQuery('.ticker').replaceWith('<div class="ticker basketball" style="height:313px;"></div>');
						break;
					default:
						wfbJQuery('.ticker').replaceWith('<div class="ticker"></div>');
						break;
				}
				

				wfbJQuery('#livetickerTemplate').tmpl(eventContent).appendTo('.ticker');
				//wfbJQuery('.ticker').jScrollPane({showArrows:true});

				wfbJQuery(this).trigger('ClassChange');

				if( display_version != 'mobile' && display_version != 'widget' && display_version != 'widget-conference') {
					Application.livetickerscrollbar = wfbJQuery('.ticker').jScrollPane({
						showArrows : true
					});
				}
				//Zurücksetzen an die Stelle von "vor dem Laden" (geht auch direkt über das jScroll Plugin -> Später)
				if ( display_version == 'mobile' ) {
					// scrollLoaded();
					// wfbJQuery('#ticker-wrapper .ticker').css('top', Application.livetickerscrollposition + 'px');
				}
				else {
					wfbJQuery('#ticker-wrapper .wfb-jspPane').css('top', Application.livetickerscrollposition + 'px');	
				}
				
				if(wfbJQuery.trim(wfbJQuery('.liveticker').text()).length == 0) {
					wfbJQuery('.liveticker').append('<div class="empty">Es steht noch kein Livetickertext zur Verfügung</div>')
				}



				if ( socialmedia && show_sm_liverticker && display_version != 'mobile')
				{
					wfbJQuery('#ilt-ticker-content .liveticker div.item').mouseenter(function(){
						
						wfbJQuery('.wfb-teilen').hide();//.find('div').addClass('inactive');
						//wfbJQuery('.wfb-teilen').find('div').empty().removeClass('active').addClass('inactive');

						if ( wfbJQuery(this).find('.wfb-teilen').length == 0 )
						{
							wfbJQuery(this).append('<div class="wfb-teilen"><div class="facebook active"></div><div class="twitter active"></div></div>');
						}
						wfbJQuery(this).find('.wfb-teilen').show();

						var title = wfbJQuery('#scoreboard-pane .scoreboard .home .name').text() + ' - ' + wfbJQuery('#scoreboard-pane .scoreboard .away .name').text();					
						var content = wfbJQuery(this).find('.content').text();
						var co_name = wfbJQuery('select.competition option[selected="selected"]').text() ;
						var content_title = content;
						var content_content = '';
						var temp_content_title = (/\<b\>(.*)\<\/b\>(.*)/).exec(wfbJQuery(this).find('.content').html());
						if ( temp_content_title.length > 0 )
						{
							content_title = temp_content_title[1];
							content_content = temp_content_title[2].replace('<br>','');
						}
						var minute = wfbJQuery(this).find('.minute').text();
						var url = document.URL;//"http://ilt21.ticker.comon.ergebnis-dienst.de/popup";
						var image = "";
						if ( typeof(sm_image) != 'undefined')
							image = sm_image;


						wfbJQuery('.wfb-teilen .facebook').load('/base_segment-socialmedia_liveticker-facebook',function(){							
							wfbJQuery(this).html( wfbJQuery(this).html().replace('%image%',encodeURIComponent(image)).replace('%url%',encodeURIComponent(url)).replace('%content%',encodeURIComponent(content_title + ':\n' + content_content)).replace('%title%',encodeURIComponent(title)) );
						});
						wfbJQuery('.wfb-teilen .twitter').load('/base_segment-socialmedia_liveticker-twitter',function(){
							wfbJQuery(this).html( wfbJQuery(this).html().replace('%url%',encodeURIComponent(url)).replace('%content%',encodeURIComponent('#'+co_name+' #Liveticker ' + title + ': ' + content_title)) );
						});
						
						/*wfbJQuery(this).find('.wfb-teilen').find('div').unbind('click').click(function(){

							var sm = wfbJQuery(this).attr('class').split(' ')[0];
							wfbJQuery(this).removeClass('inactive').addClass('active').load('/base_segment-socialmedia_liveticker-'+sm,function(){
								//console.log( wfbJQuery(this).html() );
								wfbJQuery(this).html( wfbJQuery(this).html().replace('%url%',encodeURIComponent(url)).replace('%content%',encodeURIComponent(content)).replace('%title%',encodeURIComponent(title)) );
							}).removeClass('inactive');
						});*/
					});

					wfbJQuery('#ilt-ticker-content').mouseleave(function(){
						wfbJQuery('.wfb-teilen').hide();
						//wfbJQuery('.wfb-teilen').find('div').empty().addClass('inactive');
					});

				} // EO socialmedia
			}
		});



	});
</script>
<script id="matchMetaTemplate" type="text/x-jquery-tmpl">
	<div class="info">
	<!--
		<span class="title">Quick Info:</span>
		<span class="goal"></span>
		<span class="divider">|</span>
		<span class="card"></span>
	-->
	</div>
	<div class="game">
		<span class="venue">Stadion: ${venue}</span>
		<span class="divider">|</span>
		<span class="attendance">Zuschauer: ${attendance}</span>
		<span class="divider">|</span>
		<span class="referee">Schiedsrichter: ${referee}</span>
	</div>
<!--
	<div class="size">
		<span class="small active">A</span>
		<span class="normal">A</span>
		<span class="large">A</span>
	</div>
-->
</script>

<script type="text/javascript">
wfbJQuery(document).ready(function() {
	wfbJQuery('body').bind('rebuildcontent', { }, function(e) {
		wfbJQuery('.ticker-foot').empty();
		if ( typeof(eventContent.event) != 'undefined' && typeof(eventContent.event[eventContent.config.currentEvent.match_id]) != 'undefined' )
			wfbJQuery('#matchMetaTemplate').tmpl(eventContent.event[eventContent.config.currentEvent.match_id]).appendTo('.ticker-foot').find('.quickinfo').tooltip({
	// 			tip: '.quickinfo-tooltip',
				position: 'top right',
				offset: [0, -65],
				relative: true
		});
	});
});
</script>
<script id="timelineTemplate" type="text/x-jquery-tmpl">
	{{tmpl(eventContent.event[eventContent.config.currentEvent.match_id]) "#timelineItemTemplate"}}
</script>

<script id="timelineItemTemplate" type="text/x-jquery-tmpl">
	{{if TemplateDataBridge.isExtratimeMatch(id)}}
		<div class="playing-time-prev">${TemplateDataBridge.getTextForPrevButton()}</div>
	{{/if}}
	<div class="item">
		<div class="teams">
			<span class="home"><img src="${TemplateDataBridge.getTeamIcon(home)}" border="0" title="${TemplateDataBridge.getTeam(home)}" /></span>
			<span class="away"><img src="${TemplateDataBridge.getTeamIcon(away)}" border="0" title="${TemplateDataBridge.getTeam(away)}" /></span>
		</div>
		<div class="chart chart_1_90 fussball">
			<div class="home">
				{{each(eindex, eevent) eventContent.match_event[id]}}
					{{if eevent.minute <= TemplateDataBridge.getMaxMinutes() }}
						{{if (eevent.team_id == home && eevent.action == 'special') || ( eevent.team_id == away && eevent.action == 'goal' && eevent.kind == 'own-goal') || (eevent.team_id == home && eevent.action == 'playing' && eevent.kind == 'substitute-in') ||  (eevent.team_id == home && eevent.action == 'goal' && eevent.kind != 'own-goal') || (eevent.team_id == home && eevent.action == 'card') || (eevent.team_id == home && eevent.action == 'playing' && eevent.kind == '1')}}
							<span class="event ${eevent.action} ${eevent.action}-${eevent.kind}" style="left: ${Math.round(100 * eevent.minute / TemplateDataBridge.getMaxMinutes()) - 1}%;"></span>
							<div class="event-tooltip event-tooltip-${eevent.id} tooltip" style="display:none;{{if eevent.kind == 'substitute-in' && display_version != 'widget'}}height: 90px !important;{{/if}}">
								<div class="tooltip-header"></div>
								<div class="tooltip-content" style="{{if kind == 'substitute-in'}}height: 61px !important;{{/if}}">
								<span class="icon">
										<img src="${TemplateDataBridge.getTeamIcon(eevent.team_id)}" border="0" alt="${TemplateDataBridge.getTeam(eevent.team_id)}" title="${TemplateDataBridge.getTeam(eevent.team_id)}" />
									</span>
									<span class="minute">${eevent.minute}.{{if display_version != 'widget'}} Minute{{else}} min{{/if}}</span>
									<span class="${eevent.action} ${eevent.action}-${eevent.kind} tooltip-${eevent.action}-${eevent.kind}"/>
									<span class="name" personid="${eevent.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(eevent.team_id, eevent.person_id, 'name', 20)}</span>
									{{if eevent.kind == 'substitute-in'}}
									<span class="tooltip-playing-substitute-out"/>
									<span class="name" personid="${TemplateDataBridge.getSubstituteOutID(eevent.match_id, eevent.person_id)}" matchid="${eevent.match_id}">${TemplateDataBridge.getPerson(eevent.team_id, TemplateDataBridge.getSubstituteOutID(eevent.match_id, eevent.person_id), 'name', 20)}</span>
									{{/if}}
									</div>
								<div class="tooltip-footer"></div>
							</div>
						{{/if}}
					{{/if}}
				{{/each}}
			</div>
			<div class="away">
				{{each(eindex, eevent) eventContent.match_event[id]}}
					{{if eevent.minute <= TemplateDataBridge.getMaxMinutes() }}
						{{if (eevent.team_id == away && eevent.action == 'special') || ( eevent.team_id == home && eevent.action == 'goal' && eevent.kind == 'own-goal') || (eevent.team_id == away && eevent.action == 'playing' && eevent.kind == 'substitute-in') || (eevent.team_id == away && eevent.action == 'goal' && eevent.kind != 'own-goal') || (eevent.team_id == away && eevent.action == 'card') || (eevent.team_id == away && eevent.action == 'playing' && eevent.kind == '1')}}
							<span class="event ${eevent.action} ${eevent.action}-${eevent.kind}" style="left: ${Math.round(100 * eevent.minute / TemplateDataBridge.getMaxMinutes()) - 1}%;"></span>
							<div class="event-tooltip event-tooltip-${eevent.id} tooltip" style="display:none;{{if eevent.kind == 'substitute-in' && display_version != 'widget'}}height: 90px !important;{{/if}}">
								<div class="tooltip-header"></div>
								<div class="tooltip-content" style="{{if eevent.kind == 'substitute-in'}}height: 61px !important;{{/if}}">
									<span class="icon">
										<img src="${TemplateDataBridge.getTeamIcon(eevent.team_id)}" border="0" alt="${TemplateDataBridge.getTeam(eevent.team_id)}" title="${TemplateDataBridge.getTeam(eevent.team_id)}" />
									</span>
									<span class="minute">${eevent.minute}.{{if display_version != 'widget'}} Minute{{else}} min{{/if}}</span>
									<span class="${eevent.action} ${eevent.action}-${eevent.kind} tooltip-${eevent.action}-${eevent.kind}"/>
									<span class="name" personid="${eevent.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(eevent.team_id, eevent.person_id, 'name')}</span>
									{{if eevent.kind == 'substitute-in'}}
									<span class="tooltip-playing-substitute-out"/>
									<span class="name" personid="${TemplateDataBridge.getSubstituteOutID(eevent.match_id, eevent.person_id)}" matchid="${eevent.match_id}">${TemplateDataBridge.getPerson(eevent.team_id, TemplateDataBridge.getSubstituteOutID(eevent.match_id, eevent.person_id), 'name')}</span>
									{{/if}}
									</div>
								<div class="tooltip-footer"></div>
							</div>
						{{/if}}
					{{/if}}
				{{/each}}
			</div>
			<div class="progress">
				<div class="progress_flaeche" style="{{if TemplateDataBridge.isFinishedMatch(id)}}width:100%;{{else !TemplateDataBridge.isLiveMatch(id) && !TemplateDataBridge.isFinishedMatch(id)}}width:0px;{{else TemplateDataBridge.isLiveMatch(id) && !TemplateDataBridge.isExtratimeMatch(id)}}width: ${(TemplateDataBridge.getMinute(id) / TemplateDataBridge.getMaxMinutes()) * 100}%;{{else}}width:150%;{{/if}}"><div class="progress_pfeil" style="left:100%; vertical-align:middle;">
				{{if TemplateDataBridge.getMinute(id) > 5}}<div class="progress-minute" style="width:100px">{{if TemplateDataBridge.isExtratimeMatch(id)}}${TemplateDataBridge.getMaxMinutes}{{else}}${TemplateDataBridge.getMinute(id)}{{/if}}&apos;</div>{{/if}}</div></div>
			</div>
		</div>
			
		<div class="chart chart_91_120 fussball">
			<div class="home">
				{{each(eindex, eevent) eventContent.match_event[id]}}
					{{if eevent.minute > TemplateDataBridge.getMaxMinutes() }}
						{{if ( eevent.team_id == away && eevent.action == 'goal' && eevent.kind == 'own-goal') || (eevent.team_id == home && false && eevent.action == 'playing' && eevent.kind == 'substitute-out') ||  (eevent.team_id == home && eevent.action == 'goal' && eevent.kind == 'goal') || (eevent.team_id == home && eevent.action == 'card') || (eevent.team_id == home && eevent.action == 'playing' && eevent.kind == '1')}}
							<span class="event ${eevent.action} ${eevent.action}-${eevent.kind}" style="left: ${Math.round(100 * (eevent.minute -TemplateDataBridge.getMaxMinutes()) / Application.overtimeMinutes) - 1}%;"></span>
							<div class="event-tooltip event-tooltip-${eevent.id} tooltip" style="display:none;{{if kind == 'substitute-in'}}height: 90px !important;{{/if}}">
								<div class="tooltip-header"></div>
								<div class="tooltip-content" style="{{if kind == 'substitute-in'}}height: 61px !important;{{/if}}">
									<span class="icon">
										<img src="${TemplateDataBridge.getTeamIcon(eevent.team_id)}" border="0" alt="${TemplateDataBridge.getTeam(eevent.team_id)}" title="${TemplateDataBridge.getTeam(eevent.team_id)}" />
									</span>
									<span class="minute">${eevent.minute}. Minute</span>
									<span class="tooltip-${eevent.action}-${eevent.kind}"/>
									<span class="name" personid="${eevent.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(eevent.team_id, eevent.person_id, 'name')}</span>
									{{if kind == 'substitute-in'}}
									<span class="tooltip-playing-substitute-out"/>
									<span class="name" personid="${TemplateDataBridge.getSubstituteOutID(eevent.match_id, eevent.person_id)}" matchid="${eevent.match_id}">${TemplateDataBridge.getPerson(eevent.team_id, TemplateDataBridge.getSubstituteOutID(eevent.match_id, eevent.person_id), 'name')}</span>
									{{/if}}
									</div>
								<div class="tooltip-footer"></div>
							</div>
						{{/if}}
					{{/if}}
				{{/each}}
			</div>
			<div class="away">
				{{each(eindex, eevent) eventContent.match_event[id]}}
					{{if eevent.minute > TemplateDataBridge.getMaxMinutes() }}
						{{if ( eevent.team_id == home && eevent.action == 'goal' && eevent.kind == 'own-goal') || (eevent.team_id == away && false && eevent.action == 'playing' && eevent.kind == 'substitute-out') || (eevent.team_id == away && eevent.action == 'goal' && eevent.kind == 'goal') || (eevent.team_id == away && eevent.action == 'card') || (eevent.team_id == away && eevent.action == 'playing' && eevent.kind == '1')}}
							<span class="event ${eevent.action} ${eevent.action}-${eevent.kind}" style="left: ${Math.round(100 * (eevent.minute -TemplateDataBridge.getMaxMinutes()) / Application.overtimeMinutes) - 1}%;"></span>
							<div class="event-tooltip event-tooltip-${eevent.id} tooltip" style="display:none;{{if kind == 'substitute-in'}}height: 90px !important;{{/if}}">
								<div class="tooltip-header"></div>
								<div class="tooltip-content" style="{{if kind == 'substitute-in'}}height: 61px !important;{{/if}}">
									<span class="icon">
										<img src="${TemplateDataBridge.getTeamIcon(eevent.team_id)}" border="0" alt="${TemplateDataBridge.getTeam(eevent.team_id)}" title="${TemplateDataBridge.getTeam(eevent.team_id)}" />
									</span>
									<span class="minute">${eevent.minute}. Minute</span>
									<span class="tooltip-${eevent.action}-${eevent.kind}"/>
									<span class="name" personid="${eevent.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(eevent.team_id, eevent.person_id, 'name')}</span>
									{{if kind == 'substitute-in'}}
									<span class="tooltip-playing-substitute-out"/>
									<span class="name" personid="${TemplateDataBridge.getSubstituteOutID(eevent.match_id, eevent.person_id)}" matchid="${eevent.match_id}">${TemplateDataBridge.getPerson(eevent.team_id, TemplateDataBridge.getSubstituteOutID(eevent.match_id, eevent.person_id), 'name')}</span>
									{{/if}}
									</div>
								<div class="tooltip-footer"></div>
							</div>
						{{/if}}
					{{/if}}
				{{/each}}
			</div>
			<div class="progress">
			<div class="progress_flaeche" style="{{if TemplateDataBridge.isFinishedMatch(id)}}width:100%;{{else !TemplateDataBridge.isLiveMatch(id) && !TemplateDataBridge.isFinishedMatch(id)}}width:0px;{{else TemplateDataBridge.isLiveMatch(id) && TemplateDataBridge.isExtratimeMatch(id)}}width: ${((TemplateDataBridge.getMinute(id) -TemplateDataBridge.getMaxMinutes()) / 30) * 100}%;{{else}}display:none;{{/if}}"><div class="progress_pfeil" style="left:100%; vertical-align:middle;">{{if TemplateDataBridge.getMinute(id) > 95}}<div class="progress-minute">${TemplateDataBridge.getMinute(id)}&apos;</div>{{/if}}</div></div>
			</div>
		</div>
		
		{{if TemplateDataBridge.isPenaltyShotMatch(id) }}
			<div class="chart chart_pso fussball">
			<span class="pso-headline">Elfmeterschießen</span>
			<div class="pso-content">
				<div class="home">
						{{each(eindex, eevent) eventContent.match_event[id]}}
							{{if eevent.team_id == home && eevent.action == 'pso' }}
								<span class="pso-dash-home"/>
								<span class="event ${eevent.action} ${eevent.action}-${eevent.kind}"></span>
								<div class="event-tooltip event-tooltip-${eevent.id} tooltip" style="display:none;">
									<div class="tooltip-header"></div>
									<div class="tooltip-content" style="{{if kind == 'substitute-in'}}height: 61px !important;{{/if}}">
										<span class="icon">
											<img src="${TemplateDataBridge.getTeamIcon(eevent.team_id)}" border="0" alt="${TemplateDataBridge.getTeam(eevent.team_id)}" title="${TemplateDataBridge.getTeam(eevent.team_id)}" />
										</span>
										<span class="minute">${eevent.minute}. Minute</span>
										<span class="tooltip-${eevent.action}-${eevent.kind}"/>
										<span class="name" personid="${eevent.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(eevent.team_id, eevent.person_id, 'name')}</span>
									</div>
									<div class="tooltip-footer"></div>
								</div>
							{{/if}}
						{{/each}}
					</div>
					<div class="away">
						{{each(eindex, eevent) eventContent.match_event[id]}}
							{{if eevent.team_id == away &&eevent.action == 'pso'}}
								<span class="pso-dash-away"/>
								<span class="event ${eevent.action} ${eevent.action}-${eevent.kind}"></span>
								<div class="event-tooltip event-tooltip-${eevent.id} tooltip" style="display:none;">
									<div class="tooltip-header"></div>
									<div class="tooltip-content" style="{{if kind == 'substitute-in'}}height: 61px !important;{{/if}}">
										<span class="icon">
											<img src="${TemplateDataBridge.getTeamIcon(eevent.team_id)}" border="0" alt="${TemplateDataBridge.getTeam(eevent.team_id)}" title="${TemplateDataBridge.getTeam(eevent.team_id)}" />
										</span>
										<span class="tooltip-${eevent.action}-${eevent.kind}"/>
										<span class="minute">${eevent.minute}. Minute</span>
										<span class="name" personid="${eevent.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(eevent.team_id, eevent.person_id, 'name')}</span>
									</div>
									<div class="tooltip-footer"></div>
								</div>
							{{/if}}
						{{/each}}
					</div>
				</div>
			</div>
		{{/if}}
	</div>
	{{if TemplateDataBridge.isExtratimeMatch(id)}}
		<div class="playing-time-next">${TemplateDataBridge.getTextForNextButton()}</div>
	{{/if}}
</script>

<script type="text/javascript">
wfbJQuery(document).ready(function() {
	wfbJQuery('body').bind('rebuildcontent', { }, function(e) {
		if( eventContent.eventlist.length > 0 )
		{

			wfbJQuery('.timeline').empty();

			//if ( eventContent.eventlist.length > 0 )
			//{
			if ( typeof(eventContent.config.currentEvent.match_id) != 'undefined' )
			{
				if( display_version == 'widget' ) {
					wfbJQuery('#timelineTemplate').tmpl(eventContent).appendTo('.timeline').find('.event').each(function(i){
						
						wfbJQuery(this).mouseenter(function(){
							var lefty =  wfbJQuery(this).position().left;
							var left_offset = '1px';
							if( wfbJQuery(this).position().left < 300 && wfbJQuery(this).parents('.chart_pso').length == 0) {
								left_offset = "290px";
							}
							wfbJQuery('.timeline .chart .event-tooltip:nth(' + i + ')').clone().appendTo('.timeline-overlay').css({'left': left_offset, 'top': 0}).fadeIn(250);
						});
						wfbJQuery(this).mouseleave(function(){
							wfbJQuery('.timeline-overlay').empty();
						});
					});
				} else {
					wfbJQuery('#timelineTemplate').tmpl(eventContent).appendTo('.timeline').find('.event').tooltip({
						position: 'top right',
						offset: [0, -42],
						relative: true
					});
				}
				
				if( display_version != 'widget' && display_version != 'mobile')
					wfbJQuery('.timeline .items').jScrollPane({showArrows:true});
				
				wfbJQuery('.reload_button').click(function(){
					//ReloadChecker.reset();
					//wfbJQuery('body').trigger('reloadcontent');
				});
				
				//console.log(eventContent.config.currentEvent.minute);
				if ( TemplateDataBridge.isExtratimeMatch(eventContent.config.currentEvent.match_id)
					|| 46 > TemplateDataBridge.getMaxMinutes() )
				{
					wfbJQuery('.playing-time-next').hide();
					wfbJQuery('.playing-time-prev').fadeIn(0);
					wfbJQuery('.timeline .item .chart_1_90').hide();
					wfbJQuery('.timeline .item .chart_91_120').fadeIn(0);
					wfbJQuery('.timeline .item .chart_pso').fadeIn(0);
					wfbJQuery('.timeline .item .chart_pso_right').fadeIn(0);
				}
				
				wfbJQuery('.playing-time-prev').unbind('click').click(function(){
					wfbJQuery('.playing-time-prev').hide();
					wfbJQuery('.playing-time-next').fadeIn(0);
					wfbJQuery('.timeline .item .chart_91_120').hide();
					wfbJQuery('.timeline .item .chart_1_90').fadeIn(0);
					wfbJQuery('.timeline .item .chart_pso').hide();
					wfbJQuery('.timeline .item .chart_pso_right').hide(0);
					wfbJQuery('body').trigger('track');
				});
				wfbJQuery('.playing-time-next').unbind('click').click(function(){
					wfbJQuery('.playing-time-next').hide();
					wfbJQuery('.playing-time-prev').fadeIn(0);
					wfbJQuery('.timeline .item .chart_1_90').hide();
					wfbJQuery('.timeline .item .chart_91_120').fadeIn(0);
					wfbJQuery('.timeline .item .chart_pso').fadeIn(0);
					wfbJQuery('.timeline .item .chart_pso_right').fadeIn(0);
					wfbJQuery('body').trigger('track');
				});
			}
		
		}
	});
});
</script>
<script id="standingTemplate" type="text/x-jquery-tmpl">
	<table border="0" width="100%" class="standing-table">
		<tr>
			<th class="rank">#</th>
			<th class="icon"></th>
			<th class="team">Verein</th>
			<th class="games">Spiele</th>
			<th class="win">S</th>
			<th class="draw">U</th>
			<th class="lost">N</th>
			<th class="goals">Tore</th>
			<th class="diff">Differenz</th>
			<th class="points">Punkte</th>
			<th class="last">Tendenz</th>
			<th class="open"></th>
		</tr>
		{{each ranking}}
			<tr class="color-${TemplateDataBridge.getRankMarker($value.rank)} te${$value.team_id}">
				<td class="rank">${$value.rank}</td>
				<td class="icon"><img src="${TemplateDataBridge.getTeamIcon($value.team_id)}" border="0" alt="${TemplateDataBridge.getTeam($value.team_id)}" title="${TemplateDataBridge.getTeam($value.team_id)}" /></td>
				<td class="team">${TemplateDataBridge.getTeam($value.team_id)}</td>
				<td class="games">${$value.games_played}</td>
				<td class="win">${$value.win}</td>
				<td class="draw">${$value.draw}</td>
				<td class="lost">${$value.lost}</td>
				<td class="goals">${$value.score}:${$value.score_against}</td>
				<td class="diff">${$value.difference}</td>
				<td class="points">${$value.points}</td>
				<td class="last">
					<span class="icon-{{if parseInt($value.rank, 10) == parseInt($value.last_rank, 10) || parseInt($value.last_rank, 10) == 0 || !parseInt($value.last_rank, 10) }}equal{{else parseInt($value.rank, 10) > parseInt($value.last_rank, 10)}}down{{else}}up{{/if}}"></span>
				<td class="open te${$value.team_id}">
					<span class="icon"></span>
				</td>
			</tr>
		{{/each}}
	</table>
</script>


<script type="text/javascript">
wfbJQuery(document).ready(function() {
	//var initial_standing_load_menu_loaded = false;
	// var standing_stats_open_state = new Object();
	standing_scroller = null;

	wfbJQuery('.standing').before('<div class="standing-gameplan" style="display: none;"></div>');
	// wfbJQuery('.standing-gameplan').load('/rpc_content-middle_gameplan-standing/se' + eventContent.config.currentEvent.season_id + '/');

	wfbJQuery('body').bind('rebuildcontent', { }, function(e) {

			wfbJQuery('.standing').empty();
			wfbJQuery('.standing').replaceWith('<div class="standing"></div>');
			// Wenn keine Graphen geöffnet sind, wollen wir auch keine Tooltipinformationen laden (gilt ab dem übernächsten Mal laden):
			if(TemplateDataBridge.standing_stats_open_state['NoOpenElements'] !== undefined && TemplateDataBridge.standing_stats_open_state['NoOpenElements'] > 0) {
				first_click = false;
				wfbJQuery('.standing-gameplan').load('/rpc_content-middle_gameplan-standing/se' + eventContent.config.currentEvent.season_id + '/');
				Application.confRight();
			} else {
				first_click = true;
			}


			var template_name = '#standingTemplate';

			// Die folgende Zeile druckt die Tabelle
			if ( true || wfbJQuery('.standing').find('td.open').length > 0 )
			{
				wfbJQuery(template_name).tmpl(eventContent).appendTo('.standing').find('td.open').each(function() {
					var open_class = wfbJQuery(this).attr('class').split(' ');
					// Dies passiert beim Reload oder Starten:
					TemplateDataBridge.printGraph(open_class, 0);
					// Dies passiert beim klicken:
					wfbJQuery(this).click(function() {
						wfbJQuery('body').trigger('track');
						TemplateDataBridge.printGraph(open_class, 1);
						// Beim allerersten Aufruf sollen die Daten für die Tooltips geladen werden:
						if(first_click && wfbJQuery('.standing-gameplan .module').length == 0) {
							first_click = false;
							wfbJQuery('.standing-gameplan').load('/rpc_content-middle_gameplan-standing/se' + eventContent.config.currentEvent.season_id + '/');
						}
					});
				});
			}
			else
			{
				if(first_click && wfbJQuery('.standing-gameplan .module').length == 0) {
					first_click = false;
					wfbJQuery('.standing-gameplan').load('/rpc_content-middle_gameplan-standing/se' + eventContent.config.currentEvent.season_id + '/');
				}
			}
			// Scroll pannel einbauen (Muß nach jedem Öffnen von Elementen passieren, damit es sich an die größeren Kästen anpasst.)
			// eventContent.config.currentEvent.competition_id != 36 && 

			if(display_version == 'mobile' )
			{
				wfbJQuery('table.standing-table .open').remove();
			}

			wfbJQuery('body').bind('rebuildcontent track', {}, function() {
				if(display_version != 'mobile' && wfbJQuery('.standing:visible').length > 0 ) {
					wfbJQuery('.standing').each(function() {
						standing_pane = wfbJQuery(this);
						standing_pane.jScrollPane({
							showArrows : true,
							animateScroll: true
						});
						standing_scroller = standing_pane.data('jsp');
						// Wir erfahren, welches das aktuell angewählte match ist
						if ( typeof(eventContent.config.currentEvent.match_id) != 'undefined') {
							var current_match = eventContent.config.currentEvent.match_id;
							// Wir erfahren, welche Mannschaften involviert sind
							if (typeof(eventContent.event[current_match]) != 'undefined') {
								var home_key = eventContent.event[current_match].home
								var away_key = eventContent.event[current_match].away
								// Wir erfahren, an welcher Stelle sich die erste Mannschaft befindet
								var home_top = wfbJQuery('.standing .te' + home_key).position();
								var away_top = wfbJQuery('.standing .te' + away_key).position();
								// Wir finden raus welche Mannschaft weiter oben steht und scrollen zu ihr, aber nur, wenn home_top und away_top ungleich null:
								if (home_top != null && away_top != null) {
									if ( home_top.top < away_top.top)
										standing_scroller.scrollToY(parseInt(home_top.top));
									else
										standing_scroller.scrollToY(parseInt(away_top.top));
								}
							}
						}
					});
				}
			});
		
			// Irgendwann muß die Tooltipbox gebaut werden
			wfbJQuery('.stats-graph-tooltip').remove();
			wfbJQuery('div.standing').append('<div class="stats-graph-tooltip" style=" display: none; z-index: 100000;"><div class="top"></div><div class="content"></div><div class="bottom"></div></div>');
			Application.confRight();
		
	});
	
});
</script>
<script id="lineupControl" type="text/x-jquery-tmpl">
<div class="control">
<span class="home active">Heim</span>
<span class="divider">|</span>
<span class="away">Gast</span>
<span class="divider">|</span>
<span class="list">Liste</span>
</div>
</script>
<script id="lineupTemplate" type="text/x-jquery-tmpl">
<div class="title">
<span class="home">${TemplateDataBridge.getTeam(home)}</span>

<span class="away" style="display:none;">${TemplateDataBridge.getTeam(away)}</span>

</div>
<div class="chart bg fussball"></div>
<div class="teams">
<span class="home"><img src="${TemplateDataBridge.getTeamIcon(home, 'xxlarge')}" border="0" alt="${TemplateDataBridge.getTeam(home)}" title="${TemplateDataBridge.getTeam(home)}" /></span>
<span class="home double"><img src="${TemplateDataBridge.getTeamIcon(home, 'xxlarge')}" border="0" alt="${TemplateDataBridge.getTeam(home)}" title="${TemplateDataBridge.getTeam(home)}" /></span>
<span class="away" style="display:none;"><img src="${TemplateDataBridge.getTeamIcon(away, 'xxlarge')}" border="0" alt="${TemplateDataBridge.getTeam(away)}" title="${TemplateDataBridge.getTeam(away)}" /></span>
<span class="away double" style="display:none;"><img src="${TemplateDataBridge.getTeamIcon(away, 'xxlarge')}" border="0" alt="${TemplateDataBridge.getTeam(away)}" title="${TemplateDataBridge.getTeam(away)}" /></span>
</div>
<div class="chart fussball">

<div class="home player-trikot-36x36-${home_color}">
{{each(tindex, tactic) eventContent.tactic[id]}}
{{if tactic.team_id == home && tactic.xpos > 0 && tactic.ypos > 0}}
<div  personid="${tactic.person_id}" matchid="${match_id}" class="player xpos-${tactic.xpos} ypos-${tactic.ypos}">
{{tmpl(tactic) "#lineupItemTemplate"}}
<div class="player-name">
${TemplateDataBridge.getPerson(home, tactic.person_id, 'lastname')}
</div>
</div>
<div class="player-tooltip tooltip" style="display:none;{{if TemplateDataBridge.getNoOfEventsOverAll(match_id,tactic.person_id) > 0}} height:${ 50 + (TemplateDataBridge.getNoOfEventsOverAll(match_id,tactic.person_id) * 20) }px !important;{{/if}}">
<div class="tooltip-header"></div>
<div class="tooltip-content" style="{{if TemplateDataBridge.getNoOfEventsOverAll(match_id,tactic.person_id) > 0}} height:${ 21 + (TemplateDataBridge.getNoOfEventsOverAll(match_id,tactic.person_id) * 20) }px !important;{{/if}}">
<span class="icon"> <img src="${TemplateDataBridge.getTeamIcon(home)}" border="0" alt="${TemplateDataBridge.getTeam(home)}" title="${TemplateDataBridge.getTeam(home)}" /> </span>
<span class="name" personid="${tactic.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(home, tactic.person_id, 'name')}</span>
{{each( ttindex,ttevent) eventContent.match_event[id]}}
{{if ttevent.person_id == tactic.person_id}} <span class="tooltip-event-${ttevent.action}-${ttevent.kind}"/>
<span class="name minute">${ttevent.minute}. Minute</span>
{{/if}}
{{/each}}
{{if TemplateDataBridge.isSubstitutedOutPlayer(match_id, tactic.person_id)}} <span class="tooltip-event-playing-substitute-out"/>
<span class="name minute">${TemplateDataBridge.getSubstitutedOutMinute(match_id, tactic.person_id)}. Minute</span>
{{/if}}
<span class="tooltip-event"></span>
</div>
<div class="tooltip-footer"></div>
</div>
{{/if}}
{{/each}}
<div class="coach">Trainer: <<span class="coachname">${TemplateDataBridge.getCoach(home)}</span></div>
</div>

<div class="away player-trikot-36x36-${away_color}" style="display:none">
{{each(tindex, tactic) eventContent.tactic[id]}}
{{if tactic.team_id == away && tactic.xpos > 0 && tactic.ypos > 0}}
<div personid="${tactic.person_id}"  matchid="${match_id}"  class="player xpos-${tactic.xpos} ypos-${tactic.ypos}">
{{tmpl(tactic) "#lineupItemTemplate"}}
<div class="player-name">
${TemplateDataBridge.getPerson(away, tactic.person_id, 'lastname')}
</div>
</div>
<div class="player-tooltip tooltip" style="display:none;{{if TemplateDataBridge.getNoOfEventsOverAll(match_id,tactic.person_id) > 0}} height:${ 50 + (TemplateDataBridge.getNoOfEventsOverAll(match_id,tactic.person_id) * 20) }px !important;{{/if}}">
<div class="tooltip-header"></div>
<div class="tooltip-content" style="{{if TemplateDataBridge.getNoOfEventsOverAll(match_id,tactic.person_id) > 0}} height:${ 21 + (TemplateDataBridge.getNoOfEventsOverAll(match_id,tactic.person_id) * 20) }px !important;{{/if}}">
<span class="icon"> <img src="${TemplateDataBridge.getTeamIcon(away)}" border="0" alt="${TemplateDataBridge.getTeam(away)}" title="${TemplateDataBridge.getTeam(away)}" /> </span>
<span class="name" personid="${tactic.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(away, tactic.person_id, 'name')}</span>
{{each( ttindex,ttevent) eventContent.match_event[id]}}
{{if ttevent.person_id == tactic.person_id}} <span class="tooltip-event-${ttevent.action}-${ttevent.kind}"/>
<span class="name minute">${ttevent.minute}. Minute</span>
{{/if}}
{{/each}}
{{if TemplateDataBridge.isSubstitutedOutPlayer(match_id, tactic.person_id)}} <span class="tooltip-event-playing-substitute-out"/>
<span class="name minute">${TemplateDataBridge.getSubstitutedOutMinute(match_id, tactic.person_id)}. Minute</span>
{{/if}}
<span class="tooltip-event"></span>
</div>
<div class="tooltip-footer"></div>
</div>
{{/if}}
{{/each}}
<div class="coach">Trainer: <<span class="coachname">${TemplateDataBridge.getCoach(away)}</span></div>
</div>
</div>
<div class="bench">
<!--Bench-->
<div class="bench-title">
Ersatzbank:
</div>
<div class="bench-home">
{{each(tindex, tactic) eventContent.tactic[id]}}
{{if tactic.team_id == home && tactic.status == 'bench'}}
<div class="person_data">
<div class="name" personid="${tactic.person_id}" matchid="${match_id}"> ${TemplateDataBridge.getPerson(home, tactic.person_id, 'name')} </div> {{tmpl(tactic) "#lineupItemTemplate"}}
</div>
{{/if}}
{{/each}}
</div>
<div class="bench-away">
{{each(tindex, tactic) eventContent.tactic[id]}}
{{if tactic.team_id == away && tactic.status == 'bench'}}
<div class="person_data">
<div class="name" personid="${tactic.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(away, tactic.person_id, 'name')}</div> {{tmpl(tactic) "#lineupItemTemplate"}}
</div>
{{/if}}
{{/each}}
</div>
</div>
</script>

<script id="lineupItemTemplate" type="text/x-jquery-tmpl">
<div>${shirt}</div>
{{if TemplateDataBridge.isEventPerson(this.parent.data.id, person_id, 'goal', 'own-goal')}}
<div class="goal own-goal"></div>
{{else TemplateDataBridge.isEventPerson(this.parent.data.id, person_id, 'goal')}}
<div class="goal">{{if TemplateDataBridge.getNoOfSameEvents(this.parent.data.id, person_id, 'goal') > 1}}<div class="more-goals"> ${TemplateDataBridge.getNoOfSameEvents(this.parent.data.id, person_id, 'goal')} </div>{{/if}}</div>
{{/if}}

{{if TemplateDataBridge.isEventPerson(this.parent.data.id, person_id, 'card', 'red')}}
<div class="card red"></div>
{{/if}}

{{if TemplateDataBridge.isEventPerson(this.parent.data.id, person_id, 'card', 'yellow-red')}}
<div class="card yellow-red"></div>
{{else TemplateDataBridge.isEventPerson(this.parent.data.id, person_id, 'card', 'yellow')}}
<div class="card yellow"></div>
{{/if}}

{{if TemplateDataBridge.isEventPerson(this.parent.data.id, person_id, 'playing', 'substitute-in')}}
<div class="playing substitute-in">    </div>
{{/if}}

{{if TemplateDataBridge.isSubstitutedOutPlayer(this.parent.data.id, person_id)}}
<div class="playing substitute-out">    </div>
{{/if}}

</script>
<script id="lineupListTemplate" type="text/x-jquery-tmpl">
<div class="lineup-wrap">
<div class="lineup-scroll">
<table>
<thead>
<tr class="list-teams">
<td class="list-team-home" colspan="2"><img src="${TemplateDataBridge.getTeamIcon(home, 'small')}" border="0" alt="${TemplateDataBridge.getTeam(home)}" title="${TemplateDataBridge.getTeam(home)}" />${TemplateDataBridge.getTeam(home, 'name')}</td>
</tr>
</thead>
<tbody>
{{each(tindex, tactic) eventContent.tactic[id]}}
{{if tactic.team_id == home && tactic.status == 'starter'}}
<tr>
<td personid="${tactic.person_id}" class="special">{{tmpl(tactic) "#lineupItemTemplate"}}</td>
<td class="name" personid="${tactic.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(home, tactic.person_id, 'name')} ${TemplateDataBridge.getNumber(tactic.shirt)}</td>
</tr>
{{/if}}
{{/each}}
</tbody>
<tbody>
<tr class="list-bench-headline">
<td colspan="2">Ersatzbank</td>
</tr>
{{each(tindex, tactic) eventContent.tactic[id]}}
{{if tactic.team_id == home && tactic.status == 'bench'}}
<tr>
<td personid="${tactic.person_id}" class="special">{{tmpl(tactic) "#lineupItemTemplate"}}</td>
<td class="name" personid="${tactic.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(home, tactic.person_id, 'name')} ${TemplateDataBridge.getNumber(tactic.shirt)}</td>
</tr>
{{/if}}
{{/each}}
</tbody>
</table>
<table>
<thead>
<tr class="list-teams">
<td class="list-team-away" colspan="2"><img src="${TemplateDataBridge.getTeamIcon(away, 'small')}" border="0" alt="${TemplateDataBridge.getTeam(away)}" title="${TemplateDataBridge.getTeam(away)}" />${TemplateDataBridge.getTeam(away, 'name')}</td>
</tr>
</thead>
<tbody>
{{each(tindex, tactic) eventContent.tactic[id]}}
{{if tactic.team_id == away && tactic.status == 'starter'}}
<tr>
<td personid="${tactic.person_id}" class="special">{{tmpl(tactic) "#lineupItemTemplate"}}</td>
<td class="name" personid="${tactic.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(away, tactic.person_id, 'name')} ${TemplateDataBridge.getNumber(tactic.shirt)}</td>
</tr>
{{/if}}
{{/each}}
</tbody>
<tbody>
<tr class="list-bench-headline">
<td colspan="2">Ersatzbank</td>
</tr>
{{each(tindex, tactic) eventContent.tactic[id]}}
{{if tactic.team_id == away && tactic.status == 'bench'}}
<tr>
<td personid="${tactic.person_id}" class="special">{{tmpl(tactic) "#lineupItemTemplate"}}</td>
<td class="name" personid="${tactic.person_id}" matchid="${match_id}">${TemplateDataBridge.getPerson(away, tactic.person_id, 'name')} ${TemplateDataBridge.getNumber(tactic.shirt)}</td>
</tr>
{{/if}}
{{/each}}
</tbody>
</table>
</div>
</div>
</script>

<script type="text/javascript">
function wfbLoadLineup() {
	var x_offset = -76;
	if (wfbJQuery('.lineup-grahome-wrapper').is(':visible')) {
		wfbJQuery('.lineup-grahome-wrapper').empty();
		renderedTpl = wfbJQuery('#lineupTemplate').tmpl(eventContent.event[eventContent.config.currentEvent.match_id]).appendTo('.lineup-grahome-wrapper');
		
		wfbJQuery('#statistic-pane .lineup-grahome-wrapper .bench .bench-home').show();
		wfbJQuery('#statistic-pane .lineup-grahome-wrapper .bench .bench-away').hide();
		wfbJQuery('.lineup-grahome-wrapper').find('.title .home, .teams .home, .chart .home, .bench .home, .coach .home').show();
		wfbJQuery('.lineup-grahome-wrapper').find('.title .away, .teams .away, .chart .away, .bench .away, .coach .away').hide();
		wfbJQuery('.lineup-grahome-wrapper').find('.title .list, .teams .list, .chart .list, .bench .list, .coach .list').hide();
	}
	
	if (wfbJQuery('.lineup-graaway-wrapper').is(':visible')) {
		x_offset = -50;
		wfbJQuery('.lineup-graaway-wrapper').empty();
		renderedTpl = wfbJQuery('#lineupTemplate').tmpl(eventContent.event[eventContent.config.currentEvent.match_id]).appendTo('.lineup-graaway-wrapper');

		wfbJQuery('#statistic-pane .lineup-graaway-wrapper .bench .bench-home').hide();
		wfbJQuery('#statistic-pane .lineup-graaway-wrapper .bench .bench-away').show()
		wfbJQuery('.lineup-graaway-wrapper').find('.title .home, .teams .home, .chart .home, .bench .home, .coach .home').hide();
		wfbJQuery('.lineup-graaway-wrapper').find('.title .away, .teams .away, .chart .away, .bench .away, .coach .away').show();
		wfbJQuery('.lineup-graaway-wrapper').find('.title .list, .teams .list, .chart .list, .bench .list, .coach .list').hide();
	}
	
	if (wfbJQuery('.lineup-list-wrapper').is(':visible')) {
		wfbJQuery('.lineup-list-wrapper').empty();
		renderedTpl = wfbJQuery('#lineupListTemplate').tmpl(eventContent.event[eventContent.config.currentEvent.match_id]).appendTo('.lineup-list-wrapper');
		Application.assignScrollSimple('.lineup-scroll');

		// für den internet explorer 
		wfbJQuery('#statistic-pane .lineup-scroll table tr:nth-child(2n+1)').addClass('odd');
	}

	if ( typeof(renderedTpl) != "undefined" && typeof(eventContent.config.currentEvent.match_id) != 'undefined' && display_version != 'mobile' && display_version != 'widget') {
		renderedTpl.find('.player').tooltip({
			position : 'top right',
			offset : [0, x_offset],
			relative : true
		});
	}
	if ( typeof(renderedTpl) != "undefined" && typeof(eventContent.config.currentEvent.match_id) != 'undefined' && display_version == 'widget') {
		replacementTooltipLineup('home');
		replacementTooltipLineup('away');
	}

	// Direkt hiernach die spezifischen Dinge anwenden:
	Application.confRight();
};

wfbJQuery(document).ready(function() {
	// Initial laden:
	// Wir starten den Tabmanager:
	if ( display_version != 'mobile' ) {
		Application.tabConverter('liup','.lineup-tab-navigation', '.lineup-tab-content .lineup-tab-content-pane');	
	}
	else {
		wfbJQuery('#ilt-statistics-content .control').remove();
		wfbJQuery('.lineup-grahome-wrapper').remove();
		wfbJQuery('.lineup-graaway-wrapper').remove();
	}

	wfbJQuery('body').bind('rebuildcontent', { }, function(e) {
		if( eventContent.eventlist.length > 0 )
		{
			wfbLoadLineup();
		}
	
	});
	
	wfbJQuery('.lineup-tab-navigation li, .statistic-navigation .m-lineup').click(function(){
		// Laden nachdem der klick von der tab-funktion ausgewertet wurde - callback wäre besser:
		setTimeout(function() {
			wfbJQuery('body').trigger('track');
			if( eventContent.eventlist.length > 0 )
			{
				wfbLoadLineup();
			}	
		}, 10);
		
	});


});

</script>

<div id="ticker-wrapper">
	<div id="scoreboard-pane" class="css3">
		<div class="current-event"></div>
		<div class="current-event-info"></div>
	</div>
	<div class="ilt-changeable-content">
		<div id="ticker-pane" class="css3 changeable">
	<div class="ticker-navigation ilt-tab">
		<ul class="tab-navigation filter">
		<li class="filter all active">
				Liveticker
			</li>
			<li class="title">
				Filter:
			</li>
			<li class="filter filters goals wfb-checkbox-field">
				<span class="wfb-filter-name">
					Tore
				</span>
				<span class="wfb-icon-goals"></span>
			</li>
			<li class="filter filters cards wfb-checkbox-field">
				<span class="wfb-filter-name">
					Karten
				</span>
				<span class="wfb-icon-cards"></span>
			</li>
			<li class="filter filters substitutions wfb-checkbox-field">
				<span class="wfb-filter-name">
					Wechsel
				</span>
				<span class="wfb-icon-substitutions"></span>
			</li>
		</ul>
		<div class="reloader">
			<div class="reload_counter"></div>
			<div class="reload_button"><div class="wfb-reloader"></div><a>neu laden</a></div>
		</div>
		<div class="ilt-functions">
			<div class="ilt-functions-size">
				<div class="small">
					<div class="ilt-minimize"></div>
				</div>
				<div class="medium active">
					<div class="ilt-restore rect1"></div>
					<div class="ilt-restore rect2"></div>
				</div>
				<div class="large">
					<div class="ilt-maximize"></div>
				</div>
			</div>
			<div class="ilt-functions-position top">
				<div class="down">
					<div class="func-rectangle"></div>
					<div class="func-triangle"></div>
				</div>
				<div class="up"> 
					<div class="func-triangle"></div>
					<div class="func-rectangle"></div>
				</div>
			</div>
		</div>
	</div>
	<div class="ilt-ticker-content" id="ilt-ticker-content">
	<div class="slider">
		<div class="ticker"></div>
		<div class="ticker-infotext">Für weitere Informationen zu Ereignissen fahren sie mit der Maus über die Symbole der Live-Timeline.</div>
		<div class="timeline"></div>
	</div>
</div>
</div>
		<div id="statistic-pane" class="changeable">
	<div class="statistic-navigation ilt-tab">
		<ul class="tab-navigation">
	<li class="m-lineup"><a href="#">Aufstellung</a></li>
	<li class="ajax m-teamstats"><a href="/de/tabs_teamstats_overview/co12/se18336/ma#match_id#/" target=".teamstats">Teamstatistik</a></li>
	<li class="ajax m-personstats"><a href="/de/tabs_personstats/co12/se18336/ma#match_id#/" target=".personstats">Spielerstatistik</a></li>
</ul>
		<div class="ilt-functions">
			<div class="ilt-functions-size">
				<div class="small">
					<div class="ilt-minimize"></div>
				</div>
				<div class="medium active">
					<div class="ilt-restore rect1"></div>
					<div class="ilt-restore rect2"></div>
				</div>
			</div>
			<div class="ilt-functions-position center">
				<div class="down">
					
					<div class="func-rectangle"></div>
					<div class="func-triangle"></div>
				</div>
				<div class="up"> 
					<div class="func-triangle"></div>
					<div class="func-rectangle"></div>
				</div>
			</div>
		</div>
	</div>
	<div id="ilt-statistics-content" class="tab-content css3 fussball">
		<div class="slider">
			<div class="lineup tab-content-pane">
				<div class="subtab-wrapper lineup-subtab-wrapper">
	<div class="lineup-tab-wrapper">
		<!-- <div class="lineup-tab control"> -->
			<ul class="lineup-tab-navigation control">
				<li class="lineup first active"><a class="home" href="#">Heim</a></li>
				<li class="lineup middle "><a class="away" href="#">Gast</a></li>
				<li class="lineup last"><a class="list" href="#">Liste</a></li>
			</ul>
			<div class="lineup-tab-content">
				<div id="pane-lineup-grahome" class="lineup-tab-content-pane lineup home">
					<div class="lineup-grahome-wrapper home">
	
</div>			
				</div>
				<div id="pane-lineup-graaway" class="lineup-tab-content-pane lineup away">
					<div class="lineup-graaway-wrapper away">
	
</div>
				</div>
				<div id="pane-lineup-list" class="lineup-tab-content-pane lineup list">
					<div class="lineup-list-wrapper">
	
</div>
				</div>
			</div>
		<!-- </div> -->
	</div>
</div>
			</div>
			<div class="teamstats tab-content-pane"></div>
		</div>
		<!-- Die kommende Zeile muß aus Funktionalen Gründen außerhalb des "slider" Elementes liegen! (wichtig für die Mobile Version und das Scrollverhalten) -->
		<div class="personstats tab-content-pane"></div>
		
		<div class="slideshow tab-content-pane"></div>
	</div>
</div>
		<div id="standing-pane" class="changeable">
	<div class="standing-navigation ilt-tab">
		<ul class="tab-navigation">
			<li class="first m-standing"><a href="#">Tabelle</a></li>
			<li class="ajax m-gameplan"><a href="/de/tabs_gameplan/co12/se18336/" target=".gameplan-wrapper">Spielplan</a></li>
			<li class="ajax m-topscorer"><a href="/de/tabs_topscorer/co12/se18336/" target=".topscorer-wrapper">Torjäger</a></li>
			<li class="ajax m-scorer"><a href="/de/tabs_scorer/co12/se18336/" target=".scorer-wrapper">Scorer</a></li>
			<li class="ajax m-attendance"><a href="/de/tabs_attendance/co12/se18336/" target=".attendance-wrapper">Zuschauer</a></li>
			<li class="ajax m-cards"><a href="/de/tabs_cards/co12/se18336/" target=".cards-wrapper">Karten</a></li>
			<li class="ajax m-teams"><a href="/de/tabs_teams/co12/se18336/" target=".teams-wrapper">Teams</a></li>
			<li class="ajax m-stadium"><a href="/de/tabs_stadium/co12/se18336/" target=".stadium-wrapper">Stadien</a></li>
		</ul>
		<div class="ilt-functions">
			<div class="ilt-functions-size">
				<div class="small">
					<div class="ilt-minimize"></div>
				</div>
				<div class="medium active">
					<div class="ilt-restore rect1"></div>
					<div class="ilt-restore rect2"></div>
				</div>
				<div class="large">
					<div class="ilt-maximize"></div>
				</div>
			</div>
			<div class="ilt-functions-position bottom">
				<div class="down">
					<div class="func-rectangle"></div>
					<div class="func-triangle"></div>
				</div>
				<div class="up"> 
					<div class="func-triangle"></div>
					<div class="func-rectangle"></div>
				</div>
			</div>
		</div>
	</div>
	<div id="ilt-standing-content" class="tab-content css3">
		<div class="slider">
			<div class="standing-wrapper tab-content-pane">
				<div class="title">
					<!--<span class="competition">Bundesliga</span>-->
					<span class="live">Live</span>
					<span class="table">Tabelle</span>
				</div>
				<div class="standing tab-standing-content"></div>
				<div class="standing-home tab-standing-content"></div>
				<div class="standing-away tab-standing-content"></div>
				<div class="standing-first-half tab-standing-content"></div>
				<div class="standing-second-half tab-standing-content"></div>
				<div class="standing-form tab-standing-content"></div>
			</div>
			<div class="gameplan-wrapper tab-content-pane"></div>
			<div class="topscorer-wrapper tab-content-pane"></div>
			<div class="scorer-wrapper tab-content-pane"></div>
			<div class="attendance-wrapper tab-content-pane"></div>
			<div class="cards-wrapper tab-content-pane"></div>
			<div class="teams-wrapper tab-content-pane"></div>
			<div class="stadium-wrapper tab-content-pane"></div>
		</div>
	</div>
	<!-- Diese Box wird regelmäßig geleert -->
	<div class="to-trash-box"></div>
</div>
	</div>
		 
</div>
<script type="text/javascript">
wfbJQuery(document).ready(function(){
	wfbJQuery('ul.tab-navigation li.m-teams').remove();
	wfbJQuery('.teams-wrapper').remove();
	wfbJQuery('ul.tab-navigation li.m-stadium').remove();
	wfbJQuery('.stadium-wrapper').remove();
	wfbJQuery('ul.tab-navigation li.m-gameplan').remove();
	wfbJQuery('.gameplan-wrapper').remove();

	wfbJQuery('body').bind('rebuildcontent', { }, function(e) {
		wfbJQuery('.reload_button').unbind('click').click(function() {
			wfbJQuery(this).addClass('clicked');
			wfbJQuery('body').trigger('reloadcontent');
			wfbJQuery('body').trigger('clickreloadcontent');
			wfbJQuery('body').trigger('track');
			ReloadChecker.reset();
			self = this;
			setTimeout(function(){wfbJQuery(self).removeClass('clicked');},2000);
		});
	});
});
</script>

</div>
					</div>
				</div>

				<div id="navigation-wrapper" class="popup">
					<div id="ilt-topnavigation">
						<div id="navigation-before"></div>
						<div id="ilt-buttons">
							<div class="conference-button ilt-button inactive">
</div>

<div class="ilt-button-default">
	Konferenz
</div>
<div class="ilt-button-popup">
	Konfe-<br>renz
	<div class="ilt-arrow"></div>
</div>

<div class="tooltip conference-tooltip" style="display:none">
	<div class="tooltip-header"></div>
	<div class="tooltip-content">Alle Live-Spiele zur<br>Konferenz hinzufügen</div>
	<div class="tooltip-footer"></div>
</div>

<script type="text/javascript">
	wfbJQuery(document).ready(function(){

		if ( display_version == 'popup' ) {
			wfbJQuery('.ilt-button-popup').appendTo('.conference-button');
			wfbJQuery('.ilt-button-default').remove();
		}
		else
		if ( display_version == 'default' ) {
			wfbJQuery('.ilt-button-default').appendTo('.conference-button');
			wfbJQuery('.ilt-button-popup').remove();
		}
		else
		{
			wfbJQuery('ilt-button-popup').remove();
		}

		wfbJQuery('.conference-button')
		.mouseover(function(){
 			wfbJQuery('.conference-tooltip').show();
		})
		.mouseout(function(){
			wfbJQuery('.conference-tooltip').hide();
		});

		wfbJQuery('.conference-button').click(function(){
			if ( wfbJQuery(this).hasClass('inactive') )
			{
				wfbJQuery(this).removeClass('inactive');
				wfbJQuery.each( wfbJQuery('.wfb-input-conference'),function(){
					if ( TemplateDataBridge.isLivetickerMatch(wfbJQuery(this).attr('value')) || TemplateDataBridge.isConferenceMatch(wfbJQuery(this).attr('value')) || TemplateDataBridge.isLiveMatch(wfbJQuery(this).attr('value')) )
					{
						TemplateDataBridge.checkAllUnchecked(wfbJQuery(this).attr('value'));
					}
				});
				TemplateDataBridge.toggleCheckedAllTrigger();
			}
			else
			{
				wfbJQuery(this).addClass('inactive');
				TemplateDataBridge.uncheckAllChecked();
				TemplateDataBridge.toggleCheckedAllTrigger();
			}
				
		});

		wfbJQuery('body').bind('rebuildcontent',function(){
			if ( eventContent.config.currentEvent.sport_id == 14 )
			{

			}
			else
			{
				//console.log(eventContent.eventselection.length);
				if ( eventContent.eventselection.length < 1 )
				{
					wfbJQuery('.conference-button').addClass('inactive');
				}
				
				if ( wfbJQuery('.conference-button').hasClass('inactive') )
				{
					wfbJQuery('.conference-tooltip .tooltip-content').html('Alle Live-Spiele zur<br>Konferenz hinzufügen');
				}
				else
				{
					wfbJQuery('.conference-tooltip .tooltip-content').text('Alle Spiele von Konferenz entfernen');
				}
			}	
		});
		
	});
</script>
							
						</div>
					</div>
					<div id="navigation">
						<div class="gameplan-scroll-nav-9 top" style="display:none">
							<a class="prev"></a>
						</div>
						<div class="scrollable">
							<div class="gameplan"></div>
							<div class="conference"></div>
						</div>
						<div class="gameplan-scroll-nav-9 bottom" style="display:none">
							<a class="next"></a>
						</div>
						<div class="conference-navigation tab">
							
						</div>
					</div>
					<div id="ilt-bottomnavigation">
	<div class="comeptition-title">Wettbewerb wählen</div>
	<div class="competition-navigation tab">
		<select class="competition">
	<option value="/co12/" class="co12">Bundesliga</option>
	<!--option value="/co33/" class="co33">DFB-Pokal</option>
	<option value="/co571/" class="co571">Freundsch. Int.</option>
	<option value="/co588/" class="co588">WM-Qualifikation</option>
	<option value="/co19/" class="co19">Champions League</option>
	<option value="/co132/" class="co132">Europa League</option-->
</select>

<script type="text/javascript">
wfbJQuery(document).ready(function() {
	if ( display_version == 'popup' ) {
		wfbJQuery('option.co'+eventContent.config.currentEvent.competition_id).attr("selected","selected");
		wfbJQuery('.competition-navigation select.competition').change(function(data){window.location.href = '/de/popup' + this.value;});
	} else if ( display_version == 'mobile' ){
		wfbJQuery('option.co'+eventContent.config.currentEvent.competition_id).attr("selected","selected");
		wfbJQuery('.competition-navigation select.competition').change(function(data){window.location.href = '/de/mobile' + this.value;});
	}
	else {
		wfbJQuery('option.co'+eventContent.config.currentEvent.competition_id).attr("selected","selected");
		wfbJQuery('.competition-navigation select.competition').change(function(data){window.location.href = "/de" + this.value;});
	}
});
</script>
	</div>

	<div class="settings-button ilt-button">
		<a href="">Einstellungen</a>
	</div>
</div>
					<div class="ilt-goalalarm ilt-goalalarm-box"></div>

<div class="goalalarm-button ilt-button default">
	Toralarm
</div>
<div class="goalalarm-button ilt-button popup" title="Toralarm ausschalten">
	Toralarm aus
</div>
<div class="tooltip goalalarm-tooltip" style="display:none">
	<div class="tooltip-header"></div>
	<div class="tooltip-content">Toralarm ausschalten</div>
	<div class="tooltip-footer"></div>
</div>

<div class="goalalarm-toolbox ilt-goalalarm" style="display:none">
	<div class="ilt-button-off goalalarm-toolbox-button ilt-button">Toralarm ausschalten</div>
	<div class="ilt-button-close"></div>
	<div class="ilt-button-on-with-sound goalalarm-toolbox-button ilt-button">Toralarm einschalten mit Ton</div>
	<div class="ilt-button-on-without-sound goalalarm-toolbox-button ilt-button">Toralarm einschalten ohne Ton</div>
</div>
	
<script type="text/javascript">
	wfbJQuery(document).ready(function(){

		if ( display_version == 'popup' || display_version == 'mobile') {
			wfbJQuery('.goalalarm-button').appendTo('.ilt-goalalarm-box');
			wfbJQuery('.goalalarm-tooltip').appendTo('.ilt-goalalarm-box');
			wfbJQuery('.goalalarm-button.default').remove();
		}
		else
		if ( display_version == 'default' ) {
			wfbJQuery('.ilt-goalalarm-box').remove();
			wfbJQuery('.goalalarm-button.popup').remove();
		}
		else
		{
			wfbJQuery('.goalalarm-button.popup').remove();
		}

		wfbJQuery('.goalalarm-button')
		.mouseover(function(){
 			wfbJQuery('.goalalarm-tooltip').show();
		})
		.mouseout(function(){
			wfbJQuery('.goalalarm-tooltip').hide();
		});

		var goalalarm = -1;

		function goalalarm_0(){
			goalalarm = 0;
			Application.newgoalsound = false;
			//wfbJQuery('.goalalarm-button').attr('title', 'Toralarm einschalten');
			wfbJQuery('.goalalarm-tooltip .tooltip-content').text('Toralarm einschalten');
			Application.show_newgoal_overlay = false;
			wfbJQuery('.goalalarm-button.popup').text('Toralarm aus');
		};
		function goalalarm_1(){
			console.log('ga1');
			goalalarm = 1;
			Application.newgoalsound = false;
			//wfbJQuery('.goalalarm-button').attr('title', 'Toralarm ausschalten');
			wfbJQuery('.goalalarm-tooltip .tooltip-content').text('Toralarm ausschalten');
			Application.show_newgoal_overlay = true;
			wfbJQuery('.goalalarm-button.popup').text('Toralarm an, ohne Ton');

		};
		function goalalarm_2(){
			goalalarm = 2;
			Application.newgoalsound = true;
			//wfbJQuery('.goalalarm-button').attr('title', 'Toralarm ausschalten');
			wfbJQuery('.goalalarm-tooltip .tooltip-content').text('Toralarm ausschalten');
			Application.show_newgoal_overlay = true;
			wfbJQuery('.goalalarm-button.popup').text('Toralarm an, mit Ton');
		};

		Cookie.getCookies();
		if ( typeof(Cookie.allcookies) != 'undefined' )
		{
			wfbJQuery.each(Cookie.allcookies,function(k,v){
				switch(k + v)
				{
					case 'goalalarm0':
						goalalarm_0();
						break;
					case 'goalalarm1':
						goalalarm_1();
						break;
					case 'goalalarm2':
						goalalarm_2();
						break;
				}
			});
		}

		wfbJQuery('.goalalarm-button').click(function(){
			if ( display_version == 'mobile' || display_version == 'default' )
			{
				if ( wfbJQuery('.goalalarm-button').hasClass('inactive') )
				{
					wfbJQuery('.goalalarm-button').removeClass('inactive');
					//wfbJQuery('.goalalarm-button').attr('title', 'Toralarm ausschalten');
					wfbJQuery('.goalalarm-tooltip .tooltip-content').text('Toralarm ausschalten');
					Application.show_newgoal_overlay = true;
				}
				else
				{
					wfbJQuery('.goalalarm-button').addClass('inactive');
					//wfbJQuery('.goalalarm-button').attr('title', 'Toralarm einschalten');
					wfbJQuery('.goalalarm-tooltip .tooltip-content').text('Toralarm einschalten');
					Application.show_newgoal_overlay = false;
				}
			}	
			else 
			if ( display_version == 'popup' )
			{
				wfbJQuery('.goalalarm-toolbox').show();

				wfbJQuery('.goalalarm-toolbox div').unbind('click').click(function(){
					if ( typeof(wfbJQuery(this).attr('class').split(' ')[0]) != 'undefined')
					{
						switch ( wfbJQuery(this).attr('class').split(' ')[0] )
						{
							case 'ilt-button-close':
								break;
							case 'ilt-button-off':
								goalalarm_0();
								break;
							case 'ilt-button-on-with-sound':
								goalalarm_2();
								break;
							case 'ilt-button-on-without-sound':
								goalalarm_1();
								break;
						}	
					}
					Cookie.setCookie('goalalarm',goalalarm);
					wfbJQuery('.goalalarm-toolbox').hide();
				});

				if ( typeof(goalalarm) != 'undefined' ) 
				{
					wfbJQuery('.goalalarm-toolbox-button').css('cursor','pointer');
					switch (goalalarm)
					{
						case 0:
							
							wfbJQuery('.ilt-button-off').addClass('inactive').css('cursor','auto');	
							wfbJQuery('.ilt-button-on-with-sound').removeClass('inactive');
							wfbJQuery('.ilt-button-on-without-sound').removeClass('inactive');
							break;
						case 1:
							
							wfbJQuery('.ilt-button-off').removeClass('inactive');	
							wfbJQuery('.ilt-button-on-with-sound').removeClass('inactive');
							wfbJQuery('.ilt-button-on-without-sound').addClass('inactive').css('cursor','auto');
							break;
						case 2:
							
							wfbJQuery('.ilt-button-off').removeClass('inactive');	
							wfbJQuery('.ilt-button-on-with-sound').addClass('inactive').css('cursor','auto');
							wfbJQuery('.ilt-button-on-without-sound').removeClass('inactive');
							break;
					}
				}

			}
		});
	});
</script>
				</div>
			</div>
		</div>
	</div>
</div>
<div id="ad-code">
	<div id="ad-layer"></div>
	<div id="ad-728x90"></div>
	<div id="ad-160x600"></div>
</div>
<div id="tracking-code"></div>
</body>
</html>
 
D

diablo198

Dabei seit
07.12.2015
Beiträge
1
Hätte auch interesse an einer Reaktievierung des Bots.

Ich habe es Inzwischen hin bekommen das er mir teilweise halbwegs Ordentliche ergebnisse ausspuckt.
Was nicht funktioniert ist der Ticker leider.

Quellen habe ich wie folgt eingestellt:
Code:
     if { $ligaauswahl == "1" } {
          set url "http://www.kicker.de/news/fussball/bundesliga/spieltag/1-bundesliga/livekonferenz.html"
          set log "Ticker Erste Buli laeuft: [clock format [clock seconds] -format {%Y_%m_%d_%H_%M_%S}]"
     } else {
          set url "http://www.kicker.de/news/fussball/bundesliga/spieltag/2-bundesliga/livekonferenz.html"
          set log "Ticker Zweite Buli laeuft: [clock format [clock seconds] -format {%Y_%m_%d_%H_%M_%S}]"
     }
den Sed befehl im bash habe ich für das kleine ü und ö auch angepasst:
Code:
function cleanliga {
   links -dump "$htmlseite"  | sed 's/^[ \t]*//; s/[ \t]*$//; [COLOR="#FF0000"]s/AP:/oe/g;[/COLOR] s/a:/ae/g; [COLOR="#FF0000"]s/A 1\/4/ue/g;[/COLOR] s/O:/Oe/g; s/A:/Ae/g; s/U:/Ue/g; /^$/d' > ${workdir}temp_buli_o
}
function bulispieltag {
     sed '1,/Aktualisieren/d;/Live-Tabelle/,/$$/d;' "${workdir}temp_buli_o" > ${1}
}
function bulitabelle {
     sed '1,/[COLOR="#FF0000"]TABELLE[/COLOR]/d; /[COLOR="#FF0000"]Spieltag\/Tabelle[/COLOR]/,/$$/d;' "${workdir}temp_buli_o" > ${1}
}
function bulikonferenz {
     sed '1,/[COLOR="#FF0000"]LIVE!-KOMMENTAR LIVE!-DATEN TAKTISCHE AUFSTELLUNG[/COLOR]/d;/[COLOR="#FF0000"]BALLKONTAKTE[/COLOR]/,/$$/d;' "${workdir}temp_buli_o" > ${1}
}
Die Ausgabe derzeit:
http://prntscr.com/9b99o2
http://prntscr.com/9b9a1o

und das ist mein Problem:
http://prntscr.com/9b9ab0

aber so gehen zumindest die Tabellen Schon mal wieder!"

PS: Wo ist nur der gute heer der diesen Informatieven Bot erstellt hat?

MfG
 
Zuletzt bearbeitet:
Thema:

Bundesliga Skript für mein Eggdrop

Sucheingaben

html parser ticker

Bundesliga Skript für mein Eggdrop - Ähnliche Themen

  • Mit Alexa und Amazon Music Spiele der 1. Bundesliga und 2. Bundesliga im Live Stream hören

    Mit Alexa und Amazon Music Spiele der 1. Bundesliga und 2. Bundesliga im Live Stream hören: Wer nicht sehen will muss hören, denn vielen reicht es ja ein Fußballspiel live zu hören anstatt es zu sehen. Amazon nutzt dies aus um...
  • Fußball-Bundesliga bei ARD, ZDF, Sky, Eurosport und DAZN: wer zeigt was und wo - UPDATE

    Fußball-Bundesliga bei ARD, ZDF, Sky, Eurosport und DAZN: wer zeigt was und wo - UPDATE: Ab heute rollt in der 1. Bundesliga wieder der Ball. Für die Zuschauer ändert sich jedoch einiges was die Übertragung der einzelnen Partien...
  • Fußball-Bundesliga: Sky und Eurosport im Streit - Eurosport-Player derzeit im Angebot

    Fußball-Bundesliga: Sky und Eurosport im Streit - Eurosport-Player derzeit im Angebot: Es ist eine etwas seltsame Situation, in der sich Sky und Eurosport aktuell befinden, denn sie sind gleichermaßen Kooperationspartner wie...
  • Sky Sport News HD: Bundesliga-Spiel Dortmund vs. HSV frei empfangbar - UPDATE

    Sky Sport News HD: Bundesliga-Spiel Dortmund vs. HSV frei empfangbar - UPDATE: 15.03.2017, 12:20 Uhr: Seit Dezember letzten Jahres wird der Sportnachrichten-Kanal des Pay-TV-Senders Sky ohne Verschlüsselung ausgestrahlt. Um...
  • Sky Sport News HD kostenlos: Bundesliga-Spiel des FC Bayern frei empfangbar - UPDATE

    Sky Sport News HD kostenlos: Bundesliga-Spiel des FC Bayern frei empfangbar - UPDATE: 21.11.2016, 16:06 Uhr: Der Sportnachrichtensender Sky Sport News HD war bislang verschlüsselt und nur im Rahmen eines Abonnements empfangbar. Das...
  • Ähnliche Themen

    Oben