var IDpage;

function contentFetch( PG )
{
//	__utmSetVar('OSA '+companies[ myCompany ]);
//	urchinTracker('OSA/'+contentID);
	page = parseInt(PG);
	if (page + 0 != page)
	{
//		msg('error','Ungueltige Seitennummer <b>'+PG+'</b>');
		return;
	}
	IDpage = page;
	new Ajax.Updater(
		'content',
		'/content.php?pg='+page,
		{
			evalScripts: true,
			onLoading:function() {new Effect.SlideDown('CEloading',{ duration: 0.5 })},
			onSuccess:function() {new Effect.SlideUp('CEloading',{ duration: 0.5 })},
			onComplete:contentLoaded
		}
	);
}
function contentLoaded(t)
{
	new Effect.Appear('content',{ duration: 0.5 })
	myLightbox.findImages();
//	Lightview.updateViews();
	document.title = 'Keine Sorgen Arena in Kirchschlag / Seite ' + IDpage;
	if ( t.responseText == "" )
		$('content').innerHTML = '<div class="error">Keine Daten gefunden.</div>';
}
function start_slideshow(id)
{
	if (id == undefined)
		return;
	var firstImage = $(id).getElementsByTagName('a')[0];
	Lightview.show(firstImage);
}

