///////////////////////////////////////////////////////////////////////
//////// H A M M E R  S K I N  das O R I G I N A L
//////// Fr Today Plus Version 0.11.0	
//////// Skin Version 01.04a	
//////// Author: Wichtel
//////// Datum: 21.09.2004          
///////////////////////////////////////////////////////////////////////
//
//
///////////////////////////////////////////////////////////////////////
// REGIONSBERSICHT:	
//
// REGION	1,0       		BUTTONAREA
// REGION	2,0         		MAINPAGE
// REGION  	4            		UNTERREGION FR MAINPAGE
// REGION  	4,1 - 4,2 		Batterie und Speicher der Mainpage Region2
// REGION  	4,3 - 4,8 		Newsticker der Mainpage Region 6
// REGION  	3,0	 	WETTER	
// REGION  	5,0           	AGENDA AREA FR MAINPAGE
// REGION  	6,0           	NEWSTICKER FR MAINPAGE
// REGION  	7,0 - 7,5   	WETTERDETAIL / MONDPHASEN / TIERKREISZEICHEN FR WETTERPAGE
// REGION  	8,0 	   	WETTERAUSWAHLPOPUP FR WETTERPAGE
// REGION  	9,0           	POOM KALENDER 
// REGION 	10,0          	POOM AUFGABEN
// REGION 	11,0 -11,1 	WELTZEITEN
// REGION 	12,0          	RSS
// REGION 	13,0          	RSS BERRSCHRIFTEN
// REGION 	14,0          	RSS TEXT
// REGION 	15,0 -15,4         	VERKNPFUNGEN
// REGION	16,0		SYSTEM	
// REGION	17,0		SYSTEMAUSWAHLPOPUP
// REGION	18,0 -18,1	EIGENTMERINFO / SKININFO 




maxheight,267
height,267


initregion,1,0
initregion,2,0
initregion,6,0
initregion,3,999
initregion,7,999
initregion,8,999
initregion,9,999
initregion,10,999
initregion,11,999
initregion,12,999
initregion,13,999
initregion,14,999
initregion,15,999
initregion,16,999
initregion,17,999
initregion,18,999


initvar,var0,1	//Wetteranzeige Mainpage
initvar,var2,1          //RSS Headlines
initvar,var9,1	//Wetteranzeige Wetterseite
initvar,var10,2	//Wetter Icon wechsel
initvar,var24,2	//Buttonwechsel
initvar,var13,1	//Wetterscroll
initvar,var17,0	//Batterie - Speicherwechsel
initvar,var15,0	//RSS Mainpage Schlagzeilenwechsel



if,var,var10,,=,1
	options,weathericondir,Weather Icons\Stardock,png
else
	options,weathericondir,Weather Icons\Accu_new,gif
endif



if,var,var24,,=,1
	options,imagedir,images\Hammerskin1
else
	options,imagedir,images\Hammerskin
endif

color,transparent,255_0_255
color,replacement,0_0_0-,-1_6_-1
color,shadow,125_125_125
color,font,0_0_0


calcvar,var18,fromconfig,numlauncher
calcvar,var28,fromconfig,numrss
calcvar,var29,fromconfig,numcities






//////////////////////////////////////////////////////////////////////////
//  REGION 2  MAIN PAGE   REGION 4,1-4,2
/////////////////////////////////////////////////////////////////////////

region,2,0,20
	defregion,2,0,0,210,267,1

	cleararea,0,0,211,267

	deactivatebuttons,3
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,10
	deactivatebuttons,11
	deactivatebuttons,12
	deactivatebuttons,15
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,2
	activatebuttons,4
	activatebuttons,5

	updateregions,5
	updateregions,6


	//====================================
	//DATUM - TAG - UHR
	//====================================

	changefont,tahoma,23,i

	time,4,0,-1,5,ls,"dddd",

	changefont,tahoma,13,b

	time,4,22,-1,5,l,"d.MMMM yyyy",
	time,4,35,-1,4,l

	changefont,tahoma,12,


	//===================================
	//WETTER AKTUELL + 1 TAG
	//===================================

	load,city,1

	calcvar,var20,weatherupdatetimediff

	if,var,var20,,<,240
		forecast,date_ddd,1,21,62,,,c
		forecasticon,1,5,75,,t
		forecast,high,1,39,75,,,l
		forecast,low,1,39,84,,,l
		forecast,precipitation,1,39,93,,%,l
		forecast,date_ddd,2,77,62,,,c
		forecasticon,2,61,75,,t
		forecast,high,2,95,75,,,l
		forecast,low,2,95,84,,,l
		forecast,precipitation,2,95,93,,%,l
	else
		calcvar,var21,firstvalidforecastday

		if,var,var21,,<,6
			forecast,date_ddd,%var21%,21,62,,,c
			forecasticon,%var21%,5,75,,t
			forecast,high,%var21%,39,75,,,l
			forecast,low,%var21%,39,84,,,l
			forecast,precipitation,%var21%,39,93,,%,l

			addvar,var21,1
		else
			image,5,75,none.png,t
		endif

		if,var,var21,,<,6
			forecast,date_ddd,%var21%,77,62,,,c
			forecasticon,%var21%,61,75,,t
			forecast,high,%var21%,95,75,,,l
			forecast,low,%var21%,95,84,,,l
			forecast,precipitation,%var21%,95,93,,%,l

			addvar,var21,1
		else
			image,61,75,none.png,t
		endif
	endif


	//========================================
	// AKTUALISIERUNGSZEIT
	//========================================

	if,var,var20,,<,240
		text,6,50,Aktualisiert um ,l
		text,75,50,[updatetime],l,HH:mm
	else
		if,var,var20,240,><,600
			calcvar,var20,/,%var20%,60
			color,font,255_0_0
			text,6,50,Aktualisiert vor ,l
			text,76,50,%var20%,l,
			text,84,50,Std,l
			color,font,0_0_0
		else
			if,var,var20,600,><,1440
				calcvar,var20,/,%var20%,60
				color,font,255_0_0
				text,6,50,Aktualisiert vor ,l
				text,76,50,%var20%,l,
				text,88,50,Std,l
				color,font,0_0_0
			else
				if,var,var20,1440,><,2880
					calcvar,var20,/,%var20%,1440
					color,font,255_0_0
					text,6,50,Aktualisiert vor ,l
					text,81,50,%var20%,r
					text,85,50,Tag,l
					color,font,0_0_0
				else
					if,var,var20,2880,><,14400
						calcvar,var20,/,%var20%,1440
						color,font,255_0_0
						text,6,50,Aktualisiert vor ,l
						text,81,50,%var20%,r
						text,83,50,Tagen,l
						color,font,0_0_0
					else
						if,var,var20,,>,14401
							calcvar,var20,/,%var20%,1440
							color,font,255_0_0
							text,6,50,Aktualisiert vor ,l
							text,85,50,%var20%,r
							text,86,50,Tagen,l
							color,font,0_0_0
						endif
					endif
				endif
			endif
		endif
	endif

	if,refresh
		image,4,50,Aktualisierung_main.png,t
	else
	endif


	imagebutton,4,50,Aktualisierungsbutton_main.png,,-1,7,-nohighlight,-1


	//========================================
	// KALENDER AKTUELLER MONAT
	//========================================

	image,115,5,kalender_header_main.png
	image,181,5,kalender_header_senkrecht_main_grau.png
	image,194,5,kalender_header_senkrecht_main_rot.png

	calendarheader,116,5,13

	calendar,0,0,116,18,13,10,l

	button,116,18,91,60,-1,23,0,5
	button,116,18,91,60,-1,23,1,5
	button,116,18,91,60,-1,23,2,5
	button,116,18,91,60,-1,23,3,5
	button,116,18,91,60,-1,5,-highlight,5


	//=================================
	// BATTERIE -SPEICHER
	//=================================
		
	if,var,var17,,=,0
		jumpregion,4,2
		storevar,var17=1
	else
		jumpregion,4,1
		storevar,var17=0
	endif


	//BATTERIE========================

	region,4,1,-1

		image,151,93,meters_background.png,t
		battery,bar,153,93,52,13,gradient_batterymain gradient.png
		image,151,93,meters.png,t

		imagebutton,151,93,Metersbutton.png,tr,-1,0,%apps-6-2-highlight

		changefont,tahoma,11

		if,batterystatusunknown
			image,117,82,batterie_unbekannt.png,t
			text,179,83,Batt: ?,c
		else

			if,charging
				image,117,82,batterie_laden.png,t
				text,179,83,Laden.....,c
			else

				if,externalpower,=,true
					image,117,82,batterie_geladen.png,t
					text,179,83,Netz,c
				else
					image,117,82,batterie.png,t
					battery,remaining,179,83,Batt: , %,c
				endif
			endif
		endif

		changefont,tahoma,12	

	endregion,4,1


	//SPEICHER============================

	region,4,2,-1
		
		changefont,tahoma,11
		
		memory,totalused,179,82,SP: , MB,c,%.1f
		image,151,93,meters_background.png,t
		memory,barused,153,93,52,13,gradient_Speichermain gradient.png
		image,151,93,meters.png,t
	
		imagebutton,151,93,Metersbutton.png,tr,-1,0,%apps-6-3-highlight
	
		calcvar,var17,programmemoryusedpercent

		if,var,var17,1,><,50
			image,117,82,Speicherleer.png,t
		else

			if,var,var17,51,><,80
				image,117,82,Speichervoll.png,t
			else
				image,117,82,Speicherhot.png,t
			endif
		endif

		changefont,tahoma,12

	endregion,4,2


	//=======================================
	// HELLIGKEITSREGELUNG 
	//=======================================

	//image,151,112,neonschatten.png,
	//imagebutton,151,112,neon.png,tr,-1,0,%apps-6-8-highlight


	//=======================================
	// TEXT FR NEWSTICKER 
	//=======================================

	image,4,187,headline.png
	text,5,187,NEWSTICKER,l


	//=======================================
	// TEXT FR AGENDA 
	//=======================================

	image,4,113,headline.png
	text,5,113,TERMINE,l


	//=======================================
	// PROGRAMMVERKNPFUNGEN 
	//=======================================

	imagebutton,4,246,icon_button.png,t,-1,0,%apps-1-1
	shortcut,4,246,apps-1-1,s

	imagebutton,27,246,icon_button.png,t,-1,0,%apps-1-2
	shortcut,27,246,apps-1-2,s

	imagebutton,50,246,icon_button.png,t,-1,0,%apps-1-3
	shortcut,50,246,apps-1-3,s

	imagebutton,73,246,icon_button.png,t,-1,0,%apps-1-4
	shortcut,73,246,apps-1-4,s

	imagebutton,96,246,icon_button.png,t,-1,0,%apps-1-5
	shortcut,96,246,apps-1-5,s

	imagebutton,119,246,icon_button.png,t,-1,0,%apps-1-6
	shortcut,119,246,apps-1-6,s

	imagebutton,142,246,icon_button.png,t,-1,0,%apps-1-7
	shortcut,142,246,apps-1-7,s

	imagebutton,165,246,icon_button.png,t,-1,0,%apps-1-8
	shortcut,165,246,apps-1-8,s

	imagebutton,188,246,icon_button.png,t,-1,0,%apps-1-9
	shortcut,188,246,apps-1-9,s

	image,2,240,dotted_line.png,t

endregion,2,0


//////////////////////////////////////////////////////////////////////////
// MAINPAGE ENDE
/////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
// REGION 5 AGENDABEREICH DER MAIN PAGE 
//////////////////////////////////////////////////////////////////////////

region,5,0,15
	defregion,5,0,126,209,60,

	options,calendarfilter,1
	options,taskfilter,1
	options,dateformat,3,15,18,%changefont,tahoma,11,%%line,203,10,-1_6_-1%%bold%%date,l%%regularfont%
	options,today-text,'Heute', dd. MMMM  yyyy
	options,tomorrow-text,'Morgen'. dd, MMMM  yyyy

	options,apptformat,0,11,13,%iconstart,51%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%image,0,2,small_arrow_right.png,t%%tab,7%%starttime,HH:mmt%%tab,60%%//bold%%subject%%regularfont%

	options,apptallday,0,11,13,%iconstart,67%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%textcolor,0_128_0%%image,0,2,small_arrow_right.png,t%%tab,7%Ganztags%tab,76%%//bold%%subject%%regularfont%%textcolor,0_0_0%

	options,taskformat,0,11,13,%iconstart,60%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,lowpriority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%checkbox,0,0,12,12,dot.png,dot1.png,t%%tab,10%[%enddate,dd/MM%]%tab,68%%subject%%changefont,tahoma,11,%

	options,taskoverdue,0,11,13,%textcolor,255_0_0%%iconstart,60%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,lowpriority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%checkbox,0,0,12,12,dot.png,dot1.png,t%%tab,10%[%enddate,dd/MM%]%tab,68%%subject%%changefont,tahoma,11,%%resettextcolor%

	options,taskcomplete,0,11,13,%iconstart,60%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,lowpriority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,s%%checkbox,0,0,12,12,dot.png,dot1.png,tr%%tab,10%[%enddate,dd/MM%]%tab,68%%subject%%changefont,tahoma,11,%

	options,blanktext,-1,11,13,

	outlook,4,126,203,64,0,0,228,,,5

	changefont,tahoma,12,

