  //$.noConflict();  

  $(document).ready(function(){  



      $('a[rel*=facebox]').facebox({
        loading_image : 'loading.gif',
        close_image   : 'closelabel.gif'
      }) 


$('#titletip a').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - ",
	fade: 250
});


    	//When mouse rolls over
    	$('.hide_tag2').livequery('mouseover',function(){
        $(this).css('background-color','#660000');
    		$(this).stop().animate({height:'200px'},{queue:false, duration:500});
    		
    	});
    	
    	//When mouse is removed
    	$('.hide_tag2').livequery('mouseout',function(){
    		$(this).stop().animate({height:'16px'},{queue:false, duration:1});
    		$(this).css('background-color','');
    	});


    	//When mouse rolls over
    	$(".hide_tag").mouseover(function(){
        $(this).css('background-color','#660000');
    		$(this).stop().animate({height:'200px'},{queue:false, duration:500});
    		
    	});
    	
    	//When mouse is removed
    	$(".hide_tag").mouseout(function(){
    		$(this).stop().animate({height:'16px'},{queue:false, duration:1});
    		$(this).css('background-color','');
    	});



    	//When mouse rolls over
    	$("#menu_about").mouseover(function(){
    		$(this).stop().animate({height:'202px'},{queue:false, duration:600, easing: 'easeOutBounce'})
    	});
    	
    	//When mouse is removed
    	$("#menu_about").mouseout(function(){
    		$(this).stop().animate({height:'30px'},{queue:false, duration:600})
    	});

    	//When mouse rolls over
    	$("#menu_listen").mouseover(function(){
    		$(this).stop().animate({height:'202px'},{queue:false, duration:600, easing: 'easeOutBounce'})
    	});
    	
    	//When mouse is removed
    	$("#menu_listen").mouseout(function(){
    		$(this).stop().animate({height:'30px'},{queue:false, duration:600})
    	});

    	//When mouse rolls over
    	$("#menu_say").mouseover(function(){
    		$(this).stop().animate({height:'202px'},{queue:false, duration:600, easing: 'easeOutBounce'})
    	});
    	
    	//When mouse is removed
    	$("#menu_say").mouseout(function(){
    		$(this).stop().animate({height:'30px'},{queue:false, duration:600})
    	});


      //$("#menu_about").hover(
      //function(){ $("#menu_about").height(202);},
      //function(){$("#menu_about").height(30)}
      //)
      
      //$("#menu_listen").hover(
      //function(){ $("#menu_listen").height(202);},
      //function(){$("#menu_listen").height(30)}
      //)
      
      //$("#menu_say").hover(
      //function(){ $("#menu_say").height(202);},
      //function(){$("#menu_say").height(30)}
      //)


 
  		$('a.vote_member_a').click(function(){  
        var side_bar = $('div.side_bar1');
        if (side_bar.is(':visible')) {
          $('div.vote_story_pic').css("background-image", "url(sitepic/btn-cicadas0.png)");
          side_bar.hide(); 
        }

        var side_bar = $('div.side_bar2');
        if (side_bar.is(':visible')) {
          $('div.vote_post_pic').css("background-image", "url(sitepic/btn-beetle0.png)"); 
          side_bar.hide();
        }

        var side_bar = $('div.side_bar3');
  		  if (side_bar.is(':visible')) {
          $('div.vote_member_pic').css("background-image", "url(sitepic/btn-woodpecker0.png)"); 
          side_bar.fadeOut();
        } else {
          $('div.vote_member_pic').css("background-image", "url(sitepic/btn-woodpecker1.png)"); 
          side_bar.fadeIn();
          side_bar.css("background-image", "url(sitepic/side_bar_new.png)"); 
        }
  		});
      
  		$('a.vote_story_a').click(function(){   
  		  
        var side_bar = $('div.side_bar3');
        if (side_bar.is(':visible')) {
          $('div.vote_member_pic').css("background-image", "url(sitepic/btn-woodpecker0.png)"); 
          side_bar.hide();
        }
  		  
        var side_bar = $('div.side_bar2');
        if (side_bar.is(':visible')) {
          $('div.vote_post_pic').css("background-image", "url(sitepic/btn-beetle0.png)"); 
          side_bar.hide();
        }
  		  
        var side_bar = $('div.side_bar1');
  		  if (side_bar.is(':visible')) {
          $('div.vote_story_pic').css("background-image", "url(sitepic/btn-cicadas0.png)"); 
          side_bar.fadeOut();
        } else {
          $('div.vote_story_pic').css("background-image", "url(sitepic/btn-cicadas1.png)"); 
          side_bar.fadeIn();
          side_bar.css("background-image", "url(sitepic/side_bar_new.png)");
        }
        

  		});
  		
  		$('a.vote_post_a').click(function(){   
  		
        var side_bar = $('div.side_bar3');
        if (side_bar.is(':visible')) {
          $('div.vote_member_pic').css("background-image", "url(sitepic/btn-woodpecker0.png)"); 
          side_bar.hide();
        }
  		
        var side_bar = $('div.side_bar1');
        if (side_bar.is(':visible')) {
          $('div.vote_story_pic').css("background-image", "url(sitepic/btn-cicadas0.png)"); 
          side_bar.hide();
        }
        
        var side_bar = $('div.side_bar2');
  		  if (side_bar.is(':visible')) {
          $('div.vote_post_pic').css("background-image", "url(sitepic/btn-beetle0.png)"); 
          side_bar.fadeOut();
        } else {
          $('div.vote_post_pic').css("background-image", "url(sitepic/btn-beetle1.png)");
          side_bar.fadeIn();
          side_bar.css("background-image", "url(sitepic/side_bar_new.png)"); 

        }
         
  		});
    

    simple_tooltip(".vote_div a, #side_bar_content a","tooltip")
    
    $("#commentForm").validate();


	});