function linienflug()
{
	window.open("http://www.reise.coop/pagevert.php?xint_aevnr=20078&xint_typ=F","","statusbar=yes,width=800,height=550,screenX=0,screenY=0,scrollbars=yes,resizable=1,left=10,top=200");
}

function inlandsflug()
{
	window.open("http://bookings.virginblue.com.au/skylights/cgi-bin/skylights.cgi","","statusbar=yes,width=580,height=550,screenX=0,screenY=0,scrollbars=yes,resizable=1,left=10,top=200");
}

function urlaubsreisen()
{
	window.open("http://www.reise.coop/pagevert.php?xint_aevnr=20078&xint_typ=P","","statusbar=yes,width=860,height=470,screenX=0,screenY=0,scrollbars=yes,resizable=1,left=10,top=200");
}

function reiseplan()
{
	window.open("http://www.reiseplan.com","","statusbar=yes,width=780,height=400,screenX=0,screenY=0,scrollbars=no,resizable=1,left=10,top=200");
}

function reiseversicherung()
{
	window.open("https://www.reiseversicherung.de/jservlet/vrv?primaryAgentNumber=064780&secondaryAgentNumber=000000","","statusbar=yes,width=760,height=400,screenX=0,screenY=0,scrollbars=yes,resizable=1,left=10,top=200");
}

function mietwagen()
{
	window.open("http://www.holidayautos.de/auswahl.asp?agentur=38801","","statusbar=yes,width=760,height=400,screenX=0,screenY=0,scrollbars=yes,resizable=1,left=10,top=200");
}

function hotels()
{
	// window.open("http://booking.needahotel.com/Enter.jsp?siteid=20078","","statusbar=yes,width=760,height=450,screenX=0,screenY=0,scrollbars=yes,resizable=1,left=10,top=200");
	//window.open("http://www.travelcube.com/uk/OneSignOnRetail?&agentid=17138&licenceType=1&licenceNo=20078&email=info@hm-touristik.de&pword=Travel&siteid=rbsde","","statusbar=yes,width=790,height=550,screenX=0,screenY=0,scrollbars=yes,resizable=1,left=10,top=200");
	alert("Derzeit leider nicht möglich!");
}

function britzflex()
{
	window.open("http://www.britzflex.com/britz/index.asp?lang=ger","","statusbar=yes,width=760,height=400,screenX=0,screenY=0,scrollbars=yes,resizable=1,left=10,top=200");
}

function mauiflex()
{
	window.open("http://www.mauiflex.com/maui/index.asp?lang=ger","","statusbar=yes,width=760,height=400,screenX=0,screenY=0,scrollbars=yes,resizable=1,left=10,top=200");
}

function tell_a_friend(URL)
{
	uebergabe = "tell_a_friend.php?angebot=" + URL;
	window.open(uebergabe,"","statusbar=yes,width=760,height=400,screenX=0,screenY=0,scrollbars=yes,resizable=1,left=10,top=200");
}

function angebot_print(inhaltslayer) {

if(inhaltslayer == undefined) inhalt = document.getElementById('inhalt_rahmen').innerHTML;
else  inhalt = document.getElementById(inhaltslayer).innerHTML;

var Fenster = window.open("angebot_drucken.php","angebotdrucken","status=1,width=780,height=450,screenX=0,screenY=0,scrollbars=yes,resizable=1,left=10,top=200");
Fenster.focus();
Fenster.document.open();

Fenster.document.writeln('<?xml version="1.0" encoding="UTF-8"?>');
Fenster.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"');
Fenster.document.writeln('	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
Fenster.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml">');
Fenster.document.writeln('<head>');
Fenster.document.writeln('<link rel="stylesheet" href="../master.css" type="text/css" />');
Fenster.document.writeln('<title>Angebot ausdrucken</title>');
Fenster.document.writeln('</head>');
Fenster.document.writeln('');
Fenster.document.writeln('<body onLoad="window.print();">');
Fenster.document.writeln('<div style="width: 100%; height: 60px; top: 0px; left: 0px; background-image: url(../images/xxghinta.gif); background-repeat: repeat-x; text-align: right;"><a href="JavaScript: window.print();" style="padding: 20px;">Angebot ausdrucken</a></div>');
Fenster.document.writeln('');
Fenster.document.writeln('<div id="inhalt_rahmen" style="margin: 20px;">');
Fenster.document.writeln(inhalt);
Fenster.document.writeln('</div>');
Fenster.document.writeln('</body>');
Fenster.document.writeln('</html>');

Fenster.document.close();

}

function init_teaser()
{
	topmarginwert = 50;
}

function teaser_scroll_down() {
	
	document.getElementById('teaser_info').style.visibility = 'hidden'; 
	
	topmarginwert = topmarginwert - 5;
	
	document.getElementById('spezialangebote').style.marginTop = '-'+topmarginwert+'px';
	
	if(topmarginwert > 0) window.setTimeout("teaser_scroll_down()",10);
	else {
		document.getElementById('spezialangebote').style.marginTop = '0px';
		document.getElementById('nav_close').style.visibility = 'visible';
		topmarginwert = 0;
	}
	
}


function teaser_scroll_up() {

	topmarginwert = topmarginwert + 5;
	
	document.getElementById('spezialangebote').style.marginTop = '-'+topmarginwert+'px';
	
	if(topmarginwert < 50) window.setTimeout("teaser_scroll_up()",5);
	else {
		document.getElementById('nav_close').style.visibility = 'hidden';
		document.getElementById('teaser_info').style.visibility = 'visible';
		document.getElementById('spezialangebote').style.marginTop = '-50px';
		topmarginwert = 50;
	}
}


function teaser_to_left() {

	var i, davor;
	
	for(i=1;i<=4;i++) {
		if(document.getElementById("spezialangebote_"+i).style.visibility != "hidden") break;
	}

	document.getElementById("nav_to_left").style.visibility = "visible";
	document.getElementById("nav_to_right").style.visibility = "visible";
	
	document.getElementById("spezialangebote_"+i).style.visibility = "hidden";
	document.getElementById("spezialangebote_"+i).style.display = "none";
	
	davor = i - 1;
	
	document.getElementById("spezialangebote_"+davor).style.visibility = "visible";
	document.getElementById("spezialangebote_"+davor).style.display = "inline";
	
	if(davor <= 1) {
		document.getElementById("nav_to_left").style.visibility = "hidden";
	}

}

function teaser_to_right() {

	var i, danach;
	var anzahl_teaser = 4;
	
	for(i=1;i<=4;i++) {
		if(document.getElementById("spezialangebote_"+i).style.visibility != "hidden") break;
	}
	
	document.getElementById("nav_to_left").style.visibility = "visible";
	document.getElementById("nav_to_right").style.visibility = "visible";
	
	document.getElementById("spezialangebote_"+i).style.visibility = "hidden";
	document.getElementById("spezialangebote_"+i).style.display = "none";
	
	danach = i + 1;
	
	document.getElementById("spezialangebote_"+danach).style.visibility = "visible";
	document.getElementById("spezialangebote_"+danach).style.display = "inline";
	
	if(danach >= anzahl_teaser) {
		document.getElementById("nav_to_right").style.visibility = "hidden";
	}
}

