	// variables needed
	var img1 = 0;
	var img2 = 0;
	var img3 = 0;
	var img4 = 0;
	var img5 = 0;

	var html = "";
	var html2 = "";

	// array containing the SRCs to the images and their respective links
	var images = [

	{ image:"Site-Bilder/header_prod_imgs/Bild1.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild2.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild3.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild4.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild5.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild6.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild7.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild8.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild9.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild10.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild11.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild12.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild13.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild14.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild15.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild16.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild17.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild18.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild19.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild20.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild21.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild22.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild23.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild24.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild25.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild26.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild27.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild28.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild29.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild30.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild31.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild32.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild33.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild34.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild35.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild36.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild37.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild38.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild39.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild40.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild41.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild42.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild43.png"},
	{ image:"Site-Bilder/header_prod_imgs/Bild44.png"}

	];


	// if any of the numbers are the same, change the second one to a different number
   	img1 = Math.floor(Math.random()*44);

   	while (img1 == img2 || img1 == img3 || img1 == img4 || img1 == img5)
   	{
   	img1 = Math.floor(Math.random()*44);
   	}


   	img2 = Math.floor(Math.random()*44);

   	while (img2 == img1 || img2 == img3 || img2 == img4 || img2 == img5)
   	{
   	img2 = Math.floor(Math.random()*44);
   	}


   	img3 = Math.floor(Math.random()*44);

   	while (img3 == img1 || img3 == img2 || img3 == img4 || img3 == img5)
   	{
   	img3 = Math.floor(Math.random()*44);
   	}


   	img4 = Math.floor(Math.random()*44);

   	while (img4 == img1 || img4 == img2 || img4 == img3 || img4 == img5)
   	{
   	img4 = Math.floor(Math.random()*44);
   	}


   	img5 = Math.floor(Math.random()*44);

   	while (img5 == img1 || img5 == img2 || img5 == img3 || img5 == img4)
   	{
   	img5 = Math.floor(Math.random()*44);
   	}


function get_imgs()
   {
   // writing the the tags for the table body, row and data, as well as the image tags and theri respective links
   	html += "<tbody>";
   	html += "<tr>";
   	html += "<td id=\"alImg1\"><img src="+ images[img1].image +"  border=\"0\"></td>";
   	html += "<td id=\"alImg2\"><img src="+ images[img2].image +"  border=\"0\"></td>";
   	html += "<td id=\"alImg3\"><img src="+ images[img3].image +"  border=\"0\"></td>";
   	html += "<td id=\"alImg4\"><img src="+ images[img4].image +"  border=\"0\"></td>";
   	html += "<td id=\"alImg5\"><img src="+ images[img5].image +"  border=\"0\"></td>";
   	html += "</tr>";
   	html += "</tbody>";

  	// actually printing the generated code into the html body when the function is called
   	document.write(html);
	}

function imagesIE6 ()
   	{
   	html2 += "<!--[if gte IE 5.5]>";
	html2 += "<![if lt IE 7]>";
	html2 += "<style type=\"text/css\">";
	html2 += "#alImg1 img, #alImg2 img, #alImg3 img, #alImg4 img, #alImg5 img { filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0); }";
	html2 += "#alImg1 img, #alImg2 img, #alImg3 img, #alImg4 img, #alImg5 img { display: inline-block; }";
	html2 += "#alImg1 { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + images[img1].image + "'); }";
	html2 += "#alImg2 { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + images[img2].image + "'); }";
	html2 += "#alImg3 { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + images[img3].image + "'); }";
	html2 += "#alImg4 { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + images[img4].image + "'); }";
	html2 += "#alImg5 { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + images[img5].image + "'); }";
	html2 += "</style>";
	html2 += "<![endif]>";
	html2 += "<![endif]-->";

	// actually printing the generated code into the html head when the function is called
	document.write(html2);
   	}
