
var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}
 
function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks[i]=slideshowlinks.arguments[i]
}
 
function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}


//configure the paths of the images, plus corresponding target links


slideshowimages("/images/screen_picture0.jpg","/images/screen_picture1.jpg","/images/screen_picture2.jpg","/images/screen_picture3.jpg","/images/screen_picture4.jpg",
				"/images/screen_picture5.jpg","/images/screen_picture6.jpg","/images/screen_picture7.jpg","/images/screen_picture8.jpg","/images/screen_picture9.jpg");
slideshowlinks("deutschlandfinale.html","weltfinale.html","weltfinale.html","weltfinale.html","weltfinale.html","weltfinale.html","weltfinale.html","weltfinale.html","weltfinale.html","weltfinale.html");
//configure the speed of the slideshow, in miliseconds
var slideshowspeed=2000
 
var whichlink=0
var whichimage=0
function slideit() {
	if (!document.images) {
		return;
	}
	document.images.slide.src = slideimages[whichimage].src;
	//document.links.slidelink.href = slidelinks[whichlink];
	if (whichimage < slideimages.length-1) {
		whichimage++;
	} else {
		whichimage=0;
	}
	setTimeout("slideit()",slideshowspeed)
}


/*
this method opens a pop-up window
-> method call: 
   <a href="JavaScript:NewWindow('url','Example name',width,height,xpos,ypos)" class="smaller">Link</a>
-> example for method call: 
   <a href="JavaScript:NewWindow('/imprint.html','Imprint',450,610,150,10)" class="smaller">[Imprint]</a>
*/
var isNav4, isNav6, isIE4;
function NewWindow(FileURL,WindowName,WindowWidth,WindowHeight,XPos,YPos) {
	if (isNav6) {
		fWindowWidth = WindowWidth +  8; fWindowHeight = WindowHeight + 27;
	} else if (isNav4) {
		fWindowWidth = WindowWidth + 15; fWindowHeight = WindowHeight + 15;
	} else {
		fWindowWidth = WindowWidth + 12; fWindowHeight = WindowHeight + 31;
	}
	Fenster = window.open(FileURL,WindowName,'width='+fWindowWidth+',height='+fWindowHeight+',screenX='+XPos+',screenY='+YPos+',dependent=yes,scrollbars=yes,resizable=yes');
	Fenster.moveTo(XPos,YPos);
	Fenster.resizeTo(fWindowWidth,fWindowHeight);
}


//Close Popup-Layer
function hidePopupLayer(layerid) {
	if (document.getElementById)
	{
	// this is the way the standards work
	var style2 = document.getElementById(layerid).style;
	style2.display = style2.display? "none":"none";	
	}
	else if (document.all)
	{
	// this is the way old msie versions work
	var style2 = document.all[layerid].style;
	style2.display = style2.display? "none":"none";
	}
	else if (document.layers)
	{
	// this is the way nn4 works
	var style2 = document.layers[layerid].style;
	style2.display = style2.display? "none":"none";
	}
}




/*Slide layer function:
method call: <body onload="init();slideDown()" bgcolor="black">
*/
function moveTo(obj, x, y) {
	if (document.getElementById) {
	document.getElementById('menuDiv').style.left = x;
	document.getElementById('menuDiv').style.top = y;
	}
}

function init(){
	if(document.getElementById){
	obj = document.getElementById("menuDiv");
	if(obj)
		obj.style.top = "-470px";
	}
}

function slideDown(){
	if(document.getElementById){
		if(obj && parseInt(obj.style.top) < 0){
			obj.style.top = parseInt(obj.style.top) + 10 + "px";
			setTimeout("slideDown()",50);
		}
	}
}

function slideUp(){
	if(document.getElementById){
		if(obj && parseInt(obj.style.top) > -470){
			obj.style.top = parseInt(obj.style.top) - 10 + "px";
			setTimeout("slideUp()",50);
		}
	}
}
//-->