//Controls tab menues
initNavigationTabs = function(navContainer, toggleClass, toggleIdPrefix)
        {
            var selected = false;
            var aa = $(navContainer).find('li');
            
            $('.' + toggleClass).hide(); // hide all elements of class toggleClass
            
            for (var i = 0, a; a = aa[i]; i++)
            {
                if ($(a).hasClass('selected')) // check if one element should be visible as default
                {
                    $('#' + toggleIdPrefix + (i + 1)).show(); // show that element
                    selected = true; // flag
                }
                
                $(a).find('a').bind('click', {idPrefix: i}, function(e) // bind function to each of the a elements click event in the navContainer
                    {
                        $('.' + toggleClass).hide(); // hide all elements of toggleClass
                        
                        $('#' + toggleIdPrefix + (e.data.idPrefix + 1)).show(); // show the element that corresponds to the clicked a element
                        
                        $(navContainer + ' li').removeClass('selected'); // remove the 'selected' class from all of the navigation links
                        
                        $(this).parent(0).addClass('selected'); // ...and add it to the one that was clicked
                        e.stopPropagation();
                        return false;
                    });
            }

            if (!selected) // we found no element with class selected, show the first tab
            {
                $(navContainer).find('li:first').addClass('selected'); // ...and add the class selected to the tab
                $('#' + toggleIdPrefix + '1').show(); // show the matching element
                selected = true; // flag
            }    
        }