<!--
function openReiseangebot(RVNAME, URL)
{
	var Name = RVNAME;
	var Fensteroptionen = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1";
	var Breite = 720;
	var Hoehe = 1000;
	window.open(URL,'Name' , Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
}

function openAnfrage()
{
	var Fensteroptionen = 'toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=yes,top=0,width=600,height=1000';
	window.open('http://www.viamondia.de/partner/anfrage/?pid=5137','Buchungsanfrage' , Fensteroptionen);
}

function openAngebot(RVNAME, URL, Breite, Hoehe)
{	self.focus();
	var Name = RVNAME;
	var Fensteroptionen = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1";
	window.open(URL,'Name' , Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
	
}

function openWindow(NAME, URL)
{
	var Fensteroptionen = "toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1";
	window.open(URL,'Name' , Fensteroptionen);
}

function openNewWindow(NAME, DTarget)
{
	var Fensteroptionen = "toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=1000,height=800";
	var Z = "/go.php?xyz=";
	var T = "http://" + window.location.hostname + Z;
	window.open(T + DTarget,'Name', Fensteroptionen);
}

function openNewWindow2(NAME, DTarget)
{
	var Fensteroptionen = "toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=1000,height=800";
	var Z = "/go.php?xyz=";
	var T = "http://www.reiseangebote-preisvergleich.de/" + Z;
	window.open(T + DTarget,'Name', Fensteroptionen);
}

function openWinterangebote(NAME, DTarget)
{	var Fensteroptionen = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=1000";
	var Z = "/go.php?xyz=";
	var T = "http://www.reiseangebote-preisvergleich.de/" + Z;
	window.open(T + DTarget,'Name', Fensteroptionen);
}

function openAngebotDetails(NAME, DTarget)
{	var Fensteroptionen = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=1000";
	var Z = "go.php?xyz=";
	var T = "http://www.reiseangebote-preisvergleich.de/" + Z;
	window.open(T + DTarget,'Name', Fensteroptionen);
}

function Mailto(thishref){
	thishref.href = 'mailto:info@reiseangebote-preisvergleich.de?subject=' + escape('An die Redaktion');
}

function Go (select) {
  var wert = select.options[select.options.selectedIndex].value;
  if (wert == "") {
    select.form.reset();
     return;
  } else {
     location.href = wert;
  }
}

function Bildwechsel(ImgName,URL) {
 	window.document.images[ImgName].src=URL.src;
}

var breite;
var hoehe;

//Fenstergröße und -breite feststellen
function Analyse()
{
if (navigator.appName=="Netscape")
  {
   breite = innerWidth;
   hoehe = innerHeight;
  }
   else
  {
   breite = document.body.offsetWidth;
   hoehe = document.body.offsetHeight;
  }
}

function Check(){
  alert("Die aktuelle Fenstergröße\n Breite: " + 
	document.body.offsetWidth+"  Höhe: "+document.body.offsetHeight + " Pixel")
}

function resizewin(im){
   var w=(im.width<200)?250:im.width+50, h=im.height+100+(36000/w)
   if(window.resizeTo) window.resizeTo(w,h)
   window.focus()
  }
  
function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}

function Fensterhoehe () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}

function neuAufbau() {
	
//Mozilla
if (window.innerHeight) {
	h = (window.outerHeight+(window.innerHeight/2)) 
	document.getElementById("myiframe").display="block";
	document.getElementById("myiframe").height = h;
	
//IE
} else if (document.body && document.body.offsetHeight) {

	h = (document.body.offsetHeight);
	//document.getElementById("myiframe").style.display="block";
	document.getElementById("myiframe").height =document.body.scrollHeight;
		
} else {
	h = 2000;
	document.getElementById("myiframe").style.height = h;
	document.getElementById("myiframe").style.display="block";
}

  
}

