function tab_show( show, hide )
{
	li_show = jQuery( '#' + show );
	li_hide = jQuery( '#' + hide );
	
	li_show.addClass( 'selected' );
	li_hide.removeClass( 'selected' );
	
	id_show = li_show.attr( 'rel' );
	id_hide = li_hide.attr( 'rel' );
	
	carousel_show = jQuery('#chained_' + id_show).data('jcarousel');
	carousel_hide = jQuery('#chained_' + id_hide).data('jcarousel');
	
	carousel_hide.stopAuto();
	jQuery( '#block-' + id_hide ).css( 'display', 'none' );
	carousel_show.startAuto();
	jQuery( '#block-' + id_show ).css( 'display', 'block' );
}

function tab_article_show( show, hide1, hide2 )
{
	li_show = jQuery( '#' + show );
	li_hide1 = jQuery( '#' + hide1 );
	li_hide2 = jQuery( '#' + hide2 );
	
	li_show.addClass( 'selected' );
	li_hide1.removeClass( 'selected' );
	li_hide2.removeClass( 'selected' );
	
	id_show = li_show.attr( 'rel' );
	id_hide1 = li_hide1.attr( 'rel' );
	id_hide2 = li_hide2.attr( 'rel' );
	
	jQuery( '#block-' + id_hide1 ).css( 'display', 'none' );
	jQuery( '#block-' + id_hide2 ).css( 'display', 'none' );
	jQuery( '#block-' + id_show ).css( 'display', 'block' );
}

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-12109741-2']);
  _gaq.push(['_setDomainName', 'none']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
