function displayFlash(){	
	swfobject.embedSWF("../i/drm_1.swf", "flash_banner", "936", "55", "9.0.0");
}
function confirmDelete(delUrl){
	if (confirm("Are you sure you want to delete this item?")){
		document.location = delUrl;
	}
}
var sections = ["NorthAmerica","SouthAmerica","Africa","Europe","Asia","Pacific","ALL"];
			
function displaySection(mapSection) {			
	document.getElementById(mapSection).style.display="block";
	for(var i=0; i<sections.length; i++)
	{
		if(sections[i] != mapSection)
			document.getElementById(sections[i]).style.display="none";
	}
}

function makeAllSortable() {			
	for(var i=0; i<sections.length; i++)
	{
		makeSortable(sections[i]);
	}
}

function makeSortable(mapSection) {			
	var div = document.getElementById(mapSection);
	var tab = div.getElementsByTagName("TABLE").item(0);
	var head = tab.createTHead();
	head.appendChild(tab.rows[0]);
	var cells = head.rows[0].cells;
	cells[0].className = "table-sortable:numeric";
	cells[1].className = "table-sortable:default";
	cells[2].className = "table-sortable:numeric";
	cells[3].className = "table-sortable:default";
	cells[4].className = "table-sortable:default";
	cells[5].className = "table-sortable:numeric table-filterable";
	cells[6].className = "table-sortable:default table-filterable";
	cells[7].className = "table-sortable:default table-filterable";
	tab.className = "table-autosort:0 table-stripeclass:alternate table-autofilter";
}

function getImage(imgPath,imgTitle){
	//var place = document.getElementById('member_home_image');
	//document.getElementById('member_home_image').style.backgroundImage="url(" + imgPath + ")";
	if(imgPath != null){
		document.getElementById('member_home_image').innerHTML = "<img src='../i/members/" + imgPath + "' title='" + imgTitle + "' />";
	}else{
		document.getElementById('member_home_image').innerHTML = "<img src='../i/members/avatar.jpg' title='no image' />";
	}
	//alert(imgPath);
}
