function openMenu(cat) {
this.cat = cat;
document.write('<span class = "level1">');
document.write('<a href = "' + thisPage + '?page=null" target="_self" onClick="db(this)">');
if (lev1img=='yes') {
document.write('<img src="' + imgPath + lev1OpName +'" width="' + lev1OpWidth + '" height="' + lev1OpHeight + '"border="0">');
}
document.write(cat + '</a><span><br />');
for (x=0;x<thisMenu.length;x++){
 document.write('<span class = "level2">');
 if (lev2img=='yes') {
 document.write('<img src="' + imgPath + lev2Name +'" width="' + lev2Width + '" height="' + lev2Height + '">');
 }
 if (lev2Char=='yes') {
 document.write(bullet);
 }
 document.write('<a href="' + linka + thisMenu[x].linkb + '" onClick="db(this)">' + thisMenu[x].name + '</a><span><br />');
}
}

// closes menu section - do not alter
function closeMenu(cat,pass) {
this.cat = cat;
this.pass = pass;
document.write('<span class = "level1">');
document.write('<a href = "' + thisPage + '?page='+pass+'" target="_self" onClick="db(this)">');
if (lev1img=='yes') {
document.write('<img src="' + imgPath + lev1ClosName +'" width="' + lev1ClosWidth + '" height="' + lev1ClosHeight + '"border="0">');
}
document.write(cat + '</a><span><br />');
}

function Info_Masseinheiten(){

                    /* Hier bitte anpassen: *********************************************/
                     var name    = "Masseinheiten";
                     var url     = "masse.php";
                     var width   = 580;
                     var height  = 500;
                     var options = "status=no,resizable=no,toolbar=no,scrollbars=yes";
                    /********************************************************************/

                     var left  = (screen.availWidth - width)/2;
                     var top   = (screen.availHeight - height)/2;

                     if(options.length != 0)
                        options = options+",";

                     window.open(url,name,options+"width="+width+",height="+height+",left="+left+",top="+top);
                }

function db(mylink)
{ if (document.all)
  mylink.blur();
}

function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert ("   © Kelterei Sell GmbH \n               &\n artTECc:om Fa. Tino Löwe");
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert ("   © Kelterei Sell GmbH \n               &\n artTECc:om Fa. Tino Löwe");
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;


function zeigeinfo(bez,xbr,yho,pic)
{
picture = pic;
TT = bez;         // bildtitel aus array
xsize = xbr*80/100+60*1; // breite + Rand
ysize = yho*80/100+200*1; // höhe + Rand
ScreenWidth = screen.width;
ScreenHeight = screen.height;
xpos = (ScreenWidth/2)-(xsize/2);
ypos = (ScreenHeight/2)-(ysize/2); // popup - window

NewWindow=window.open("","picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=yes,top="+ypos+",left="+xpos+"");
NewWindow.document.write ("<html><head><title>Kelterei Sell GmbH</title><meta name='author' content='artTECc:om'><meta name='copyright' content='artTECc:om'><meta http-equiv='content-type' content='text/html; charset=iso-8859-1'><meta http-equiv='contnent-language*' content='de'><meta name='keywords' content='Dienstleister rund um Obst - Säfte und Weine'><meta name='description' content='Dienstleistungen'><meta name='revisit-after' content='5 days'><meta name='robots' content='all'><meta http-equiv='imagetoolbar' content='false'><link rel='stylesheet' href='/css/style.css' type='text/css'></head>");
NewWindow.document.write ("<body onload='focus()'>");
NewWindow.document.write ("<table align='center'><tr><td align=\"center\">");
NewWindow.document.write ("</td></tr><tr>");
NewWindow.document.write ("<td align='center' valign='top'>");
NewWindow.document.write ("<table border='0' cellpadding='0' cellspacing='0'><tr><td align='center'>");
NewWindow.document.write ("<img src=");
NewWindow.document.write (picture);
NewWindow.document.write (" width=");
NewWindow.document.write (xbr*80/100);
NewWindow.document.write (" height=");
NewWindow.document.write (yho*80/100);
NewWindow.document.write (" border='1'>");
NewWindow.document.write ("</tr></table>");
NewWindow.document.write ("</td></tr><tr>");
NewWindow.document.write ("<td align='center' valign='top'>");
NewWindow.document.write (TT);
NewWindow.document.write ("<br />");
NewWindow.document.write ("</td></tr><tr>");
NewWindow.document.write ("<td align='center' valign='top'>");
NewWindow.document.write ("<center><form><br /><input type='button' value='schliessen' style='font-family: Verdana; font-size: 10px' onClick='self.close()'>");
NewWindow.document.write ("</td></tr></table>");
NewWindow.document.write ("</form></body></html>");
NewWindow.document.close();
NewWindow.resizeTo(xsize,ysize);

}