endregion,5,0


//////////////////////////////////////////////////////////////////////////
// AGENDABEREICH DER MAIN PAGE  ENDE
//////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////////////////////
// REGION 6 NEWSTICKER DER MAINPAGE   REGION 4,3-4,6
/////////////////////////////////////////////////////////////////////////////////////////////

region,6,0,10
	defregion,6,0,200,210,38,

	if,var,var15,,=,0
		jumpregion,4,3
		storevar,var15=1
	else

		if,var,var15,,=,1
			jumpregion,4,4
			storevar,var15=2
		else

			if,var,var15,,=,2
				jumpregion,4,5
				storevar,var15=3
			else

				if,var,var15,,=,3
					jumpregion,4,6
					storevar,var15=4
				else

					if,var,var15,,=,4
						jumpregion,4,7
						storevar,var15=5
					else

						if,var,var15,,=,5
							jumpregion,4,8
							storevar,var15=0
						endif
					endif
				endif
			endif
		endif
	endif


	//RSS NEWSTICKER============================

	region,4,3,-1

		load,rss,1
	
		RSS,title,4,201,207,12,1,,,l
			RSS,title,4,212,207,12,2,,,l
		RSS,title,4,223,207,12,3,,,l

	endregion,4,3


	//RSS NEWSTICKER============================

	region,4,4,-1
	
		load,rss,2

		RSS,title,4,201,207,12,1,,,l
		RSS,title,4,212,207,12,2,,,l
		RSS,title,4,223,207,12,3,,,l

	endregion,4,4


	//RSS NEWSTICKER============================

	region,4,5,-1

		load,rss,1

		RSS,title,4,201,207,12,4,,,l
		RSS,title,4,212,207,12,5,,,l
		RSS,title,4,223,207,12,6,,,l

	endregion,4,5


	//RSS NEWSTICKER============================

	region,4,6,-1

		load,rss,2

		RSS,title,4,201,207,12,4,,,l
		RSS,title,4,212,207,12,5,,,l
		RSS,title,4,223,207,12,6,,,l

	endregion,4,6


	//RSS NEWSTICKER============================

	region,4,7,-1

		load,rss,1

		RSS,title,4,201,207,12,7,,,l
		RSS,title,4,212,207,12,8,,,l
		RSS,title,4,223,207,12,9,,,l

	endregion,4,7


	//RSS NEWSTICKER============================

	region,4,8,-1

		load,rss,2

		RSS,title,4,201,207,12,7,,,l
		RSS,title,4,212,207,12,8,,,l
		RSS,title,4,223,207,12,9,,,l

	endregion,4,8

endregion,6,0


/////////////////////////////////////////////////////////////////////////
// NEWSTICKER DER MAINPAGE  ENDE
/////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
// REGION 3  WETTER PAGE  
/////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
// REGION 3,0 WETTER HAUPTANSICHT  
/////////////////////////////////////////////////////////////////////////

region,3,0,60
	defregion,3,0,0,211,267,1

	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,5
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,10
	deactivatebuttons,11
	deactivatebuttons,12
	deactivatebuttons,15
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,3

	if,var,var9,,>,%var29%
		storevar,var9=1
	else
	endif

	load,city,%var9%

	//===================================
	//BERSCHRIFTEN
	//===================================

	image,4,3,headline_breit_gelb_verlauf.png,t
	changefont,Tahoma,13,b

	text,105,2,Wetter fr - ,r
	text,105,2,[name],l


	//===================================
	//AKTUALISIERUNGSZEIT
	//===================================

	changefont,Tahoma,12,

	image,4,18,headline_breit_blau_verlauf.png,t

	calcvar,var20,weatherupdatetimediff

	if,var,var20,,<,240
		text,39,18,Aktuelle Daten von ,l
		text,129,18,[updatetime],l,HH:mm
		text,156,18,Uhr,l
	else

		if,var,var20,240,><,600
			calcvar,var20,/,%var20%,60

			color,font,255_0_0
			text,30,18,Zuletzt Aktualisiert vor ,l
			text,133,18,%var20%,l,
			text,142,18,Stunden,l
			color,font,0_0_0
		else

			if,var,var20,600,><,1440
				calcvar,var20,/,%var20%,60

				color,font,255_0_0
				text,30,18,Zuletzt Aktualisiert vor ,l
				text,132,18,%var20%,l,
				text,146,18,Stunden,l
				color,font,0_0_0
			else

				if,var,var20,1440,><,2880
					calcvar,var20,/,%var20%,1440

					color,font,255_0_0
					text,43,18,Zuletzt Aktualisiert vor ,l
					text,145,18,%var20%,l
					text,152,18,Tag,l
					color,font,0_0_0
				else

					if,var,var20,2880,><,14400
						calcvar,var20,/,%var20%,1440

						color,font,255_0_0
						text,38,18,Zuletzt Aktualisiert vor ,l
						text,141,18,%var20%,l
						text,148,18,Tagen,l
						color,font,0_0_0
					else

						if,var,var20,,>,14401
							calcvar,var20,/,%var20%,1440

							color,font,255_0_0
							text,35,18,Zuletzt Aktualisiert vor ,l
							text,136,18,%var20%,l
							text,148,18,Tagen,l
							color,font,0_0_0

						endif
					endif
				endif
			endif
		endif
	endif



	//===================================
	//SONNENDARSTELLUNG
	//===================================

	image,3,31,sun.png,t
	suntime,%var9%,sunrise,official,38,31,HH:mm,Aufg:    ,,l
	suntime,%var9%,sunset,official,38,41,HH:mm,Unterg: ,,l
	suntime,%var9%,daylength,official,38,51,HH:mm,Tagesl:  ,,l


	//===================================
	//MONDDARSTELLUNG
	//===================================

	calcvar,var14,moonphase,0
	imagemeter,109,34,%var14%,phasen.png,tr,0,7
	moontime,%var9%,rise,0,139,31,HH:mm,Aufg:    ,,l 
	moontime,%var9%,set,0,139,41,HH:mm,Unterg: ,,l 
	moontime,%var9%,visible,0,139,51,,Sichtbar:,%,l


	//===================================
	//AKTUELLE WETTERDATEN
	//===================================

	calcvar,var20,weatherupdatetimediff

	if,var,var20,,<,240
		todayicon,5,70,,t
		today,sky,50,66,,sky,l
		text,50,76,Temperatur:,l
		today,temp,120,76,, C,l
		text,50,86,Gefhlt wie:,l
		today,realtemp,120,86,, C,l
		text,50,96,Luftdruck:,l
		today,barometer,120,96,, hPa,l
		today,humidity,5,108,Relative Feuchte: , %,l
		today,uv,120,108,UV-Index: ,,l
		today,winddir,5,118,Wind aus: , ,l
		today,windspeed,90,118,Geschwindigkeit: , MPH,l
		today,date,5,128,Serverdaten vom , Uhr,l
	else
		changefont,tahoma,14
		text,104,100,Leider keine Aktuellen Daten,c
		changefont,tahoma,12
	endif


	//===================================
	//WETTERVORHERSAGE   4 TAGE
	//===================================

	calcvar,var20,weatherupdatetimediff

	if,var,var20,,<,240
		imagebutton,5,145,wetter_button_detail.png,tr,7,4,0,3
		button,5,145,95,13,-1,6,var1=1
		forecasticon,1,5,162,,t
		forecast,date_dddd  dd.MM.,1,7,145,,,l	
		text,40,160,Max:,l
		text,40,170,Min:,l
		text,40,180,Nw:,l
		forecast,high,1,100,160,, C,r
		forecast,low,1,100,170,, C,r
		forecast,precipitation,1,100,180,, %,r

		imagebutton,110,145,wetter_button_detail.png,tr,7,4,0,3
		button,110,145,95,13,-1,6,var1=2
		forecasticon,2,110,162,,t
		forecast,date_dddd  dd.MM.,2,112,145,,,l
		text,145,160,Max:,l
		text,145,170,Min:,l
		text,145,180,Nw:,l
		forecast,high,2,205,160,, C,r
		forecast,low,2,205,170,, C,r
		forecast,precipitation,2,205,180,, %,r

		imagebutton,5,198,wetter_button_detail.png,tr,7,4,0,3
		button,5,198,95,13,-1,6,var1=3
		forecasticon,3,5,215,,t
		forecast,date_dddd  dd.MM.,3,7,198,,,l
		text,40,213,Max:,l
		text,40,223,Min:,l
		text,40,233,Nw:,l
		forecast,high,3,100,213,, C,r
		forecast,low,3,100,223,, C,r
		forecast,precipitation,3,100,233,, %,r

		imagebutton,110,198,wetter_button_detail.png,tr,7,4,0,3
		button,110,198,95,13,-1,6,var1=4
		forecasticon,4,110,215,,t
		forecast,date_dddd  dd.MM.,4,112,198,,,l
		text,145,213,Max:,l
		text,145,223,Min:,l
		text,145,233,Nw:,l
		forecast,high,4,205,213,, C,r
		forecast,low,4,205,223,, C,r
		forecast,precipitation,4,205,233,, %,r
	else
		calcvar,var21,firstvalidforecastday

		if,var,var21,,<,6
			imagebutton,5,145,wetter_button_detail.png,tr,7,4,0,3
			button,5,145,95,13,-1,6,var1=%var21%
			forecasticon,%var21%,5,162,,t
			forecast,date_dddd  dd.MM.,%var21%,7,145,,,l	
			text,40,160,Max:,l
			text,40,170,Min:,l
			text,40,180,Nw:,l
			forecast,high,%var21%,100,160,, C,r
			forecast,low,%var21%,100,170,, C,r
			forecast,precipitation,%var21%,100,180,, %,r

			addvar,var21,1
		else
			image,5,162,none.png,t
		endif


		if,var,var21,,<,6
			imagebutton,110,145,wetter_button_detail.png,tr,7,4,0,3
			button,110,145,95,13,-1,6,var1=%var21%
			forecasticon,%var21%,110,162,,t
			forecast,date_dddd  dd.MM.,%var21%,112,145,,,l
			text,145,160,Max:,l
			text,145,170,Min:,l
			text,145,180,Nw:,l
			forecast,high,%var21%,205,160,, C,r
			forecast,low,%var21%,205,170,, C,r
			forecast,precipitation,%var21%,205,180,, %,r

			addvar,var21,1
		else
			image,110,162,none.png,t
		endif


		if,var,var21,,<,6
			imagebutton,5,198,wetter_button_detail.png,tr,7,4,0,3
			button,5,198,95,13,-1,6,var1=%var21%
			forecasticon,%var21%,5,215,,t
			forecast,date_dddd  dd.MM.,%var21%,7,198,,,l
			text,40,213,Max:,l
			text,40,223,Min:,l
			text,40,233,Nw:,l
			forecast,high,%var21%,100,213,, C,r
			forecast,low,%var21%,100,223,, C,r
			forecast,precipitation,%var21%,100,233,, %,r

			addvar,var21,1
		else
			image,5,215,none.png,t
		endif


		if,var,var21,,<,6
			imagebutton,110,198,wetter_button_detail.png,tr,7,4,0,3
			button,110,198,95,13,-1,6,var1=%var21%
			forecasticon,%var21%,110,215,,t
			forecast,date_dddd  dd.MM.,%var21%,112,198,,,l
			text,145,213,Max:,l
			text,145,223,Min:,l
			text,145,233,Nw:,l
			forecast,high,%var21%,205,213,, C,r
			forecast,low,%var21%,205,223,, C,r
			forecast,precipitation,%var21%,205,233,, %,r

			addvar,var21,1
		else
			image,110,215,none.png,t
		endif
	endif



	//===================================
	//WETTERAUSWAHL
	//===================================

	imagebutton,125,251,wetter_auswahl.png,tr,8,4,0,3
	text,140,251,Auswahl,l


	//============================================
	// AKTUALISIERUNGSBUTTON
	//============================================

	button,5,251,83,13,8,4,999
	button,5,251,83,13,7,4,999
	imagebutton,5,251,wetterbutton_aktualisieren.png,,-1,7,,3
	text,19,251,Aktualisieren,l

	if,refresh
		image,5,251,Aktualisierung_wetter.png,
		jumpregion,7,999
		jumpregion,8,999
	else
	endif


	//===================================
	//ORTSZEIT
	//===================================

	image,91,249,Wetter_ortszeit.png,
	time,106,251,7,4,c

