// JQuery 
  //<![CDATA[   
    // When the page is ready
    jQuery(document).ready(function($) {
	  // Zebra Tables
	  $('tbody tr:nth-child(even)').addClass('even');
	  // Apply link to div container
	  $('#head .cols1').click(function(){
        window.location=$(this).find('a').attr('href');
		return false;
	  });
	  // PDF and rel="external" in new window
	  $("a[href$='.pdf'], a[rel='external']").click(function() {
        window.open($(this).attr('href') );
        return false;
	  });
	  //dropdown arrow
	  $('.dropdown li ul li ul').parent().addClass('dir');
	  $(".tablist > li").click(function(tbs){
		switch(tbs.target.id){
			case "alta":
				$("#alta").addClass("active");
				$("#baja").removeClass("active");
				$("div.alta").fadeIn();
				$("div.baja").css("display", "none");
			break;
			case "baja":
				$("#alta").removeClass("active");
				$("#baja").addClass("active");
				$("div.baja").fadeIn();
				$("div.alta").css("display", "none");
			break;
		}
		//alert(tbs.target.id);
		return false;
	  });
    });
  //]]>