// 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 links2 =  new Array(); links2[0] = new linkObj("http://www.medicinecreeklodging.com", "Medicine Creek Loft", " ")links2[1] = new linkObj("http://www.medicineparklodging.com", "Medicine Park Lodging", " ")links2[2] = new linkObj("http://www.stardustinn.com", "The Stardust Inn", " ")links2[3] = new linkObj("http://www.wichitamountainlodge.com", "Wichita Mountain Lodge", " ")links2[4] = new linkObj("http://www.morefield.cc", "Grandmas Cabin", " ")links2[5] = new linkObj("http://www.medicineparkcottage.com", "Bonnie & Clyde", " ")links2[6] = new linkObj("http://www.medicine-park.com/CobblestoneCottage", "Cobblestone Cottage", " ")links2[7] = new linkObj("http://www.friendsautohauz.com/autohauz.htm", "Friends Authauz Getaway", " ")links2[8] = new linkObj("http://www.colonelkrugerscabin.com", "Colonel Kruger's Cabin", " ")links2[9] = new linkObj("http://www.medicineparkcabin.com", "Medicine Park Cabin", " ")links2[10] = new linkObj("http://www.carolscabin.net", "Carol's Cabin", " ")links2[11] = new linkObj("http://chapelhillbnb.com", "Chapel Hill B&B", " ")links2[12] = new linkObj("http://www.medicineparkcabins.com", "Medicine Park Cabins", " ")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 Ass", " - 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.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 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")links4[5] = new linkObj("http://www.medicineparktavern.com", "The Park Tavern", " - Tavern")links4[6] = new linkObj("http://www.bba.travel/index.html", "Bed and; Breakfast America", " - Bed and Breakfast Magazine")links4[7] = new linkObj("http://www.raspberryleopard.com", "The Raspberry Leopard", " - Gift Boutique")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 Mountain 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('Lodging'));	div.appendChild(h2);	i = 0	for(var i = 0; i < links2.length; i++) {		var p = document.createElement("P");		var a = document.createElement("A");		a.href = links2[i].url		a.target = "_blank"		a.appendChild(document.createTextNode(links2[i].name));		p.appendChild(a);		p.appendChild(document.createTextNode(links2[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('Businesses'));	div.appendChild(h2);	i = 0	for(var i = 0; i < links4.length; i++) {		var p = document.createElement("P");		var a = document.createElement("A");		a.href = links4[i].url		a.target = "_blank"		a.appendChild(document.createTextNode(links4[i].name));		p.appendChild(a);		p.appendChild(document.createTextNode(links4[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);	}}