jQuery(document).ready(function() {
  jQuery(".program-content-container-next").hide();
  jQuery(".program-content-dalsi").click(function()
  {
    jQuery(this).next(".program-content-container-next").slideToggle(500);
  });
});

$(document).ready(function() {
	$("a.group").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	500, 
		'speedOut'		:	100, 
		'titlePosition' : 'over',
	});
	
	$(function () {
        // basic version is: $('div.demo marquee').marquee() - but we're doing some sexy extras
        
        $('marquee').marquee('pointer').mouseover(function () {
            $(this).trigger('stop');
        }).mouseout(function () {
            $(this).trigger('start');
        }).mousemove(function (event) {
            if ($(this).data('drag') == true) {
                this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
            }
        }).mousedown(function (event) {
            $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
        }).mouseup(function () {
            $(this).data('drag', false);
        });
    });
});

window.onload=trik;

function trik(id,lang) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if(document.getElementById('submenu'+i+lang)) {document.getElementById('submenu'+i+lang).style.display='none';}
	}
if (d) {d.style.display='block';}
}

function roll_over(img_name, img_src)
   {
   document[img_name].src = img_src;
   }