endregion,3,0


////////////////////////////////////////////////////////////////////////
// REGION 7,0 - WETTERDETAILS 
////////////////////////////////////////////////////////////////////////

region,7,0,10

	cleararea,11,47,192,151

	clearregion,8

	deactivatebuttons,3
	deactivatebuttons,8

	activatebuttons,7

	load,city,%var9%

	image,10,45,wetterpopup.png


	//===================================
	//SCHLIESSENBUTTON
	//===================================

	imagebutton,180,51,popupschliessen.png,t,7,4,999,3


	//===================================
	//BERSCHRIFTEN
	//===================================

	changefont,Tahoma,13,b
	text,114,47,Vorhersage - ,r
	text,114,47,[name],l
	changefont,Tahoma,12,

	forecast,date_dddd dd. MMMM yyyy,%var1%,105,60,,,c


	//===================================
	//WETTERDETAILS
	//===================================

	forecasticon,%var1%,15,80,,t
	text,49,82,Im Tagesverlauf:,l
	forecast,text,%var1%,49,94,,,l

	text,35,115,Temperatur maximum:,l
	text,35,125,Temperatur minmum:,l
	text,35,135,Niederschlagsrisiko:,l

	color,font,255_0_0
	forecast,high,%var1%,175,115,, C,r
	color,font,0_0_255
	forecast,low,%var1%,175,125,, C,r
	color,font,0_0_0
	forecast,precipitation,%var1%,175,135,, %,r

	nightforecasticon,%var1%,15,155,,t
	text,49,157,Nachts:,l
	forecast,nighttext,%var1%,49,169,,,l

endregion,7,0


////////////////////////////////////////////////////////////////////////
// REGION 8,0 - WETTERAUSWAHL POPUP
////////////////////////////////////////////////////////////////////////

region,8,0,-1

	cleararea,86,157,124,92
	clearregion,7

	deactivatebuttons,3
	deactivatebuttons,7

	activatebuttons,8

	image,85,157,wetter_auswahl_popup.png

	changefont,Tahoma,12,b

	if,var,var10,,=,1
		options,weathericondir,Weather Icons\Stardock,png
		imagebutton,87,158,wetter_icon_wechsel_button.png,t,-1,6,var10=2,-1
		button,87,158,100,15,8,4,999,3
	else
		options,weathericondir,Weather Icons\Accu_new,gif
		imagebutton,87,158,wetter_icon_wechsel_button.png,t,-1,6,var10=1,-1
		button,87,158,100,15,8,4,999,3
	endif

	text,91,160,Icons wechseln,l

	text,91,174,Tierkreiszeichen,l
	imagebutton,87,171,wetter_auswahl_popup_button.png,tr,7,4,2,3
	button,87,171,100,15,8,4,999

	text,91,188,Mondphasen,l
	imagebutton,87,186,wetter_auswahl_popup_button.png,tr,7,4,1,3
	button,87,186,100,12,15,4,999

	imagebutton,191,178,scrollup.png,t,8,13,var13_-2
	imagebutton,191,231,scrolldown.png,t,8,13,var13_2

	if,var,var13,,<,1
		storevar,var13=1
	else
	endif


	if,var,var13,,>,%var29%
		storevar,var13=1
	else
	endif


	if,var,var13,,<,1
		storevar,var13=%var29%
	else
	endif

	text,193,159,%var29%,l
	text,193,203,%var13%,l

	load,city,%var13%
	image,91,204,small_arrow_right.png,t
	text,98,202,[name],l
	imagebutton,87,201,wetter_auswahl_popup_button.png,tr,3,4,0,3
	button,87,201,100,15,-1,6,var9=%var13%
	button,87,201,100,15,8,4,999

	
	if,var,var13,,<,%var29%
		addvar,var13,1

		load,city,%var13%
		image,91,218,small_arrow_right.png,t
		text,98,216,[name],l
		imagebutton,87,216,wetter_auswahl_popup_button.png,tr,3,4,0,3
		button,87,216,100,15,-1,6,var9=%var13%
		button,87,216,100,15,8,4,999

		addvar,var13,-1

	else
	endif
	
	color,font,255_0_0
	text,110,233,Abbrechen,l
	imagebutton,87,231,wetter_auswahl_popup_button_abbrechen.png,tr,8,4,999,3
	color,font,0_0_0

	changefont,Tahoma,12,

endregion,8,0


////////////////////////////////////////////////////////////////////////
// REGION 7,1 - MONDPHASEN 1
////////////////////////////////////////////////////////////////////////

region,7,1,-1

	cleararea,12,78,191,84

	deactivatebuttons,3
	deactivatebuttons,8

	activatebuttons,7

	clearregion,8

	image,10,78,Mondphasenpopup.png
	changefont,Tahoma,13,b
	text,105,80,Mondphasen,c
	changefont,Tahoma,12,

	imagebutton,180,83,popupschliessen.png,t,7,4,999,3
	button,180,83,15,15,-1,6,var7=1

	load,city,%var0%
              changefont,tahoma,10,b
	//=================================================
              time,19,101,-1,5,l,"dd.MM.",,%var7%
              calcvar,var14,moonphase,%var7%
              imagemeter,19,114,%var14%,phasen.png,tr,0,7
              moontime,%var0%,visible,%var7%,32,143,,, %,c
	//=================================================
	addvar,var7,1
              time,51,101,-1,5,l,"dd.MM.",,%var7%
              calcvar,var14,moonphase,%var7%
              imagemeter,51,114,%var14%,phasen.png,tr,0,7
              moontime,%var0%,visible,%var7%,64,143,,, %,c
	//=================================================
	addvar,var7,1
              time,83,101,-1,5,l,"dd.MM.",,%var7%
              calcvar,var14,moonphase,%var7%
              imagemeter,83,114,%var14%,phasen.png,tr,0,7
              moontime,%var0%,visible,%var7%,96,143,,, %,c
	//=================================================
	addvar,var7,1
              time,115,101,-1,5,l,"dd.MM.",,%var7%
              calcvar,var14,moonphase,%var7%
              imagemeter,115,114,%var14%,phasen.png,tr,0,7
              moontime,%var0%,visible,%var7%,128,143,,, %,c
	//=================================================
	addvar,var7,1
              time,147,101,-1,5,l,"dd.MM.",,%var7%
              calcvar,var14,moonphase,%var7%
              imagemeter,147,114,%var14%,phasen.png,tr,0,7
              moontime,%var0%,visible,%var7%,160,143,,, %,c
	//=================================================

              imagebutton,181,118,pfeilrechts.png,t,0,13,var7_1
	button,181,118,15,15,7,4,1

endregion,7,1


////////////////////////////////////////////////////////////////////////
// REGION 7,2 - TIERKREISZEICHEN 1/4
////////////////////////////////////////////////////////////////////////

region,7,2,10
             
	deactivatebuttons,3
	deactivatebuttons,8

	activatebuttons,7

	clearregion,8

	cleararea,12,78,191,84

	image,10,78,Mondphasenpopup.png

	changefont,Tahoma,13,b
	text,105,80,Tierkreiszeichen 1/4,c
	changefont,Tahoma,12,

	imagebutton,180,83,popupschliessen.png,t,7,4,999,3

	changefont,tahoma,11,

	
	text,52,109,ab 22.12.,c
	image,42,118,Tierkreis_Steinbock.png,c		
	text,52,137,Steinbock,c


	text,106,109,ab 21.01.,c
	image,96,118,Tierkreis_Wassermann.png,c		
	text,106,137,Wassermann,c


	text,162,109,ab 20.02.,c
	image,152,118,Tierkreis_Fische.png,c		
	text,162,137,Fische,c


	changefont,tahoma,12,

	imagebutton,16,120,pfeillinks.png,t,7,4,5,3
	imagebutton,183,120,pfeilrechts.png,t,7,4,3,3

endregion,7,2


////////////////////////////////////////////////////////////////////////
// REGION 7,3 - TIERKREISZEICHEN 2/4
////////////////////////////////////////////////////////////////////////
region,7,3,10
             
	deactivatebuttons,3
	deactivatebuttons,8

	activatebuttons,7

	clearregion,8

	cleararea,12,78,191,84

	image,10,78,Mondphasenpopup.png

	changefont,Tahoma,13,b
	text,105,80,Tierkreiszeichen 2/4,c
	changefont,Tahoma,12,

	imagebutton,180,83,popupschliessen.png,t,7,4,999,3

	changefont,tahoma,11,

	
	text,52,109,ab 21.03.,c
	image,42,118,Tierkreis_Widder.png,c		
	text,52,137,Widder,c


	text,106,109,ab 21.04.,c
	image,96,118,Tierkreis_Stier.png,c		
	text,106,137,Stier,c


	text,162,109,ab 21.05.,c
	image,152,118,Tierkreis_Zwillinge.png,c		
	text,162,137,Zwillinge,c


	changefont,tahoma,12,

	imagebutton,16,120,pfeillinks.png,t,7,4,2,3
	imagebutton,183,120,pfeilrechts.png,t,7,4,4,3

endregion,7,3


////////////////////////////////////////////////////////////////////////
// REGION 7,4 - TIERKREISZEICHEN 3/4
////////////////////////////////////////////////////////////////////////

region,7,4,10
             
	deactivatebuttons,3
	deactivatebuttons,8

	activatebuttons,7

	clearregion,8

	cleararea,12,78,191,84

	image,10,78,Mondphasenpopup.png

	changefont,Tahoma,13,b
	text,105,80,Tierkreiszeichen 3/4,c
	changefont,Tahoma,12,

	imagebutton,180,83,popupschliessen.png,t,7,4,999,3

	changefont,tahoma,11,

	
	text,52,109,ab 22.06.,c
	image,42,118,Tierkreis_krebs.png,c		
	text,52,137,Krebs,c


	text,106,109,ab 23.07.,c
	image,96,118,Tierkreis_lwe.png,c		
	text,106,137,Lwe,c


	text,162,109,ab 24.08.,c
	image,152,118,Tierkreis_jungfrau.png,c		
	text,162,137,Jungfrau,c


	changefont,tahoma,12,

	imagebutton,16,120,pfeillinks.png,t,7,4,3,3
	imagebutton,183,120,pfeilrechts.png,t,7,4,5,3

endregion,7,4


////////////////////////////////////////////////////////////////////////
// REGION 7,5 - TIERKREISZEICHEN 4/4
////////////////////////////////////////////////////////////////////////

region,7,5,10
             
	deactivatebuttons,3
	deactivatebuttons,8
	activatebuttons,7

	clearregion,8

	cleararea,12,78,191,84

	image,10,78,Mondphasenpopup.png

	changefont,Tahoma,13,b
	text,105,80,Tierkreiszeichen 4/4,c
	changefont,Tahoma,12,

	imagebutton,180,83,popupschliessen.png,t,7,4,999,3

	changefont,tahoma,11,

	
	text,52,109,ab 24.09.,c
	image,42,118,Tierkreis_waage.png,c		
	text,52,137,Waage,c


	text,106,109,ab 24.10.,c
	image,96,118,Tierkreis_skorpion.png,c		
	text,106,137,Skorpion,c


	text,162,109,ab 23.11.,c
	image,152,118,Tierkreis_Schtze.png,c		
	text,162,137,Schtze,c


	changefont,tahoma,12,

	imagebutton,16,120,pfeillinks.png,t,7,4,4,3
	imagebutton,183,120,pfeilrechts.png,t,7,4,2,3

endregion,7,5


////////////////////////////////////////////////////////////////////////
// WETTERPAGE ENDE
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 9,0 KALENDER 
////////////////////////////////////////////////////////////////////////

