// -- VARIABLEN --------------------

var stand 			= "26.09.2005";

// ---------------------------------

// BrowserCheck Object
function BrowserCheck() {
var b = navigator.appName
if (b=="Netscape") this.b = "ns"
else if (b=="Microsoft Internet Explorer") this.b = "ie"
else this.b = b
this.version = navigator.appVersion
this.v = parseInt(this.version)
this.ns = (this.b=="ns" && this.v>=4)
this.ns4 = (this.b=="ns" && this.v==4)
this.ns5 = (this.b=="ns" && this.v==5)
this.ie = (this.b=="ie" && this.v>=4)
this.ie4 = (this.version.indexOf('MSIE 4')>0)
this.ie5 = (this.version.indexOf('MSIE 5')>0)
this.ie6 = (this.version.indexOf('MSIE 6')>0)
this.ie7 = (this.version.indexOf('MSIE 7')>0)
this.min = (this.ns5)||(this.ie5)||(this.ie6)||(this.ie7)
}
is = new BrowserCheck();

// Aufrufparameter auslesen
var actual_page = "";
var url= window.location.href;
function next_par(suchstr) {
  var e1=url.indexOf(suchstr);
  if(e1 > 0) {
    url=url.substring(e1+suchstr.length, url.length);
    var e1=url.indexOf('&');
    if(e1 > 0) {
      return(url.substring(0, e1));
    }
    else {
      return(url.substring(0, url.length));
    }
  }
  return("");
}
product=next_par("?product=");if(product!=""){product=parseInt(product)};
//alert(product);

// --  hide Emailadresse  --

function emladr(prefix,domain) {
  document.write(prefix + '@' + domain);
}

function emladrlink(prefix,domain) {
  document.write('<a href=\"mailto:' + prefix + '@' + domain + '\">');
  emladr(prefix,domain);
  document.write('</a>');
}

// --  Text-Fenster öffnen  --

var opentextwin = null;
function doopentext(titletext,ltxt)
{
  if (opentextwin && !opentextwin.closed) { opentextwin.close(); }
  pleft = screen.width/2-200; 
  ptop = screen.height/2-225; 
  properties = "toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no";
  opentextwin= window.open('','opentextwin','top='+ptop+',left='+pleft+',width=400,height=450,'+properties);
  opentextwin.document.open();
  opentextwin.document.write('<html><head><link rel=stylesheet type="text/css" MEDIA="screen" href="styles.css"></head><body text="#666666" bgcolor="#FFFFFF" link="#666666" vlink="#666666" alink="#666666">');
  opentextwin.document.write('<table cellpadding=10 width="350"><tr><td><p class="content"><br><b>'+titletext+'</b></p><p class="content">'+ltxt+'<br><br>');
  opentextwin.document.write('<br><a href="javascript:window.close();">( Fenster schlie&szlig;en )</a><br></p></td></tr></table></body></html>');
  opentextwin.document.close()
  opentextwin.focus();
}

// --  mouseover/mouseout-events  --

var activedot="";
function blackdot(id) { if (id!=activedot) {document.getElementById(id).src = "blackdot.gif";} }
function blackdotandline(id) { if (id!=activedot) {document.getElementById(id).src = "blackdot.gif";} }
function greydot(id) { if (id!=activedot) {document.getElementById(id).src = "greydot.gif";} }
function greydotwithout(id) { if (id!=activedot) {document.getElementById(id).src = "greydot.gif";} }
function orangedot(id) { if (id!=activedot) {document.getElementById(id).src = "orangedot.gif";} }

// --  Map  --

function browser_test() {
	if (is.min == false) { document.write('<div style="position:absolute;top:120px;left:120px;width:300px;z-index:1000;"><table bgcolor="#666666" BORDER=1 CELLSPACING=0 CELLPADDING=5 WIDTH="100%"><tr><td align=center style="font: 9px Verdana, Arial, Helvetica, sans-serif;color: #ffffff;">Zur vollständigen und korrekten Ansicht benötigen Sie einen aktuellen Browser<br>(Internet Explorer 5.x bzw. Netscape 6.x oder höher)</td></tr></table></div>'); }

	document.write('<iframe src="http://www.esthetic-beauty.de/counter_data/eb/zaehler.php?iframereferrer='+escape(document.referrer)+'" width=0 height=0 border=0></iframe>');	
}

// --  Punkte  --

function dots_out() {
	document.write('<div id="divdot0"><a href="http://www.esthetic-beauty.de"><IMG id="dot0" SRC="greydot.gif" onmouseover=blackdot("dot0"); onmouseout=greydot("dot0"); BORDER="0"></a></div>');
	document.write('<div id="divdot1"><a href="kontakt.php"><IMG id="dot1" SRC="orangedot.gif" onmouseover=blackdot("dot1"); onmouseout=orangedot("dot1"); BORDER="0"></a></div>');
	document.write('<div id="divdot2"><a href="faqs-hilfe.php"><IMG id="dot2" SRC="orangedot.gif" onmouseover=blackdot("dot2"); onmouseout=orangedot("dot2"); BORDER="0"></a></div>');
	document.write('<div id="divdot3"><a href="impressum.php"><IMG id="dot3" SRC="orangedot.gif" onmouseover=blackdot("dot3"); onmouseout=orangedot("dot3"); BORDER="0"></a></div>');
	document.write('<div id="divdot4"><a href="philosophie.php"><IMG id="dot4" SRC="orangedot.gif" onmouseover=blackdotandline("dot4"); onmouseout=orangedot("dot4"); BORDER="0"></a></div>');
	document.write('<div id="divdot5"><a href="produkt-uebersicht.php"><IMG id="dot5" SRC="orangedot.gif" onmouseover=blackdotandline("dot5"); onmouseout=orangedot("dot5"); BORDER="0"></a></div>');
	document.write('<div id="divdot6"><a href="produkt-finder.php"><IMG id="dot6" SRC="orangedot.gif" onmouseover=blackdotandline("dot6"); onmouseout=orangedot("dot6"); BORDER="0"></a></div>');
	document.write('<div id="divdot7"><a href="agb.php"><IMG id="dot7" SRC="orangedot.gif" onmouseover=blackdotandline("dot7"); onmouseout=orangedot("dot7"); BORDER="0"></a></div>');
//	document.write('<div id="divdot8"><a href="agb.php"><IMG id="dot8" SRC="greydot.gif" onmouseover=blackdotandline("dot8"); onmouseout=greydot("dot8"); BORDER="0"></a></div>');
//	document.write('<div id="divdot9"><a href="haarprobleme.php"><IMG id="dot9" SRC="greydot.gif" onmouseover=blackdotandline("dot9"); onmouseout=greydotwithout("dot9"); BORDER="0"></a></div>');
}

// -- Shop-Links --

function shoplink(nr) {
	window.open('http://www.vitalo24.com/modules.php?warp=artikel&id='+nr);
}
