// JavaScript Document
<!-- //
var popupWin;
function openNanoreisen(sprache) {
	switch (sprache) {
		case "de":	seite = "deutsch/index.html";
					break;
		case "en":	seite = "english/index.html";
					break;
		case "fr":	seite = "francais/index.html";
					break;
		case "es":	seite = "espanol/index.html";
					break;
		default:	seite = "deutsch/index.html";
	}
	if ( screen.width ) {
		sw = (screen.width-800)/2;
		sh = ((screen.height-500)/2)-15;
		window.open(seite, "opennanoreisen", "width=800,height=500,toolbar=0,status=0,scrollbars=0,resizable=0,menubar=0,location=0,left="+sw+",top="+sh+",screenX="+sw+",screenY="+sh);
	} else {
		window.open(seite, "opennanoreisen", "width=800,height=500,toolbar=0,status=0,scrollbars=0,resizable=0,menubar=0,location=0,left=100,top=100,screenX=100,screenY=100");
	}
}
function openImp() {
	if ( screen.width ) {
		sw = (screen.width-370)/2+270;
		sh = (screen.height-500)/2;
		window.open("impressum/impressum.html", "openimpressum", "width=370,height=500,toolbar=0,status=0,scrollbars=1,resizable=0,menubar=0,location=0,left="+sw+",top="+sh+",screenX="+sw+",screenY="+sh);
	} else {
		window.open("impressum/impressum.html", "openimpressum", "width=370,height=500,toolbar=0,status=0,scrollbars=1,resizable=0,menubar=0,location=0,left=100,top=100,screenX=100,screenY=100");
	}
}

function openEcardegotrip() {
	if ( screen.width ) {
		sw = (screen.width-680)/2;
		sh = ((screen.height-320)/2)-15;
		window.open("ecards/ecard_egotrip.html", "openecard", "width=680,height=320,toolbar=0,status=0,scrollbars=0,resizable=0,menubar=0,location=0,left="+sw+",top="+sh+",screenX="+sw+",screenY="+sh);
	} else {
		window.open("ecards/ecard_egotrip.html", "openecard", "width=680,height=320,toolbar=0,status=0,scrollbars=0,resizable=0,menubar=0,location=0,left=100,top=100,screenX=100,screenY=100");
	}
}

function openEcardbitland() {
	if ( screen.width ) {
		sw = (screen.width-680)/2;
		sh = ((screen.height-320)/2)-15;
		window.open("ecards/ecard_bitland.html", "openecard", "width=680,height=320,toolbar=0,status=0,scrollbars=0,resizable=0,menubar=0,location=0,left="+sw+",top="+sh+",screenX="+sw+",screenY="+sh);
	} else {
		window.open("ecards/ecard_bitland.html", "openecard", "width=680,height=320,toolbar=0,status=0,scrollbars=0,resizable=0,menubar=0,location=0,left=100,top=100,screenX=100,screenY=100");
	}
}
function openEcardlichtblick() {
	if ( screen.width ) {
		sw = (screen.width-680)/2;
		sh = ((screen.height-320)/2)-15;
		window.open("ecards/ecard_lichtblick.html", "openecard", "width=680,height=320,toolbar=0,status=0,scrollbars=0,resizable=0,menubar=0,location=0,left="+sw+",top="+sh+",screenX="+sw+",screenY="+sh);
	} else {
		window.open("ecards/ecard_lichtblick.html", "openecard", "width=680,height=320,toolbar=0,status=0,scrollbars=0,resizable=0,menubar=0,location=0,left=100,top=100,screenX=100,screenY=100");
	}
}

if ( focus ) self.focus();
function moveBackwindow(){
		sw = (screen.width-800)/2;
		sh = (screen.height-500)/2;
		window.opener.moveTo(sw,sh)
		window.opener.resizeTo(800,500)
}
var NeueBreite = 800;
var NeueHoehe = 500;
var aspectRatio = 0.625;
function changeNanoSize(wert)
{
	var flashBereich = document.getElementById('content');
	if (wert == 'max') {
		if (screen.width >  1200) {NeueBreite = 400;}
		if (screen.width <= 1200) {NeueBreite = 300;}
		if (screen.width <= 1024) {NeueBreite = 200;}
		if (screen.width <= 800) {NeueBreite = 0;}
		NeueHoehe=NeueBreite*aspectRatio;
		flashBereich.style.width = (800+NeueBreite)+"px";
		flashBereich.style.height = (500+NeueHoehe)+"px";
		window.moveTo((screen.availWidth-(800+NeueBreite))/2, (screen.availHeight-(500+NeueHoehe))/2);
		window.resizeBy(NeueBreite, NeueHoehe);
 	} else {
		if (screen.width >  1200) {NeueBreite = -400;}
		if (screen.width <= 1200) {NeueBreite = -300;}
		if (screen.width <= 1024) {NeueBreite = -200;}
		if (screen.width <= 800) {NeueBreite = 0;}
		NeueHoehe=NeueBreite*aspectRatio;
		flashBereich.style.width = "800px";
		flashBereich.style.height = "500px";
		window.moveTo((screen.availWidth-800)/2, (screen.availHeight-500)/2);
		window.resizeBy(NeueBreite, NeueHoehe);
		window.moveTo((screen.availWidth-800)/2, (screen.availHeight-500)/2);
	}
}
// -->