function surfto(form) {
         var myindex=form.select1.selectedIndex
         if (form.select1.options[myindex].value != "0") {
         window.open(form.select1.options[myindex].value, target="");}
 }

function Rezeptderwoche()
{return "<a href=\"http://www.naturkost.de/rezept/rezept-der-woche/index.htm\" class=\"navigate\"><img src=\"http://www.schrotundkorn.de/bilder/200804/rr-2.jpg\" border=\"0\" vspace=\"5\"></a><br><b><a href=\"http://www.naturkost.de/rezept/rezept-der-woche/index.htm\" class=\"navigate\">Pilze in Sekt und Kokosmilch mit Pasta</a></b>";}

function teaser1()
{return "";}

function teaserbbl()
{return "<div class=\"teaser\"><h3></h3><div class=\"teasertabelle\"><p align=\"left\"><a href=\"http://www.besterbioladen.de/\"><img src=\"http://www.besterbioladen.de/img/bbllogo2009_155.gif\" border=\"0\" vspace=\"5\"></a><br>Geben Sie Ihrem Bioladen Feedback - dabei gewinnen beide Seiten! Ihr Bioladen erf&auml;hrt, was Sie sch&auml;tzen, was Sie sich w&uuml;nschen, und kann sich daran orientieren. Und Sie gewinnen mit etwas Gl&uuml;ck ein umweltfreundliches Elektro-Auto...<p align=\"center\"><form action=\"http://www.besterbioladen.de/\"><input type=\"submit\" value=\">> Hier Wählen! \" style=\"font-size:12px\"></p></form><p>Bisher gingen 10.762 Abstimmungen online ein, per Post haben bis zum 7.12.09 31.550 Leser abgestimmt. (W&auml;hler insgesamt im Jahr 2008: 35.626). Nutzen auch Sie Ihr Wahlrecht!</p></div><div class=\"teasertabelle\"><table border=\"0\" cellpadding=\"0\" width=\"260\"><tr><td><DIV class=\"teasertabelle\" STYLE=\"position:relative; left:18px; top:2px; width:220px; height:auto; clip:rect(0,149,560,0);\"></DIV></td></tr></table></div></div>";}

var min=8;
var max=18;
function increaseFontSize() {
   var p = document.getElementsByTagName('div');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 14;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('div');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 14;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}


/***********************************************
* Dolphin Tabs Menu- by JavaScript Kit (www.javascriptkit.com)
* This notice must stay intact for usage
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
***********************************************/

var dolphintabs={
	subcontainers:[], last_accessed_tab:null,

	revealsubmenu:function(curtabref){
	this.hideallsubs()
	if (this.last_accessed_tab!=null)
		this.last_accessed_tab.className=""
	if (curtabref.getAttribute("rel")) //If there's a sub menu defined for this tab item, show it
	document.getElementById(curtabref.getAttribute("rel")).style.display="block"
	curtabref.className="current"
	this.last_accessed_tab=curtabref
	},

	hideallsubs:function(){
	for (var i=0; i<this.subcontainers.length; i++)
		document.getElementById(this.subcontainers[i]).style.display="none"
	},


	init:function(menuId, selectedIndex){
	var tabItems=document.getElementById(menuId).getElementsByTagName("a")
		for (var i=0; i<tabItems.length; i++){
			if (tabItems[i].getAttribute("rel"))
				this.subcontainers[this.subcontainers.length]=tabItems[i].getAttribute("rel") //store id of submenu div of tab menu item
			if (i==selectedIndex){ //if this tab item should be selected by default
				tabItems[i].className="current"
				this.revealsubmenu(tabItems[i])
			}
		tabItems[i].onmouseover=function(){
		dolphintabs.revealsubmenu(this)
		}
		} //END FOR LOOP
	}

}


function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}



function openTafWindow(theURL,winName,features) {
var mLoc=window.location.href;var dTitle=document.title;
dTitle=escape(dTitle);mLoc=escape(mLoc);
var mST=(theURL.indexOf('?')!=-1)?'&fr=':'?fr=';
theURL=theURL+mST+mLoc +'&dt='+dTitle;
var myWin=window.open(theURL,winName,features);
myWin.focus();
}



