var epgteaserindex = 0;

function epgDoStaticTeaser()
{
	// Wir holen uns die Seiten des statischen EPG Teasers
	for(var i = 0; i < 3; i++)
	{
		var elem = $('#epgTeaserPage' + i);

		if(elem.length > 0)
		{
			if(epgteaserindex == i)
				elem.css('display', 'block');
			else
				elem.css('display', 'none');
		}
	}
}

function epgStaticTeaserPrev()
{
	epgteaserindex--;

	if(epgteaserindex < 0)
		epgteaserindex = 0;

	epgDoStaticTeaser();
}

function epgStaticTeaserNext()
{
	epgteaserindex++;

	if(epgteaserindex > 2)
		epgteaserindex = 2;

	epgDoStaticTeaser();
}