function OpenWindow(strZiel, strName) {
  if (strName == "Auswahl1") {
    var who=document.forms[0].vnd[document.forms[0].vnd.selectedIndex].text;
    var who_utc=document.forms[0].vnd[document.forms[0].vnd.selectedIndex].value;
  }
  if (strName == "Auswahl2") {
    var who=document.forms[0].bsd[document.forms[0].bsd.selectedIndex].text;
    var who_utc=document.forms[0].bsd[document.forms[0].bsd.selectedIndex].value;
  }
    var elemente = who.split(".");
    var intMonth = elemente[1];
    var intYear = elemente[2].slice(0,4);
	var diff = (screen.width) / 2;
	var xleft = diff -75;
    strZiel = strZiel + "&year=" + intYear + "&month=" + intMonth + "&checked_utc=" + who_utc;
  Test = window.open(strZiel, strName, 'left='+xleft+',top=360,width=250,height=150,scrollbars=no,resizable=no');

}

function abreise(){
    switch  (document.forms[0].mmc.selectedIndex){
        case 0:
            duration = 7;
            break;
        case 1:
            duration = 4;
            break;
        case 2:
            duration = 8;
            break;
        case 3:
            duration = 7;
            break;
        case 4:
            duration = 15;
            break;
        case 5:
            duration = 14;
            break;
        case 6:
            duration = 22;
            break;
        case 7:
            duration = 28;
            break;
    }
    if((document.forms[0].vnd.selectedIndex + duration) <= document.forms[0].bsd.options.length){
        document.forms[0].bsd.selectedIndex = document.forms[0].vnd.selectedIndex +duration;
    }
    else{
        document.forms[0].bsd.selectedIndex = document.forms[0].bsd.options.length-1;
    }
}

function Go2Angebot(detail){
    var param = '/go.php?xyz=' + detail;
    var dest = 'http://' + window.location.hostname;
    var turlr = dest + param;
    var Fenster1 = window.open(turlr, 'Angebot', 'location=yes,scrollbars=yes,menubar=yes,status=yes,toolbar=yes,resizable=yes,width=800,height=600');
    Fenster1.focus();    
} 

function RVbewerten(RVNAME, RVLink)
{	
	var URL = "/reiseveranstalter/" + RVLink + "/bewerten.html";
	var Name = "Reiseveranstalter " + RVNAME + " bewerten";
	var Fensteroptionen = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0";
	var Breite = 600;
	var Hoehe = 800;
	window.open(URL,'Name' , Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
}

function viewAGB(){
	var Fenster1 = window.open("http://www.reiseangebote-preisvergleich.de/agb.php");
	Fenster1.focus();
}

function viewFAQ(){
	var Fenster1 = window.open("http://www.reiseangebote-preisvergleich.de/faq.php");
	Fenster1.focus(); 
}

function viewDatenschutz(){
	var Fenster1 = window.open("http://www.reiseangebote-preisvergleich.de/datenschutz.php");
	Fenster1.focus(); 
}

function viewImpressum(){
	var Fenster1 = window.open("http://www.reiseangebote-preisvergleich.de/impressum.php");
	Fenster1.focus(); 
}

function viewKontakt(){
	var Fenster1 = window.open("http://www.reiseangebote-preisvergleich.de/kontakt.php");
	Fenster1.focus(); 
}

function getCoords(){

    var top = screen.availHeight;

    if(document.all){
        var yadd = document.body.scrollTop;
        var left = document.body.offsetWidth;
    }
    else{
        var yadd = window.pageYOffset;
        var left = window.innerWidth;
    }

    if(((left/2)- 280)>0){
        posx=((left/2)-140);
    }
    else{
        posx=20;
    }
    if(((top/2)- 100)>0){
        posy=(((top/2) - 200) + yadd + 0);
    }
    else{
        posy=20;
    }
}


function show_animation()
{
getCoords();
document.getElementById('animation').style.left = posx+'px';
document.getElementById('animation').style.top = posy+'px';
document.getElementById('animation').style.visibility = "visible";
}

function position_animation()
{
getCoords();
document.getElementById('animation').style.left = posx+'px';
document.getElementById('animation').style.top = posy+'px';
}

function OptionErwachsene(){
	document.write('<option value="1">1 Person</option><option value="2" selected="selected">2 Personen</option><option value="3">3 Personen</option><option value="4">4 Personen</option>');
}
function OptionKinder1(){
	document.write('<option value="0" selected="selected">ohne Kind 1</option><option value="1">unter 2 J.</option><option value="2">2 Jahre </option> <option value="3">3 Jahre </option> <option value="4">4 Jahre </option> <option value="5">5 Jahre </option> <option value="6">6 Jahre </option> <option value="7">7 Jahre </option> <option value="8">8 Jahre </option> <option value="9">9 Jahre </option> <option value="10">10 Jahre </option> <option value="11">11 Jahre </option> <option value="12">12 Jahre </option> <option value="13">13 Jahre </option> <option value="14">14 Jahre </option> <option value="15">15 Jahre </option><option value="16">16 Jahre </option>');
}
function OptionKinder2(){
	document.write('<option value="0" selected="selected">ohne Kind 2</option><option value="1">unter 2 J.</option><option value="2">2 Jahre </option> <option value="3">3 Jahre </option> <option value="4">4 Jahre </option> <option value="5">5 Jahre </option> <option value="6">6 Jahre </option> <option value="7">7 Jahre </option> <option value="8">8 Jahre </option> <option value="9">9 Jahre </option> <option value="10">10 Jahre </option> <option value="11">11 Jahre </option> <option value="12">12 Jahre </option> <option value="13">13 Jahre </option> <option value="14">14 Jahre </option> <option value="15">15 Jahre </option><option value="16">16 Jahre </option>');
}
function OptionKinder3(){
	document.write('<option value="0" selected="selected">ohne Kind 3</option><option value="1">unter 2 J.</option><option value="2">2 Jahre </option> <option value="3">3 Jahre </option> <option value="4">4 Jahre </option> <option value="5">5 Jahre </option> <option value="6">6 Jahre </option> <option value="7">7 Jahre </option> <option value="8">8 Jahre </option> <option value="9">9 Jahre </option> <option value="10">10 Jahre </option> <option value="11">11 Jahre </option> <option value="12">12 Jahre </option> <option value="13">13 Jahre </option> <option value="14">14 Jahre </option> <option value="15">15 Jahre </option><option value="16">16 Jahre </option>');
}
function OptionReisedauer(){
	document.write('<option value="0" selected="selected">beliebig</option><option value="1-5t">1-5 Tage</option><option value="1w">1 Woche</option><option value="6-8t">6-8 Tage</option><option value="9-12t">9-12 Tage</option><option value="2w">2 Wochen</option><option value="13-16t">13-16 Tage</option><option value="3w">3 Wochen</option><option value="17-22t">17-22 Tage</option><option value="4w">4 Wochen</option><option value="27-28t">27-28 Tage</option>');
}

function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}



