var zufallszahl, aktuelle_zufallszahl, multiplikator;


anzahl = 2;
product_id = new Array("2&from=JSr-MaviDamen", "2&from=JSr-MaviHerren");
txt_product = new Array("Mavi Damen Jeansjacke", "Mavi Herren Jeansjacke");
txt_description = new Array("", "");
txt_company = "<b>Preis</b>"
txt_price = new Array("84,95 Euro", "84,95 Euro");
img_source = new Array("damenjacke.jpg", "herrenjacke.jpg");
img_width = new Array("55", "55");
img_height = new Array("110", "110");
link_path =  "http://www.jeanswelt.de/Jackets/646/%DCbersicht.html?from=zanox-js-jdm";
img_path = "http://www.faustmannswelt.de/jeanswelt-banner/";
img_alt = "Zur Mavi 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='120'><TR><TD WIDTH='120' 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="red"><B>' + txt_price[zufallszahl] + '</B></FONT></CENTER></FONT>');
 	document.writeln("</TD></TR></TABLE>");
 }