//************************************
// Der TV Plan von Total-Simpsons.de
//************************************

var Datum   = new Date();
var Tag  = Datum.getDate();
var Std  = Datum.getHours();

function TV(){
	if (Std > 19) { 
		if (Folge[Tag + 1] == "n") {document.write("Morgen&nbsp;" + Folge[1])}
		else{
		document.write("Morgen&nbsp;" + Folge[Tag + 1])}
      } else {
	document.write(Folge[Tag]);}
		
	}

// normale Wochentage (18:55 Uhr)      	---  a Folge b ---     		z.B.: a + "7G05" + b;
var a="<script>document.write('um 18:30:&nbsp;' + s";
var m=" + '<br>um 21:15:&nbsp;' + s";
var c="<script>document.write('um 18:00:&nbsp;' + s";

// Samstags
var sa="<script>document.write('um 17:30:&nbsp;' + s";

var b=")</script>";

var host=parent.location.hostname;
if (host != "www.ec.de" && host != "www.total-simpsons.de"){
	var b =")</script>";
}

// Sonntags
var keine="<script>document.write('Heute leider keine Folge!'" + b;
var so = "<script>document.write('ca. 7:00: ' + s";
var fsa = "<script>document.write('ca 15:00: Futurama'" + b;
var fso = "<script>document.write('ca. 10:00: Futurama'" + b;
var Miss = "<script>document.write('Datenbankfehler!'" + b;

Folge = new Array
Folge[1]= keine;
Folge[2]= keine
Folge[3]= a + "8F03" + b;
Folge[4]= Miss;
Folge[5]= a + "BABF18" + c + "7G01" + b;
Folge[6]= a + "BABF18" + b;
Folge[7]= a + "BABF18" + b;
Folge[8]= sa + "EABF10" + b;
Folge[9]= so + "EABF10" + b;
Folge[10]= keine;
Folge[11]= keine;
Folge[12]= keine;
Folge[13]= a + "CABF04" + b;
Folge[14]= a + "EABF01" + b;
Folge[15]= a + "CABF03" + b;
Folge[16]= a + "CABF06" + b;
Folge[17]= sa + "EABF09" + b;
Folge[18]= so + "EABF09" + b;
Folge[19]= keine;
Folge[20]= a + "7F18" + b;
Folge[21]= a + "7F19" + b;
Folge[22]= a + "7F20" + b;
Folge[23]= a + "7F21" + b;
Folge[24]= sa + "EABF12" + b;
Folge[25]= so + "EABF12" + b;
Folge[26]= keine;
Folge[27]= a + "7F08" + b;
Folge[28]= a + "7F24" + b;
Folge[29]= a + "8F01" + b;
Folge[30]= a + "7F23" + b;
Folge[31]= "n";
Folge[32]= "n";
//Monat mit n begrenzen!!!

