
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}



var Home = "Feudenheim-net.de";
var Netz = "Feudenheim-Netz";
var Ort = "Feudenheim";
var Markt = "Marktplatz";
var kostenlos= "Kostenloser Eintrag anmelden ?";
var kosten= "Fehlt Ihr Eintrag ? (Kostenpflichtig)";
var freizeit= "Haben Sie einen Tipp für uns ?";
var mkn= "MayKo-Net";
var kleinanz= "Wohnungsmarkt";

//******* Querlinks zu andere Stadtteile für 2_alle.js und 3_alle.js
var o_link =new Array(

"&nbsp;",
"Feudenheim-Net.de",

"../!!ma-kaefertal/",
"Ma-Kaefertal.de",

"http://www.wallstadt-net.de/",
"Wallstadt-net.de"



)
//**************************************

function LoadFuncs () {
//werbung()
//start_ticker()
//ba()
//startscroll()
//werbefenster('sonnenstern/werbung.htm',300,370)
dauerfenster('weihnachten/kalender09/index.php',640,480)
}






var heute=new Date();
var jahr = heute.getYear();
var monat = heute.getMonth() +1;
var tag = heute.getDate();
var stunde = heute.getHours();
var minute = heute.getMinutes();
var seconds = heute.getSeconds();
var day = heute.getDay();
var sYear=new Date(heute.getYear(),0,1)
sYear=sYear.getTime()-(sYear.getDay()-1)*(24*60*60*1000)
var woche=Math.ceil((heute.getTime()-sYear)/(7*24*60*60*1000))-1
x = new Array("leer", "Januar", "Febr.", "März", "April", "Mai", "Juni", "Juli", "August", "Sept.", "Okt.", "Nov.", "Dez.");
monatsname = x[monat];
var tagdat = tag + ". " + monatsname + " " + jahr;


// ****************************************************************************

function werbefenster(URL,Breit,Hoch){
        win = window.open(URL, "newWin", "toolbar=no,left=100,top=100, location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,copyhistory=no,width="+Breit+",height="+Hoch+"")
        startTime()
}


function openWink()
 {
testk = window.open("","neuk","width=720,height=550,resizable=yes,left=50,top=50,scrollbars=yes,menubar=yes,location=no,directories=no,toolbar=no,location=no,status=no");
testk.focus();
}

function openWin(w,h)
 {
test = window.open("","neu","width="+w+",height="+h+",resizable=yes,left=50,top=50,scrollbars=yes,menubar=no,location=no,directories=no,toolbar=no,location=no,status=no");
test.focus();
}

function dauerfenster(URL,Breit,Hoch){

if (monat==12&&tag <26){

win = window.open(URL, "newWin", "toolbar=no,left=100,top=100, location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,copyhistory=no,width="+Breit+",height="+Hoch+"")
win.focus();
   }
}



function startTime(){

        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=20;        //*** Zahl in Sekunden
        Timer();
}

function Timer(){
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        curTime=hours*3600+mins*60+secs
        if (curTime>=closeTime){
                if (win.closed == false){
                        win.close()}}
        else{
                window.setTimeout("Timer()",1000)}
}


//**************wird für 2_alle.js und 3_alle.js benötigt *********

//******************************************************************

//***************** Rechte Maustaste *******************************
//function right(e) {
//if (navigator.appName == 'Netscape' &&
//(e.which == 3 || e.which == 2))
//return false;
//else if (navigator.appName == 'Microsoft Internet Explorer' &&
//(event.button == 2 || event.button == 3)) {
//alert("Die Fa. MayKoNet hat ein Copyright auf  diese Seiten.");
//return false;
//}
//return true;
//}
//
//document.onmousedown=right;
//if (document.layers) window.captureEvents(Event.MOUSEDOWN);
//window.onmousedown=right;
//******************************************************************


function start()
{
window.moveTo(0, 0);
window.resizeTo (800, 600);
}

function noframe ()
{
if(window!= window.top)
top.location.href = location.href;
}

var w1URL = "werbung/werbung.html";
function werbung ()
{
window.open(w1URL, 'neu', 'toolbar=0, location=0, directories=0, status=0, menubar=0, width=370,height=370,resizable=yes,scrollbars=no')
}