Index: /ipk/source/infos_aaftipprunde_0_63/CONTROL/control
===================================================================
--- /ipk/source/infos_aaftipprunde_0_63/CONTROL/control	(revision 8664)
+++ /ipk/source/infos_aaftipprunde_0_63/CONTROL/control	(revision 8664)
@@ -0,0 +1,10 @@
+Package: enigma2-plugin-infos-aaf.bundesliga.tipprunde
+Version: 0.63
+Architecture: sh4
+OE: Tipprunde v0.63
+Section: extra
+Priority: optional
+Maintainer: AAF
+Homepage: http://www.aaf-digital.info
+Source: http://www.aaf-digital.info
+Description: Information about the state of the AAF BuLi tip table !!! THIS PLUGIN ONLY WORKS, WHEN YOU USE A KINGSIZE ( KS) OR A HD SKIN!
Index: /ipk/source/infos_aaftipprunde_0_63/CONTROL/postinst
===================================================================
--- /ipk/source/infos_aaftipprunde_0_63/CONTROL/postinst	(revision 8664)
+++ /ipk/source/infos_aaftipprunde_0_63/CONTROL/postinst	(revision 8664)
@@ -0,0 +1,17 @@
+#!/bin/sh
+TMP=/tmp/.infos
+echo "successfully installed"
+echo "syncing disk"
+sync
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
+	FREE=`expr $SPACE - 100`
+	echo new freespace size $FREE kb
+fi
+echo "--------------------------------------------------------------------------------------------"
+echo "WARNING: This plugin will only work correctly if you use a kingsize (KS) or HD skin!!!!"
+echo "--------------------------------------------------------------------------------------------"
+echo "--------------------------------------------------------------------------------------------"
+echo "WARNUNG: Dieses Plugin funktioniert nur, wenn ein Kingsize (KS) oder HD Skin genutzt wird!!!"
+echo "--------------------------------------------------------------------------------------------"
+exit 0
Index: /ipk/source/infos_aaftipprunde_0_63/CONTROL/postrm
===================================================================
--- /ipk/source/infos_aaftipprunde_0_63/CONTROL/postrm	(revision 8664)
+++ /ipk/source/infos_aaftipprunde_0_63/CONTROL/postrm	(revision 8664)
@@ -0,0 +1,13 @@
+#!/bin/sh
+TMP=/tmp/.infos
+
+rm -rf /var/usr/lib/enigma2/python/Plugins/Extensions/Tipprunde
+echo "successfully removed"
+echo "syncing disk"
+sync
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
+	FREE=`expr $SPACE - 100`
+	echo new freespace size $FREE kb
+fi
+exit 0
Index: /ipk/source/infos_aaftipprunde_0_63/CONTROL/preinst
===================================================================
--- /ipk/source/infos_aaftipprunde_0_63/CONTROL/preinst	(revision 8664)
+++ /ipk/source/infos_aaftipprunde_0_63/CONTROL/preinst	(revision 8664)
@@ -0,0 +1,44 @@
+#!/bin/sh
+#
+TMP=/tmp/.infos
+echo "syncing disk"
+sync
+
+model=`cat /etc/model`
+echo""
+echo "Checking your Boxtype...."
+echo "Some Plugins will not work correctly on your $model!"
+echo ""
+if [ "$model" = "" ]; then
+	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
+	echo "Aborting installation..."
+	exit 1
+else
+	echo "Boxtype: $model OK"
+fi
+
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
+	FREE=`expr $SPACE - 100`
+	SIZE=200
+	echo "checking freespace"
+	echo packege size $SIZE kb
+	echo freespace size $FREE kb
+	if  [ "$FREE" -lt "$SIZE" ]; then
+		echo "sorry no freespace left on device"
+		exit 1
+	else
+		echo ok
+	fi
+fi
+echo "installing AAF BuLi Tipprunde ..."
+echo "checking OS"
+if  [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then
+	echo ---------------------------
+	echo DONT USE this IPK Package!!
+	echo ---
+	echo Only for AAF Image!!
+	echo ---------------------------
+	exit 1
+fi
+exit 0
Index: /ipk/source/infos_aaftipprunde_0_63/CONTROL/prerm
===================================================================
--- /ipk/source/infos_aaftipprunde_0_63/CONTROL/prerm	(revision 8664)
+++ /ipk/source/infos_aaftipprunde_0_63/CONTROL/prerm	(revision 8664)
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+TMP=/tmp/.infos
+echo "syncing disk"
+sync
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
+	FREE=`expr $SPACE - 100`
+	echo freespace size $FREE kb
+fi
+echo "removing AAF BuLi Tipprunde"
+exit 0
Index: /ipk/source/infos_aaftipprunde_0_63/var/usr/lib/enigma2/python/Plugins/Extensions/Tipprunde/plugin.py
===================================================================
--- /ipk/source/infos_aaftipprunde_0_63/var/usr/lib/enigma2/python/Plugins/Extensions/Tipprunde/plugin.py	(revision 8664)
+++ /ipk/source/infos_aaftipprunde_0_63/var/usr/lib/enigma2/python/Plugins/Extensions/Tipprunde/plugin.py	(revision 8664)
@@ -0,0 +1,727 @@
+# -*- coding: utf-8 -*-
+
+#-------------------------------------------------------
+#
+#              AAF Bundesliga Tipspiel
+#
+#   Dieses Plugin dient zur Betrachtung der Ergebnisse
+#   der AAF - Tipprunde.
+#
+#
+#   Wir wuenschen allen Benutzern viel Spaß mit diesem
+#   nuetzlichem Plugin.
+#
+#           http://www.kicktipp.de/aafbuli
+#
+#                 06.08.2011
+#                   V 0.62
+#
+#             Designed und Idee von
+#                 @Bauernbub
+#
+#-------------------------------------------------------
+
+from enigma import *
+from enigma import eActionMap
+from enigma import eListboxPythonMultiContent, eListbox, gFont
+from Screens.Screen import Screen
+from Screens.ServiceInfo import ServiceInfoList, ServiceInfoListEntry
+from Components.ActionMap import ActionMap, NumberActionMap, HelpableActionMap
+from Components.Pixmap import Pixmap, MovingPixmap
+from Components.Label import Label
+from Components.Button import Button
+from Components.Sources.List import List
+from Screens.MessageBox import MessageBox
+from Screens.HelpMenu import HelpableScreen
+from Components.ConfigList import ConfigList
+from Components.config import *
+from Tools.Directories import resolveFilename, fileExists, pathExists, createDir, SCOPE_MEDIA
+from Components.FileList import FileList
+from Components.AVSwitch import AVSwitch
+from Components.MultiContent import MultiContentEntryText
+from Plugins.Plugin import PluginDescriptor
+from Screens.VirtualKeyBoard import VirtualKeyBoard
+from Components.ConfigList import ConfigListScreen
+from os import path as os_path
+from os import system, remove, walk, makedirs, listdir, chdir
+from Screens.NetworkSetup import *
+from twisted.web.client import downloadPage
+from twisted.web import client
+from Components.HTMLComponent import HTMLComponent
+from Components.GUIComponent import GUIComponent
+from Screens.VirtualKeyBoard import VirtualKeyBoard
+from Components.Sources.Progress import Progress
+from re import sub, split, search, match, findall
+
+from string import find, atoi, strip
+
+import os
+import sys
+import urllib
+
+# for local compile in the box
+#
+# import py_compile
+# py_compile.compile("/usr/lib/enigma2/python/Plugins/Extensions/Tipprunde/plugin.py")
+
+
+config.plugins.tipprunde = ConfigSubsection()
+config.plugins.tipprunde.spalte = ConfigSelection(default="0", choices = [("0", _("Spalte1")), ("1", _("Spalte2")), ("3", _("Spalte3"))])
+config.plugins.tipprunde.color1 = ConfigSelection(default="15794175", choices = [("15794175", _("weiss")),("0", _("black")),("10402303", _("blue")),("16734801", _("red")), ("16771189", _("yellow")), ("65280", _("green"))])
+config.plugins.tipprunde.color2 = ConfigSelection(default="65280", choices = [("15794175", _("weiss")),("0", _("black")),("10402303", _("blue")),("16734801", _("red")), ("16771189", _("yellow")), ("65280", _("green"))])
+config.plugins.tipprunde.bgcolor = ConfigSelection(default="#000000", choices = [("#ffffff", _("weiss")),("#000000", _("black")),("#9eb9ff", _("blue")),("#ff5a51", _("red")), ("#ffe875", _("yellow")), ("#38FF48", _("green"))])
+config.plugins.tipprunde.null = ConfigSelection(default="0", choices = [("0", _("Yes")), ("1", _("No"))])
+
+
+RT_HALIGN_LEFT = 0
+TYPE_TEXT = 0
+
+#---------------------- Skin Funktionen -----------------------------------------------------------
+def getAspect():
+	val = AVSwitch().getAspectRatioSetting()
+	return val/2
+
+def getScale():
+	return AVSwitch().getFramebufferScale()
+
+def applySkinVars(skin,dict):
+		for key in dict.keys():
+				try:
+						skin = skin.replace('{'+key+'}',dict[key])
+				except Exception,e:
+						print e,"@key=",key
+		return skin
+
+def transHTML(text):
+		text = text.replace('&nbsp;'," ").replace('&#39;',"'").replace('&szlig;',"sz").replace('&quot;','"').replace('&ndash;',"-")
+		text = text.replace('&copy;.*'," ").replace('&amp;',"&").replace('&uuml;',"ue").replace('&auml;',"ae").replace('&ouml;',"oe")
+		text = text.replace('&Uuml;',"Ue").replace('&Auml;',"Ae").replace('&Ouml;',"Oe")
+		text = text.replace('&#223;',"ae").replace('&raquo;',"").replace('&ldquo;','"').replace('&rdquo;','"')
+		text = text.replace('\xfc',"ue").replace('\xd6',"Oe").replace('\xf6',"oe").replace('\xe4',"ae")
+		return text
+
+#------------------------------------------------------------------------------------------
+def TabelleListEntry(tipptext, color):
+	res = [ ]
+	if config.plugins.tipprunde.null.value == "0":
+		tipptext = tipptext.replace(' 00',"   ").replace('0.00',"    ")
+
+	#PyObject *type, *px, *py, *pwidth, *pheight, *pfnt, *pstring, *pflags;
+	res.append((eListboxPythonMultiContent.TYPE_TEXT, 0, 0, 500, 25, 0, RT_HALIGN_LEFT, " ", 65280))
+	res.append((eListboxPythonMultiContent.TYPE_TEXT, 0, 0, 1190, 25, 0, RT_HALIGN_LEFT, tipptext, float(color)))
+	return res
+
+#------------------------------------------------------------------------------------------
+class TabelleList(HTMLComponent, GUIComponent):
+	def __init__(self, source):
+		GUIComponent.__init__(self)
+		self.l = eListboxPythonMultiContent()
+		self.list = source
+		self.l.setList(self.list)
+		self.l.setFont(0, gFont("Console", 20))
+		self.l.setItemHeight(22)
+
+	GUI_WIDGET = eListbox
+
+	def postWidgetCreate(self, instance):
+		self.instance.setContent(self.l)
+
+#------------------------------------------------------------------------------------------
+#------------------------------ Tipprunde AAF-Board ---------------------------------------
+#------------------------------------------------------------------------------------------
+
+class Tipprunde(Screen):
+	current_w = getDesktop(0).size().width()
+	current_h = getDesktop(0).size().height()
+
+	if current_w == 1280:
+		skin = """
+			<screen name="Tipprunde" position="{tip.pos}" size="{tip.size}" title="AAF Bundesliga Tippspiel   V 0.63" backgroundColor="#1f1a21" >
+				<widget name="StartPic" position="0,0" zPosition="3" size="1024,681" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/Tipprunde/fussball1.jpg" transparent="1" alphatest="on" />
+				<ePixmap pixmap="skin_default/buttons/button_red.png" position="80,480"  zPosition="2" size="15,16" alphatest="on" />
+				<ePixmap pixmap="skin_default/buttons/button_green.png" position="320,480"  zPosition="2" size="15,16" alphatest="on" />
+				<ePixmap pixmap="skin_default/buttons/button_yellow.png" position="580,480"  zPosition="2" size="15,16" alphatest="on" />
+				<ePixmap pixmap="skin_default/buttons/button_blue.png" position="780,480"  zPosition="2" size="15,16" alphatest="on" />
+
+				<widget source="key_red" render="Label" position="100,475" zPosition="1" size="350,25" font="Regular;22" halign="left" transparent="1" />
+				<widget source="key_green" render="Label" position="350,475" zPosition="1" size="250,25" font="Regular;22" halign="left" transparent="1" />
+				<widget source="key_yellow" render="Label" position="600,475" zPosition="1" size="250,25" font="Regular;22" halign="left"  transparent="1" />
+				<widget source="key_blue" render="Label" position="800,475" zPosition="1" size="250,25" font="Regular;22" halign="left"  transparent="1" />
+
+				<widget name="Welcomezeile" zPosition="3" position="{kopf1.pos}" size="800,84" font="Regular;72" halign="center" transparent="1" foregroundColor="#ffa500"/>
+				<widget name="Kopfzeile" zPosition="2" position="0,8" size="1000,20" font="Console;20" halign="center" transparent="1" foregroundColor="#ffa500"/>
+				<widget name="feedlist" position="10,43" zPosition="1" size="{feed.size}" scrollbarMode="showOnDemand" />
+				<eLabel position="10,30" zPosition="2" size="985,1" backgroundColor="#c1cdc1" />
+				<eLabel position="196,30" zPosition="2" size="1,420" backgroundColor="#c1cdc1" />
+				<eLabel position="266,30" zPosition="2" size="1,420" backgroundColor="#c1cdc1" />
+				<eLabel position="338,30" zPosition="2" size="1,420" backgroundColor="#c1cdc1" />
+				<eLabel position="410,30" zPosition="2" size="1,420" backgroundColor="#c1cdc1" />
+				<eLabel position="482,30" zPosition="2" size="1,420" backgroundColor="#c1cdc1" />
+				<eLabel position="554,30" zPosition="2" size="1,420" backgroundColor="#c1cdc1" />
+				<eLabel position="626,30" zPosition="2" size="1,420" backgroundColor="#c1cdc1" />
+				<eLabel position="698,30" zPosition="2" size="1,420" backgroundColor="#c1cdc1" />
+				<eLabel position="770,30" zPosition="2" size="1,420" backgroundColor="#c1cdc1" />
+				<eLabel position="842,30" zPosition="2" size="1,420" backgroundColor="#c1cdc1" />
+				<eLabel position="936,30" zPosition="2" size="2,420" backgroundColor="#c1cdc1" />
+				<eLabel position="10,449" zPosition="2" size="985,1" backgroundColor="#c1cdc1" />
+			</screen>"""
+	else:
+		skin = """
+			<screen name="Tipprunde" position="{tip.pos}" size="{tip.size}" title="AAF Bundesliga Tippspiel   V 0.63" backgroundColor="#1f1a21" >
+				<widget name="StartPic" position="0,0" zPosition="3" size="824,681" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/Tipprunde/fussball1.jpg" transparent="1" alphatest="on" />
+				<ePixmap pixmap="skin_default/buttons/button_red.png" position="45,430"  zPosition="2" size="15,16" alphatest="on" />
+				<ePixmap pixmap="skin_default/buttons/button_green.png" position="245,430"  zPosition="2" size="15,16" alphatest="on" />
+				<ePixmap pixmap="skin_default/buttons/button_yellow.png" position="440,430"  zPosition="2" size="15,16" alphatest="on" />
+				<ePixmap pixmap="skin_default/buttons/button_blue.png" position="630,430"  zPosition="2" size="15,16" alphatest="on" />
+
+				<widget source="key_red" render="Label" position="65,425" zPosition="1" size="350,25" font="Regular;22" halign="left" transparent="1" />
+				<widget source="key_green" render="Label" position="265,425" zPosition="1" size="250,25" font="Regular;22" halign="left" transparent="1" />
+				<widget source="key_yellow" render="Label" position="460,425" zPosition="1" size="250,25" font="Regular;22" halign="left"  transparent="1" />
+				<widget source="key_blue" render="Label" position="650,425" zPosition="1" size="250,25" font="Regular;22" halign="left"  transparent="1" />
+
+				<widget name="Welcomezeile" zPosition="3" position="{kopf1.pos}" size="800,84" font="Regular;72" halign="center" transparent="1" foregroundColor="#ffa500"/>
+				<widget name="Kopfzeile" zPosition="2" position="0,8" size="750,20" font="Console;20" transparent="1" foregroundColor="#ffa500"/>
+				<widget name="feedlist" position="10,43" zPosition="1" size="{feed.size}" scrollbarMode="showOnDemand" />
+				<eLabel position="10,30" zPosition="2" size="761,1" backgroundColor="#c1cdc1" />
+				<eLabel position="196,30" zPosition="2" size="1,370" backgroundColor="#c1cdc1" />
+				<eLabel position="266,30" zPosition="2" size="1,370" backgroundColor="#c1cdc1" />
+				<eLabel position="338,30" zPosition="2" size="1,370" backgroundColor="#c1cdc1" />
+				<eLabel position="410,30" zPosition="2" size="1,370" backgroundColor="#c1cdc1" />
+				<eLabel position="554,30" zPosition="2" size="1,370" backgroundColor="#c1cdc1" />
+				<eLabel position="10,399" zPosition="2" size="761,1" backgroundColor="#c1cdc1" />
+			</screen>"""
+
+#				<eLabel position="482,30" zPosition="2" size="1,370" backgroundColor="#c1cdc1" />
+
+	def __init__(self, session):
+		self.session = session
+		self.liste = 1
+		self.list = 1
+		liste = 1
+
+		self.ThumbTimer = eTimer()
+		self.ThumbTimer.callback.append(self.welcome)
+		self.ThumbTimer.start(2000, True)
+
+		#switch automatic to current skin
+		current_w = getDesktop(0).size().width()
+		current_h = getDesktop(0).size().height()
+
+		print "[Tipprunde] Aufloesung width :" + str(current_w)
+		print "[Tipprunde] Aufloesung height:" + str(current_h)
+
+		# define the start koordinates and size
+		if current_w == 1280:
+				size_w = 1024
+				size_h = 515
+				offsety = 15
+	 			offset = 30
+				kopf_pos = size_w/2 -380
+				feed_sizeh = size_h - 120  #95
+				feed_size = size_w - 20
+		else:
+				size_w = 617
+				size_h = 470
+				kopf_pos = 0
+				offsety = 15
+	 			offset = 5
+				feed_sizeh = size_h - 125  #95
+				feed_size = size_w - 30
+
+		pos_w = (current_w - size_w)/2
+		pos_h = (current_h - size_h)/2 + offsety
+
+		# calculate Skin koordinates
+		font = "Regular;18"
+
+
+		offsett = 0
+		bgcolor = config.plugins.tipprunde.bgcolor.value
+
+		self.dict = {
+				'bgcolor': bgcolor,
+				'font': font,
+				'tip.size': "%i,%i"%(size_w,size_h),
+				'tip.pos': "%i,%i"%(pos_w,pos_h),
+				'kopf1.pos': "%i,240"%(kopf_pos),
+				'feed.size': "%i,%i"%(feed_size,feed_sizeh),
+			}
+
+		self.skin = applySkinVars(Tipprunde.skin,self.dict)
+		Screen.__init__(self, session)
+		self["actions"] = ActionMap(["OkCancelActions", "DirectionActions", "ColorActions", "NumberActions"],
+		{
+			"cancel": self.close,
+			"red": self.Liste1,
+			"green": self.Liste2,
+			"yellow": self.TippListe2,
+			"ok": self.Tipp_download,
+			"blue": self.Setup,
+			"1": self.select_url1,
+			"2": self.select_url2,
+			"3": self.select_url3,
+			"4": self.select_url4,
+			"5": self.select_url5
+		}, -2)
+
+		self["StartPic"] = Pixmap()
+		self["key_red"] = StaticText(_("<< Spalte 1"))
+		self["key_green"] = StaticText(_("Spalte >>"))
+
+		self["key_yellow"] = StaticText(_("51-81"))
+		self["key_blue"] = StaticText(_("Settings"))
+		self["Kopfzeile"] = Label("")
+		self["Welcomezeile"] = Label("")
+		self["Welcomezeile"].hide()
+		self["Welcomezeile"].setText("AAF-Tipprunde")
+
+		if current_w == 1280:
+			if config.plugins.tipprunde.spalte.value == "0":
+				#self["Kopfzeile"].setText("Nr  Name   18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34    Sg  Pkt")
+				self["Kopfzeile"].setText("Nr  Name    1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17    Sg  Pkt")
+			#else:
+				#self["Kopfzeile"].setText("Nr  Name       Fr 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34       Sg  Pkt")
+		else:
+			if config.plugins.tipprunde.spalte.value == "0":
+				#self["Kopfzeile"].setText(" Nr  Name        18 19 20 21 22 23 24 Sg   Pkt")
+				self["Kopfzeile"].setText(" Nr  Name         1  2  3  4  5  6  7 Sg   Pkt")
+			if config.plugins.tipprunde.spalte.value == "1":
+				#self["Kopfzeile"].setText(" Nr  Name        25 26 27 28 29 30 31 Sg   Pkt")
+				self["Kopfzeile"].setText(" Nr  Name         8  9 10 11 12 13 14 Sg   Pkt")
+			if config.plugins.tipprunde.spalte.value == "2":
+				self["Kopfzeile"].setText(" Nr  Name        15 16 17             Sg   Pkt")
+
+
+		tlist = [ ]
+		self["feedlist"] = TabelleList(tlist)
+		self["feedlist"].hide
+
+		self.Tipp_download()
+
+	def welcome(self):
+		self.ThumbTimer.stop()
+		self["StartPic"].show()
+		self["Welcomezeile"].show()
+		self.ThumbTimer2 = eTimer()
+		self.ThumbTimer2.callback.append(self.welcome_end)
+		self.ThumbTimer2.start(6000, True)
+
+	def welcome_end(self):
+		self.ThumbTimer2.stop()
+		self["Welcomezeile"].hide()
+		self["StartPic"].hide()
+
+	def Liste1(self):
+		current_w = getDesktop(0).size().width()
+		liste = 1
+		self.list = liste
+		self.liste_load(liste)
+		if current_w == 1280:
+			#self["Kopfzeile"].setText("Nr  Name   18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34    Sg  Pkt")
+			self["Kopfzeile"].setText("Nr  Name    1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17    Sg  Pkt")
+		else:
+			if self.list == 1:
+				self["Kopfzeile"].setText(" Nr  Name         1  2  3  4  5  6  7 Sg   Pkt")
+				#self["Kopfzeile"].setText(" Nr  Name        18 19 20 21 22 23 24 Sg   Pkt")
+			if self.list == 2:
+				#self["Kopfzeile"].setText(" Nr  Name        25 26 27 28 29 30 31 Sg   Pkt")
+				self["Kopfzeile"].setText(" Nr  Name         8  9 10 11 12 13 14 Sg   Pkt")
+			if self.list == 3:
+				self["Kopfzeile"].setText(" Nr  Name        15 16 17             Sg   Pkt")
+
+	def Liste2(self):
+		current_w = getDesktop(0).size().width()
+		self.list = self.list + 1
+		liste = self.list
+
+		if liste == 2 and current_w == 1280: # HD Skin hat nur 1 Seite
+			liste = 1
+			self.list = liste
+		if liste > 3:
+			liste = 3
+			self.list = liste
+		self.liste_load(liste)
+		if current_w == 1280:
+			#self["Kopfzeile"].setText("Nr  Name   18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34    Sg  Pkt")
+			self["Kopfzeile"].setText("Nr  Name    1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17    Sg  Pkt")
+		else:
+			if self.list == 1:
+				#self["Kopfzeile"].setText(" Nr  Name        18 19 20 21 22 23 24 Sg   Pkt")
+				self["Kopfzeile"].setText(" Nr  Name         1  2  3  4  5  6  7 Sg   Pkt")
+			if self.list == 2:
+				#self["Kopfzeile"].setText(" Nr  Name        25 26 27 28 29 30 31 Sg   Pkt")
+				self["Kopfzeile"].setText(" Nr  Name         8  9 10 11 12 13 14 Sg   Pkt")
+			if self.list == 3:
+				self["Kopfzeile"].setText(" Nr  Name        15 16 17             Sg   Pkt")
+
+
+	def Setup(self):
+		self.session.open(TippSetup)
+
+	def select_url1(self):
+		self.liste = 1
+		self["key_yellow"].setText("51-81")
+		self.Tipp_download()
+
+	def select_url2(self):
+		self.liste = 2
+		self["key_yellow"].setText("81-110")
+		self.Tipp_download()
+	def select_url3(self):
+		self.liste = 3
+		self["key_yellow"].setText("111-140")
+		self.Tipp_download()
+
+	def select_url4(self):
+		self.liste = 4
+		self["key_yellow"].setText("141-170")
+		self.Tipp_download()
+
+	def select_url5(self):
+		self.liste = 5
+		self["key_yellow"].setText("51-81")
+		self.Tipp_download()
+
+	def TippListe2(self):
+		print "Liste=" + str(self.liste)
+		if self.liste == 1:
+				self.liste = 2
+				self["key_yellow"].setText("51-81")
+		elif self.liste == 2:
+				self.liste = 3
+				self["key_yellow"].setText("81-110")
+		elif self.liste == 3:
+				self.liste = 4
+				self["key_yellow"].setText("111-140")
+		elif self.liste == 4:
+				self.liste = 5
+				self["key_yellow"].setText("141-170")
+		elif self.liste == 5:
+				self.liste = 1
+				self["key_yellow"].setText("51-81")
+
+		self.Tipp_download()
+
+#----- Tipp Download Procedures -------------------------------------------------------
+	def Tipp_download(self):
+		self.feed_base = url="http://www.kicktipp.de/aafbuli/gesamtuebersicht"
+		if self.liste == 2:
+			self.feed_base = url="http://www.kicktipp.de/aafbuli/gesamtuebersicht?offset=51&tippspieltagVonIndex=0&tippspieltagBisIndex=34&ansicht=spieltagspunkteSummiert&sortBy=gesamtpunkte"
+		if self.liste == 3:
+			self.feed_base = url="http://www.kicktipp.de/aafbuli/gesamtuebersicht?offset=81&tippspieltagVonIndex=0&tippspieltagBisIndex=34&ansicht=spieltagspunkteSummiert&sortBy=gesamtpunkte"
+		if self.liste == 4:
+			self.feed_base = url="http://www.kicktipp.de/aafbuli/gesamtuebersicht?offset=111&tippspieltagVonIndex=0&tippspieltagBisIndex=34&ansicht=spieltagspunkteSummiert&sortBy=gesamtpunkte"
+		if self.liste == 5:
+			self.feed_base = url="http://www.kicktipp.de/aafbuli/gesamtuebersicht?offset=141&tippspieltagVonIndex=0&tippspieltagBisIndex=34&ansicht=spieltagspunkteSummiert&sortBy=gesamtpunkte"
+
+		print "[feed-download]" +  self.feed_base
+		client.getPage(self.feed_base).addCallback(self.feed_finished).addErrback(self.feed_failed)
+
+#------------------------------------------------------------------------------------------
+	def feed_failed(self, failure_instance):
+		print "[Tipprunde] [feed_failed] " + str(failure_instance)
+		self["Kopfzeile"].text = _("Error:") + " " + failure_instance.getErrorMessage() + "\n\n" + _("Please check your network settings!")
+
+#------------------------------------------------------------------------------------------
+	def liste_load(self,liste):
+		sp = []
+		font_s = 0
+
+		f = open("/tmp/gesamtuebersicht.txt", "r" )
+		for zeile in f:
+				#pos = find(zeile,'#')
+				zeile = zeile.replace('\n',"")
+				print len(zeile)
+				if len(zeile) == 0:
+					zeile = "0"
+				sp.append(zeile)
+		f.close
+
+		i=0
+		tlist = [ ]
+ 		color = config.plugins.tipprunde.color1.value
+		current_w = getDesktop(0).size().width()
+		current_h = getDesktop(0).size().height()
+
+		maxzahler = 2000
+		if self.liste == 2 or self.liste == 3 or self.liste == 4 or self.liste == 5:
+			maxzahler = 1200
+		if self.liste == 5:
+			maxzahler = self.maxuser*22
+			
+		maxzahler = self.maxuser*22
+			
+
+		if current_w == 1280:
+			while i < maxzahler:
+				nr = sp[i+0] # Nr
+				nr = nr.ljust(3)
+				name = sp[i+2] # Name
+				name = name.ljust(11)
+				if len(name) >11:
+						name = name[:11]
+
+				if liste == 1:
+						text = "%s %s %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %0.2f %02d" %  (nr,name,int(sp[i+4]),int(sp[i+5]),int(sp[i+6]),int(sp[i+7]),int(sp[i+8]),int(sp[i+9]),int(sp[i+10]),int(sp[i+11]),int(sp[i+12]),int(sp[i+13]),int(sp[i+14]),int(sp[i+15]),int(sp[i+16]),int(sp[i+17]),int(sp[i+18]),int(sp[i+19]),int(sp[i+20]),int(sp[i+21]),float(sp[i+22]),int(sp[i+23]))
+						tlist.append(TabelleListEntry(text, color))
+				#if liste == 2:
+						#text = "%s %s %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d    %0.2f  %02d" %  (nr,name,int(sp[i+2]),int(sp[i+21]),int(sp[i+22]),int(sp[i+23]),int(sp[i+24]),int(sp[i+25]),int(sp[i+26]),int(sp[i+27]),int(sp[i+28]),int(sp[i+29]),int(sp[i+30]),int(sp[i+31]),int(sp[i+32]),int(sp[i+33]),int(sp[i+34]),int(sp[i+35]),int(sp[i+36]),int(sp[i+37]),float(sp[i+38]),int(sp[i+39]))
+						#tlist.append(TabelleListEntry(text, color))
+
+				if color == config.plugins.tipprunde.color2.value:
+ 					color = config.plugins.tipprunde.color1.value
+				else:
+					color = config.plugins.tipprunde.color2.value
+				#print text
+				i = i + 24
+
+
+		else:
+			while i < maxzahler:
+				nr = sp[i+0] # Nr
+				nr = nr.ljust(3)
+				name = sp[i+2] # Name
+				name = name.ljust(11)
+				if len(name) >11:
+						name = name[:11]
+
+				if self.list == 1:
+						text = "%s %s %02d %02d %02d %02d %02d %02d %02d %0.2f  %02d" %  (nr,name,int(sp[i+4]),int(sp[i+5]),int(sp[i+6]),int(sp[i+7]),int(sp[i+8]),int(sp[i+9]),int(sp[i+10]),float(sp[i+22]),int(sp[i+23]))
+						tlist.append(TabelleListEntry(text, color))
+				if self.list == 2:
+						text = "%s %s %02d %02d %02d %02d %02d %02d %02d %0.2f  %02d" %  (nr,name,int(sp[i+11]),int(sp[i+12]),int(sp[i+13]),int(sp[i+14]),int(sp[i+15]),int(sp[i+16]),int(sp[i+17]),float(sp[i+22]),int(sp[i+23]))
+						tlist.append(TabelleListEntry(text, color))
+				if self.list == 3:
+						text = "%s %s %02d %02d %02d %02d         %0.2f  %02d" %  (nr,name,int(sp[i+18]),int(sp[i+19]),int(sp[i+20]),int(sp[i+21]),float(sp[i+22]),int(sp[i+23]))
+						tlist.append(TabelleListEntry(text, color))
+
+				if color == config.plugins.tipprunde.color2.value:
+ 					color = config.plugins.tipprunde.color1.value
+				else:
+					color = config.plugins.tipprunde.color2.value
+				#print text
+				i = i + 24
+
+		self["feedlist"].l.setList(tlist)
+		self["feedlist"].show
+
+#------------------------------------------------------------------------------------------
+	def feed_finished(self, feedhtml):
+		print "[Tipprunde] [feed_finished] "
+		self.Tippfilter(feedhtml)
+		print "[Tipprunde] vom Filter zurueck " + str(self.liste)
+
+		sp = []
+		font_s = 0
+		f = open("/tmp/gesamtuebersicht.txt", "r" )
+		for zeile in f:
+				#pos = find(zeile,'#')
+				zeile = zeile.replace('\n',"")
+				#print len(zeile)
+				if len(zeile) == 0:
+					zeile = "0"
+				sp.append(zeile)
+		f.close
+
+		i=0
+		tlist = [ ]
+		del tlist[:]
+ 		color = config.plugins.tipprunde.color1.value
+
+		current_w = getDesktop(0).size().width()
+		current_h = getDesktop(0).size().height()
+
+		maxzahler = 2000
+		if self.liste == 2 or self.liste == 3 or self.liste == 4 or self.liste == 5:
+			maxzahler = 1200
+
+		maxzahler = self.maxuser*22
+
+		if current_w == 1280:
+			while i < maxzahler:
+			#while i < 10:
+				nr = sp[i+0] # Nr
+				nr = nr.ljust(3)
+				name = sp[i+2] # Name
+				name = name.ljust(11)
+				if len(name) >11:
+						name = name[:11]
+
+				if self.list == 1:
+						#print (nr,name,int,int(sp[i+3]),int(sp[i+4]),int(sp[i+5]),int(sp[i+6]),int(sp[i+7]),int(sp[i+8]),int(sp[i+9]),int(sp[i+10]),int(sp[i+11]),int(sp[i+12]),int(sp[i+13]),int(sp[i+14]),int(sp[i+15]),int(sp[i+16]),int(sp[i+17]))
+						#print (int(sp[i+18]),int(sp[i+19]))
+						#print (float(sp[i+20]),float(sp[i+21]),float(sp[i+22]),float(sp[i+23]))
+
+						# for debug, who is the float? ( bb 23.01.2011 )
+						#text = "%s %s " %  (nr,name)
+
+						text = "%s %s %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %0.2f %02d" %  (nr,name,int(sp[i+4]),int(sp[i+5]),int(sp[i+6]),int(sp[i+7]),int(sp[i+8]),int(sp[i+9]),int(sp[i+10]),int(sp[i+11]),int(sp[i+12]),int(sp[i+13]),int(sp[i+14]),int(sp[i+15]),int(sp[i+16]),int(sp[i+17]),int(sp[i+18]),int(sp[i+19]),int(sp[i+20]),int(sp[i+21]),float(sp[i+22]),int(sp[i+23]))
+						tlist.append(TabelleListEntry(text, color))
+				#if self.list == 2:
+						#text = "%s %s %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d %02d    %0.2f  %02d" %  (nr,name,int(sp[i+2]),int(sp[i+21]),int(sp[i+22]),int(sp[i+23]),int(sp[i+24]),int(sp[i+25]),int(sp[i+26]),int(sp[i+27]),int(sp[i+28]),int(sp[i+29]),int(sp[i+30]),int(sp[i+31]),int(sp[i+32]),int(sp[i+33]),int(sp[i+34]),int(sp[i+35]),int(sp[i+36]),int(sp[i+37]),float(sp[i+38]),int(sp[i+39]))
+						#tlist.append(TabelleListEntry(text, color))
+
+				if color == config.plugins.tipprunde.color2.value:
+ 					color = config.plugins.tipprunde.color1.value
+				else:
+					color = config.plugins.tipprunde.color2.value
+				#print text
+				i = i + 24
+
+
+		else:
+			while i < maxzahler:
+				nr = sp[i+0] # Nr
+				nr = nr.ljust(3)
+				name = sp[i+2] # Name
+				name = name.ljust(11)
+				if len(name) >11:
+						name = name[:11]
+
+						print (int(sp[i+18]),int(sp[i+19]))
+						print (float(sp[i+20]),float(sp[i+21]),float(sp[i+22]),float(sp[i+23]))
+
+						# for debug, who is the float? ( bb 23.01.2011 )
+
+
+
+				if self.list == 1:
+						#text = "%s %s " %  (nr,name)
+						text = "%s %s %02d %02d %02d %02d %02d %02d %02d %0.2f  %02d" %  (nr,name,int(sp[i+4]),int(sp[i+5]),int(sp[i+6]),int(sp[i+7]),int(sp[i+8]),int(sp[i+9]),int(sp[i+10]),float(sp[i+22]),int(sp[i+23]))
+						tlist.append(TabelleListEntry(text, color))
+				if self.list == 2:
+						text = "%s %s %02d %02d %02d %02d %02d %02d %02d %0.2f  %02d" %  (nr,name,int(sp[i+11]),int(sp[i+12]),int(sp[i+13]),int(sp[i+14]),int(sp[i+15]),int(sp[i+16]),int(sp[i+17]),float(sp[i+22]),int(sp[i+23]))
+						tlist.append(TabelleListEntry(text, color))
+				if self.list == 3:
+						text = "%s %s %02d %02d %02d %02d         %0.2f  %02d" %  (nr,name,int(sp[i+18]),int(sp[i+19]),int(sp[i+20]),int(sp[i+20]),float(sp[i+22]),int(sp[i+23]))
+						tlist.append(TabelleListEntry(text, color))
+
+				if color == config.plugins.tipprunde.color2.value:
+ 					color = config.plugins.tipprunde.color1.value
+				else:
+					color = config.plugins.tipprunde.color2.value
+				i = i + 24
+
+		self["feedlist"].l.setList(tlist)
+		self["feedlist"].show
+		print "[Tipprunde] der Filter ist fertig "
+
+#------------------------------------------------------------------------------------------
+	def Tippfilter(self,output):
+		print "[Tipprunde] Seite wurde geladen"
+
+		startpos = find(output,'class="sort-aktiv"')  # class="sort-aktiv">Pkt<
+		endpos = find(output,'class="pkt"><a href="gesamtuebersicht')  # class="pkt"><a href="gesamtuebersicht
+
+		if self.liste == 2:
+				startpos = find(output,'21 - 50') 
+				endpos = find(output,'81 - 110') 
+		if self.liste == 3:
+				startpos = find(output,'51 - 80')  
+				endpos = find(output,'111 - 140')  
+		if self.liste == 4:
+				startpos = find(output,'81 - 110') 
+				endpos = find(output,'141 - 153')  
+		if self.liste == 5:
+				startpos = find(output,'111 - 140')  
+				endpos = find(output,'Tipps und Anleitungen')  
+
+
+		print "[Tipprunde] Start/Endpos: ", startpos, endpos, str(self.liste)
+
+		if startpos >= endpos or startpos == -1 or endpos == -1:
+				print "[Tipprunde] Fehler startpos ",str(startpos)
+				return
+
+		bereich = output[startpos:endpos].decode("latin1").encode("utf-8")
+		bereich = output[startpos:endpos]
+		bereich = transHTML(bereich)
+		# <td class="pos">1.</td><td dir="ltr" class="mg_class"><a href="mitgliedsstatistik;jsessionid=hQm5TMj4YvtoKHXQZAlW.rochen?mitgliedId=3667344" class="">dela2203</a></td><td class="pkts">11</td><td class="pkt">7</td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="sptsiege"><b><span title="1.0">1,00</span></b></td><td class="gesamt"><b>18</b></td></tr><tr class="e ">
+		# <td class="pos">1.</td><td dir="ltr" class="mg_name">lelo</td><td class="pkt">0</td><td class="pkt">9</td><td class="pkt">6</td><td class="pkt">5</td><td class="pkt">3</td><td class="pkt">8</td><td class="pkt">10</td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="pkt"></td><td class="sptsiege"></td><td class="gesamt"><b>41</b></td
+		thread_all = findall(r'<td class="pos">(.*?)</td></tr>',bereich)
+		#print thread_all
+		ffile = open("/tmp/gesamtuebersicht.txt", "w")
+
+		# Tipzeile filtern
+		za = 0
+		for x in thread_all:
+			x = sub('<[^>]*>',"@",x)
+			res = [ x ]
+			za = za +1
+			thread = str(res)
+			thread = thread.replace('.',"").replace(',',".").replace('\']',"").replace('[\'',"").replace('@@',",").replace('0,,@',"0,").replace('1,,@',"1,").replace('2,,@',"2,").replace('3,,@',"3,").replace('4,,@',"4,").replace('5,,@',"5,").replace('6,,@',"6,").replace('7,,@',"7,").replace('8,,@',"8,").replace('9,,@',"9,").replace(',@',",,").replace('@',"").replace(',',"\n")
+			ffile.write(str(thread) + "\n")
+			#ffile.write(str(thread))
+		ffile.close()
+		self.maxuser = za
+
+#------------------------------------------------------------------------------------------
+#-------------------------------- Tipprunde Settings --------------------------------------
+#------------------------------------------------------------------------------------------
+class TippSetup(Screen):
+	skin = """<screen position="center,center" size="480,310" title="Tipprunde Settings" backgroundColor="#000000" >
+		<widget name="liste" position="5,5" size="470,300" scrollbarMode="showOnDemand" />
+		<eLabel backgroundColor="red" position="28,300" size="140,3" zPosition="2"/>
+		<eLabel backgroundColor="green" position="228,300" size="140,3" zPosition="2"/>
+		<widget name="key_red" position="28,268" zPosition="3" size="140,40" font="Regular;19" valign="center" halign="center" transparent="1" />
+		<widget name="key_green" position="228,268" zPosition="3" size="140,40" font="Regular;19" valign="center" halign="center" transparent="1" />
+	</screen>"""
+
+	def __init__(self, session):
+		self.skin = TippSetup.skin
+		Screen.__init__(self, session)
+		self["key_red"] = Button(_("Back"))
+		self["key_green"] = Button(_("Save"))
+		self["actions"] = NumberActionMap(["SetupActions", "ColorActions"],
+		{
+			"ok": self.save,
+			"green": self.save,
+			"cancel": self.close,
+			"red": self.close,
+			"left": self.keyLeft,
+			"right": self.keyRight,
+			"0": self.keyNumber,
+			"1": self.keyNumber,
+			"2": self.keyNumber,
+			"3": self.keyNumber,
+			"4": self.keyNumber,
+			"5": self.keyNumber,
+			"6": self.keyNumber,
+			"7": self.keyNumber,
+			"8": self.keyNumber,
+			"9": self.keyNumber
+		}, -3)
+		self.list = []
+		self["liste"] = ConfigList(self.list)
+
+		self.list.append(getConfigListEntry(_("Spaltenansicht"), config.plugins.tipprunde.spalte))
+		self.list.append(getConfigListEntry(_("Zeilenfarbe 1"), config.plugins.tipprunde.color1))
+		self.list.append(getConfigListEntry(_("Zeilenfarbe 2"), config.plugins.tipprunde.color2))
+		#self.list.append(getConfigListEntry(_("Hintergrundfarbe"), config.plugins.tipprunde.bgcolor))
+		self.list.append(getConfigListEntry(_("Nullunterdrückung"), config.plugins.tipprunde.null))
+
+	def save(self):
+		for x in self["liste"].list:
+				x[1].save()
+		config.save()
+		self.close()
+
+	def keyLeft(self):
+		self["liste"].handleKey(KEY_LEFT)
+	def keyRight(self):
+		self["liste"].handleKey(KEY_RIGHT)
+	def keyNumber(self, number):
+		self["liste"].handleKey(KEY_0 + number)
+
+
+#------------------------------------------------------------------------------------------
+#-----------------------Haupt Programm ----------------------------------------------------
+#------------------------------------------------------------------------------------------
+def main(session, **kwargs):
+	session.open(Tipprunde)
+
+#------------------------------------------------------------------------------------------
+def Plugins(**kwargs):
+	return [
+		PluginDescriptor(name = "Tipprunde", description = "Tipprunde AAF-Team", where = PluginDescriptor.WHERE_PLUGINMENU, fnc = main),
+		PluginDescriptor(name = "Tipprunde", description = "Tipprunde AAF-Team", where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=main)]
