var links = {
    'Getting Here' : [ 'Getting Here', '<p>The camp is 68 miles north of Lake Tahoe, and 62 miles west of Reno on Highway 70. Camp Layman is close to the small Northern California towns of Blairsden, Graeagle, Portola, and Quincy.</p><a href="http://maps.google.com/maps?f=q&source=s_q&hl=en&q=Camp+Layman+Rd,+Quincy,+Plumas,+California+96103&aq=&sll=37.0625,-95.677068&sspn=39.047881,74.443359&vpsrc=0&ie=UTF8&geocode=FfDTXwId85jO-A&split=0&hq=&hnear=Camp+Layman+Rd,+Quincy,+Plumas,+California+96103&ll=39.834806,-120.678163&spn=0.008865,0.018175&t=m&z=16&iwloc=A" target="_blank">Google Map</a><br><br><img src="/static/pics/getting_here.jpg" alt="picture_of_cabin" />' ],

    'Things To Do At The Camp' : [ 'Things To Do At Camp', '<p> Play horseshoes, volleyball or just sit around the campfire. You might want to take the short walk down to the river for some trout fishing or swimming. There are several popular hikes in the area, and plenty of places to picnic.  Camp Layman offers one of the most relaxing spots to escape to. If you don\'t feel like exploring the area, hang out and play some board games or sit by the river. A train passes the camp about twice a day on the other side of the river for some great train spotting opportunities.</p>'],

    'Nearby' : [ 'Nearby', '<p>Just a short drive outside of the camp, guests can enjoy golf courses, horseback riding, fishing in nearby streams and mountain lakes, excellent restaurants, and shops. If you prefer to enjoy your day in the wilderness, there are hundreds of miles of hiking and mountain biking trails available for you to explore.There are six golf courses within 10 miles of the camp: Grizzly Ranch Golf Club, Nakoma Golf Resort, Graeage Meadows Golf Course, Whitehawk Ranch Golf Club, Plumas Pines Golf Resort, and Feather River Golf Resort. Summer visitors enjoy rafting, kayaking, and tubing down the Feather River.  Winter visitors rent snowmobiles, cross-country ski, hunt, and ice-fish. </p> <a href="http://www.plumascounty.org/Things%20to%20See%20and%20do/Things%20to%20See%20and%20Do.htm" target="_blank">Things to do in Plumas County</a><br><br><a href="http://www.plumascounty.org/Outdoor%20Recreation/Mountain%20Biking.htm" target="_blank">Mountain Biking Trails</a><br><br><a href="http://www.totalescape.com/active/campstuff/NF/plumas.html" target="_blank">Plumas</a><br><br><a href="http://fs.usda.gov/wps/portal/fsinternet/!ut/p/c4/04_SB8K8xLLM9MSSzPy8xBz9CP0os3gjAwhwtDDw9_AI8zPwhQoY6BdkOyoCAPkATlA!/?ss=110511&navtype=BROWSEBYSUBJECT&cid=FSE_003853&navid=091000000000000&pnavid=null&position=BROWSEBYSUBJECT&ttype=main&pname=Plumas%20National%20Forest-%20Home" target="_blank>US Forest Service</a><br><br><a href="http://www.trails.com/activity.aspx?area=12543" target="_blank">Hiking Trails</a>' ],

    'Explore' : [ 'Explore', '<p> Take some time to see the natural beauty and history the area has to offer. You are surrounded by several very small towns and mountain peaks of the Plumas National Forest for your viewing pleasure. There are several lakes, waterfalls, streams and rivers nearby to explore.  The area is rich in train history, and there are local museums close by.</p><a href="http://www.plumascounty.org/Things%20to%20See%20and%20do/Museums.htm" target="_blank">Local Museums</a><br><br><a href="http://www.wplives.org/">Western Pacific Railroad Museum</a><br><br><a href="http://www.ncry.org/roster/s_02/quincy2.shtml" target="_blank">Quincy Railroad</a>'],

    'Who We Are': [  'Who We Are', '<p>Camp Layman is owned and operated by Camp Layman, LLC, a family-owned and operated business. The 3.5 acre site is on land in the Feather River canyon owned by the National Forest Service.</p>' ],

    'Camp Restoration!' : ['Camp Restoration!', '<p>Camp Layman has been under new ownership since 2010. It is our belief that Camp Layman should be available so that families can enjoy the forest in a quiet and safe environment.  We also believe that Camp Layman is a historical site for California residents, and that therefore its rustic beauty should be restored and preserved. Our goal is to restore the camp to the highest quality possible while still keeping the rustic charm intact.</p>' ],
    'Our Friends':['Our Friends', '<ul><li><a href="http://plumascounty.org/" target="_blank">Plumas County Visitor Center</a></li><li><a href="http://www.greenhornranch.com/" target="_blank">Greenhorn Ranch</a></li><li><a href="http://www.happywrapperz.com/" target="_blank">Happy Wrapperz</a></li></ul>']
};

function changeContent(title, content) {
    $('#box-content').fadeOut('slow',
            function () {
                $('#box-content').html(content);
                $('#box-content').fadeIn('slow');
            });
    $('#box3-title').fadeOut('slow',
            function () {
                $('#box3-title').text(title);
                $('#box3-title').fadeIn('slow');
            });
}

$(document).ready(function () {
    $('a.link2').click(function() {
        var titleAndContent = links[this.innerHTML];
        if (titleAndContent) {
            changeContent(titleAndContent[0], titleAndContent[1]);
        }
        return false;
    });
});