region,9,0,30
	defregion,9,0,0,210,267,1

	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,3
	deactivatebuttons,5
	deactivatebuttons,4
	deactivatebuttons,6
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,10
	deactivatebuttons,11
	deactivatebuttons,12
	deactivatebuttons,15
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,9


	//===========================================
	// BERSCHRIFT
	//===========================================

	image,4,3,headline_breit_gelb_verlauf.png

	changefont,tahoma,12,b
	text,105,3,TERMINE,c
	changefont,tahoma,12


	//===========================================
	// KALENDER AKTUELLER MONAT
	//===========================================

	image,5,155,Kalender_header_poom.png
	image,5,170,kalender_header_main.png
	image,71,170,kalender_header_senkrecht_main_grau.png
	image,84,170,kalender_header_senkrecht_main_rot.png

	calendarheader,6,170,13

	calendar,0,0,6,183,13,10,l

	button,6,183,91,60,-1,5,0-highlight,9
	button,6,183,91,60,-1,23,0,9
	button,6,183,91,60,-1,23,1,9
	button,6,183,91,60,-1,23,2,9
	button,6,183,91,60,-1,23,3,9
	button,6,183,91,60,-1,11,0,9

	text,52,155,[caldate],0,c,"MMMM, yy"

	imagebutton,3,250,kalenderpfeil_links.png,t,-1,9,0,9
	button,3,250,70,12,-1,9,1,9


	//===========================================
	// KALENDER NCHSTER MONAT
	//===========================================

	image,115,155,kalender_header_poom.png
	image,115,170,kalender_header_main.png
	image,181,170,kalender_header_senkrecht_main_grau.png
	image,194,170,kalender_header_senkrecht_main_rot.png

	calendarheader,116,170,13

	calendar,1,1,116,183,13,10,l

	button,116,183,91,60,-1,5,1-highlight,9
	button,116,183,91,60,-1,23,0,9
	button,116,183,91,60,-1,23,1,9
	button,116,183,91,60,-1,23,2,9
	button,116,183,91,60,-1,23,3,9
	button,116,183,91,60,-1,11,1,9

	text,160,155,[caldate],1,c,"MMMM, yy"

	imagebutton,139,250,kalenderpfeil_rechts.png,t,-1,8,1,9
	button,139,250,70,12,-1,8,0,9


	//===========================================
	// RESET TASTE
	//===========================================

	imagebutton,75,250,kalender_reset.png,t,-1,10,0,9
	button,75,255,62,12,-1,10,1,9
	button,75,255,62,12,-1,22,0,9
	button,75,255,62,12,-1,23,0,9

	time,106,250,-1,5,c,dd.MM. ,HH:mm,


	//===========================================
	// FILTER
	//===========================================

	options,calendarfilter,0
	options,calendarfilter,1
	options,calendarfilter,2
	options,calendarfilter,3

	options,dateformat,1,15,15,%changefont,tahoma,11,%%line,202,10,-1_6_-1%%bold%%date,l%%regularfont%
	options,today-text,'Heute', dd. MMMM  yyyy
	options,tomorrow-text,'Morgen', dd. MMMM  yyyy

	options,apptformat,0,11,11,%iconstart,52%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%image,0,2,small_arrow_right.png,t%%tab,7%%starttime,HH:mmt%%tab,61%%//bold%%subject%%regularfont%

	options,apptallday,0,11,11,%iconstart,67%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%textcolor,0_128_0%%image,0,2,small_arrow_right.png,t%%tab,7%Ganztags%tab,76%%//bold%%subject%%regularfont%%textcolor,0_0_0%

	options,blanktext,-1,11,11,

	outlook,4,20,203,133,1,0,228,,,9

	changefont,tahoma,12,

endregion,9,0


////////////////////////////////////////////////////////////////////////
// KALENDER  ENDE 
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 10,0 AUFGABEN
////////////////////////////////////////////////////////////////////////

region,10,0,1
	defregion,10,0,0,210,267,1

	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,3
	deactivatebuttons,5
	deactivatebuttons,4
	deactivatebuttons,6
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,11
	deactivatebuttons,12
	deactivatebuttons,15
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,10


	//===========================================
	// BERSCHRIFT
	//===========================================

	image,4,3,headline_breit_gelb_verlauf.png

	changefont,tahoma,12,b
	text,105,3,Aufgaben,c
	changefont,tahoma,12


	//===========================================
	// KALENDER AKTUELLER MONAT
	//===========================================

	image,5,155,Kalender_header_poom.png
	image,5,170,kalender_header_main.png
	image,71,170,kalender_header_senkrecht_main_grau.png
	image,84,170,kalender_header_senkrecht_main_rot.png

	calendarheader,6,170,13

	calendar,0,0,6,183,13,10,l

	button,6,183,91,60,-1,5,0-highlight,10
	button,6,183,91,60,-1,23,0,10
	button,6,183,91,60,-1,23,1,10
	button,6,183,91,60,-1,23,2,10
	button,6,183,91,60,-1,23,3,10
	button,6,183,91,60,-1,11,0,10


	text,52,155,[caldate],0,c,"MMMM, yy"

	imagebutton,3,250,kalenderpfeil_links.png,t,-1,9,0,10
	button,3,250,70,12,-1,9,1,10


	//===========================================
	// KALENDER NCHSTER MONAT
	//===========================================

	image,115,155,kalender_header_poom.png
	image,115,170,kalender_header_main.png
	image,181,170,kalender_header_senkrecht_main_grau.png
	image,194,170,kalender_header_senkrecht_main_rot.png

	calendarheader,116,170,13

	calendar,1,1,116,183,13,10,l

	button,116,183,91,60,-1,5,1-highlight,10
	button,116,183,91,60,-1,23,0,10
	button,116,183,91,60,-1,23,1,10
	button,116,183,91,60,-1,23,2,10
	button,116,183,91,60,-1,23,3,10
	button,116,183,91,60,-1,11,1,10

	text,160,155,[caldate],1,c,"MMMM, yy"

	imagebutton,139,250,kalenderpfeil_rechts.png,t,-1,8,1,10
	button,139,250,70,12,-1,8,0,10


	//===========================================
	// RESET TASTE
	//===========================================

	imagebutton,75,250,kalender_reset.png,t,10,10,0,10
	button,75,255,62,12,-1,10,1,10
	button,75,255,62,12,-1,22,0,10
	button,75,255,62,12,-1,23,0,10

	time,106,250,-1,5,c,dd.MM. ,HH:mm,


	//===========================================
	// FILTER
	//===========================================

	options,taskfilter,0
	options,taskfilter,1
	options,taskfilter,2
	options,taskfilter,3

	options,dateformat,1,15,15,%changefont,tahoma,11,%%line,202,10,-1_6_-1%%bold%%date,l%%regularfont%
	options,today-text,'Heute', dd. MMMM  yyyy
	options,tomorrow-text,'Morgen', dd. MMMM  yyyy

	options,taskformat,0,11,13,%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,low priority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%checkbox,0,1,12,12,dot.png,dot1.png,t%%tab,10%[%enddate,dd/MM%]%tab,70%%subject%%changefont,tahoma,11,%

	options,taskoverdue,0,11,13,%textcolor,255_0_0%%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,low priority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,%%checkbox,0,1,12,12,dot.png,dot1.png,t%%tab,10%[%enddate,dd/MM%]%tab,70%%subject%%changefont,tahoma,11,%%resettextcolor%

	options,taskcomplete,0,11,13,%iconstart,61%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,t%%priorityicon,-10,1,low priority.png,normal priority.png,high priority.png,t%%recurrenceicon,-10,1,recurrence.png,t%%remindericon,-10,1,reminder.png,t%%iconstart,0%%categoryicons,10,1%%changefont,tahoma,11,s%%checkbox,0,1,12,12,dot.png,dot1.png,tr%%tab,10%[%enddate,dd/MM%]%tab,70%%subject%%changefont,tahoma,11,%

	options,blanktext,-1,11,11,

	outlook,4,20,203,133,2,0,228,,,10

endregion,10,0


////////////////////////////////////////////////////////////////////////
// AUFGABEN  ENDE 
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 11 WELTZEITEN
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 11,0 WELTZEITEN DIGITAL
////////////////////////////////////////////////////////////////////////

region,11,0,30
	defregion,11,0,0,211,267
	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,3
	deactivatebuttons,4
	deactivatebuttons,5
	deactivatebuttons,6
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,10
	deactivatebuttons,12
	deactivatebuttons,15
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,11

	image,4,3,headline_breit_gelb_verlauf.png

	changefont,tahoma,12,b
	text,105,3,Weltzeiten,c
	changefont,tahoma,12


	//CITY  1====================================

	image,17,24,Digitaluhr.png

	changefont,tahoma,18
	time,53,36,1,4,c
	changefont,tahoma,12

	image,7,75,Kalender_header_poom.png
	text,7,75,[name],l
	time,98,75,1,5,r,dd.MM.yy,,


	//CITY  2====================================

	image,121,24,Digitaluhr.png

	changefont,tahoma,18
	time,157,36,2,4,c
	changefont,tahoma,12

	image,111,75,Kalender_header_poom.png
	text,111,75,[name],l
	time,202,75,2,5,r,dd.MM.yy,,


	//CITY  3====================================

	image,17,99,Digitaluhr.png

	changefont,tahoma,18
	time,53,112,3,4,c
	changefont,tahoma,12

	image,7,151,Kalender_header_poom.png
	text,7,151,[name],l
	time,98,151,3,5,r,dd.MM.yy,,


	//CITY  4====================================

	image,121,99,Digitaluhr.png

	changefont,tahoma,18
	time,157,112,4,4,c
	changefont,tahoma,12

	image,111,151,Kalender_header_poom.png
	text,111,151,[name],l
	time,202,151,4,5,r,dd.MM.yy,,


	//CITY  5====================================

	image,17,176,Digitaluhr.png

	changefont,tahoma,18
	time,53,188,5,4,c
	changefont,tahoma,12

	image,7,227,Kalender_header_poom.png
	text,7,227,[name],l
	time,98,227,5,5,r,dd.MM.yy,,


	//CITY  6====================================

	image,121,176,Digitaluhr.png

	changefont,tahoma,18
	time,157,188,6,4,c
	changefont,tahoma,12

	image,111,227,Kalender_header_poom.png
	text,111,227,[name],l
	time,202,227,6,5,r,dd.MM.yy,,


	// STATUSZEILE==============================

	image,5,251,ortszeit.png
	image,91,249,wetter_ortszeit.png,

	text,7,251,Ortszeit:,l
	time,48,251,-1,5,l,dd.MM.yy,,
	time,106,251,-1,4,c

	imagebutton,91,249,Ortszeitbutton.png,tr,-1,0,%apps-6-7-highlight

	imagebutton,125,251,zeitumschaltung_button.png,,11,4,1,1
	text,132,251,Analoganzeige,l

endregion,11,0


////////////////////////////////////////////////////////////////////////
// REGION 11,1 WELTZEITEN ANALOG
////////////////////////////////////////////////////////////////////////

region,11,1,30
	defregion,11,0,0,211,267

	cleararea,0,0,211,267

	image,4,3,headline_breit_gelb_verlauf.png

	changefont,tahoma,12,b
	text,105,3,Weltzeiten,c
	changefont,tahoma,12

	//CITY  1====================================

	image,28,20,analoguhr.png

	time,54,44,1,analog,Stundenzeiger.png,minutenzeiger.png

	image,7,75,Kalender_header_poom.png
	text,7,75,[name],l
	time,98,75,1,5,r,dd.MM.yy,,


	//CITY  2====================================

	image,132,20,analoguhr.png

	time,158,44,2,analog,Stundenzeiger.png,minutenzeiger.png

	image,111,75,Kalender_header_poom.png
	text,111,75,[name],l
	time,202,75,2,5,r,dd.MM.yy,,


	//CITY  3====================================

	image,28,96,analoguhr.png

	time,54,120,3,analog,Stundenzeiger.png,minutenzeiger.png

	image,7,151,Kalender_header_poom.png
	text,7,151,[name],l
	time,98,151,3,5,r,dd.MM.yy,,


	//CITY  4====================================

	image,132,96,analoguhr.png

	time,158,120,4,analog,Stundenzeiger.png,minutenzeiger.png

	image,111,151,Kalender_header_poom.png
	text,111,151,[name],l
	time,202,151,4,5,r,dd.MM.yy,,


	//CITY  5====================================

	image,28,172,analoguhr.png

	time,54,196,5,analog,Stundenzeiger.png,minutenzeiger.png

	image,7,227,Kalender_header_poom.png
	text,7,227,[name],l
	time,98,227,5,5,r,dd.MM.yy,,


	//CITY  6====================================

	image,132,172,analoguhr.png

	time,158,196,6,analog,Stundenzeiger.png,minutenzeiger.png

	image,111,227,Kalender_header_poom.png
	text,111,227,[name],l
	time,202,227,6,5,r,dd.MM.yy,,


	// STATUSZEILE==============================

	image,5,251,ortszeit.png
	image,91,249,wetter_ortszeit.png,

	text,7,251,Ortszeit:,l
	time,48,251,-1,5,l,dd.MM.yy,,
	time,106,251,-1,4,c

	imagebutton,91,249,Ortszeitbutton.png,tr,-1,0,%apps-6-7-highlight

	imagebutton,125,251,zeitumschaltung_button.png,,11,4,0,1
	text,135,251,Digitalanzeige,l

