<!--
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 () {
  if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
    location.href = location.href;
}
/* Überwachung von Netscape initialisieren */
/*
if (!window.Weite && window.innerWidth) {
  window.onresize = neuAufbau;
  Weite = Fensterweite();
  Hoehe = Fensterhoehe();
}
*/

function init(){
	blinkLink1();
	blinkLink2();
}

function blinkLink1() {
	if(document.getElementById("exclusiv")){
		var lnk1 = document.getElementById("exclusiv").style;

	  	if ((lnk1.backgroundImage == 'url("/images/heartGreyVio.gif")')||(lnk1.backgroundImage == 'url(/images/heartGreyVio.gif)')) {
	    	lnk1.color = "#f00";
	    	lnk1.backgroundImage = "url(/images/heartRedVio.gif)";
	    	lnk1.backgroundRepeat = "no-repeat";
	    	lnk1.backgroundColor = "#CA7B95";

	    } else {
			lnk1.color = "#fff";
			lnk1.backgroundImage = "url(/images/heartGreyVio.gif)";
			lnk1.backgroundRepeat = "no-repeat";
			lnk1.backgroundColor = "#CA7B95";

		}
		window.setTimeout(blinkLink1, 800);
	}
}

function blinkLink2() {
	if (window.document.getElementById('telefonsex')) {
		var lnk2 = window.document.getElementById('telefonsex').style;
		
	  	if ((lnk2.backgroundImage == 'url("/images/heartGreyVio.gif")')||(lnk2.backgroundImage == 'url(/images/heartGreyVio.gif)')) {
			// lnk2.color = '#0000ff';
			lnk2.color = '#f00';
	    	// lnk2.backgroundImage = 'url(/images/heartBlueWhite.gif)';
	    	lnk2.backgroundImage = 'url(/images/heartRedVio.gif)';
	    	lnk2.backgroundRepeat = 'no-repeat';
			// lnk2.backgroundColor = '#fff';
			lnk2.backgroundColor = '#CA7B95';

	    } else {
			lnk2.color = '#fff';
			lnk2.backgroundImage = 'url(/images/heartGreyVio.gif)';
			lnk2.backgroundRepeat = 'no-repeat';
			lnk2.backgroundColor = '#CA7B95';

		}
		window.setTimeout(blinkLink2, 800);
	}
}

/**
 * Animiert einen Text
 * wird z.Zt nicht verwendet
 */

var animateText = "Exklusiv";
var speed = 120;
var textColor = "#ececec";
var returnText;
var a;
var b = 0;

function getAnimateText() {
    returnText= '';
    for (a = 0; a < animateText.length; a++) {
        if (a == b) {
            returnText+="<span style=\"color:#ff0000;\">"+animateText.charAt(a)+"</span>";
        } else {
            returnText+="<span style=\"color:" + textColor + ";\">"+animateText.charAt(a)+"</span>";
        }
    }
    if ((b+1) < animateText.length) {
        b++;
    } else {
        b = 0;
    }
    window.document.getElementById("animateText").innerHTML = returnText;

    window.setTimeout ("getAnimateText()",speed);
}

/**
 * Sleep Funktion
 * wird z.Zt nicht verwendet
 * bremst alles aus
 * mit VORSICHT benutzen.
 */
function sleep(ms){
    var zeit=(new Date()).getTime();
    var stoppZeit=zeit+ms;
    while((new Date()).getTime()<stoppZeit){};
}

/**
 * Steuert die Tastatur
 * z.Zt. wird nur F12 als Cheftaste für Google genutzt
 */
function setKeyDown (startEvent) {
    if (!startEvent) {
        startEvent = window.event;
    }
    if (startEvent.which) {
        selectedKeyCode = startEvent.which;
    } else if (startEvent.keyCode) {
        selectedKeyCode = startEvent.keyCode;
    }
    if (selectedKeyCode == 123) {
        window.location.href = 'http://www.google.de';
        return false;
    }

}
document.onkeydown = setKeyDown;


function popupWindow(url, name, links, oben, hoehe, breite) {
	if(!links)  links = 10;
	if(!oben) 	 oben = 10;
	if(!hoehe) 	hoehe = 400;
	if(!breite)	breite = 400;

	popup = window.open(url , name , "height="+hoehe+",width="+breite+" ,status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ="+oben+",left ="+links);
	popup.focus();
 }
//-->
