jQuery(document).ready(function($){
	$('#js-news').ticker({
        speed: 0.10,           // The speed of the reveal
        ajaxFeed: false,       // Populate jQuery News Ticker via a feed
        htmlFeed: true,        // Populate jQuery News Ticker via HTML
        debugMode: false,       // Show some helpful errors in the console or as alerts
        controls: false,        // Whether or not to show the jQuery News Ticker controls
        titleText: '',   // To remove the title set this to an empty String
        displayType: 'revea', // Animation type - current options are 'reveal' or 'fade'
        direction: 'ltr',       // Ticker direction - current options are 'ltr' or 'rtl'
        pauseOnItems: 4000,    // The pause on a news item before being replaced
        fadeInSpeed: 1000,      // Speed of fade in animation
        fadeOutSpeed: 1000      // Speed of fade out animation
    });

	$('#tab-nav a').click(function() {
		var id = '#' + $(this).attr('id');
		$('.box.toggle').hide();
		$('#tab-nav a').removeClass('selected');
		$(id).addClass('selected');
		$(id + '-box').show();
		return false;
	});
	
	$('.ddsg-wrapper ul li').find('strong').parent().addClass('title');

	var height = $('#content-container').height();
	$('aside').height(height);
	$('#content').height(height);

});

//------------------- for clearing and replacing text in form input fields and textareas -------------------//
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
} 
function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}