endregion,11,1


////////////////////////////////////////////////////////////////////////
// WELTZEITEN  ENDE 
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 12 RSS  
////////////////////////////////////////////////////////////////////////

region,12,0,60
	defregion,12,0,0,211,267,

	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,3
	deactivatebuttons,4
	deactivatebuttons,5
	deactivatebuttons,6
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,10
	deactivatebuttons,11
	deactivatebuttons,15
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,12
	activatebuttons,13

	updateregions,13,14,


	////////////////////////////////////////////////////////////////////////
	// REGION 13,0 RSS  BERSCHRIFTEN
	////////////////////////////////////////////////////////////////////////

	region,13,0,-1

	// BUTTONS UND SCROLLEISTEN=============================

		if,online
			imagebutton,79,248,linkonline.png,t,12,31,
		else
			imagebutton,79,248,linkoffline.png,t,12,30,
		endif

		initvar,var2,1

		imagebutton,100,249,refresh.png,t,-1,7,,12

		imagebutton,3,250,kalenderpfeil_links.png,t,12,13,var2_-1
		button,3,250,70,12,-1,6,var5=1
		button,3,250,70,12,-1,6,var6=207

		imagebutton,139,250,kalenderpfeil_rechts.png,t,12,13,var2_1
		button,139,250,70,12,-1,6,var5=1
		button,139,250,70,12,-1,6,var6=207

		image,197,207,scrollbar.png,t
		image,197,209,scrollbar.png,t

		imagebutton,195,192,scrollup.png,t,12,13,var5_-4
		button,195,192,11,12,-1,13,var6_-5	

		imagebutton,195,236,scrolldown.png,t,12,13,var5_4
		button,195,236,11,12,-1,13,var6_5

		if,var,var5,,>,19
			storevar,var5=17
			storevar,var6=227
		else
		endif
	

		if,var,var5,,<,1
			storevar,var5=1
			storevar,var6=207
		else
		endif
			
		image,197,%var6%,scroll1.png,t


		// BERSCHRIFTEN=============================

		if,var,var2,,>,%var28%
			storevar,var2=1
		else
		endif
		
		if,var,var2,,<,1
			storevar,var2=%var28%
		else
		endif
	
		load,rss,%var2%

		image,4,177,headline_breit_blau_verlauf.png

		text,108,177,%var2%,l
		text,113,177, / %var28%,l

		changefont,tahoma,12,b

		text,9,177,[name],l

		changefont,tahoma,12


		//========================================
		// AKTUALISIERUNGSZEIT
		//========================================

		calcvar,var20,weatherupdatetimediff
		if,var,var20,,<,240
			text,130,177,News von,l
			text,178,177,[updatetime],l,HH:mm
		else

			if,var,var20,240,><,600
				calcvar,var20,/,%var20%,60
			
				color,font,255_0_0
				text,142,177,Akt. vor ,l
				text,182,177,%var20%,l,
				text,190,177,Std,l
				color,font,0_0_0
			else


				if,var,var20,600,><,1440
					calcvar,var20,/,%var20%,60

					color,font,255_0_0
					text,137,177,Akt. vor ,l
					text,177,177,%var20%,l,
					text,190,177,Std,l
					color,font,0_0_0
				else


					if,var,var20,1440,><,14400
						calcvar,var20,/,%var20%,1440

						color,font,255_0_0
						text,142,177,Akt. vor ,l
						text,182,177,%var20%,l
						text,190,177,Tg.,l
						color,font,0_0_0
					else


						if,var,var20,,>,14401
							calcvar,var20,/,%var20%,1440

							color,font,255_0_0
							text,137,177,Akt. vor ,l
							text,177,177,%var20%,l
							text,190,177,Tg.,l
							color,font,0_0_0
						endif
					endif
				endif
			endif
		endif

		RSS,title,13,194,180,12,%var5%,,,

		button,13,194,180,12,14,4,0-highlight,12
		button,13,194,180,12,-1,6,var4=%var5%


		if,online
			image,5,197,Markergrn.png,t
		else
	
			if,pagecached,%var5%
				image,5,197,Markergrn.png,t
			else
				image,5,197,Markerrot.png,t
			endif
		endif

		addvar,var5,1

		RSS,title,13,206,180,12,%var5%,,,
		button,13,206,180,12,14,4,0-highlight,12
		button,13,206,180,12,-1,6,var4=%var5%

		if,online
			image,5,209,Markergrn.png,t
		else

			if,pagecached,%var5%
				image,5,209,Markergrn.png,t
			else
				image,5,209,Markerrot.png,t
			endif
		endif

		addvar,var5,1

		RSS,title,13,218,180,12,%var5%,,,
		button,13,218,180,12,14,4,0-highlight,12
		button,13,218,180,12,-1,6,var4=%var5%

		if,online
			image,5,221,Markergrn.png,t
		else

			if,pagecached,%var5%
				image,5,221,Markergrn.png,t
			else
				image,5,221,Markerrot.png,t
			endif
		endif

		addvar,var5,1

		RSS,title,13,230,180,12,%var5%,,,
		button,13,230,180,12,14,4,0-highlight,12
		button,13,230,180,12,-1,6,var4=%var5%

		if,online
			image,5,233,Markergrn.png,t
		else

			if,pagecached,%var5%
				image,5,233,Markergrn.png,t
			else
				image,5,233,Markerrot.png,t
			endif
		endif

		if,online
			imagebutton,79,248,linkonline.png,t,12,31,
			imagebutton,118,248,News_verbunden.png,t,-1,12,%var4%
		else
			imagebutton,79,248,linkoffline.png,t,12,30,


			if,pagecached,%var4%
				imagebutton,118,248,News_verbunden.png,t,-1,12,%var4%
			else
   				imagebutton,118,248,News_getrennt.png,t,-1,12,%var4%
			endif
		endif


		addvar,var5,-3

		if,refresh
			image,4,177,Rss_Aktualisierung.png,t
		else
		endif

	endregion,13,0


	////////////////////////////////////////////////////////////////////////
	// RSS  BERSCHRIFTEN ENDE
	////////////////////////////////////////////////////////////////////////

	////////////////////////////////////////////////////////////////////////
	// REGION 14,0 RSS  TEXT
	////////////////////////////////////////////////////////////////////////

	region,14,0,-1

		load,rss,%var2%

		image,4,3,headline_breit_gelb_verlauf.png

		changefont,tahoma,12,b
		RSS,title,5,3,200,12,%var4%,,,c
		changefont,tahoma,12,	
		
		RSS,description,5,18,205,158,%var4%,,,

	endregion,14,1


	////////////////////////////////////////////////////////////////////////
	// RSS  TEXT  ENDE
	////////////////////////////////////////////////////////////////////////

endregion,12,0


////////////////////////////////////////////////////////////////////////
// RSS  BEREICH ENDE
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 15  VERKNPFUNGEN
////////////////////////////////////////////////////////////////////////

// REGION 15,0 VERKNPFUNGEN KLEIN HAUPTSEITE//////////////////////////////////////////////

