/***************************************************************************** **                                SETTINGS                                 ** ***************************************************************************** ** WEIGHTING PICTURES:	It is recommended to keep the weights between 1 and 4, although there is	no rule preventing higher weights. Setting a weight to 0 will cause that	picture to no longer display.	Weights for all pictures are totaled together. Each individual weight	will indicate the approximate number of times a picture should appear	based on the total weights. For example, if the number of pictures is	four, and the weights are 1, 2, 2, and 4, the total weight is 9 and the	first images will have a 1 in 9 chance of appearing. If all weights are	the same each will have an equal chance of appearing. *****************************************************************************/		var NumberOfPics = 8;		//Pictures to switch inbetween		var Showpic1 = "art1.jpg";		var Showpic2 = "art2.jpg";		var Showpic3 = "art3.jpg";		var Showpic4 = "art4.jpg";		var Showpic5 = "art5.jpg";		var Showpic6 = "art6.jpg";		var Showpic7 = "art7.jpg";		var Showpic8 = "art9.jpg";		//Picture specs.		var Weight1 = 1;		var PicWide1 = "275";		var PicHigh1 = "457";		var Title1 = "Image One"		//Picture specs.		var Weight2 = 1;		var PicWide2 = "512";		var PicHigh2 = "384";		var Title2 = "Image Two"		//Picture specs.		var Weight3 = 1;		var PicWide3 = "512";		var PicHigh3 = "384";		var Title3 = "Image Three"		//Picture specs.		var Weight4 = 1;		var PicWide4 = "512";		var PicHigh4 = "384";		var Title4 = "Image Four"		//Picture specs.		var Weight5 = 1;		var PicWide5 = "512";		var PicHigh5 = "384";		var Title5 = "Image Five"		//Picture specs.		var Weight6 = 1;		var PicWide6 = "512";		var PicHigh6 = "384";		var Title6 = "Image Six"		//Picture specs.		var Weight7 = 1;		var PicWide7 = "512";		var PicHigh7 = "384";		var Title7 = "Image Seven"		//Picture specs.		var Weight8 = 1;		var PicWide8 = "512";		var PicHigh8 = "384";		var Title8 = "Image Nine"// *****************************************************************************// **                       CALCULATE TOTAL WEIGHT                            **// *****************************************************************************getWeight = 0;weightStr = "";totalWeight = 0;for (x=1; x<NumberOfPics+1; x++){	getWeight = eval("Weight" + x);	totalWeight = totalWeight + getWeight;		for (y=0; y<getWeight; y++)		{			weightStr = weightStr + x;		}}// *****************************************************************************// **                       SHOW PICTURE FUNCTION                             **// *****************************************************************************function ShowPic() {	rndPos = Math.floor(Math.random()*totalWeight+1)	picnum = weightStr.substring(rndPos-1,rndPos)	if (picnum < 1) {		picnum = 1;	}	else if (picnum > NumberOfPics) {		picnum = NumberOfPics;	}	document.write("<BODY background='images/" + eval("Showpic" + picnum) + "'  bgcolor=white  MARGINWIDTH='0' MARGINHEIGHT='0' LEFTMARGIN='0' TOPMARGIN='0' style='background-repeat:no-repeat' onload='fade1(); beingwatermark()'>");//	document.write("<img src='images/" + eval("Showpic" + picnum) + "' BORDER='0' WIDTH='"+eval("PicWide" + picnum)+"' HEIGHT='"+eval("PicHigh" + picnum)+"' ALT='"+eval("Title" + picnum)+"'>");}