window.onload = newHi;
document.onmousemove = moveHandler;
function moveHandler(evt) {
	if (!evt) {
		evt = window.event;
	}
	Zeit();
}

function Zeit(){
var Datum = new Date();
/*var Tag = Datum.getDate(); Tag des Monats als Zahl
document.getElementById("Datum").innerHTML = Tag;*/
	trinken = new Array("black coffee", "white coffee", "black coffee with sugar", "white coffee with sugar", "water", "apple juice", "orange juice", "milk", "lemon juice", "mango juice", "black tea", "green tea", "white wine", "red wine", "nothing" , "cola");
	essen = new Array("dry bread roll", "bread rolls with butter", "bread rolls with margarine", "bread rolls with jam", "bread rolls with fried egg", "bread rolls with omelette", "bread rolls with cheese", "bread rolls with mustard", "a banana", "a mango", "an apple", "a biscuit", "a pancake", "a ring cake", "bread rolls with a cooked egg", "a curd", "porridge oats soup", "rice", "pumpkin soup", "bean soup", "stew", "lentil soup", "asparagus soup", "braised mushrooms", "braised white cabbage", "braised cucumber", "tomato soup", "fried potatoes", "jacket potatoes", "potato salad", "applesauce", "noodle soup", "potato soup", "onion soup", "potato buffer", "semolina pudding", "a piece of bread", "a coconut", "a water melon", "nothing", "a fruit flan", "spaghetti", "potato crowd", "carrots", "radish", "tomato salad", "cucumber salad", "gherkins", "pineapple", "cress", "chives");
	arbeiten = new Array("he had sex with a native", "he painted a painting", "he thought", "he philosophized", "he did drafts", "he programmed", "he observed birds", "he observed bats", "he observed butterflies", "he played with the dogs", "he worked in his biochemical lab", "he did drawings", "he made a sculpture", "he had sex with the nude model", "he had visit of a customer", "he created a wall picture", "he had sex with the neighbor", "he studied a professional book", "he played violin", "he played harp", "he was drunken", "he studied plants", "he worked on a woodcut", "he painted a naked woman in oil", "he edited his new video", "he wrote a poem", "he cut off to himself an ear", "he was depressive", "he had visit from a prostitute", "he painted a still life", "he had a fight with a customer who did not paid the art-work", "he listened to classic music", "he smoked Marijuana", "he did sketches of a nude model", "he had visit of a colleague", "he painted a crucifixion in oil", "he had fun with a few girls in the swimming pool", "he painted a flower picture in watercolor", "he called up his mother", "he did laundry", "he bought food at the market", "he played the piano", "he painted a landscape in tempera", "he worked on a lithography", "he worked on the bronze bust for a businessman", "he had gastritis", "he had nosebleed", "he does some charcoal of birds", "he undercoated canvases", "he framed paintings for the exhibit", "he bought oil-paint and paintbrushes", "he cleaned the studio", "he did a series of pencil drawings in the garden", "he welded a sculpture from steel", "he took a bath", "he lay with fever in the bed","he had back pains","he mixed colors",  "he had a heart attack", "he corrected mistakes in an older painting", "he cut painting card-boards", "he grind undercoated painting cardboards", "he had hunger", "he sharpened the sculptor's tools", "he bored holes in a board", "he squirted paint around", "he enjoyed his ingenuity", "he drew until his hands bled" , "he thought about what art is", "he considered how long it will take till he has no more money", "he painted over a blue painting yellow", "in a fit of rage he destroyed one of his best work", "he signed works", "he bought shoes", "he modeled in clay", "he did plaster casts", "he was horny", "he gave to poor colleague money", "he had a new idea", "he searched for the varnish bottle", "he had sex with the render", "he had sex with a fat woman");
	var GMTStunde = Datum.getUTCHours();
	var Stunde = Datum.getHours();
	var Minute = Datum.getUTCMinutes();
	var Monat = Datum.getMonth();
	var Tag = Datum.getDate();
	var Jahr = Datum.getFullYear();
	var TagW = Datum.getDay();
	Wochentag = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
	MonatWort = new Array ("January", "February","March","April","May","June","July","August","September","October","November","December");
	document.getElementById("Datum").innerHTML ="WHAT DID THE ARTIST?  Today is " + Wochentag[TagW] + " the " + Tag + "th of " + MonatWort[Monat] +" "+ Jahr + ", it is now " + Stunde + "o'clock and " + Minute + " minutes  (Philippine calendar)." ;
	var StartStunde = Stunde;
	var EndStunde = StartStunde-1;
	var StartStunde = Stunde;
	var von= StartStunde;
	var bis= EndStunde;
	var wert = 1;
	
	for (var i=0; i<24; i++) {
		if (von==-1){
			von=23;
		}
		if (bis==-1){
			bis=23;
		}
			document.getElementById("Zeit" + wert).innerHTML= (bis) + ":00:00 to " + (von)+":00:00";
		
			if (von==0 || von==1 || von==2 || von==3 || von==4 ||von==5){
				document.getElementById("Zeit" + wert + "B").innerHTML= "the artist slept";
			}
			if (von==6 || von==8 || von==9 || von==10 || von==11 || von==12|| von==14 || von==15 || von==16 || von==17 || von==18 || von==20 || von==21 || von==22 || von==23 || von==24 ){
				var arbeitenNum = Math.floor(Math.random() * arbeiten.length);
				document.getElementById("Zeit" + wert + "B").innerHTML= arbeiten[arbeitenNum];
			}
			if (von==7){
				var trinkNum = Math.floor(Math.random() * trinken.length);
				var essenNum = Math.floor(Math.random() * essen.length);
				document.getElementById("Zeit" + wert + "B").innerHTML= "The artist had breakfast. " + "He drank " + trinken[trinkNum] + " and ate " + essen[essenNum] + "." ;
			}
			if (von==13){
				var trinkNum = Math.floor(Math.random() * trinken.length);
				var essenNum = Math.floor(Math.random() * essen.length);
				document.getElementById("Zeit" + wert + "B").innerHTML= "The artist had lunch. " + "He drank " + trinken[trinkNum] + " and ate " + essen[essenNum] + "." ;
			}
			if (von==19){
				var trinkNum = Math.floor(Math.random() * trinken.length);
				var essenNum = Math.floor(Math.random() * essen.length);
				document.getElementById("Zeit" + wert + "B").innerHTML= "The artist had dinner. " + "He drank " + trinken[trinkNum] + " and ate " + essen[essenNum] + "." ;
			}
		von=von-1;
		bis=bis-1;
		wert = wert +1;
		
	}
	
	TageVorher();
}
function TageVorher(){
	var TagZuruck = Math.floor(Math.random() * 365);
		for (var i=1; i<25; i++) {
			document.getElementById("Tage" + i).innerHTML= TagZuruck;
		}
}
/*news END*/