region,15,0,-1
	defregion,15,0,0,211,267,

	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,3
	deactivatebuttons,4
	deactivatebuttons,5
	deactivatebuttons,6
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,10
	deactivatebuttons,11
	deactivatebuttons,12
	deactivatebuttons,13
	deactivatebuttons,16
	deactivatebuttons,17
	deactivatebuttons,18

	activatebuttons,15

	image,4,3,headline_breit_gelb_verlauf.png

	changefont,tahoma,12,b
	text,105,3,Verknpfungen,c
	changefont,tahoma,12


	// ZEILE 1 APPS 2===============================

	image,4,20,headline_breit_blau_verlauf.png

	text,9,20,%apps-2%,l
	text,200,20,%apps-2%,r

	imagebutton,4,20,iconzeilegross.png,,15,4,1,1


	// 1 Reihe======

	imagebutton,4,40,icon_button2.png,t,-1,0,%apps-2-1
	shortcut,4,40,apps-2-1,s

	imagebutton,27,40,icon_button2.png,t,-1,0,%apps-2-2
	shortcut,27,40,apps-2-2,s

	imagebutton,50,40,icon_button2.png,t,-1,0,%apps-2-3
	shortcut,50,40,apps-2-3,s

	imagebutton,73,40,icon_button2.png,t,-1,0,%apps-2-4
	shortcut,73,40,apps-2-4,s

	imagebutton,96,40,icon_button2.png,t,-1,0,%apps-2-5
	shortcut,96,40,apps-2-5,s

	imagebutton,119,40,icon_button2.png,t,-1,0,%apps-2-6
	shortcut,119,40,apps-2-6,s

	imagebutton,142,40,icon_button2.png,t,-1,0,%apps-2-7
	shortcut,142,40,apps-2-7,s

	imagebutton,165,40,icon_button2.png,t,-1,0,%apps-2-8
	shortcut,165,40,apps-2-8,s

	imagebutton,188,40,icon_button2.png,t,-1,0,%apps-2-9
	shortcut,188,40,apps-2-9,s


	// 2 REIHE======

	imagebutton,4,60,icon_button2.png,t,-1,0,%apps-2-10
	shortcut,4,60,apps-2-10,s

	imagebutton,27,60,icon_button2.png,t,-1,0,%apps-2-11
	shortcut,27,60,apps-2-11,s

	imagebutton,50,60,icon_button2.png,t,-1,0,%apps-2-12
	shortcut,50,60,apps-2-12,s

	imagebutton,73,60,icon_button2.png,t,-1,0,%apps-2-13
	shortcut,73,60,apps-2-13,s

	imagebutton,96,60,icon_button2.png,t,-1,0,%apps-2-14
	shortcut,96,60,apps-2-14,s

	imagebutton,119,60,icon_button2.png,t,-1,0,%apps-2-15
	shortcut,119,60,apps-2-15,s

	imagebutton,142,60,icon_button2.png,t,-1,0,%apps-2-16
	shortcut,142,60,apps-2-16,s

	imagebutton,165,60,icon_button2.png,t,-1,0,%apps-2-17
	shortcut,165,60,apps-2-17,s

	imagebutton,188,60,icon_button2.png,t,-1,0,%apps-2-18
	shortcut,188,60,apps-2-18,s


	// 3 REIHE======

	imagebutton,4,80,icon_button2.png,t,-1,0,%apps-2-19
	shortcut,4,80,apps-2-19,s

	imagebutton,27,80,icon_button2.png,t,-1,0,%apps-2-20
	shortcut,27,80,apps-2-20,s

	imagebutton,50,80,icon_button2.png,t,-1,0,%apps-2-21
	shortcut,55,80,apps-2-21,s

	imagebutton,73,80,icon_button2.png,t,-1,0,%apps-2-22
	shortcut,73,80,apps-2-22,s

	imagebutton,96,80,icon_button2.png,t,-1,0,%apps-2-23
	shortcut,96,80,apps-2-23,s

	imagebutton,119,80,icon_button2.png,t,-1,0,%apps-2-24
	shortcut,119,80,apps-2-24,s

	imagebutton,142,80,icon_button2.png,t,-1,0,%apps-2-25
	shortcut,142,80,apps-2-25,s

	imagebutton,165,80,icon_button2.png,t,-1,0,%apps-2-26
	shortcut,165,80,apps-2-26,s

	imagebutton,188,80,icon_button2.png,t,-1,0,%apps-2-27
	shortcut,188,80,apps-2-27,s


	// 2 ZEILE APPS 3================================

	image,4,100,headline_breit_blau_verlauf.png

	text,9,100,%apps-3%,l
	text,200,100,%apps-3%,r

	imagebutton,4,100,iconzeilegross.png,,15,4,2,1


	// 1 REIHE======

	imagebutton,4,120,icon_button2.png,t,-1,0,%apps-3-1
	shortcut,4,120,apps-3-1,s

	imagebutton,27,120,icon_button2.png,t,-1,0,%apps-3-2
	shortcut,27,120,apps-3-2,s

	imagebutton,50,120,icon_button2.png,t,-1,0,%apps-3-3
	shortcut,50,120,apps-3-3,s

	imagebutton,73,120,icon_button2.png,t,-1,0,%apps-3-4
	shortcut,73,120,apps-3-4,s

	imagebutton,96,120,icon_button2.png,t,-1,0,%apps-3-5
	shortcut,96,120,apps-3-5,s

	imagebutton,119,120,icon_button2.png,t,-1,0,%apps-3-6
	shortcut,119,120,apps-3-6,s

	imagebutton,142,120,icon_button2.png,t,-1,0,%apps-3-7
	shortcut,142,120,apps-3-7,s

	imagebutton,165,120,icon_button2.png,t,-1,0,%apps-3-8
	shortcut,165,120,apps-3-8,s

	imagebutton,188,120,icon_button2.png,t,-1,0,%apps-3-9
	shortcut,188,120,apps-3-9,s


	// 2 REIHE======

	imagebutton,4,140,icon_button2.png,t,-1,0,%apps-3-10
	shortcut,4,140,apps-3-10,s

	imagebutton,27,140,icon_button2.png,t,-1,0,%apps-3-11
	shortcut,27,140,apps-3-11,s

	imagebutton,50,140,icon_button2.png,t,-1,0,%apps-3-12
	shortcut,50,140,apps-3-12,s

	imagebutton,73,140,icon_button2.png,t,-1,0,%apps-3-13
	shortcut,73,140,apps-3-13,s

	imagebutton,96,140,icon_button2.png,t,-1,0,%apps-3-14
	shortcut,96,140,apps-3-14,s

	imagebutton,119,140,icon_button2.png,t,-1,0,%apps-3-15
	shortcut,119,140,apps-3-15,s

	imagebutton,142,140,icon_button2.png,t,-1,0,%apps-3-16
	shortcut,142,140,apps-3-16,s

	imagebutton,165,140,icon_button2.png,t,-1,0,%apps-3-17
	shortcut,165,140,apps-3-17,s

	imagebutton,188,140,icon_button2.png,t,-1,0,%apps-3-18
	shortcut,188,140,apps-3-18,s


	// 3 ZEILE  APPS 4================================

	image,4,160,headline_breit_blau_verlauf.png

	text,9,160,%apps-4%,l
	text,200,160,%apps-4%,r

	imagebutton,4,160,iconzeilegross.png,,15,4,3,1

	// 1 REIHE======

	imagebutton,4,180,icon_button2.png,t,-1,0,%apps-4-1
	shortcut,4,180,apps-4-1,s

	imagebutton,27,180,icon_button2.png,t,-1,0,%apps-4-2
	shortcut,27,180,apps-4-2,s

	imagebutton,50,180,icon_button2.png,t,-1,0,%apps-4-3
	shortcut,50,180,apps-4-3,s

	imagebutton,73,180,icon_button2.png,t,-1,0,%apps-4-4
	shortcut,73,180,apps-4-4,s

	imagebutton,96,180,icon_button2.png,t,-1,0,%apps-4-5
	shortcut,96,180,apps-4-5,s

	imagebutton,119,180,icon_button2.png,t,-1,0,%apps-4-6
	shortcut,119,180,apps-4-6,s

	imagebutton,142,180,icon_button2.png,t,-1,0,%apps-4-7
	shortcut,142,180,apps-4-7,s

	imagebutton,165,180,icon_button2.png,t,-1,0,%apps-4-8
	shortcut,165,180,apps-4-8,s

	imagebutton,188,180,icon_button2.png,t,-1,0,%apps-4-9
	shortcut,188,180,apps-4-9,s


	// 2 REIHE======

	imagebutton,4,200,icon_button2.png,t,-1,0,%apps-4-10
	shortcut,4,200,apps-4-10,s

	imagebutton,27,200,icon_button2.png,t,-1,0,%apps-4-11
	shortcut,27,200,apps-4-11,s

	imagebutton,50,200,icon_button2.png,t,-1,0,%apps-4-12
	shortcut,50,200,apps-4-12,s

	imagebutton,73,200,icon_button2.png,t,-1,0,%apps-4-13
	shortcut,73,200,apps-4-13,s

	imagebutton,96,200,icon_button2.png,t,-1,0,%apps-4-14
	shortcut,96,200,apps-4-14,s

	imagebutton,119,200,icon_button2.png,t,-1,0,%apps-4-15
	shortcut,119,200,apps-4-15,s

	imagebutton,142,200,icon_button2.png,t,-1,0,%apps-4-16
	shortcut,142,200,apps-4-16,s

	imagebutton,165,200,icon_button2.png,t,-1,0,%apps-4-17
	shortcut,165,200,apps-4-17,s

	imagebutton,188,200,icon_button2.png,t,-1,0,%apps-4-18
	shortcut,188,200,apps-4-18,s


	// 4 ZEILE  APPS 5================================

	image,4,220,headline_breit_blau_verlauf.png

	text,9,220,%apps-5%,l
	text,200,220,%apps-5%,r

	imagebutton,4,220,iconzeilegross.png,,15,4,4,1


	// 1 REIHE======

	imagebutton,4,240,icon_button2.png,t,-1,0,%apps-5-1
	shortcut,4,240,apps-5-1,s

	imagebutton,27,240,icon_button2.png,t,-1,0,%apps-5-2
	shortcut,27,240,apps-5-2,s

	imagebutton,50,240,icon_button2.png,t,-1,0,%apps-5-3
	shortcut,50,240,apps-5-3,s

	imagebutton,73,240,icon_button2.png,t,-1,0,%apps-5-4
	shortcut,73,240,apps-5-4,s

	imagebutton,96,240,icon_button2.png,t,-1,0,%apps-5-5
	shortcut,96,240,apps-5-5,s

	imagebutton,119,240,icon_button2.png,t,-1,0,%apps-5-6
	shortcut,119,240,apps-5-6,s

	imagebutton,142,240,icon_button2.png,t,-1,0,%apps-5-7
	shortcut,142,240,apps-5-7,s

	imagebutton,165,240,icon_button2.png,t,-1,0,%apps-5-8
	shortcut,165,240,apps-5-8,s

	imagebutton,188,240,icon_button2.png,t,-1,0,%apps-5-9
	shortcut,188,240,apps-5-9,s

endregion,15,0


// REGION 15,1 VERKNPFUNGEN GROSS APPS 2//////////////////////////////////////////////

region,15,1,-1

	defregion,15,0,0,211,267

	cleararea,0,0,211,267

	image,4,3,headline_breit_blau_verlauf.png

	text,9,3,%apps-2%,l
	text,200,3,%apps-2%,r

	imagebutton,4,3,iconzeileklein.png,,15,4,0,1


	// 1 ZEILE==========================
	shortcut,6,20,apps-2-1,l
	button,6,20,32,32,-1,0,%apps-2-1-highlight

	shortcut,48,20,apps-2-2,l
	button,48,20,32,32,-1,0,%apps-2-2-highlight

	shortcut,90,20,apps-2-3,l
	button,90,20,32,32,-1,0,%apps-2-3-highlight

	shortcut,132,20,apps-2-4,l
	button,132,20,32,32,-1,0,%apps-2-4-highlight

	shortcut,174,20,apps-2-5,l
	button,174,20,32,32,-1,0,%apps-2-5-highlight


	// 2 ZEILE===========================

	shortcut,27,61,apps-2-6,l
	button,27,61,32,32,-1,0,%apps-2-6-highlight

	shortcut,69,61,apps-2-7,l
	button,69,61,32,32,-1,0,%apps-2-7-highlight

	shortcut,111,61,apps-2-8,l
	button,111,61,32,32,-1,0,%apps-2-8-highlight

	shortcut,153,61,apps-2-9,l
	button,153,61,32,32,-1,0,%apps-2-9-highlight


	// 3 ZEILE===========================

	shortcut,6,102,apps-2-10,l
	button,6,102,32,32,-1,0,%apps-2-10-highlight

	shortcut,48,102,apps-2-11,l
	button,48,102,32,32,-1,0,%apps-2-11-highlight

	shortcut,90,102,apps-2-12,l
	button,90,102,32,32,-1,0,%apps-2-12-highlight

	shortcut,132,102,apps-2-13,l
	button,132,102,32,32,-1,0,%apps-2-13-highlight

	shortcut,174,102,apps-2-14,l
	button,174,102,32,32,-1,0,%apps-2-14-highlight


	// 4 ZEILE===========================

	shortcut,27,143,apps-2-15,l
	button,27,143,32,32,-1,0,%apps-2-15-highlight

	shortcut,69,143,apps-2-16,l
	button,69,143,32,32,-1,0,%apps-2-16-highlight

	shortcut,111,143,apps-2-17,l
	button,111,143,32,32,-1,0,%apps-2-17-highlight

	shortcut,153,143,apps-2-18,l
	button,153,143,32,32,-1,0,%apps-2-18-highlight


	// 5 ZEILE===========================

	shortcut,6,184,apps-2-19,l
	button,6,184,32,32,-1,0,%apps-2-19-highlight

	shortcut,48,184,apps-2-20,l
	button,48,184,32,32,-1,0,%apps-2-20-highlight

	shortcut,90,184,apps-2-21,l
	button,90,184,32,32,-1,0,%apps-2-21-highlight

	shortcut,132,184,apps-2-22,l
	button,132,184,32,32,-1,0,%apps-2-22-highlight

	shortcut,174,184,apps-2-23,l
	button,174,184,32,32,-1,0,%apps-2-23-highlight


	// 6 ZEILE===========================

	shortcut,27,225,apps-2-24,l
	button,27,225,32,32,-1,0,%apps-2-24-highlight

	shortcut,69,225,apps-2-25,l
	button,69,225,32,32,-1,0,%apps-2-25-highlight

	shortcut,111,225,apps-2-26,l
	button,111,225,32,32,-1,0,%apps-2-26-highlight

	shortcut,153,225,apps-2-27,l
	button,153,225,32,32,-1,0,%apps-2-27-highlight

endregion,15,1


// REGION 15,2 VERKNPFUNGEN GROSS APPS 3//////////////////////////////////////////////

region,15,2,-1
	defregion,15,0,0,211,267

	cleararea,0,0,211,267

	image,4,3,headline_breit_blau_verlauf.png

	text,9,3,%apps-3%,l
	text,200,3,%apps-3%,r

	imagebutton,4,3,iconzeileklein.png,,15,4,0,1


	// 1 ZEILE==========================

	shortcut,28,20,apps-3-1,l
	button,28,20,32,32,-1,0,%apps-3-1-highlight

	shortcut,90,20,apps-3-2,l
	button,90,20,32,32,-1,0,%apps-3-2-highlight

	shortcut,152,20,apps-3-3,l
	button,152,20,32,32,-1,0,%apps-3-3-highlight


	// 2 ZEILE===========================

	shortcut,28,61,apps-3-4,l
	button,28,61,32,32,-1,0,%apps-3-4-highlight

	shortcut,90,61,apps-3-5,l
	button,90,61,32,32,-1,0,%apps-3-5-highlight

	shortcut,152,61,apps-3-6,l
	button,152,61,32,32,-1,0,%apps-3-6-highlight


	// 3 ZEILE===========================

	shortcut,28,102,apps-3-7,l
	button,28,102,32,32,-1,0,%apps-3-7-highlight

	shortcut,90,102,apps-3-8,l
	button,90,102,32,32,-1,0,%apps-3-8-highlight

	shortcut,152,102,apps-3-9,l
	button,152,102,32,32,-1,0,%apps-3-9-highlight


	// 4 ZEILE===========================

	shortcut,28,143,apps-3-10,l
	button,28,143,32,32,-1,0,%apps-3-10-highlight

	shortcut,90,143,apps-3-11,l
	button,90,143,32,32,-1,0,%apps-3-11-highlight

	shortcut,152,143,apps-3-12,l
	button,152,143,32,32,-1,0,%apps-3-12-highlight


	// 5 ZEILE===========================

	shortcut,28,184,apps-3-13,l
	button,28,184,32,32,-1,0,%apps-3-13-highlight

	shortcut,90,184,apps-3-14,l
	button,90,184,32,32,-1,0,%apps-3-14-highlight

	shortcut,152,184,apps-3-15,l
	button,152,184,32,32,-1,0,%apps-3-15-highlight


	// 6 ZEILE===========================

	shortcut,28,225,apps-3-16,l
	button,28,225,32,32,-1,0,%apps-3-16-highlight

	shortcut,90,225,apps-3-17,l
	button,90,225,32,32,-1,0,%apps-3-17-highlight

	shortcut,152,225,apps-3-18,l
	button,152,225,32,32,-1,0,%apps-3-18-highlight