function zeigezeit(bez,xbr,yho,pic,voraus)
{
ifrbr = 500;
ifrhe = 350;
rahmen = 1;
picture = 'images/' + pic + '_zeit.jpg';
TT = bez;         // bildtitel aus array
xsize = xbr*80/100+50*1; // breite + Rand
ysize = yho*80/100+180*1; // höhe + Rand
ScreenWidth = screen.width;
ScreenHeight = screen.height;
xsize = ScreenWidth*0.75; // breite + Rand
ysize = ScreenHeight*0.75; // höhe + Rand
//ifrbr = ScreenWidth*0.5;
//ifrhe = ScreenHeight*0.5;
xpos = (ScreenWidth/2)-(xsize/2);
ypos = (ScreenHeight/2)-(ysize/2); // popup - window

NewWindow=window.open("","TT","height="+ysize+",width="+xsize+",scrollbars=no,resizable=yes,top="+ypos+",left="+xpos+"");
NewWindow.document.write ("<html><head><title>Kelterei Sell GmbH</title><meta name='author' content='artTECc:om'><meta name='copyright' content='artTECc:om'><meta http-equiv='content-type' content='text/html; charset=iso-8859-1'><meta http-equiv='contnent-language*' content='de'><meta name='keywords' content='Dienstleister rund um Obst - Säfte und Weine'><meta name='description' content='Dienstleistungen'><meta name='revisit-after' content='5 days'><meta name='robots' content='all'><meta http-equiv='imagetoolbar' content='false'><link rel='stylesheet' href='/css/style.css' type='text/css'></head>");
NewWindow.document.write ("<body onload='focus()'>");
NewWindow.document.write ("<table align='center'><tr><td align=\"center\">");
NewWindow.document.write ("</td></tr><tr>");
NewWindow.document.write ("<td align='center' valign='top'>");
NewWindow.document.write ("<table border='0' cellpadding='0' cellspacing='0'><tr><td align='center'>");
NewWindow.document.write ("<img src=");
NewWindow.document.write (picture);
NewWindow.document.write (" width=");
NewWindow.document.write (xbr);
NewWindow.document.write (" height=");
NewWindow.document.write (yho);
NewWindow.document.write (" border=");
NewWindow.document.write (rahmen);
NewWindow.document.write (" >");
NewWindow.document.write ("</tr></table>");
NewWindow.document.write ("</td></tr><tr>");
NewWindow.document.write ("<td align='center' valign='top'>");
NewWindow.document.write ("<br /><br /><iframe src='");
NewWindow.document.write ("azeit.php?name=");
NewWindow.document.write (bez);
NewWindow.document.write ("&voraus=");
NewWindow.document.write (voraus);
NewWindow.document.write ("' width='");
NewWindow.document.write (ifrbr);
NewWindow.document.write ("' height='");
NewWindow.document.write (ifrhe);
NewWindow.document.write ("' name=");
NewWindow.document.write ("'annahmezeit'");
NewWindow.document.write (" align='center' scrolling='no' marginheight='0' marginwidth='0' frameborder='0'><p>Ihr Browser kann leider keine eingebetteten Frames anzeigen: Sie k&ouml;nnen die eingebettete Seite &uuml;ber den folgenden Verweis aufrufen: <a href='");
NewWindow.document.write ("azeit.php?name=");
NewWindow.document.write (bez);
NewWindow.document.write ("&voraus=");
NewWindow.document.write (voraus);
NewWindow.document.write ("'>Annahmezeiten</a></p></iframe>");
NewWindow.document.write ("</td></tr><tr>");
NewWindow.document.write ("<td align='center' valign='top'>");
NewWindow.document.write ("<center><form><br /><br /><input type='button' value='schliessen' style='font-family: Verdana; font-size: 10px' onClick='self.close()'>");
NewWindow.document.write ("</td></tr></table>");
NewWindow.document.write ("</form></body></html>");
NewWindow.document.close();
NewWindow.resizeTo(xsize,ysize);

}
function fuelle_form_dat(tag,monat,jahr)
{
document.sort_send.ende.value = jahr + "-" + monat + "-" + tag;
return
}

