
// erzeugt Zufallszahl kleiner gleich Bilderanzahl
today=new Date();
jran=today.getTime();
var anzahl = 23;     // Anzahl der Bilder
var random_number="";
var image="";
var text_color="";
ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;

random_number = Math.ceil( (jran/(im*1.0)) * anzahl);

// läd ein Image abhängig von der Zufallszahl

if (random_number==1) {
text_color="000000";
image="1.jpg";
text="Cabo São Vincente"
}
if (random_number==2) {
text_color="#000000";
image="2.jpg";
text="Blick vom Rocha dos Soidos"
}
if (random_number==3) {
text_color="#000000";
image="3.jpg";
text="Bei Silves"
}
if (random_number==4) {
text_color="#000000";
image="4.jpg";
text="Ria de Alvor"
}
if (random_number==5) {
text_color="#000000";
image="5.jpg";
text="Willkommen in Lagos"
}
if (random_number==6) {
text_color="#000000";
image="6.jpg";
text="Wohnhaus in Carvoeiro"
}
if (random_number==7) {
text_color="#000000";
image="7.jpg";
text="Landschaft bei Alvor "
}

if (random_number==8) {
text_color="#000000";
image="8.jpg";
text="Auf den Klippen bei Carvoeiro"
}
if (random_number==9) {
text_color="#000000";
image="9.jpg";
text="Blick vom Picota"
}
if (random_number==10) {
text_color="#000000";
image="10.jpg";
text="Pottery"
}
if (random_number==11) {
text_color="#000000";
image="11.jpg";
text="Rundhäuser in Mealha"
}
if (random_number==12) {
text_color="#000000";
image="12.jpg";
text="Korklager bei Monchique"
}
if (random_number==13) {
text_color="#000000";
image="13.jpg";
text="Klippen an der Ponta da Piedade"
}
if (random_number==14) {
text_color="#000000";
image="14.jpg";
text="Blick vom Marinha"
}
if (random_number==15) {
text_color="#000000";
image="15.jpg";
text="Tavira"
}
if (random_number==16) {
text_color="#000000";
image="16.jpg";
text="Wasserbrunnen im Monchique"
}
if (random_number==17) {
text_color="#000000";
image="17.jpg";
text="Hafenpromenade von Lagos"
}
if (random_number==18) {
text_color="#000000";
image="18.jpg";
text="Felsenküste in Lagos"
}
if (random_number==19) {
text_color="#000000";
image="19.jpg";
text="Wasserbrunnen in Mehalha"
}

if (random_number==20) {
text_color="#000000";
image="20.jpg";
text="Fischerhafen in Alvor"
}

if (random_number==21) {
text_color="#000000";
image="21.jpg";
text="Sonnenuntergang über Lagos"
}
if (random_number==22) {
text_color="#000000";
image="22.jpg";
text="Alvor: Blick gen Westen"
}
if (random_number==23) {
text_color="#000000";
image="23.jpg";
text="Markthalle in Loulé"
}

function zufallsbild() {
document.write("<img src='random/" + image + "' width='280' border='3' alt='' align='center'><br>")
document.write(text + "<br>")

//document.write("<font color=#" + text_color +"'>" + text + "</font><br>")
return
}

