﻿$(document).ready(function () {
    $('#innerFade').cycle({
        speed: 2000,
        timeout: 10000,
        pause: 1
    });
    $("#tabs").tabs({
        event: 'mouseover'
    });
    $('li.headlink').live('mouseover', function () {
        if (!$(this).data('init')) {
            $(this).data('init', true);
            $(this).hoverIntent
				(
					function () {
					    $('ul#subnav').slideDown('fast').show();
					},

					function () {
					    $('ul#subnav').slideUp('slow');
					}
				);
            $(this).trigger('mouseover');
        }
    });

    $('#accordion').accordion({
        active: false,
        header: '.head',
        navigation: false,
        event: 'mouseover',
        fillSpace: false,
        animated: 'slide' //'easeslide'
    });

    var links = $('.leftHl').height();
    var rechts = $('.rightFromHl').height();
    if (rechts > links) {
        $('.leftHl').css('min-height', $(".rightFromHl").height());
    }
    else {
        $('#news').height($('.leftHl').height() - $('#ql').height() - 12);
    }
}); 
