
function printPromotions() {
 document.write("<table border='0' width='100%' id='Produkt promotion'><tbody><tr>");
 for (var i = 0; i < themeArray.length; i++) {
  document.write("<td>");
  printPromotion(i);
  document.write("</td>");
 }
 document.write("</tr></tbody></table>");
}

function printPromotion(i) {
 var theme = themeArray[i];
 var variation = theme[Math.floor(Math.random() * theme.length)];
 document.write("<a href='" + variation["url"] + "' title='" + variation["title"] + "'>");
 document.write("<img class='frame' src='" + variation["src"] + "' alt='" + variation["alt"] + "' />");
 document.write("</a>");
}

// --- Theme ---
var theme_l = new Array();

theme_l[0] = new Object();
theme_l[0]["src"] = "./promo/l1.jpg";
theme_l[0]["url"] = "motoel.html";
theme_l[0]["alt"] = "LEROL Motorenoele";
theme_l[0]["title"] = "LEROL Motorenoele ";

theme_l[1] = new Object();
theme_l[1]["src"] = "./promo/l4.jpg";
theme_l[1]["url"] = "motoel.html";
theme_l[1]["alt"] = "LEROL Motorenoele";
theme_l[1]["title"] = "LEROL Motorenoele";

theme_l[2] = new Object();
theme_l[2]["src"] = "./promo/l2.jpg";
theme_l[2]["url"] = "motoel.html";
theme_l[2]["alt"] = "LEROL Motorenoele";
theme_l[2]["title"] = "LEROL Motorenoele";

theme_l[3] = new Object();
theme_l[3]["src"] = "./promo/l3.jpg";
theme_l[3]["url"] = "motoel.html";
theme_l[3]["alt"] = "LEROL Motorenoele";
theme_l[3]["title"] = "LEROL Motorenoele";

theme_l[4] = new Object();
theme_l[4]["src"] = "./promo/l5.jpg";
theme_l[4]["url"] = "motoel.html";
theme_l[4]["alt"] = "LEROL Motorenoele";
theme_l[4]["title"] = "LEROL Motorenoele";

theme_l[5] = new Object();
theme_l[5]["src"] = "./promo/l6.jpg";
theme_l[5]["url"] = "motoel.html";
theme_l[5]["alt"] = "LEROL Motorenoele";
theme_l[5]["title"] = "LEROL Motorenoele";

theme_l[6] = new Object();
theme_l[6]["src"] = "./promo/l7.jpg";
theme_l[6]["url"] = "motoel.html";
theme_l[6]["alt"] = "LEROL Motorenoele";
theme_l[6]["title"] = "LEROL Motorenoele";


// --- Theme ---
var theme_p = new Array();

theme_p[0] = new Object();
theme_p[0]["src"] = "./promo/p1.jpg";
theme_p[0]["url"] = "programm.html";
theme_p[0]["alt"] = "Industrieschmierstoffe";
theme_p[0]["title"] = "Industrieschmierstoffe";

theme_p[1] = new Object();
theme_p[1]["src"] = "./promo/p2.jpg";
theme_p[1]["url"] = "programm.html";
theme_p[1]["alt"] = "Industrieschmierstoffe";
theme_p[1]["title"] = "Industrieschmierstoffe";

theme_p[2] = new Object();
theme_p[2]["src"] = "./promo/p3.jpg";
theme_p[2]["url"] = "programm.html";
theme_p[2]["alt"] = "Industrieschmierstoffe";
theme_p[2]["title"] = "Industrieschmierstoffe";

theme_p[3] = new Object();
theme_p[3]["src"] = "./promo/p4.jpg";
theme_p[3]["url"] = "programm.html";
theme_p[3]["alt"] = "Industrieschmierstoffe";
theme_p[3]["title"] = "Industrieschmierstoffe";

theme_p[4] = new Object();
theme_p[4]["src"] = "./promo/p5.jpg";
theme_p[4]["url"] = "programm.html";
theme_p[4]["alt"] = "Industrieschmierstoffe";
theme_p[4]["title"] = "Industrieschmierstoffe";

theme_p[5] = new Object();
theme_p[5]["src"] = "./promo/p6.gif";
theme_p[5]["url"] = "programm.html";
theme_p[5]["alt"] = "Industrieschmierstoffe";
theme_p[5]["title"] = "Industrieschmierstoffe";

// --- Theme ---

var theme_b = new Array();

