$(document).ready(function() {
        
        
    var filename = location.pathname.substr(location.pathname.lastIndexOf("/")+1,location.pathname.length);
    //console.log(filename);
    if(!filename){
        filename = 'index.php';
    }
        
    $('#main-navigation li a').removeClass('active');
    $('#main-navigation li a').each(function(){
        var thisLink = $(this).attr('href');
        //console.log(thisLink);
                    
        if(thisLink === filename){
            $(this).addClass('active');
        }
    });
            
        
  
//			$(".fb-iframe").fancybox({
//				'width'				: '75%',
//				'height'			: '75%',
//				'autoScale'			: false,
//				'transitionIn'		: 'none',
//				'transitionOut'		: 'none',
//				'type'				: 'iframe'
//			});

	if(filename=='locations.php'){
            $('#address').hide();
        }	
         
        $('.orderLocation').hide(); 
        $('.whitebridge').click(function(){
            $('.orderLocation').hide();
            $('#orderLocationHeader').text('White Bridge Rd - Nashville TN');
            $('#whitebridge').fadeIn();
            return false;
        })
        $('.coolsprings').click(function(){
            $('.orderLocation').hide();
            $('#orderLocationHeader').text('Coolsprings - Franklin TN');
            $('#coolsprings').fadeIn();
            return false;
        })
                        
});




