<!--
// DropDown Menu Functions - For Member Functions
function show(id) {
	var d = document.getElementById(id);
	for (var i = 1; i <= 2; i++) {
		if (document.getElementById('smenu'+i)) {
			document.getElementById('smenu'+i).style.display = 'none';
		}
	}
	if (d) {
		d.style.display = "block";
	}
}

// DropDown Menu Functions - For NavList Functions
/*function showNav(id) {
	var d = document.getElementById(id);
	for (var i = 1; i <= 100; i++) {
		if (document.getElementById('nmenu'+i)) {
			document.getElementById('nmenu'+i).style.display = 'none';
		}
	}
	if (d) {
		d.style.display = "block";
	}
}*/

// Using rel parameter in a tags to target _blank
function externalLinks() {
	if (!document.getElementsByTagName) {
		return;
	}
	
	var anchors = document.getElementsByTagName("a");
	
	for (var i = 0; i < anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
		anchor.target = "_blank";
	}
}

// Rounded Corners using GPL NiftyCorners
function constructCorners() {
	Nifty("div#row_banner_right_contents_container","big transparent bl");
	Nifty("h1","normal transparent all");
}

// Batch Run Function
function runBatch() {
	show();
	/*showNav();*/
	externalLinks();
	constructCorners();
}

// Run Once at Load
window.onload = runBatch;

// Switches Thumbnail Image into Main Image Container
function switchImage(imgName, imgSrc) {
	if (document.images) {
		if (imgSrc != "none") {
			document.images[imgName].src = imgSrc;
		}
	}
}

// Switches the Custom ClubTote Cat ID 1 Images
function changePic(idTarget, imgSrc) {
	if (document.images) {
		if (imgSrc != "") {
			document.images[idTarget].src = "images/site_graphics/extras/"+imgSrc+".jpg";
		}
	}
}
-->
