$(function() {
    $('.panel_tool_tip').tooltip({
	    track: true,
	    delay: 0,
	    showURL: false,
	    showBody: " - ",
	    opacity: 0.9
    });	 	
    $('.panel_tool_tip img').attr('alt','');
});

$(function() {
    if ($('.form-error').length) {
        $('.form-error a').click(function () {
             var href = $(this).attr('href');
             $(href).focus();
             return false;
         });
     }
});


// news ticker
$(function() {
    $('#newsticker').addClass('activate');
	$('#newsticker ul').innerfade({
		animationtype: 'slide',
		timeout: 8000
	});
});

/*$('ID or class of the element containing the fading objects').innerfade({ 
	animationtype: Type of animation 'fade' or 'slide' (Default: 'fade'), 
	speed: Fadingspeed in milliseconds or keywords (slow, normal or fast)(Default: 'normal'), 
	timeout: Time between the fades in milliseconds (Default: '2000'), 
	type: Type of slideshow: 'sequence', 'random' or 'random_start' (Default: 'sequence'), 
	containerheight: Height of the containing element in any css-height-value (Default: 'auto')  
	runningclass: CSS-Class which the container get’s applied (Default: 'innerfade') }); 
*/
