var visibleVar="null";

 if (navigator.appName == "Netscape")
 {
                         layerStyleRef="layer.";
                         layerRef="document.layers";
                         styleSwitch="";
                         visibleVar="show";
 }
 else
 {
                         layerStyleRef="layer.style.";
                         layerRef="document.all";
                         styleSwitch=".style";
                         visibleVar="visible";
 }
 

 function menuSwitch(layerName)
 {
         if (eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility == visibleVar'))
         {
                 hideLayer(layerName);
         }
         else
         {
                 showLayer(layerName);
         }
 }
 function showLayer(layerName)
 {
         eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
 }
 
 function hideLayer(layerName)
 {
         eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
 }


function Nothing()
{

}


function popup(url,name,einstellungen)
{
        PopUpWindow = window.open(url,name,einstellungen);
        PopUpWindow.moveTo(250,250);
        PopUpWindow.focus();
}


function winStat(bla)
{
	window.status = bla;
}

window.defaultStatus='::movie_spotlight - http://www.moviespotlight.de';

 function blah() {
	window.status='::movie_spotlight - http://www.moviespotlight.de';
	setTimeout(blah, 20);
}
blah();

/*
newsoff = new Image; newson = new Image; newsdn = new Image;
newsoff.src = "http://www.reviewzone.de/images/newsoff.gif";
newsdn.src = "http://www.reviewzone.de/images/newsdn.gif";
newson.src = "http://www.reviewzone.de/images/newson.gif";


function swtch(iname, gname)
{
   if(document.images)
   {
     iname.src = gname.src;
   }
}
*/

function OpenNewWindow(ImageName,WidthX,HeigthX)
{
	Fenster2 = window.open(ImageName,"Zweitfenster","width=" + WidthX + ",height=" + HeigthX + ",screenX=1,screenY=1,top=1,left=1,status=no,menubar=no,locationbar=no,resizable=no");
	Fenster2.moveTo(200,20);
	Fenster2.focus();
}

function Year()
{
	var time=new Date();
	var year=time.getYear();
	if (year < 2000)
	year = year + 1900;
	document.write(year);
}

function DateNow()
{
	var months=new Array(13);
	months[1]="Januar";
	months[2]="Februar";
	months[3]="März";
	months[4]="April";
	months[5]="Mai";
	months[6]="Juni";
	months[7]="Juli";
	months[8]="August";
	months[9]="September";
	months[10]="Oktober";
	months[11]="November";
	months[12]="Dezember";
	var time=new Date();
	var lmonth=months[time.getMonth() + 1];
	var date=time.getDate();
	var year=time.getYear();
	if (year < 2000)
	year = year + 1900;
	document.write(date + ". " + lmonth + " " + year);
}


function Counter(titel,link,datum)
{
 var date = new Date("" + datum + "");
 var description = "<a href=\"" + link + "\" class=\"linkblack\"target=\"_new\">" + titel + "";
 var prefix = "<font color=\"#FF6700\"><B>"
 var now = new Date();
 var diff = date.getTime() - now.getTime();
 var days = Math.floor(diff / (1000 * 60 * 60 * 24));
 if (days > 1) {
 document.write(prefix + (days+1) + "</B></font><font color=\"#FFFFFF\"> Tage bis " + description + "</a>");
 }
 else if (days == 1) {
 document.write("<font color=\"#FFFFFF\">Noch <font color=\"#F7D708\"><B>ZWEI</B></font> Tage bis</font> " + description + "</a>");
 }
 else if (days == 0) {
 document.write("<font color=\"#F7D708\"><B>Morgen</B></font> <font color=\"#FFFFFF\">kommt</font>&nbsp;" + description + "&nbsp;ins Kino!</a>");
 }
 else {
 document.write("<font color=\"#F7D708\"><B>Jetzt im Kino!</B> &nbsp;" + description + "</a>");
 }
}
