function toggleDropDown(obj) {
	var dropDown = $('qfd_drDnList');			
	if(dropDown.style.display != 'block') {
		dropDown.style.display = 'block';
	} else {
		dropDown.style.display = 'none';
	}
}
/* Sets a delay for the drop-down to close */
function closeDropDown(){
	delayToClose = setTimeout("$('qfd_drDnList').style.display = 'none'",250);
}

/* Clears the delay above a force drop-down to close */
function clearDropDown(){ 
	/* Clears the counter, hide any sub menus opened, and allows other sub menus to re-use it */
	if (typeof delayToClose!="undefined"){clearTimeout(delayToClose);}
}

function activeDropDown(id,model,dealerID) {
if (dealerID != "") 
	{
	var url = model+"_brochure.html?DealerID="+dealerID		
	}
	else
	{
	var url = model+"_brochure.html"
	}
window.location=url
}

function showAthlete(id) {	
//	$('swapTitle').innerHTML = $('swapLink'+id).innerHTML;
//	$('swapTitle').innerHTML = ele.childNodes[0].nodeValue;

	contArea = document.getElementById('about_PA_copy');	
	for(x=0, y=contArea.childNodes.length; x < y; x++) {
		if(contArea.childNodes[x].nodeName == 'DIV') {
			contArea.childNodes[x].style.display = 'none';
		}
	}
	
	$('swap'+id).style.display = 'block';		
}
/* Validates Zip Code for digits only */
//function by Danny Goodman
function mustBeZip(evt) {
		evt = (evt) ? evt : window.event
		var charCode = (evt.which) ? evt.which : evt.keyCode
		if (charCode > 31 && (charCode < 48 || charCode > 57)) {
				status = "This field accepts numbers only."
				return false;
		}
		status = "";
		return true;
}