var isloaded = false;

// FUNCTION highlightThumb(x)
// Whazzit? : highlight the currently selected image thumbnail
//
// function highlightThumb(x) {
//	var thumblist = document.getElementById("story_by_image");
//	for (var i=0; i < thumblist.childNodes.length; i++) {
//		if (thumblist.childNodes[i].id == "thumb_"+x) {
//			thumblist.childNodes[i].style.border = "1px solid #4d743d";
//		}
//		else if (thumblist.childNodes[i].nodeType == "1") {
//			thumblist.childNodes[i].style.border = "1px solid #eee";
//		}
//	}
// }

// FUNCTION featuredEntry(title, author, lat, lng, url, img, homeland, location, issue, inaton)
// Whazzit? : build the featuredEntry array located in includes/refsignShop.js

function featuredEntry(title, lat, lng, img, sentence, url01, url02, url03, issue) {
this.title = title;
this.lat = lat;
this.lng = lng;
this.img = img;
this.sentence = sentence;
this.url01 = url01;
this.url02 = url02;
this.url03 = url03;
this.issue = issue;
}

// FUNCTION updateSelected(x, id)
// Whazzit? : updated the mousedovered thumb
//	if the map isn't loaded just update the featured item and highlight the thumb

function updateSelected(x, id) {
// Where x is article_id from EE
// id is the marker ID
swapFeatured(x);
//	highlightThumb(x);

if (isloaded) {
// Check to see if the google map is loaded or not
moveMap(x, id);
}
}
