# Path: resources/lib/homemenu.py
# def start(focus_sport):
# 	def __init__( self, *args, **kwargs ):
# 	def onInit(self):
# 	def set_favourite_data(self):
# 	def set_fanart(self):
# 	def set_submenu(self):
# 	def onClick(self,controlId):
# 	def onAction(self,action):
# class dialog_home(xbmcgui.WindowXML):


import xbmcplugin
import xbmcgui
import xbmc 
import xbmcaddon
import os
import sys
		import teamview
from resources.lib import homemenu as home
from resources.lib.centerutils.common_variables import *
		from resources.lib import calendar as calendar
		from resources.lib import onscreen as onscreen
		from resources.lib import leagueview
		from resources.lib import teamview
		from resources.lib import playerview as playerview
# You should have received a copy of the GNU General Public License along with this program; 
# if not, see <http://www.gnu.org/licenses/>.


def get_params():
	param=[]
	try: paramstring=sys.argv[2]
	except: paramstring = ''
	if len(paramstring)>=2:
		params=sys.argv[2]
		if (params[len(params)-1]=='/'):
			params=params[0:len(params)-2]
		pairsofparams=params.split('/')
		for parm in pairsofparams:
			if parm == '':
				pairsofparams.remove(parm)      
	return pairsofparams

try: params=get_params()
except: params = []

#Usage for external calls
#xbmc.executebuiltin("RunScript(script.sportscenter,,/teste1/teste2/teste3)")

if not params:
	home.start(None)
	#from resources.lib import soccermatchdetails
	#soccermatchdetails.start([False,'441779'])
else:
	if params[0] == 'home':

# Path: resources/lib/homemenu.py
# def start(focus_sport):
# 	def __init__( self, *args, **kwargs ):
# 	def onInit(self):
# 	def set_favourite_data(self):
# 	def set_fanart(self):
# 	def set_submenu(self):
# 	def onClick(self,controlId):
# 	def onAction(self,action):
# class dialog_home(xbmcgui.WindowXML):


# Path: default.py
import xbmcplugin
import xbmcgui
import xbmc 
import xbmcaddon
import os
import sys
		import teamview
from resources.lib import homemenu as home
from resources.lib.centerutils.common_variables import *
		from resources.lib import calendar as calendar
		from resources.lib import onscreen as onscreen
		from resources.lib import leagueview
		from resources.lib import teamview
		from resources.lib import playerview as playerview

# You should have received a copy of the GNU General Public License along with this program; 
# if not, see <http://www.gnu.org/licenses/>.


def get_params():
	param=[]
	try: paramstring=sys.argv[2]
	except: paramstring = ''
	if len(paramstring)>=2:
		params=sys.argv[2]
		if (params[len(params)-1]=='/'):
			params=params[0:len(params)-2]
		pairsofparams=params.split('/')
		for parm in pairsofparams:
			if parm == '':
				pairsofparams.remove(parm)      
	return pairsofparams

try: params=get_params()
except: params = []

#Usage for external calls
#xbmc.executebuiltin("RunScript(script.sportscenter,,/teste1/teste2/teste3)")

if not params:
	home.start(None)
	#from resources.lib import soccermatchdetails
	#soccermatchdetails.start([False,'441779'])
else:
	if params[0] == 'home':

		home.start(None)