if(top != self) top.location = self.location;
document.onload = preloadNaviImages();

function preloadNaviImages()
{
	var naviImg = new Image();
	naviImg.src = '/img/nav.gif';
	var naviImg2 = new Image();
	naviImg2.src = '/img/nav-o.gif';
}

// opens window
function wo(o, width, height, resizable, scrollbars)
{
	var str = 'width='+width+',height='+height;
	if (resizable)  str += ',resizable=yes';
	if (scrollbars) str += ',scrollbars=yes';
	window.open('', o.target, str);
}

// opens dvd window
function wo_dvd(o)
{
	window.open('', o.target, 'width=560,height=600,scrollbars=yes,resizable=yes');
}
// opens impressum window
function wo_imp(o)
{
	window.open('', o.target, 'width=300,height=200,resizable=yes,scrollbars=yes');
}
// opens image window
function wo_img(o)
{
	window.open('', o.target, 'width=535,height=400');
}
// nl info
function wo_nl_info(o)
{
	window.open('', o.target, 'width=300,height=175,resizable=yes,scrollbars=yes');
}
// 
function wo_full(o)
{
	window.open('', o.target, 'width=750,height=550,resizable=yes,scrollbars=yes');
}

function eaddy(domain, tld, name, link, append) {
    var addy = name+'&#64;'+domain+'.'+tld;
    if (!link || link == 'undefined') link = addy;
    if (!append || append == 'undefined') a = '';
    var str = '<'+'a h'+'ref="mai'
            + 'lto:'+addy+append+'">'+link+'<\/a>';
    document.write(str);
}

function printAccountInfo()
{
	document.write('Inhaber: K' + 'eilonat, ');
	document.write('A' + 'lexander<br />');
	document.write('Konto: 815045102<br />');
	document.write('BLZ: 10010010<br />');
	document.write('IBAN: DE37100100100815045102 (nur international)<br />');
	document.write('BIC: PBNKDEFF (dito)<br />');
	document.write('Institut: Postbank Berlin');
}

function checkFormValues(form, fields, titles)
{
	for(x=0;x<fields.length;x++) {
		if (form[fields[x]].value == '') {
			if (titles && titles[x]) {
				alert('Bitte Feld "'+titles[x]+'" ausf'+unescape('%FC')+'llen!');
			} else {
				alert('Bitte alle erforderlichen Felder ausf'+unescape('%FC')+'llen!');
			}
			form[fields[x]].focus();
			return false;
		}
	}
	return true;
}

var opacity = 0;
function fadeIn(elemId)
{
	elem = document.getElementById(elemId);
	elem.style.filter = 'alpha(opacity = ' + (opacity*100) + ')';
	elem.style.opacity = opacity;
	opacity = opacity + 0.1;
	if (opacity < 1) {
		setTimeout('fadeIn(\''+elemId+'\')', 70);
	}
}