   NS4 = (document.layers);
   IE4 = (document.all);
  ver4 = (NS4 || IE4);
 isMac = (navigator.appVersion.indexOf("Mac") != -1);
isMenu = (NS4 || (IE4 && !isMac));

function popUp(){return};
function popDown(){return};
function startIt(){return};

if (!ver4) event = null;
if (IE4 && isMac) {
sS = document.styleSheets(document.styleSheets.length-1);
with (sS) {
addRule("A.white","color:maroon;text-decoration:none;font-family:Arial,sans-serif;font-weight:bold;font-size:10pt");
addRule("A.white:active","color:maroon");
addRule("A.white:visited","color:maroon");
addRule("A.white:hover","color:white;background-color:maroon");
}
}

if (isMenu) {
    menuVersion = "4.0b1";
    menuWidth = 170;
    childOverlap = -5;
    childOffset = 0;
    perCentOver = null;
    secondsVisible = 1;
    fntCol = "#ffffff";
    fntSiz = "8";
    fntBold = false;
    fntItal = false;
    fntFam = "Verdana";
    backCol = "#008998";
    overCol = "#FF9900";
    overFnt = "white";
    borWid = 2;
    borCol = "#ffffff";
    borSty = "solid";
    itemPad = 3;
    imgSrc = "images/tri.gif";
    imgSiz = 10;
    separator = 2;
    separatorCol = "#ffffff";
    isFrames = false;
    keepHilite = true;
    NSfontOver = true;
    clickStart = true;
    clickKill = true;
    showVisited = "yellow";
    menusOn = true;
}
function db(str) {
if(NS4) java.lang.System.out.println(str)
}

if (isMenu) {
if(IE4){window.onresize=function(){setTimeout("elMenu1.moveTo(getAnch('pp')[0],getAnch('pp')[1])",20)}}
arMenu1 = [
"",
"getAnch('pp')[0]","getAnch('pp')[1]",
"","", //fnt,fntovr
"","", //bg,bgovr
"","", //bord,sep
true,
"<center><font size='3' color='#008998'><B>&nbsp;</B></font></center>","#",0,0,

"<B>Autos & Motorräder</B>","#",1,1,
"<B>Bildung & Karriere</B>","#",1,1,
"<B>Computer & Telefon</B>","#",1,1,
"<B>Finanzdienste</B>","#",1,1,
"<B>Haus & Garten</B>","#",1,1,
"<B>Lifestyle</B>","#",1,1,
"<B>Nachrichten & Medien</B>","#",1,1,
"<B>Reisen</B>","#",1,1,
"<B>Shopping</B>","#",1,1,
"<B>Sport & Freizeit</B>","#",1,1
]
document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='http://www.33max.de/cgi-bin/scripts/array.js'><\/SCRIPT>");
document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='http://www.33max.de/cgi-bin/scripts/ie.js'><\/SCRIPT>");
}

function getAnch(n) {
if (IE4) {
menX = tbAnch.offsetLeft + tdAnch.offsetLeft;
menY = tbAnch.offsetTop + tdAnch.offsetTop;
}
return [menX,menY];
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function CheckData() {

        pass=true;
        if (document.input.query.value == "") {
                        msg = "Bitte geben Sie ein Suchwort ein!\n";
                                        pass = false;
        }
        if(!pass){
                alert(msg);
                return false;
        }

        else {
        loc = document.input.query.value;
        loc = loc.replace(/\s/, "_");
        path = "searchframe.asp?query=" + loc;
        window.open(path, "PopUp", 'width=700,height=400,scrollbars=0,status=0,toolbar=0');
        return true;
        }
}


function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}


function add_bookmark()
{
window.external.AddFavorite('http://www.33max.de','33max.de Web Guide. - Ein Blick. Ein Klick.')
}

function jumpPage(newLoc) {
newPage = newLoc.options[newLoc.selectedIndex].value
	if (newPage != "") {
window.open(newPage,'newWindow'); 
	}
}


monName = new Array ("Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember")
now = new Date

now = new Date
thisYr = now.getYear()
if (thisYr < 1900) {
	thisYr = thisYr+1900
	}
nextYr = thisYr + 1

xmas = new Date(thisYr,11,25)
if (xmas.getTime() < now.getTime()) {
	xmas.setYear(nextYr)
	}

muttertag = new Date(thisYr,4,12)
if (muttertag.getTime() < now.getTime()) {
	muttertag.setYear(nextYr)
	}
	
function dayToDays(inTime) {
return (Math.floor(inTime.getTime() / (1000 * 60 * 60 * 24)))
}
function daysTill(inDate) {
return dayToDays(inDate) - dayToDays(now)
}