function getRefQuery () {
  var Refer = document.referrer
  if ( ! Refer ) return false
  q = Refer.match(/(q(([^=]*)|kw)?|xt)=([^"&;]+)/)
  if ( ! q ) return false

//----- no cross-script hacking, please
  var qry = unescape( q[ ( q.length - 1 ) ] )
  qry = qry.replace(/</g, '&lt;')
  qry = qry.replace(/>/g, '&gt;')
  qry = qry.replace(/:/g, ' ')
  qry = qry.replace(/\./g, ' ')
  qry = qry.replace(/\+/g, ' ')

    var plaintext = ""; var i=0; var c=c1=c2=0;
    while(i<qry.length)
        {
        c = qry.charCodeAt(i);
        if (c<128) {
            plaintext += String.fromCharCode(c);
            i++;}
        else if((c>191) && (c<224)) {
            c2 = qry.charCodeAt(i+1);
            plaintext += String.fromCharCode(((c&31)<<6) | (c2&63));
            i+=2;}
        else {
            c2 = qry.charCodeAt(i+1); c3 = qry.charCodeAt(i+2);
            plaintext += String.fromCharCode(((c&15)<<12) | ((c2&63)<<6) | (c3&63));
            i+=3;}
        }

  if ( ! qry.match(/\w/) ) return false
  return ("<div class=\"teaser\"><h3>mehr Infos zu... </h3><p><i>&bdquo;"+plaintext+"&ldquo;</i> gefunden!</p><div class=\"teasertabelle\"><p><table border=\"0\" cellpadding=\"0\" width=\"260\"><tr><td><div class=\"teasertabelle\" style=\"position:relative; left:18px; top:2px; width:220px; height:210; clip:rect(0,149,560,0);\"><iframe name=\"bewertung\" src=\"http://www.naturkost.de/cgi-bin/sucheliste/search.pl?Realm=All&Terms=" +plaintext+"\"width=\"220\" height=\"200\" frameborder=\"0\" scrolling=\"auto\"></iframe></div></td></tr></table></p></div></div>")
}



function getRefQueryBreit () {
  var Refer = document.referrer
  if ( ! Refer ) return false
  q = Refer.match(/(q(([^=]*)|kw)?|xt)=([^"&;]+)/)
  if ( ! q ) return false

//----- no cross-script hacking, please
  var qry = unescape( q[ ( q.length - 1 ) ] )
  qry = qry.replace(/</g, '&lt;')
  qry = qry.replace(/>/g, '&gt;')
  qry = qry.replace(/:/g, ' ')
  qry = qry.replace(/\./g, ' ')
  qry = qry.replace(/\+/g, ' ')

    var plaintext = ""; var i=0; var c=c1=c2=0;
    while(i<qry.length)
        {
        c = qry.charCodeAt(i);
        if (c<128) {
            plaintext += String.fromCharCode(c);
            i++;}
        else if((c>191) && (c<224)) {
            c2 = qry.charCodeAt(i+1);
            plaintext += String.fromCharCode(((c&31)<<6) | (c2&63));
            i+=2;}
        else {
            c2 = qry.charCodeAt(i+1); c3 = qry.charCodeAt(i+2);
            plaintext += String.fromCharCode(((c&15)<<12) | ((c2&63)<<6) | (c3&63));
            i+=3;}
        }

  if ( ! qry.match(/\w/) ) return false
  return ("<table width=\"450\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#FFFFFF\"><tr><td height=\"19\" align=\"left\" valign=\"bottom\"><em class=\"headline\">Sie suchen Informationen zu <i>\&bdquo;"+plaintext+"\"</i>?</em><br><img src=\"http://www.naturkost.de/bilder/green.gif\" alt=\"1\" width=\"450\" height=\"1\"></td></tr><tr><td><br class=br8>Vielleicht helfen Ihnen die folgenden Artikel weiter:</td><td></td></tr><tr><td class=\"br1highlight\"></td></tr><tr valign=\"top\"><td><DIV STYLE=\"position:relative; left:0; top:0; width:450; height:230; clip:rect(0,0,0,0);\"><IFRAME name=\"bewertung\" SRC=\"http://www.naturkost.de/cgi-bin/sucheiframe/search.pl?Match=1&Realm=All&Terms="+plaintext+"\"WIDTH=\"450\" HEIGHT=\"230\" FRAMEBORDER=\"0\" SCROLLING=\"auto\" STYLE=\"border-style:dotted; border-width:1px\"></IFRAME></td></tr></table><br>")
}


function getRefQueryRezeptBild () {
  var Refer = document.referrer
  if ( ! Refer ) return false
  q = Refer.match(/(terms|Terms(([^=]*)|kw)?|p)=([^"&;]+)/)
  if ( ! q ) return false

//----- no cross-script hacking, please
  var qry = unescape( q[ ( q.length - 1 ) ] )
  qry = qry.replace(/</g, '&lt;')
  qry = qry.replace(/>/g, '&gt;')
  qry = qry.replace(/:/g, ' ')
  qry = qry.replace(/\./g, ' ')
  qry = qry.replace(/\+/g, ' ')

  if ( ! qry.match(/\w/) ) return false
  return ("<br><table border=\"0\" width=\"154\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><IFRAME name=\"bewertung\" SRC=\"http://www.naturkost.de/cgi-bin/datenbanken/rezepte.cgi?searchstring="+qry+"\"WIDTH=\"152\" HEIGHT=\"280\" FRAMEBORDER=\"0\" SCROLLING=\"no\"></IFRAME></td></tr></table><br>")
}


function getRefQueryRezeptBildG () {
  var Refer = document.referrer
  if ( ! Refer ) return false
  q = Refer.match(/(q(([^=]*)|kw)?|xt)=([^"&;]+)/)
  if ( ! q ) return false

//----- no cross-script hacking, please
  var qry = unescape( q[ ( q.length - 1 ) ] )
  qry = qry.replace(/</g, '&lt;')
  qry = qry.replace(/>/g, '&gt;')
  qry = qry.replace(/:/g, ' ')
  qry = qry.replace(/\./g, ' ')
  qry = qry.replace(/\+/g, ' ')

    var plaintext = ""; var i=0; var c=c1=c2=0;
    while(i<qry.length)
        {
        c = qry.charCodeAt(i);
        if (c<128) {
            plaintext += String.fromCharCode(c);
            i++;}
        else if((c>191) && (c<224)) {
            c2 = qry.charCodeAt(i+1);
            plaintext += String.fromCharCode(((c&31)<<6) | (c2&63));
            i+=2;}
        else {
            c2 = qry.charCodeAt(i+1); c3 = qry.charCodeAt(i+2);
            plaintext += String.fromCharCode(((c&15)<<12) | ((c2&63)<<6) | (c3&63));
            i+=3;}
        }

  if ( ! qry.match(/\w/) ) return false
  return ("<br><table border=\"0\" width=\"154\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><IFRAME name=\"bewertung\" SRC=\"http://www.naturkost.de/cgi-bin/datenbanken/rezepte.cgi?searchstring="+plaintext +"\"WIDTH=\"152\" HEIGHT=\"280\" FRAMEBORDER=\"0\" SCROLLING=\"no\"></IFRAME></td></tr></table><br>")
}




function getRefQueryRezept () {
  var Refer = document.referrer
  if ( ! Refer ) return false
  q = Refer.match(/(q(([^=]*)|kw)?|xt)=([^"&;]+)/)
  if ( ! q ) return false

//----- no cross-script hacking, please
  var qry = unescape( q[ ( q.length - 1 ) ] )
  qry = qry.replace(/</g, '&lt;')
  qry = qry.replace(/>/g, '&gt;')
  qry = qry.replace(/:/g, ' ')
  qry = qry.replace(/\./g, ' ')
  qry = qry.replace(/\+/g, ' ')

    var plaintext = ""; var i=0; var c=c1=c2=0;
    while(i<qry.length)
        {
        c = qry.charCodeAt(i);
        if (c<128) {
            plaintext += String.fromCharCode(c);
            i++;}
        else if((c>191) && (c<224)) {
            c2 = qry.charCodeAt(i+1);
            plaintext += String.fromCharCode(((c&31)<<6) | (c2&63));
            i+=2;}
        else {
            c2 = qry.charCodeAt(i+1); c3 = qry.charCodeAt(i+2);
            plaintext += String.fromCharCode(((c&15)<<12) | ((c2&63)<<6) | (c3&63));
            i+=3;}
        }

  if ( ! qry.match(/\w/) ) return false
  return ("<table border\=\"0\" width\=\"154\" cellspacing\=\"0\" cellpadding\=\"0\"><tr><td height\=\"22\" class\=\"menupassivehead\">&nbsp;<a href\=\"#\" class\=\"navigate\">Rezepte mit ...</a></td></tr><tr><td class\=\"br1highlight\"></td></tr><tr><td><tr><td bgcolor\=\"#FFFFF0\" valign\=\"middle\" class\=\"menupassivehell\" height\=\"22\"><i><b>"+plaintext+"</b></i> <font size\=\"1\">gefunden!</font></td></tr><tr><tr><td class\=\"br1highlight\"></td></tr><tr><td><span class\='normal10grau'><DIV STYLE\=\"position:relative; left:0; top:0; width:152; height:180; clip:rect(0,0,0,0);\"><IFRAME name\=\"bewertung\" SRC\=\"http://www.naturkost.de/cgi-bin/ksearch-rezepte/ksearch2.cgi?terms\="+plaintext+"\"WIDTH\=\"152\" HEIGHT\=\"180\" FRAMEBORDER\=\"0\" SCROLLING\=\"auto\"></IFRAME></td></tr><tr><td class\=\"br1highlight\"></td></tr></table><br>")
}




function getRefQueryIntern () {
  var Refer = document.referrer
  if ( ! Refer ) return false
  q = Refer.match(/(terms|Terms(([^=]*)|kw)?|p)=([^"&;]+)/)
  if ( ! q ) return false

//----- no cross-script hacking, please
  var qry = unescape( q[ ( q.length - 1 ) ] )
  qry = qry.replace(/</g, '&lt;')
  qry = qry.replace(/>/g, '&gt;')
  qry = qry.replace(/:/g, ' ')
  qry = qry.replace(/\./g, ' ')
  qry = qry.replace(/\+/g, ' ')

  if ( ! qry.match(/\w/) ) return false
  return ("<div class=\"teaser\"><h3>mehr Infos zu... </h3><p><i>&bdquo;"+qry+"&ldquo;</i> gefunden!</p><div class=\"teasertabelle\"><p><table border=\"0\" cellpadding=\"0\" width=\"260\"><tr><td><div class=\"teasertabelle\" style=\"position:relative; left:18px; top:2px; width:220px; height:210; clip:rect(0,149,560,0);\"><iframe name=\"bewertung\" src=\"http://www.naturkost.de/cgi-bin/sucheliste/search.pl?Realm=All&Terms=" +qry+"\"width=\"220\" height=\"200\" frameborder=\"0\" scrolling=\"auto\"></iframe></div></td></tr></table></p></div></div>")
}



function decode_utf8(utftext) {
    var plaintext = ""; var i=0; var c=c1=c2=0;
    while(i<utftext.length)
        {
        c = utftext.charCodeAt(i);
        if (c<128) {
            plaintext += String.fromCharCode(c);
            i++;}
        else if((c>191) && (c<224)) {
            c2 = utftext.charCodeAt(i+1);
            plaintext += String.fromCharCode(((c&31)<<6) | (c2&63));
            i+=2;}
        else {
            c2 = utftext.charCodeAt(i+1); c3 = utftext.charCodeAt(i+2);
            plaintext += String.fromCharCode(((c&15)<<12) | ((c2&63)<<6) | (c3&63));
            i+=3;}
        }
    return plaintext;
}

function Shop()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/indexshop.html", "Zweitfenster", "width=618,height=595,scrollbars,status,resizeable");
 MeinFenster.focus();
}

function RDWNewsletter()
{
 MeinFenster =
 window.open("http://www.naturkost.de/mailer/lists/", "Zweitfenster", "width=780,height=350,scrollbars,resizeable");
 MeinFenster.focus();
}

function Laeden()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/adressen/laeden.html", "Zweitfenster", "width=880,height=600,scrollbars,status,resizeable");
 MeinFenster.focus();
}


function Seminare()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/adressen/seminare.html", "Zweitfenster", "width=880,height=600,scrollbars,status,resizeable");
 MeinFenster.focus();
}

function Hersteller()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/adressen/hersteller.html", "Zweitfenster", "width=880,height=600,scrollbars,status,resizeable");
 MeinFenster.focus();
}

function Lieferservice()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/adressen/lieferservice.html", "Zweitfenster", "width=880,height=600,scrollbars,status,resizeable");
 MeinFenster.focus();
}

function Dienstleister()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/adressen/dienstleister.html", "Zweitfenster", "width=880,height=600,scrollbars,status,resizeable");
 MeinFenster.focus();
}

function Urlaub()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/adressen/urlaub.html", "Zweitfenster", "width=880,height=600,scrollbars,status,resizeable");
 MeinFenster.focus();
}


function Bannerwerbung()
{
 MeinFenster =
 window.open("https://ssl.kundenserver.de/sicher.naturkost.de/www/sicher/bannerwerbung/index.html", "Zweitfenster", "width=880,height=600,scrollbars,status,resizeable");
 MeinFenster.focus();
}


