// JavaScript Document// this function creates the links array objectfunction linkObj( url, name, des ) {this.url = url;this.name = name;this.des = des;}// array to hold link list (url, name, description)var links =  new Array(); links[0] = new linkObj("http://www.bigrockworks.com/wmac", "Wichita Mountain Arts Council", " ")links[1] = new linkObj("http://www.bigrockworks.com/marauders", "Medicine Park Marauders", " - Old West Street Theater")var links3 =  new Array(); links3[0] = new linkObj("http://medicine-park.com/blissfulbody", "The Blissful Body", " - Massage Therapy")links3[1] = new linkObj("http://www.chapsmyass.com", "Chaps My A", " - Motorcycle Accessories")links3[2] = new linkObj("http://www.medicine-park.com/laughinglizard", "The Laughing Lizard", " - Gifts and Souvenirs")links3[3] = new linkObj("http://www.medicine-park.com/lulabelles", "Lulabelles", " - Gourmet Foods and Candles")links3[4] = new linkObj("http://www.friendsautohauz.com/IceCream.htm", "Medicine Park Ice Cream & Candy Co.", " - Hand Crafted Fudge, Candies & Ice Cream")links3[5] = new linkObj("http://www.medicineparktavern.com", "The Park Tavern", " - Tavern and Events")links3[6] = new linkObj("http://medicine-park.com/RustyBuffalo/index.html", "The Rusty Buffalo", " - Southwestern Themed Gifts")links3[7] = new linkObj("http://www.wineryofthewichitas.com/index.htm", "Winery of the Wichitas", " - Winery, Tasting Room and Gallery")var links4 =  new Array(); links4[0] = new linkObj("http://www.bigrockworks.com", "Big Rock Works", " - Graphic Design and Web Site Design")links4[1] = new linkObj("http://www.mccoydev.com", "McCoy Development", " - Granite Ridge Estates")links4[2] = new linkObj("http://www.medicineparklodging.com/mike", "Hibbetts Construction", " - Real Estate and Custom Home Building")links4[3] = new linkObj("http://www.themathgym.com", "The Math Gym", " - Creative Math Learning System")links4[4] = new linkObj("http://www.aloe-vera.com", "Cosmetic Specialty Labs", " - Aloe Based Cosmmetic Products")links3[5] = new linkObj("http://www.medicineparktradingcompany.com ", "The Medicine Park Trading Company", " - Medicine Park Themed Giftware, etc.")links3[6] = new linkObj("http://www.medicineparktavern.com", "The Park Tavern", " - Tavern")links3[7] = new linkObj("http://medicine-park.com/RustyBuffalo/index.html", "The Rusty Buffalo", " - Southwestern Themed Gifts")links3[8] = new linkObj("http://www.wineryofthewichitas.com/index.htm", "Winery of the Wichitas", " Winery and Tasting Room")var links5 =  new Array(); links5[0] = new linkObj("http://www.okbuffalotours.com/", "OK Bufalo Tours", " - Get up close to live buffalo and more")links5[1] = new linkObj("http://www.fws.gov/southwest/refuges/wichitamountains/", "Wichita Mountains Wildlife Reserve", " - 60,000 Acre Wildlife Area")links5[2] = new linkObj("http://sill-www.army.mil/Museum/Home%20Page.htm", "Historic Fort Sill", " - Founded in 1870, large collection of Frontier Artifacts")links5[3] = new linkObj("http://www.museumgreatplains.org/", "Museum of the Great Plains", " - Explore the Historic Spirit of the Great Plains")window.onload = function() {	loadLinks();}// creates all the links in the linkList divfunction loadLinks() {	var div = document.getElementById('linkList');	var h2 = document.createElement("H2");	h2.appendChild(document.createTextNode('The Arts'));	div.appendChild(h2);	i = 0	for(var i = 0; i < links.length; i++) {		var p = document.createElement("P");		var a = document.createElement("A");		a.href = links[i].url		a.target = "_blank"		a.appendChild(document.createTextNode(links[i].name));		p.appendChild(a);		p.appendChild(document.createTextNode(links[i].des));		div.appendChild(p);	}			var h2 = document.createElement("H2");	h2.appendChild(document.createTextNode('Shops & More'));	div.appendChild(h2);	i = 0	for(var i = 0; i < links3.length; i++) {		var p = document.createElement("P");		var a = document.createElement("A");		a.href = links3[i].url		a.target = "_blank"		a.appendChild(document.createTextNode(links3[i].name));		p.appendChild(a);		p.appendChild(document.createTextNode(links3[i].des));		div.appendChild(p);	}				var h2 = document.createElement("H2");	h2.appendChild(document.createTextNode('Near by Attractions'));	div.appendChild(h2);	i = 0	for(var i = 0; i < links5.length; i++) {		var p = document.createElement("P");		var a = document.createElement("A");		a.href = links5[i].url		a.target = "_blank"		a.appendChild(document.createTextNode(links5[i].name));		p.appendChild(a);		p.appendChild(document.createTextNode(links5[i].des));		div.appendChild(p);	}}