endregion,15,2


// REGION 15,3 VERKNPFUNGEN GROSS APPS 4//////////////////////////////////////////////

region,15,3,-1
	defregion,15,0,0,211,267

	cleararea,0,0,211,267

	image,4,3,headline_breit_blau_verlauf.png

	text,9,3,%apps-4%,l
	text,200,3,%apps-4%,r

	imagebutton,4,3,iconzeileklein.png,,15,4,0,1

	// 1 ZEILE==========================

	shortcut,28,20,apps-4-1,l
	button,28,20,32,32,-1,0,%apps-4-1-highlight

	shortcut,90,20,apps-4-2,l
	button,90,20,32,32,-1,0,%apps-4-2-highlight

	shortcut,152,20,apps-4-3,l
	button,152,20,32,32,-1,0,%apps-4-3-highlight


	// 2 ZEILE===========================

	shortcut,28,61,apps-4-4,l
	button,28,61,32,32,-1,0,%apps-4-4-highlight

	shortcut,90,61,apps-4-5,l
	button,90,61,32,32,-1,0,%apps-4-5-highlight

	shortcut,152,61,apps-4-6,l
	button,152,61,32,32,-1,0,%apps-4-6-highlight


	// 3 ZEILE===========================

	shortcut,28,102,apps-4-7,l
	button,28,102,32,32,-1,0,%apps-4-7-highlight

	shortcut,90,102,apps-4-8,l
	button,90,102,32,32,-1,0,%apps-4-8-highlight

	shortcut,152,102,apps-4-9,l
	button,152,102,32,32,-1,0,%apps-4-9-highlight


	// 4 ZEILE===========================

	shortcut,28,143,apps-4-10,l
	button,28,143,32,32,-1,0,%apps-4-10-highlight

	shortcut,90,143,apps-4-11,l
	button,90,143,32,32,-1,0,%apps-4-11-highlight

	shortcut,152,143,apps-4-12,l
	button,152,143,32,32,-1,0,%apps-4-12-highlight


	// 5 ZEILE===========================

	shortcut,28,184,apps-4-13,l
	button,28,184,32,32,-1,0,%apps-4-13-highlight

	shortcut,90,184,apps-4-14,l
	button,90,184,32,32,-1,0,%apps-4-14-highlight

	shortcut,152,184,apps-4-15,l
	button,152,184,32,32,-1,0,%apps-4-15-highlight


	// 6 ZEILE===========================

	shortcut,28,225,apps-4-16,l
	button,28,225,32,32,-1,0,%apps-4-16-highlight

	shortcut,90,225,apps-4-17,l
	button,90,225,32,32,-1,0,%apps-4-17-highlight

	shortcut,152,225,apps-4-18,l
	button,152,225,32,32,-1,0,%apps-4-18-highlight

endregion,15,3

// REGION 15,4 VERKNPFUNGEN GROSS APPS 5//////////////////////////////////////////////

region,15,4,-1
	defregion,15,0,0,211,267

	cleararea,0,0,211,267

	image,4,3,headline_breit_blau_verlauf.png

	text,9,3,%apps-5%,l
	text,200,3,%apps-5%,r

	imagebutton,4,3,iconzeileklein.png,,15,4,0,1


	// 1 ZEILE==========================

	shortcut,28,20,apps-5-1,l
	button,28,20,32,32,-1,0,%apps-5-1-highlight

	shortcut,152,20,apps-5-2,l
	button,152,20,32,32,-1,0,%apps-5-2-highlight


	// 2 ZEILE===========================

	shortcut,28,61,apps-5-3,l
	button,28,61,32,32,-1,0,%apps-5-3-highlight

	shortcut,152,61,apps-5-4,l
	button,152,61,32,32,-1,0,%apps-5-4-highlight


	// 3 ZEILE===========================

	shortcut,28,102,apps-5-5,l
	button,28,102,32,32,-1,0,%apps-5-5-highlight

	shortcut,152,102,apps-5-6,l
	button,152,102,32,32,-1,0,%apps-5-6-highlight


	// 4 ZEILE===========================

	shortcut,28,143,apps-5-7,l
	button,28,143,32,32,-1,0,%apps-5-7-highlight

	shortcut,152,143,apps-5-8,l
	button,152,143,32,32,-1,0,%apps-5-8-highlight


	// 5 ZEILE===========================

	shortcut,90,184,apps-5-9,l
	button,90,184,32,32,-1,0,%apps-5-9-highlight

endregion,15,4


////////////////////////////////////////////////////////////////////////
// VERKNPFUNGEN  ENDE
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 16  SYSTEM 
////////////////////////////////////////////////////////////////////////

region,16,0,60
	defregion,16,0,0,211,267

	cleararea,0,0,211,267

	deactivatebuttons,2
	deactivatebuttons,3
	deactivatebuttons,4
	deactivatebuttons,5
	deactivatebuttons,6
	deactivatebuttons,7
	deactivatebuttons,8
	deactivatebuttons,9
	deactivatebuttons,10
	deactivatebuttons,11
	deactivatebuttons,12
	deactivatebuttons,15
	deactivatebuttons,17
	deactivatebuttons,18
	
	activatebuttons,16

	image,4,3,headline_breit_gelb_verlauf.png

	changefont,tahoma,12,b
	text,105,3,Systemstatus,c
	changefont,tahoma,12


	// BATTERIE==============================

	image,40,58,meters_background.png,t
	battery,bar,42,58,52,13,gradient_batterymain gradient.png
	image,40,58,meters.png,t

	imagebutton,40,58,Metersbutton.png,tr,-1,0,%apps-6-2-highlight

	changefont,tahoma,11

	if,batterystatusunknown
		image,6,46,batterie_unbekannt.png,t
		text,68,47,Batt: ?,c
	else

		if,charging
			image,6,46,batterie_laden.png,t
			text,68,47,Laden.....,c
		else

			if,externalpower,=,true
				image,6,46,batterie_geladen.png,t
				text,68,47,Netz,c
			else
				image,6,46,batterie.png,t
				battery,remaining,72,47,Batt: , %,c
			endif
		endif
	endif

	changefont,tahoma,12

	uptime,10,18,softreset,time,s,  HH:mm,Letzter Softreset am:   , Uhr,l 
	uptime,10,31,softreset,duration,Laufzeit seit letztem Reset: , Std/min,l

	text,97,51,Voltstrke:,l
	battery,voltage,196,51,, V,r

	uptime,97,63,battery,duration,Laufzeit: ,  Std/min,l 


	// SPEICHER=======================================

	memory,total,68,85,SP: , MB,c,%.1f

	image,40,97,meters_background.png,t
	memory,barused,42,97,52,13,gradient_Speichermain gradient.png
	image,40,97,meters.png,t

	imagebutton,40,97,Metersbutton.png,tr,-1,0,%apps-6-3-highlight

	memory,storageused,40,110,, MB,l,%.1f

	memory,programused,94,110,,,r,%.1f

	calcvar,var17,programmemoryusedpercent

	if,var,var17,1,><,50
		image,6,88,Speicherleer.png,t
	else

		if,var,var17,51,><,80
			image,6,88,Speichervoll.png,t
		else
			image,6,88,Speicherhot.png,t
		endif
	endif

	text,97,92,P Frei:,l
	memory,storagefree,179,92,, MB,r
	memory,storagefreepercent,208,92,/,%,r,%.0f

	text,97,105,D Frei:,l
	memory,programfree,179,105,, MB,r
	memory,programfreepercent,208,105,/,%,r,%.0f

	
	// FILE STORAGE=====================================

	image,3,131,memory_big.png,t

	image,40,136,meters_background.png,t
	storage,1,bar,42,136,52,13,gradient_storage gradient.png
	image,40,136,meters.png,t

	imagebutton,40,136,Metersbutton.png,tr,-1,0,%apps-6-4-highlight

	text,68,124,File-Store,c
	storage,1,total,68,147,, MB,c

	text,97,129,Belegt: ,l
	storage,1,used,179,129,, MB,r
	storage,1,usedpercent,208,129,/,%,r,%.0f

	text,97,142,Frei: ,l
	storage,1,free,179,142,, MB,r
	storage,1,freepercent,208,142,/,%,r,%.0f


	// SD KARTE==========================================

	image,14,171,sd.png,t

	image,40,175,meters_background.png,t
	storage,2,bar,42,175,52,13,gradient_storage gradient.png
	image,40,175,meters.png,t

	imagebutton,40,175,Metersbutton.png,tr,-1,0,%apps-6-5-highlight

	text,68,163,SD Karte,c
	storage,2,total,68,187,, MB,c

	text,97,168,Belegt: ,l
	storage,2,used,179,168,, MB,r
	storage,2,usedpercent,208,168,/,%,r,%.0f

	text,97,181,Frei: ,l
	storage,2,free,179,181,, MB,r
	storage,2,freepercent,208,181,/,%,r,%.0f


	// CF KARTE==========================================

	//image,10,211,cf.png,t

	//image,40,215,meters_background.png,t
	//storage,3,bar,42,215,52,13,gradient_storage gradient.png
	//image,40,215,meters.png,t

	//imagebutton,40,215,Metersbutton.png,tr,-1,0,%apps-6-6-highlight

	//text,68,203,CF Karte,c
	//storage,3,total,68,228,, MB,c

	//text,97,208,Belegt: ,l
	//storage,3,used,179,208,, MB,r
	//storage,3,usedpercent,208,208,/,%,r,%.0f

	//text,97,221,Frei: ,l
	//storage,3,free,179,221,, MB,r
	//storage,3,freepercent,208,221,/,%,r,%.0f


	// STATUSZEILE==============================

	if,var,var24,,=,1
		options,imagedir,images\Hammerskin1
		imagebutton,5,251,buttonwechsel.png,t,-1,6,var24=2,-1
		button,5,251,82,13,17,4,999,16
	else
		options,imagedir,images\Hammerskin
		imagebutton,5,251,buttonwechsel.png,t,-1,6,var24=1,-1
		button,5,251,82,13,17,4,999,16
	endif

	text,12,251,Buttonwechsel,l


	image,91,249,wetter_ortszeit.png,
	time,106,251,-1,4,c,

	imagebutton,91,249,Ortszeitbutton.png,tr,-1,0,%apps-6-7-highlight

	imagebutton,125,251,wetter_auswahl.png,,17,4,0,16
	text,140,251,Auswahl,l

endregion,16,0


////////////////////////////////////////////////////////////////////////
// REGION 17,0 - SYSTEM AUSWAHL 
////////////////////////////////////////////////////////////////////////

region,17,0,-1

	cleararea,104,171,106,78

	deactivatebuttons,16

	activatebuttons,17

	image,103,171,System_auswahl_popup.png

	changefont,Tahoma,12,b

	text,109,174,Eigentmerinfo,l
	imagebutton,105,171,wetter_auswahl_popup_button.png,tr,18,4,0,16
	button,105,171,100,15,17,4,999

	text,109,188,Skinversion,l
	imagebutton,105,186,wetter_auswahl_popup_button.png,tr,18,4,1,16
	button,105,186,100,15,17,4,999

	imagebutton,105,201,wetter_auswahl_popup_button.png,tr,-1,0,%apps-6-9,16
	shortcut,1105,201,apps-6-9,s
	text,109,202,[name],l
	button,105,201,100,15,17,4,999

	imagebutton,105,216,wetter_auswahl_popup_button.png,tr,-1,0,%apps-6-10,16
	shortcut,1105,216,apps-6-10,s
	text,109,216,[name],l
	button,105,216,100,15,17,4,999

	color,font,255_0_0
	text,128,233,Abbrechen,l
	imagebutton,105,231,wetter_auswahl_popup_button_abbrechen.png,tr,17,4,999,16
	color,font,0_0_0

	changefont,Tahoma,12,

