/* $RCSfile: menu.js,v $ $Revision: 1.2 $ $Date: 2005/01/15 08:48:56 $ $Author: makue $ $State: Exp $ */
var merkz = "";
var merkw = "";

e = new Array(); i=0;
// Allgemeines
e[i++] = new x("über diese Homepage","info.shtml");
e[i++] = new x("Copyright","copy.shtml");
e[i++] = new x("ROT13 Kodierung","rot13.shtml");
e[i++] = new x("Buffy Chat","../php/chat.php");
e[i++] = new x("Buffys Synchronstimme","foto03.shtml");
e[i++] = new x("Biorhythmus","bio.shtml");
e[i++] = new x("Statistik","daten.shtml");
e[i++] = new x("Counter Demo","../php/counter.php?s");
e[i++] = new x("Gaestebuch","http://www.nenafan.de/cgi-bin/gbuch.pl?id=12312312");
e[i++] = new x("Fannamen wählen","namen.shtml");
e[i++] = new x("Links","../php/links.php");
e[i++] = new x("Preise/Zertifikate","award.shtml");
end1 = i-1;
// Fanmaterial
e[i++] = new x("Magnete","magnet.shtml");
e[i++] = new x("Postkarten","../php/postk.php");
e[i++] = new x("Autogrammfotos","auto01.shtml");
e[i++] = new x("dt. Sekundärliteratur","buechers.shtml");
e[i++] = new x("Kalender 2000","kal01.shtml");
e[i++] = new x("CI Kalender","kal02.shtml");
e[i++] = new x("SMG in BRAVO","bravo.shtml");
e[i++] = new x("Buffy Soundtrack","ost.shtml");
e[i++] = new x("Bilder aus Presse","bilderp1.shtml");
e[i++] = new x("Buffy Comics","comic1d.shtml");
e[i++] = new x("UK Buffy-Magazine","../php/mag_uk.php");
e[i++] = new x("USA Buffy-Magazine","../php/mag_us.php");
e[i++] = new x("Buffy Bücher","buecher.shtml");
e[i++] = new x("Fotokarten","fcard1.shtml");
e[i++] = new x("TV-Highlights","../php/tvh.php");
e[i++] = new x("deutsche Presse","../php/pressed.php");
e[i++] = new x("internationale Presse","../php/pressee.php");
e[i++] = new x("Trading Cards","../php/tcard.php");
e[i++] = new x("Wallet Cards","wcard.shtml");
e[i++] = new x("Pinball Game","pinball.shtml");
e[i++] = new x("Soundtrack CDs","cd.shtml");
e[i++] = new x("Bilder aus SI","picsi.shtml");

end2 = i-1;
// Filme
e[i++] = new x("VHS Buffy","video.shtml");
e[i++] = new x("VHS Family Robinson","tv10.shtml");
e[i++] = new x("VHS Jackie O.","tv01.shtml");
e[i++] = new x("VHS Death Strip","vhshs.shtml");
e[i++] = new x("VHS Cruel Intentions","vhsci.shtml");
e[i++] = new x("VHS Ich weiss was Du...","vhsiw.shtml");
e[i++] = new x("VHS Eiskalte Engel","vhsee.shtml");
e[i++] = new x("DVD Buffy","bdvd01.shtml");
e[i++] = new x("DVD Eiskalte Engel","dvdee.shtml");
e[i++] = new x("DVD Simply Irresistible","dvdsi.shtml");
e[i++] = new x("DVD Cruel Intentions","dvdci.shtml");
e[i++] = new x("DVD Eine wie keine","ewk.shtml");
e[i++] = new x("TV-Film Familie Robinson","tv03.shtml");
e[i++] = new x("Deutsche Filme","film01.shtml");
e[i++] = new x("Englische Filme","film02.shtml");
end3 = i-1;
// Fernsehen
e[i++] = new x("MTV Movie Award 2K","tv09.shtml");
e[i++] = new x("Jay Leno 14.12.98","tv06.shtml");
e[i++] = new x("Jay Leno 07.03.99","leno.shtml");
e[i++] = new x("Jay Leno 18.11.99","tv04.shtml");
e[i++] = new x("Jay Leno 16.10.00","tv11.shtml");
e[i++] = new x("Conan O'Brien 16.05.99","tv07.shtml");
e[i++] = new x("Conan O'Brien 29.09.99","conan.shtml");
e[i++] = new x("Conan O'Brien 18.05.00","tv08.shtml");
e[i++] = new x("Jade-Werbespot","tv05.shtml");
end4 = i-1;
anzahl = i;

function x (text, link) {this.text = text; this.link = '../html/'+link; }

function tdfont(size)
	{document.write('<style type="text/css">td { font-size:'+size+'pt; }</style>');}

function Auswahl() {
	
	o('<hr noshade size=1 color="#0000ff" width=95%><br>');
	o('<form name="form">');
	o('<select name="menu" size="1" onchange="window.location.href = document.form.menu.options[document.form.menu.selectedIndex].value">');
	o('<option selected value="../index.shtml">---- Bitte auswählen ----</option>');
	for (i=0; i<anzahl; i++) {o('<option value="'+e[i].link+'">'+e[i].text+'</option>');}
	o('</select></form>');
}

