// JavaScript Document

 $(document).ready(function(){
   var theHeight = $("#columnHolder").height();
   $("#c3").css('height',theHeight);
   $('a.lightbox').lightBox({fixedNavigation:true});
   $('.lImagesBody img.lThumbs').fadeTo("fast", 0.33);
   $('.lImagesBody img.lThumbs').mouseover( function () {
		$(this).fadeTo("fast",1);
	}).mouseout(function(){
		$(this).fadeTo("fast",0.33);
	});
   
  	var tabContainers = $('.ltabdetailHolder');
    
    /* listing blue tabs */
	$('.lDetailTabs a:not(.noJquery)').click(function () {
        $('.lDetailTabs a').removeClass('tab-on');
		$('.lDetailTabs a').removeClass('tab-off');
		$('.lDetailTabs a').addClass('tab-off');
        $(this).removeClass('tab-off');
		$(this).addClass('tab-on');
		
		tabContainers.hide().filter(this.hash).fadeIn('slow');
        
        return false;
    });//.filter(':first').click();
   
   $('#eventTabSwitcher .tabSwitcherTabs li a:not(:last)').click(function () {
		$('#eventTabSwitcher .tabSwitcherTabs li a').removeClass('sel');
		$(this).addClass('sel');
		$('#eventTabSwitcher .tabSwitcherContent').hide().filter(this.hash).fadeIn('slow');
        
        return false;
    }).filter(':first').click();
   
   $('li.eventItem').hover(
      function () {
        $(this).css("backgroundPosition","right top");
      }, 
      function () {
       $(this).css("backgroundPosition","left top");
      }
    );
   
   $('#searchTabSwitcher .tabSwitcherTabs li a').click(function () {
		$('#searchTabSwitcher .tabSwitcherTabs li a').removeClass('sel');
		$(this).addClass('sel');
		$('#searchTabSwitcher .tabSwitcherContent').hide().filter(this.hash).fadeIn('slow');
        
        return false;
    }).filter(':first').click();
   
   $('#extraTabSwitcher .tabSwitcherTabs li a:not(:first,:last)').click(function () {
		$('#extraTabSwitcher .tabSwitcherTabs li a').removeClass('sel');
		$(this).addClass('sel');
		$('#extraTabSwitcher .tabSwitcherContent').hide().filter(this.hash).fadeIn('slow');
        
        return false;
    }).filter(':first').click();
   
   $('#cal_resetBtn').click( function () {
   		$(':input','#calForm')
 		.not(':button, :submit, :reset, :hidden')
 		.val('')
 		.removeAttr('checked')
 		.removeAttr('selected');
	});
   $('#cal_resetBtn').hover(
      function () {
        $(this).css("cursor","pointer");
      }, 
      function () {
       $(this).css("cursor","");
      }
    );
   
   $('.newsWidgetTabs li a').click(function () {
		$('.newsWidgetTabs li a').removeClass('sel');
		$(this).addClass('sel');
		$('.newsWidgetContent').hide().filter(this.hash).fadeIn('slow');
        
        return false;
    }).filter(':first').click();
 
 
	$('#lodgingAvail_sprite').hover(
	  function () {
		$(this).stop().animate({backgroundPosition:"(0 -39px)"},150);
	  }, 
	  function () {
	   $(this).stop().animate({backgroundPosition:"(0 0)"},150);
	  }
	);
	
	$('div#sitesearchHolder .imgInput').hover(
	  function () {
		 $(this).css("backgroundPosition","left bottom");
	  }, 
	  function () {
	  	$(this).css("backgroundPosition","left top");
	  }
	);
   
 });
 
  function changeImage(theID) {
	  	
		$('.lightbox').fadeTo('fast',0, function() {
			$('.lightbox').css("display","none");
			$('#lcurrentLink_' + theID).css("display","block").fadeTo('fast',1);  									
		});
   }