var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}

function fullwin(targeturl){
window.open(targeturl,"","fullscreen,scrollbars")
}

//PopUp-Generator von http://www.dauerstress.de 
function openMyAd(DiUrl) 
{ 
 var breite=1024; 
 var hoehe=768; 
 var positionX=0; 
 var positionY=0; 
 var url=DiUrl; //'http://www.schmetterling-hotelguide.de/?uid=12920&com=hg&product=bihg&subid=700214&flipCat=1&travelmail=1'; 
 pop=window.open('','myAd','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,fullscreen=0,width='+breite+',height='+hoehe+',top=0,left=0'); 
 pop.blur(); 
 pop.resizeTo(breite,hoehe); 
 pop.moveTo(positionX,positionY); 
 pop.location=url; 
 }


function stopError()
{
		return true;
}



// Popunder
//specify popunder window features
//http://www.schmetterling-hotelguide.de/?uid=12920&com=hg&product=bihg&subid=700214&flipCat=1&travelmail=1
var popunder="http://stat.reiseangebote-preisvergleich.de/phpmyvisites.php?url=http%3A//ad.zanox.com/ppc/%3F15263928C1757438454T&id=1&pagename=FILE:POPUNDER"; //Network4Holiday

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
	if (get_cookie('popunder')==''){
	loadpopunder()
	document.cookie="popunder=yes"
	}
}

function loadpopunder(){
var win2=window.open(popunder,"",winfeatures)
win2.blur()
window.focus()
}


//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=950,height=768,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,fullscreen=1,status=1,directories=1"
//Pop-under only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=0

if (once_per_session==0){
//loadpopunder()
}else{
//loadornot()
}
//-->

function TrackerPixel(U){
    document.write('<img src="'+U+'" id="#znif_1" width="0" height="0"/>');
}
