$(function () {
	var tabContainers = $('.tabs');
	tabContainers.hide().filter(':first').show();
	$('div#tab-block ul.tabNavigation a').click(function () {
		tabContainers.hide();
		tabContainers.filter(this.hash).show();
		$('div#tab-block ul.tabNavigation a').removeClass('selected');
		$(this).addClass('selected');
		return false;
	}).filter(':first').click();
});

//News listings JS
$(function () {
	var newsContainers = $('.news-ajax');
	newsContainers.hide().filter(':first').show();
	$('div#news-block-ajax ul.newsNavigation-ajax a').click(function () {
		newsContainers.hide();
		newsContainers.filter(this.hash).show();
		$('div#news-block-ajax ul.newsNavigation-ajax a').removeClass('current');
		$(this).addClass('current');
		return false;
	}).filter(':first').click();
});

/*$(function(){ 
    $("ul#ticker").liScroll({travelocity: 0.06}); 
});*/

$(function() {
	$("#news").newsTicker();
});

function BookmarkLink() {
	title = document.title;
	url = window.location.href;
	if (window.sidebar) {//Mozilla
		window.sidebar.addPanel(title, url,"");}
	else if( window.external ) {//IE
		window.external.AddFavorite( url, title);}
	else if(window.opera && window.print) {
		alert('Press CTRL + B to bookmark this page.');}
}

$(document).ready(function(){
  // Reset Font Size
  var originalFontSize = $('html').css('font-size');
  $(".resetFont").click(function(){
  $('html').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".FontSizeInc").click(function(){
  	var currentFontSize = $('html').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.1;
	$('html').css('font-size', newFontSize);
	return false;
  });
  // Decrease Font Size
  $(".FontSizeDec").click(function(){
  	var currentFontSize = $('html').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.9;
	$('html').css('font-size', newFontSize);
	return false;
  });
});