



function doNav(anchor){
	// blind down has issues on MSIE so we use grow there
	// blind might be fixed in a future release and is preferred
	if(navigator.userAgent.match(/MSIE/)){
		doNavMSIE(anchor);
	}else{
		doNavBlind(anchor);
	}
}

function doNavMSIE(anchor){
	subNav=$(anchor).next();
	doTimeout=false;
	$('nav').select('div').each(
		function(theDiv){
				if(theDiv.visible()){
					Effect.BlindUp(theDiv, {duration: 0.5});
					doTimeout=true;
				}
			}

		);
/*
if(doTimeout){
			setTimeout(function(){
				Effect.Grow(subNav,{direction:'top-right'});
				}, 1000);
		}else{
			Effect.Grow(subNav,{direction:'top-right'});
		}
*/
		if(doTimeout){
			setTimeout(function(){
				Effect.BlindDown(subNav, {duration: 0.5});
				}, 1000);
		}else{
				Effect.BlindDown(subNav, {duration: 0.5});
		}


}

function doNavBlind(anchor){
	subNav=$(anchor).next();
	doTimeout=false;
	$('nav').select('div').each(
		function(theDiv){
				if(theDiv.visible()){
					Effect.BlindUp(theDiv, {duration: 0.5});
					doTimeout=true;
				}
			}

		);
		if(doTimeout){
			setTimeout(function(){
				Effect.BlindDown(subNav,{duration: 0.5});
				}, 550);
		}else{
				Effect.BlindDown(subNav,{duration: 0.5});
		}
}


