var zufallszahl, aktuelle_zufallszahl, multiplikator;


anzahl = 4;
product_id = new Array("2&from=JSr-Levis501", "2&from=JSr-Levis507", "2&from=JSr-Levis529", "2&from=JSr-Levis572");
txt_product = new Array("Levis 501", "Levis 507", "Levis 529", "Levis 572");
txt_description = new Array("Jeans", "Bootcut", "Low Waist Bootcut", "Bootcut");
txt_company = "<b>Internetpreis:</b>"
txt_price = new Array("82,95 Euro", "78,95 Euro", "84,95", "84,95");
img_source = new Array("levis_501-hit_55x110.jpg", "levis_507_55x110.jpg", "levis_529-NEU_55x110.jpg", "levis_572_55x110.jpg");
img_width = new Array("55", "55", "55", "55");
img_height = new Array("110", "110", "110", "110");
link_path= "http://www.jeanswelt.de/ProductTree.php?CategoryID=";
img_path = "http://www.faustmannswelt.de/jeanswelt-banner/";
img_alt = "Zur Levis Jeans klicken!"

 
 //*******************************************************************************
 function ermittle_zufallszahl()
 {	
 	multiplikator = anzahl - 1;
 	zufallszahl=Math.round((Math.random()*multiplikator));
 	if (zufallszahl==aktuelle_zufallszahl)
 	{
 		ermittle_zufallszahl();
 	}
 	aktuelle_zufallszahl = zufallszahl;
 }
 
 //*******************************************************************************
 function levis_rotation(link)
 {
 	ermittle_zufallszahl();
 	document.writeln("<TABLE CELLSPACING=0 BORDER=0 WIDTH='10'><TR><TD WIDTH='10' VALIGN='TOP'>");
 	document.writeln("<FONT SIZE='2' FACE='Arial,Helvetica,sans-serif'><CENTER>");
 	document.writeln("<A HREF='" + link + link_path + product_id[zufallszahl] + "' TARGET='_blank'>");
 	document.writeln("<IMG SRC='" + img_path + img_source[zufallszahl] + "' ALT='" + img_alt + "' BORDER='0' WIDTH='" + img_width + "' HEIGHT='" + img_height + "'>");
 	document.writeln('<BR><B>' + txt_product[zufallszahl] + '</B></A><BR>' + txt_description[zufallszahl] + '<BR>' + txt_company + '<BR><FONT COLOR="#BB1033"><B>' + txt_price[zufallszahl] + '</B></FONT></CENTER></FONT>');
 	document.writeln("</TD></TR></TABLE>");
 }