$(document).ready(function() {  
	$('#bannerRotate ul').cycle({ timeout: 4500});           
});

function expandNav(curPg, parPg){	
	// If your in the index don't do anything.
	if(parPg=='index' && curPg=='index'){
		return false
	}
	// If the parent is the INDEX but the current page is not; open nav
	else if(parPg=='index' && curPg!='index'){
		$('#n-'+curPg).removeClass('closed').addClass('current opened');
	}	
	// Otherwise we are three deep; parPg is current and curPg is opened
	else{
		$('#n-'+parPg).removeClass('closed').addClass('opened');
		$('#n-'+curPg).removeClass('closed').addClass('current');	
	}
}