endregion,17,0


//////////////////////////////////////////////////////////////////////////
// REGION 18,0 - EIGENTMERINFORMATIONEN
//////////////////////////////////////////////////////////////////////////

region,18,0,10

	cleararea,11,47,192,151

	deactivatebuttons,16
	deactivatebuttons,17

	activatebuttons,18

	clearregion,17

	image,10,45,wetterpopup.png


	//===================================
	//SCHLIESSENBUTTON
	//===================================

	imagebutton,180,51,popupschliessen.png,t,18,4,999,16


	//===================================
	//BERSCHRIFTEN
	//===================================

	changefont,Tahoma,12,b

	text,105,47,Informationen zum ,c
	text,105,60,Eigentmer,c

	changefont,Tahoma,12,


	//===================================
	//EIGENTMERDETAILS
	//===================================

	image,15,80,%owner image%,

	text,98,100,Name:,l
	changefont,Tahoma,12,b
	text,98,115,%owner name%,l
	changefont,Tahoma,12,

	text,20,156,Strae:,l
	text,20,168,Plz. - Ort:,l
	text,20,180,Telefon:,l

	text,75,156,%owner address%,l
	text,75,168,%owner address2%,l
	text,75,180,%owner phone%,l

endregion,18,0


////////////////////////////////////////////////////////////////////////
// REGION 18,1 - SKIN INFORMATIONEN
////////////////////////////////////////////////////////////////////////

region,18,1,10
             
	deactivatebuttons,16
	deactivatebuttons,17

	activatebuttons,18

	clearregion,17

	cleararea,12,78,191,84

	image,10,78,Mondphasenpopup.png

	imagebutton,180,83,popupschliessen.png,t,18,4,999,16

	image,20,109,Hammerskin.png
	image,157,109,Hammerskin.png

	changefont,Tahoma,12,b
	text,100,80,HAMMERSKIN das ORIGINAL,c
	changefont,Tahoma,12,

	text,105,96,Skinversion,c

	text,105,106,01.04a,c
	text,105,116,Datum: 21.09.2004,c
	changefont,Tahoma,11,
	text,105,131,powered by,c
	changefont,Tahoma,12,b
	text,105,142,W I C H T E L,c
	changefont,Tahoma,11,
        text,105,152,gendert von,c
        text,105,162,KaRen,c
        changefont,Tahoma,12,c


endregion,18,1


////////////////////////////////////////////////////////////////////////
// SKIN INFORMATIONEN  ENDE
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// SYSTEM  ENDE
////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// REGION 1  BUTTON AREA 
////////////////////////////////////////////////////////////////////////

region,1,0,10
	defregion,1,210,0,29,267,1

	//// MAIN BUTTON======================

	if,region,2,0

imagebutton,211,3,mainbutton_grau.png,tr,2,4,0,1
button,211,3,29,29,3,4,999
button,211,3,29,29,7,4,999
button,211,3,29,29,8,4,999
button,211,3,29,29,9,4,999
button,211,3,29,29,10,4,999
button,211,3,29,29,11,4,999,
button,211,3,29,29,12,4,999,
button,211,3,29,29,15,4,999,
button,211,3,29,29,16,4,999,
button,211,3,29,29,17,4,999,
button,211,3,29,29,18,4,999,

button,211,3,29,29,2,10,0,2
button,211,3,29,29,2,22,0,2
button,211,3,29,29,2,23,0,2

button,211,3,29,29,4,4,0
button,211,3,29,29,5,4,0
button,211,3,29,29,6,4,0

else

imagebutton,211,3,mainbutton.png,tr,2,4,0,1
button,211,3,29,29,3,4,999
button,211,3,29,29,7,4,999
button,211,3,29,29,8,4,999
button,211,3,29,29,9,4,999
button,211,3,29,29,10,4,999
button,211,3,29,29,11,4,999,
button,211,3,29,29,12,4,999,
button,211,3,29,29,15,4,999,
button,211,3,29,29,16,4,999,
button,211,3,29,29,17,4,999,
button,211,3,29,29,18,4,999,

button,211,3,29,29,2,10,0,2
button,211,3,29,29,2,22,0,2
button,211,3,29,29,2,23,0,2

button,211,3,29,29,4,4,0
button,211,3,29,29,5,4,0
button,211,3,29,29,6,4,0

endif


	//// WETTER BUTTON====================

if,region,3,0

imagebutton,211,33,wetterbutton_grau.png,tr,3,4,0,1
button,211,33,29,29,7,4,999,3
button,211,33,29,29,8,4,999,3



else

imagebutton,211,33,wetterbutton.png,tr,3,4,0,1
button,211,33,29,29,2,4,999,3
button,211,33,29,29,5,4,999,3
button,211,33,29,29,6,4,999,3
button,211,33,29,29,9,4,999,3
button,211,33,29,29,10,4,999,3
button,211,33,29,29,11,4,999,
button,211,33,29,29,12,4,999,
button,211,33,29,29,13,4,999,
button,211,33,29,29,14,4,999
button,211,33,29,29,15,4,999,
button,211,33,29,29,16,4,999,
button,211,33,29,29,17,4,999,
button,211,33,29,29,18,4,999,


endif


	//// AGENDA BUTTON====================

if,region,9,0

imagebutton,211,63,kalenderbutton_grau.png,tr,9,4,0,1
button,211,63,29,29,9,10,0,9
button,211,63,29,29,9,22,0,9
button,211,63,29,29,9,23,0,9
button,211,63,29,29,9,10,1,9
button,211,63,29,29,9,22,1,9
button,211,63,29,29,9,23,1,9

else

imagebutton,211,63,kalenderbutton.png,tr,9,4,0,1
button,211,63,29,29,2,4,999,
button,211,63,29,29,3,4,999,
button,211,63,29,29,4,4,999,
button,211,63,29,29,5,4,999,
button,211,63,29,29,6,4,999,
button,211,63,29,29,7,4,999,
button,211,63,29,29,8,4,999,
button,211,63,29,29,10,4,999,
button,211,63,29,29,11,4,999,
button,211,63,29,29,12,4,999,
button,211,63,29,29,13,4,999,
button,211,63,29,29,14,4,999,
button,211,63,29,29,15,4,999,
button,211,63,29,29,16,4,999,
button,211,63,29,29,17,4,999,
button,211,63,29,29,18,4,999,

button,211,63,29,29,9,10,0,9
button,211,63,29,29,9,22,0,9
button,211,63,29,29,9,23,0,9
button,211,63,29,29,9,10,1,9
button,211,63,29,29,9,22,1,9
button,211,63,29,29,9,23,1,9

endif

	//// AUFGABEN  BUTTON====================

if,region,10,0

imagebutton,211,93,aufgabenbutton_grau.png,tr,10,4,0,1
button,211,93,29,29,10,10,0,10
button,211,93,29,29,10,22,0,10
button,211,93,29,29,10,23,0,10
button,211,93,29,29,10,10,1,10



else

imagebutton,211,93,aufgabenbutton.png,tr,10,4,0,1
button,211,93,29,29,2,4,999,
button,211,93,29,29,3,4,999,
button,211,93,29,29,4,4,999,
button,211,93,29,29,5,4,999,
button,211,93,29,29,6,4,999,
button,211,93,29,29,7,4,999,
button,211,93,29,29,8,4,999,
button,211,93,29,29,9,4,999,
button,211,93,29,29,11,4,999,
button,211,93,29,29,12,4,999,
button,211,93,29,29,13,4,999,
button,211,93,29,29,14,4,999,
button,211,93,29,29,15,4,999,
button,211,93,29,29,16,4,999,
button,211,93,29,29,17,4,999,
button,211,93,29,29,18,4,999,

button,211,93,29,29,10,10,0,10
button,211,93,29,29,10,22,0,10
button,211,93,29,29,10,23,0,10
button,211,93,29,29,10,10,1,10



endif


	//// WELTZEITEN  BUTTON====================

if,region,11,0

imagebutton,211,122,zeitbutton_grau.png,tr,11,4,0,1

else

if,region,11,1
imagebutton,211,122,zeitbutton_grau.png,tr,11,4,1,1

else

imagebutton,211,122,zeitbutton.png,tr,11,4,0,1
button,211,122,29,29,2,4,999,
button,211,122,29,29,3,4,999,
button,211,122,29,29,4,4,999,
button,211,122,29,29,5,4,999,
button,211,122,29,29,6,4,999,
button,211,122,29,29,7,4,999,
button,211,122,29,29,8,4,999,
button,211,122,29,29,9,4,999,
button,211,122,29,29,10,4,999
button,211,122,29,29,12,4,999
button,211,122,29,29,13,4,999
button,211,122,29,29,14,4,999
button,211,122,29,29,15,4,999
button,211,122,29,29,16,4,999
button,211,122,29,29,17,4,999
button,211,122,29,29,18,4,999


endif
endif

	//// RSS  BUTTON====================

	if,region,12,0

imagebutton,211,151,rssbutton_grau.png,tr,12,4,0,1
button,211,151,29,29,13,4,0,1
button,211,151,29,29,14,4,0,1





else

imagebutton,211,151,rssbutton.png,tr,12,4,0,1
button,211,151,29,29,13,4,0,1
button,211,151,29,29,14,4,0,1

button,211,151,29,29,2,4,999,
button,211,151,29,29,3,4,999,
button,211,151,29,29,4,4,999,
button,211,151,29,29,5,4,999,
button,211,151,29,29,6,4,999,
button,211,151,29,29,7,4,999,
button,211,151,29,29,8,4,999,
button,211,151,29,29,9,4,999,
button,211,151,29,29,10,4,999
button,211,151,29,29,11,4,999
button,211,151,29,29,15,4,999
button,211,151,29,29,16,4,999
button,211,151,29,29,17,4,999
button,211,151,29,29,18,4,999



endif



	//// VERKNPFUNGEN  BUTTON====================

	if,region,15,0
imagebutton,211,181,verknuepfung_button_grau.png,tr,15,4,0,1

else

if,region,15,1
imagebutton,211,181,verknuepfung_button_grau.png,tr,15,4,0,1

else

if,region,15,2
imagebutton,211,181,verknuepfung_button_grau.png,tr,15,4,0,1

else

if,region,15,3
imagebutton,211,181,verknuepfung_button_grau.png,tr,15,4,0,1


else

if,region,15,4
imagebutton,211,181,verknuepfung_button_grau.png,tr,15,4,0,1


else


imagebutton,211,181,verknuepfung_button.png,tr,15,4,0,1
button,211,181,29,29,2,4,999,
button,211,181,29,29,3,4,999,
button,211,181,29,29,4,4,999,
button,211,181,29,29,5,4,999,
button,211,181,29,29,6,4,999,
button,211,181,29,29,7,4,999,
button,211,181,29,29,8,4,999,
button,211,181,29,29,9,4,999,
button,211,181,29,29,10,4,999
button,211,181,29,29,11,4,999
button,211,181,29,29,12,4,999
button,211,181,29,29,13,4,999
button,211,181,29,29,14,4,999
button,211,181,29,29,16,4,999
button,211,181,29,29,17,4,999
button,211,181,29,29,18,4,999


endif
endif
endif
endif
endif


	//// SYSTEM BUTTON====================
	
if,region,16,0

imagebutton,211,210,systembutton_grau.png,tr,16,4,0,1
button,211,210,29,29,17,4,999,
button,211,210,29,29,18,4,999,


else

imagebutton,211,210,systembutton.png,tr,16,4,0,1
button,211,210,29,29,2,4,999,
button,211,210,29,29,3,4,999,
button,211,210,29,29,4,4,999,
button,211,210,29,29,5,4,999,
button,211,210,29,29,6,4,999,
button,211,210,29,29,7,4,999,
button,211,210,29,29,8,4,999,
button,211,210,29,29,9,4,999,
button,211,210,29,29,10,4,999
button,211,210,29,29,11,4,999
button,211,210,29,29,12,4,999
button,211,210,29,29,13,4,999
button,211,210,29,29,14,4,999
button,211,210,29,29,15,4,999

endif

	//// SUSPEND BUTTON====================

	imagebutton,211,240,ausschaltbutton.png,tr,-1,0,%apps-6-1-highlight

endregion,1,0


////////////////////////////////////////////////////////////////////////
// BUTTON AREA  ENDE
////////////////////////////////////////////////////////////////////////

offset,0,267


