//When Adding an ad just ad an instance to the array adList[][] it will require the name of the ad, then the website to link to when clicked.


function putAd(){

var adList=new Array();
//adList[x]="graphicName,websiteLocation"; <--this is the model for each ad. Add 1 to x each time you make a new ad.
adList[0]="LWPAD1.gif,www.lakewatereeproperties.com";
adList[1]="LWPAD1.gif,www.lakewatereeproperties.com";
adList[2]="TLHad1.gif,www.tnloghomes.com";
adList[3]="windwardp.gif,www.lakewatereeproperties.com/homebrowser/sailclub/sailClub.asp"
	

	
	var	adSel=Math.round(Math.random()*(adList.length-1));//randomly selects an ad between zero and the length of the ad
		
		
	var splitParam=adList[adSel].split(",");//splits the selected ad array index into name and url
	var adName="../ads/"+splitParam[0]; //set name
	var siteURL="http://"+splitParam[1]; //set URL
	//this writes the code for the image and the link
	return("<a href='"+siteURL+"' target='_blank'>"+"<img src='"+adName+"' width=115 border='0' align='right'>"+"</a>");


}