/*************************************************************************
	Timberline Lodge JavaScript
	req: JQuery 1.2.6
	Author: Dane Hesseldahl
	Client: Nemo Design
	Copyright 2008, All Rights Reserved
	
*************************************************************************/
$(document).ready(function() {
	
	//ie6 only
	$.each($.browser, function(i, val) {
		if(i=="msie" && jQuery.browser.version.substr()=="6.0") {
			$('#explore li.thumbnail img').wrap('<a href="/explore"></a>');
		}
	});
	$.each(jQuery.browser, function(i) {
		if($.browser.msie){
			$('#nav li').addClass('fixIE').find('p').hide();
			$('#nav li').hover(function() {
				$(this).height(43).css('paddingTop', '0').find('p').show();
			}, function() {
				$(this).height(43).css('paddingTop', '55px').find('p').hide();
			});
		} else {
			
			$('#nav li.navClosed').hover(function() {
				$(this).stop().animate({paddingTop: '0px'}, 'fast');
			}, function() {
				$(this).stop().animate({paddingTop: '55px'}, 'fast');
			});
			
		}
	});
			
});


/*http://css-tricks.com/text-blocks-over-image/*/
$(function() {

    $("#gallery h2")
        .wrapInner("<span>")

    $("#gallery h2 br")
        .before("<span class='spacer'>")
        .after("<span class='spacer'>");

});
