if (parent.frames.length == 0) {
  // not loaded frames
  window.location.href = "../index.html?PATH=" + window.location.href;
}

function CheckPopUp() {
	if ((parent.win && parent.win.open && !parent.win.closed)) {
		if (document.getElementById('SoundPic') != null)
			document.getElementById('SoundPic').src = '../pics/SITE/ready/sound_on.jpg';
		setTimeout("CheckPopUp()", 500);
	}
	else
	{
		if (document.getElementById('SoundPic') != null)
			document.getElementById('SoundPic').src = '../pics/SITE/ready/sound_off.jpg';
		setTimeout("CheckPopUp()", 1000);
	}
}
// Now call me
CheckPopUp();

function Popup(url, breite, hoehe, scroll)
{  
	url = url.concat('?emailabo=');
	url =  url.concat(document.iscript.emailabo.value);
	var popup = parent.window.open(url, 'ciastel', 'width='+breite+',height='+hoehe+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,left='+((screen.width/2)-(breite/2))+',top='+(((screen.height/2)-30-(hoehe/2))));
	if (popup.opener==null)
		popup.opener.parent.window;
	popup.focus();
	return false;
}  
function PopupCentrata(force) {
	
	if (parent.win && parent.win.open && !parent.win.closed) {
		parent.win.close();
		document.getElementById('SoundPic').src = '../pics/SITE/ready/sound_off.jpg';
	}
	else {
		var w = 250;
		var h = 129;
		var l = Math.floor((screen.width-w)/2);
		var t = Math.floor((screen.height-h)/2);
		parent.win = window.open("player.html","MyPlayer","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
		if (!parent.win.opener) parent.win.opener = self;
		if (parent.window.focus) { parent.win.focus(); }
		document.getElementById('SoundPic').src = '../pics/SITE/ready/sound_on.jpg';
	}
	return false;
 }
 
function changelang(who, page){
	if(who.options[0].selected == true)
		window.location.href= page + ".htm";
	if(who.options[1].selected == true)  
		window.location.href= page + ".de.htm";
	if(who.options[2].selected == true)  
		window.location.href= page + ".it.htm";
}  