// JavaScript Document
// developed by Team novagraphix.de
// written by Christian Brauwers
var act_site = 0;
var sites    = new Array("index.php","story.php","trailer.php","castcrew.php?id=0","castcrew.php?id=1","castcrew.php?id=2","castcrew.php?id=3","castcrew.php?id=4","castcrew.php?id=5","castcrew.php?id=6","castcrew.php?id=7","castcrew.php?id=8","castcrew.php?id=9","castcrew.php?id=10","castcrew.php?id=11","produktion.php?id=0","produktion.php?id=1","produktion.php?id=2","produktion.php?id=3","produktion.php?id=4","produktion.php?id=5","umaterial.php?id=6","gbuch.php","kino.php");

function setSite(id) {
	act_site = id;	
}

function Tastendruck (Evenement) {
	if (!Evenement)
		Evenement = window.event;
	if (Evenement.which) {
    	Tastencode = Evenement.which;
	} 
	else if (Evenement.keyCode) {
    	Tastencode = Evenement.keyCode;
  	}
 	taste(Tastencode);
}

function taste(Tastencode) {
	if(Tastencode == 86){																					// vor Blättern
		if(act_site == 23)
			act_site = -1;
		location.href=sites[(act_site+1)]
	};
	if(Tastencode == 90){																					// zurück Blättern
		if(act_site == 0)
			act_site = 24;
		location.href=sites[(act_site-1)]
	};
	if(Tastencode == 72){location.href="http://www.blindsight-derfilm.de/html/"}							// HTML Seite aufrufen
	if(Tastencode == 83){location.href="story.php"}															// Story Seite aufrufen
	if(Tastencode == 84){location.href="trailer.php"}														// Trailer Seite aufrufen
	if(Tastencode == 67){location.href="castcrew.php"}														// Produktion Seite aufrufen
	if(Tastencode == 80){location.href="produktion.php"}													// Gästebuch aufrufen
	if(Tastencode == 85){location.href="umaterial.php"}														// Unterichtsmaterial aufrufen
	if(Tastencode == 71){location.href="gbuch.php"}															// Kino Seite aufrufen
	if(Tastencode == 75){location.href="kino.php"}															// HTML Seite aufrufen
	if(Tastencode == 70){location.href="http://www.blindsight-derfilm.de/flash/"}							// Flash Seite aufrufen
	if(Tastencode == 73){var fenster = window.open("http://www.tao-cinemathek.de/Impressum.9.0.html");fenster.focus();}		// Impressum Aufrufen
}