function Auswahl2() {
	o('<table width="95%" cellspacing=0 cellpadding=0 border=0><tr>\n');
	o('<td><form name="form1">');
	o('<select name="menu" size="1" onchange="window.location.href = document.form1.menu.options[document.form1.menu.selectedIndex].value">');
	o('<option selected value="../index.shtml">--- Allgemeines ---</option>');
	for (i=0; i<=end1; i++) {o('<option value="'+e[i].link+'">'+e[i].text+'</option>');}
	o('</select></form></td>');

	o('<td align=center><form name="form2">');
	o('<select name="menu" size="1" onchange="window.location.href = document.form2.menu.options[document.form2.menu.selectedIndex].value">');
	o('<option selected value="../index.shtml">--- Fanmaterial ---</option>');
	for (i=end1+1; i<=end2; i++) {o('<option value="'+e[i].link+'">'+e[i].text+'</option>');}
	o('</select></form></td>');

	o('<td align=center><form name="form3">');
	o('<select name="menu" size="1" onchange="window.location.href = document.form3.menu.options[document.form3.menu.selectedIndex].value">');
	o('<option selected value="../index.shtml">--- Filme/DVD/Videos ---</option>');
	for (i=end2+1; i<=end3; i++) {o('<option value="'+e[i].link+'">'+e[i].text+'</option>');}
	o('</select></form></td>');

	o('<td align=right><form name="form4">');
	o('<select name="menu" size="1" onchange="window.location.href = document.form4.menu.options[document.form4.menu.selectedIndex].value">');
	o('<option selected value="../index.shtml">--- Fernsehen ---</option>');
	for (i=end3+1; i<=end4; i++) {o('<option value="'+e[i].link+'">'+e[i].text+'</option>');}
	o('</select></form></td>');

	o('</table>\n');
}

function bl(x) {
	if (x==1) z.innerHTML = "";
	if (x==2) z.innerHTML = merkz;
	if (x==3) w.innerHTML = "";
	if (x==4) w.innerHTML = merkw;
}

function bildnr(x) {
	t.innerHTML = "Vergr&ouml;&szlig;erte Ansicht Bild: "+x;
}

	// navigator.appName.indexOf("Netscape")<0)

var k = 2;
var maxpic = 27;
var start = 0;
function navi(r) {
	if (start==1) {
		start = 0;
		r = 0;
	}
	if (r==2) {
		merkz = z.innerHTML;
		merkw = w.innerHTML;
		tick();
	}
	if (r==0 && k<3) bl(1);
	if (r==1) bl(2);

	if (r==1 && k>maxpic-2) bl(3);
	if (r==0) bl(4);

	if (r==1 && k<maxpic) k++; 
	if (r==0 && k>1) k--;
	if (r<2) sp(k);
	else {
		z.innerHTML = '<a class="fl1" href="JavaScript:navi(0)">Start Bl&auml;ttern</a>';
		w.innerHTML = "";
		start = 1;
	}
}

function sp(x) {
	document.b.src = document.images['b'+x].src;
	bildnr(x);
	k=x;
	if (x==1) bl(1);
	if (x>1) bl(2);
	if (x==maxpic) bl(3);
	if (x<maxpic) bl(4);
}

function datum(x) {
	var hours, minutes, seconds, day, month, today, year;
	today = new Date(); hour = today.getHours();
	minutes = today.getMinutes(); seconds=today.getSeconds();
	year = today.getYear();
	day = today.getDate(); month= today.getMonth() + 1;
	if (seconds < 10) {seconds = "0" + seconds;}
	if (minutes < 10) {minutes = "0" + minutes;}
	if (month < 10) {month = "0" + month;}
	if (hour < 10) {hour = "0" + hour;}
	if (day < 10) {day = "0" + day;}
	timeStr = "&nbsp;" + day + "." + month + "." + year + "&nbsp;&nbsp;&nbsp;" + hour + ":" + minutes;
	timeString = timeStr + ":" + seconds;
	if (x>0) doc.write(timeStr);
}

function tick() {
	datum();
	if (time.innerHTML) time.innerHTML = timeString;
	window.setTimeout("tick()", 100);
}

function o(text) {document.write(text);}

function zurueck()
	{ o('<a class="fl3" href="JavaScript:history.back()" title="eine Seite zur&uuml;ck">&nbsp;Zur&uuml;ck&nbsp;</a>&middot;'); }

// bei Start ausgefuehrt
if(top.frames.length > 0 && document.referrer.indexOf('smgellar.de') == -1 && document.referrer.indexOf('127.0.0.1') == -1 && document.referrer.indexOf('.') >= 0 )
 	{top.location.href=self.location;}
if(window.location.hostname.indexOf('www.nenafan.de') > -1)
 	{top.location.href="http://www.smgellar.de";}
	
var std, tag, monat, jahr, heute;
heute = new Date();
jahr = heute.getYear();
tag = heute.getDate();
mon = heute.getMonth() + 1;
std = heute.getHours() + heute.getTimezoneOffset() / 60;
std += 2; // ME-Sommerzeit
if (std>23) {std -= 24; tag++;} // Korrektur wegen +=2 und TimezoneOffset
if (std<0) {std += 24; tag--;} // Korrektur wegen +=2 und TimezoneOffset
if ((jahr==2000) && (mon==9) && (tag==20)) {top.location.href="/streik.html";}

document.write('<link rel=stylesheet type="text/css" href="../txt/smg.css">');

