﻿// JavaScript Document

// HIER STANDZEIT DER NEUHEITEN ANGEBEN
var delay = 6000;
function ShowHideBlock(ob,va){
	if(document.getElementById){
		obj=document.getElementById(ob);
	}
	if(document.all && !document.getElementById){
		obj=document.all[ob];
	}
	if(va==0){
		obj.style.display="none";
	}
	else if(va==1){
		obj.style.display="block";
	}
}

var nrtemp = 1;
var tempvar;


function ShowHideSchleife(){
	ob="productNewID"+nrtemp;
	ShowHideBlock(ob,0);
	if(tempvar !== 1 && !document.cookie){
		document.cookie = "kino=active";
		tempvar = 1;
	}
	nrtemp++;

	if(document.getElementById){
		if(!document.getElementById("productNewID"+nrtemp)){nrtemp = 1}
	}
	if(document.all && !document.getElementById){
		if(!document.all["productNewID"+nrtemp]){nrtemp = 1}
	}
	ob="productNewID"+nrtemp;
	ShowHideBlock(ob,1);
	setTimeout('ShowHideSchleife();',delay);	
}

var Fenster = null;
function winopen(z_leist3,meinName,w,h,scroll) {
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	Fenster = window.open(z_leist3,meinName,settings);
	setTimeout('Fenster.focus();',300);
}