// MAUS - PROGRAMM V1.4.1
// A Mouse Movement Tag Reaction
// written in JavaScript
//
// by Thomas Kreienkamp 2002
//


function maus(bereich,art)
{	
	switch(art)
	{
// highlight button menu
	case 1:
	bereich.style.backgroundColor = "#3366cc";
	bereich.style.color = "#ffffff";
	anker(bereich,"#ffffff");
	break;
// highlight link
	case 3:
	bereich.style.backgroundColor = "#3366cc";
	bereich.style.color = "#ffffff";
	bereich.style.fontWeight = "bold";
	anker(bereich,"#ffffff");
	break;
// highlight button bad link
	case 9:
	bereich.style.backgroundColor = "#cc0033";
	bereich.style.color = "#ffffff";
	anker(bereich,"#ffffff");
	break;
// highlight bad/no link
	case 93:
	bereich.style.backgroundColor = "#cc0033";
	bereich.style.color = "#ffffff";
	bereich.style.fontWeight = "bold";
	anker(bereich,"#ffffff");
	break;
// highlight button manga index
	case 21:
	bereich.style.backgroundColor = "#ff33ff";
	bereich.style.color = "#ffffff";
	anker(bereich,"#ffffff");
	break;
// highlight link manga index
	case 23:
	bereich.style.backgroundColor = "#ff33ff";
	bereich.style.color = "#ffffff";
	bereich.style.fontWeight = "bold";
	anker(bereich,"#ffffff");
	break;
//default button online
	case 101:
	bereich.style.backgroundColor = "#6699ff";
	bereich.style.color = "#000000";
	anker(bereich,"#000000");
	break;
//default link
	case 103:
	bereich.style.backgroundColor = "#99ccff";
	bereich.style.color = "#000000";
	bereich.style.fontWeight = "normal";
	anker(bereich,"#000000");
	break;
// default button bad link
	case 109:
	bereich.style.backgroundColor = "#ff0066";
	bereich.style.color = "#000000";
	anker(bereich,"#000000");
	break;
// default button manga index
	case 121:
	bereich.style.backgroundColor = "#ff99ff";
	bereich.style.color = "#000000";
	anker(bereich,"#000000");
	break;
// default link manga index
	case 123:
	bereich.style.backgroundColor = "#ffccff";
	bereich.style.color = "#000000";
	bereich.style.fontWeight = "normal";
	anker(bereich,"#000000");
	break;
// default set up
	default:
	bereich.style.backgroundColor = "#000000";
	bereich.style.color = "#cccccc";
	anker(bereich,"#ccffff");
	bereich.style.cursor = "auto";
	break;
	}
}


function anker(bereich,farbe)
{
	var i = 0;
	while (bereich.getElementsByTagName("a")[i])
	{	
		bereich.getElementsByTagName("a")[i].style.color = farbe;
		if (navigator.appName == "Microsoft Internet Explorer")
		{
			bereich.style.cursor = "hand";
		}
		i++;
	}
}


function klick(bereich,ziel)
{
	if (! bereich.getElementsByTagName("a")[0])
	{
	window.location.href = ziel;
	}
	else
	{
		if (navigator.appName == "Microsoft Internet Explorer")
		{
			if (event.srcElement.tagName != ("a" && "A"))
			{
				bereich.all.tags("a")[0].click();
			}
		}
	}
}


function neues()
{
	//var tracy=window.history.back();
	//if (tracy.indexOf!="kreienkamp/german/ranma")
	{
	var fenster;
	fenster = window.open ("../../sitenews.htm","Neuigkeiten","width=250,height=125");
	}
}


function aktualisiert(update)
{
	monat=eval(update.substr(0,2));
	tag=eval(update.substr(3,2));
	jahr=eval(update.substr(6,4));
	uhrzeit=update.substr(11,8);
	var monatsnamen = new Array("Januar","Februar","März","April","Mai","Juni","July","August","September","Oktober","November","Dezember");
	var tagesnamen = new Array("Samstag","Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag");

	wt = (tag + Math.floor((monat + 1) * 2.6) + Math.floor(5 * jahr / 4) + Math.floor(jahr / 4) - 2 * jahr - 1) % 7;
	wt = wt + 6;
	
	tagesname = tagesnamen[wt];
	monatsname=monatsnamen[monat-1];
  	document.writeln('<table border="0" align="center" cellspacing="0">');
	document.writeln('<tr><td width="602">&#160;</td><td width="175">&#160;</td></tr>');
	document.write('<tr><td class="hl4mc" colspan="2">&#160;<span class="small">');
	document.write('&#160; Diese Seite wurde zuletzt am ' + tagesname + ' dem ' + tag + '. ' + monatsname + ' im Jahre des Herrn ' + jahr + ' um ' + uhrzeit + ' Uhr aktualisiert. &#160;');
	document.writeln('</span>&#160;</td></tr></table>');
}




function schrott()
{
  	j = jahr - 1600;
	if (monat <= 2) 
	{
		j = j - 1;
	}
 	m = (monat + 10) % 12;
	if (m = 0)
	{
		m = 12;
	}
 	wd = (Math.floor(tag + Math.floor(2.6 * m - 0.19) + j + ( j / 4) - (j / 100) + (j / 400))) % 7;
}