jQuery(document).ready(function() {


 	 
 //Get all the LI from the #tabMenu UL
  jQuery('#tl_nav > .tab').click(function(){
  //perform the actions when it's not selected
 if (!jQuery(this).hasClass('selected')) {
  //remove the selected class from all LI    
  jQuery('#tl_nav > .tab').removeClass('selected');
  //Reassign the LI
  jQuery(this).addClass('selected');
  //Hide all the DIV in .boxBody
  jQuery('.tl_body .tl_tab').slideUp('1500');
  //Look for the right DIV in tl_Body according to the Navigation UL index, therefore, the arrangement is very important.
  jQuery('.tl_body > div:eq(' + jQuery('#tl_nav > li').index(this) + ')').slideDown('1500');
  }}).mouseover(function() {
   jQuery(this).addClass('mouseover');
   jQuery(this).removeClass('mouseout');   
  }).mouseout(function() {
   jQuery(this).addClass('mouseout');
   jQuery(this).removeClass('mouseover');    
 });	 
 	 
 	 
 jQuery("#tl_nav #tl_close").click(function(){
   jQuery('.tl_body div').slideUp('1500');
   });
   
   jQuery('.boxy').boxy({modal:true});
   //jQuery('.boxy').modal();
   
   jQuery('#bmk').jFav();

	jQuery("a[href*='http://']:not([href*='"+location.hostname+"'])").attr("target","_blank");  
	//jQuery('a').externalify({'addRel':'nofollow'});

	
	
	jQuery('#keywords').example('Search Valley Independent', {
  className: 'inactive'
});
jQuery('#comment').spellcheck({ events: 'keyup' });
  });
  jQuery(function() {
        jQuery('#lookr button').hover(function(){
               jQuery(this).addClass('over');
        }, function() {
               jQuery(this).removeClass('over');
        });
});
