$(function () {
        if ($.browser.msie && $.browser.version < 7) return;
        
        $('ul.nav-header li')
            .removeClass('highlight')
            .find('a')
            .append('<span class="hover" />').each(function () {
                    var $span = $('> span.hover', this).css('opacity', 0);
                    $(this).hover(function () {
                        // on hover
                        $span.stop().fadeTo(300, 1);
                    }, function () {
                        // off hover
                        $span.stop().fadeTo(300, 0);
                    });
                });
                
    });
// leturstærð sniðmáta

$(document).ready(function() {
  fontResizer('0.8em','1.0em','1.3em');
});	
// Keyra upp tabs

$(function() {
	// :first selector is optional if you have only one tabs on the page
	$("ul.css-tabs:first").tabs("div.css-panes:first > div");
});

// Keyra upp scroller á forsíðu

$(function() {		
$("div.scrollable").scrollable();

});

// Hefja skyggnu á undirsíðum og Umsagnir á forsíðu

$(document).ready(
		function(){
			$('#slide').innerfade({
				speed: 'slow',
				timeout: 4000,
				type: 'random',
				containerheight: '145px'
			});
			$('#home-logos').innerfade({
				speed: 'slow',
				timeout: 4000,
				type: 'random',
				containerheight: '99px'
			});
			$('.fade').innerfade({
				speed: 'slow',
				timeout: 4000,
				type: 'sequence',
				containerheight: '1.5em'
			});
		}
	);