// JavaScript Document
function ladeIVW()
{ 
	var xmlhttp = null;
	// Mozilla
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	}
	// IE
	else if (window.ActiveXObject) {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	xmlhttp.open("GET", '/tl_files/volksfestindersdorf/script/lightbox_ivw.php', true);
	xmlhttp.onreadystatechange = function() {
		if(xmlhttp.readyState != 4) {
			//$('ergebnis').innerHTML = 'Seite wird geladen ...';			
		}
		if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			//$('ergebnis').innerHTML = xmlhttp.responseText;			
		}
	}
	xmlhttp.send(null);
}

/**************************************
* MerkurtzTV Player
**************************************/
function openMerkurtzTv(adresse)
{
	//Dimension und Position ermitteln
	var maxhoehe = 670;
	var hoehe = (screen.height < maxhoehe)? 680 : maxhoehe;
	var breite = 985;
	var l_abstand = (screen.width/2)-(breite/2);
	
	//Popup erzeugen
	Fenster = window.open(adresse, "merkurtzTV", "width="+breite+",height="+hoehe+", scrollbars=yes, top=20, left="+l_abstand+"");
	Fenster.focus();
}


//Popupklasse vorbereiten
window.onload = function(){
popup = new PopUp();
popup.addType({
name: "gscheidhaferl",
width: 794,
height: 600, 
location:false, 
menubar:false, 
scrollbars:false, 
resizable:false,
center:true,
title: "Gscheidhaferl Quiz"
});
popup.apply();
}