// d - j
var delay_nd=4000 //set delay in miliseconds
var curindex_nd=0

var randomimages_nd=new Array()

randomimages_nd[0]=["/fileadmin/dokumente/Region/player_stommel.png","/index.php?id=1050","","Andreas Stommel"];
randomimages_nd[1]=["/fileadmin/dokumente/Region/player_fischer.png","/index.php?id=1050","","Matthias Fischer"];
randomimages_nd[2]=["/fileadmin/dokumente/Region/player_wirtschaftsregion.png","/index.php?id=1050","","Wirtschaftsregion"];
randomimages_nd[3]=["/fileadmin/dokumente/Region/player_wissenschaftsregion.png","/index.php?id=1050","","Wissenschaftsregion"];
randomimages_nd[4]=["/fileadmin/dokumente/Region/player_kulturregion.png","/index.php?id=1050","","Kulturregion"];
randomimages_nd[5]=["/fileadmin/dokumente/Region/player_ausbilden.png","/index.php?id=1050","","Radiospot"];
//randomimages_nd[6]=["/fileadmin/dokumente/Region/player_weihnachtsmarkt.png","/index.php?id=1050","","Weihnachtsmarkt"];
randomimages_nd[6]=["/fileadmin/dokumente/Region/player_swoboda.png","/index.php?id=1050","","Relaunch"];
randomimages_nd[7]=["/fileadmin/dokumente/Region/Player_Domschke.png","/index.php?id=1050","","Andreas Domschke"];
randomimages_nd[8]=["/fileadmin/dokumente/Region/Player_Kranz.png","/index.php?id=1050","","Bernd Kranz"];
randomimages_nd[9]=["/fileadmin/dokumente/Region/Player_Broemmelhaus.png","/index.php?id=1050","","Frank Brömmelhaus"];
randomimages_nd[10]=["/fileadmin/dokumente/Region/Player_schoepe.png","/index.php?id=1050","","Uwe Schöpe"];
randomimages_nd[11]=["/fileadmin/dokumente/Region/Player_Grombach.png","/index.php?id=1050","","Ina Grombach"];
randomimages_nd[12]=["/fileadmin/dokumente/Region/Player_Baar.png","/index.php?id=1050","","Christian Baar"];
randomimages_nd[13]=["/fileadmin/dokumente/Region/Player_Nolte.png","/index.php?id=1050","","Peter Nolte"];







var preload_nd=new Array()

for (n=0;n<randomimages_nd.length;n++)
{
preload_nd[n]=new Image()
preload_nd[n].src=randomimages_nd[n]
}

var First_nd=Math.floor(Math.random()*(randomimages_nd.length));
var LnkURL_nd=randomimages_nd[First_nd][1];

//document.write('<img onclick="Link_nd();" style="cursor:pointer;" name="defaultimage_nd" src="'+randomimages_nd[First_nd][0]+'">')
document.write('<a href="'+LnkURL_nd+'" id="defaultlink_nd"><img style="cursor:pointer;" name="defaultimage_nd" src="'+randomimages_nd[First_nd][0]+'" alt="" title=""></a>')


function Link_nd(){
if (LnkURL_nd){
window.location=LnkURL_nd;
}

}
function rotateimage_nd()
{

if (curindex_nd==(tempindex_nd=Math.floor(Math.random()*(randomimages_nd.length)))){
curindex_nd=curindex_nd==0? 1 : curindex_nd-1
}
else
curindex_nd=tempindex_nd
LnkURL_nd=randomimages_nd[curindex_nd][1];
document.images.defaultimage_nd.src=randomimages_nd[curindex_nd][0];
document.images.defaultimage_nd.title=randomimages_nd[curindex_nd][2];
document.images.defaultimage_nd.alt=randomimages_nd[curindex_nd][3];

document.getElementById('defaultlink_nd').href=randomimages_nd[curindex_nd][1];

}

setInterval("rotateimage_nd()",delay_nd)