theme_b[0] = new Object();
theme_b[0]["src"] = "./promo/b1.jpg";
theme_b[0]["url"] = "anforderungen.html";
theme_b[0]["alt"] = "Oel- und Chemikalienbindemittel";
theme_b[0]["title"] = "Oel- und Chemikalienbindemittel";

theme_b[1] = new Object();
theme_b[1]["src"] = "./promo/b2.jpg";
theme_b[1]["url"] = "anforderungen.html";
theme_b[1]["alt"] = "Oel- und Chemikalienbindemittel";
theme_b[1]["title"] = "Oel- und Chemikalienbindemittel";

theme_b[2] = new Object();
theme_b[2]["src"] = "./promo/b3.jpg";
theme_b[2]["url"] = "anforderungen.html";
theme_b[2]["alt"] = "Oel- und Chemikalienbindemittel";
theme_b[2]["title"] = "Oel- und Chemikalienbindemittel";

theme_b[3] = new Object();
theme_b[3]["src"] = "./promo/b4.jpg";
theme_b[3]["url"] = "anforderungen.html";
theme_b[3]["alt"] = "Oel- und Chemikalienbindemittel";
theme_b[3]["title"] = "Oel- und Chemikalienbindemittel";



// --- Theme ---
var theme_m = new Array();

theme_m[0] = new Object();
theme_m[0]["src"] = "./promo/m1.jpg";
theme_m[0]["url"] = "motinfoarial.html";
theme_m[0]["alt"] = "Silkolene";
theme_m[0]["title"] = "Motorrad Schmierstoff und Pflegeprogramm";

theme_m[1] = new Object();
theme_m[1]["src"] = "./promo/m2.jpg";
theme_m[1]["url"] = "motinfoarial.html";
theme_m[1]["alt"] = "Silkolene";
theme_m[1]["title"] = "Motorrad Schmierstoff und Pflegeprogramm";

theme_m[2] = new Object();
theme_m[2]["src"] = "./promo/m3.jpg";
theme_m[2]["url"] = "motinfoarial.html";
theme_m[2]["alt"] = "Silkolene";
theme_m[2]["title"] = "Motorrad Schmierstoff und Pflegeprogramm";

theme_m[3] = new Object();
theme_m[3]["src"] = "./promo/m1.gif";
theme_m[3]["url"] = "motinfoarial.html";
theme_m[3]["alt"] = "Silkolene";
theme_m[3]["title"] = "Motorrad Schmierstoff und Pflegeprogramm";

theme_m[4] = new Object();
theme_m[4]["src"] = "./promo/m2.gif";
theme_m[4]["url"] = "motinfoarial.html";
theme_m[4]["alt"] = "Silkolene";
theme_m[4]["title"] = "Motorrad Schmierstoff und Pflegeprogramm";


// --- Theme ---
var theme_g = new Array();

theme_g[0] = new Object();
theme_g[0]["src"] = "./promo/g1.gif";
theme_g[0]["url"] = "wanneg.html";
theme_g[0]["alt"] = "Geräte";
theme_g[0]["title"] = "Werkstattgeräte, Auffangwannen und Frischoelversorgung";

theme_g[1] = new Object();
theme_g[1]["src"] = "./promo/g2.jpg";
theme_g[1]["url"] = "wanneg.html";
theme_g[1]["alt"] = "Geräte";
theme_g[1]["title"] = "Werkstattgeräte, Auffangwannen und Frischoelversorgung";

theme_g[2] = new Object();
theme_g[2]["src"] = "./promo/g3.gif";
theme_g[2]["url"] = "wanneg.html";
theme_g[2]["alt"] = "Geräte";
theme_g[2]["title"] = "Werkstattgeräte, Auffangwannen und Frischoelversorgung";

theme_g[3] = new Object();
theme_g[3]["src"] = "./promo/g4.gif";
theme_g[3]["url"] = "wanneg.html";
theme_g[3]["alt"] = "Geräte";
theme_g[3]["title"] = "Werkstattgeräte, Auffangwannen und Frischoelversorgung";

theme_g[4] = new Object();
theme_g[4]["src"] = "./promo/g5.gif";
theme_g[4]["url"] = "wanneg.html";
theme_g[4]["alt"] = "Geräte";
theme_g[4]["title"] = "Werkstattgeräte, Auffangwannen und Frischoelversorgung";


var themeArray = new Array();
themeArray[0] = theme_l;
themeArray[1] = theme_p;
themeArray[3] = theme_b;
themeArray[2] = theme_m;
themeArray[4] = theme_g;

printPromotions();
