    if($.browser.msie){
  
	userAgent = $.browser.version;
	  
	userAgent = userAgent.substring(0,userAgent.indexOf('.'));	
	if (userAgent<7) DD_belatedPNG.fix('div,ul,img,button,a,input,li');
     
}

		$(document).ready(function(){
			//Examples of how to assign the ColorBox event to elements
			$("a[rel='imageGallery']").colorbox();
				$(".imageTopGallery").colorbox();
	if ($("#gfx_box").length) {		 
		myslider = new GfxSlider("gfx_img",0,"gfx_label",2);
		myslider.init();
		myslider.start();
	}
  
      $("#menuu li.main").hover(function(){
           $(this).find("ul.sub").animate({ "opacity": "show"}, 400);
           
      },function(){
           $(this).find("ul.sub").hide();
            
      })
           
    })
   $(function () {
	     $("#navigacni-strom").jstree({ 
          "plugins" : [ "themes", "html_data" ] 
       });
	
  });
  $(function(){
	$('#aeffect a')
		.css( {backgroundPosition: "-20px 35px"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(-20px 94px)"}, {duration:500})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(40px 35px)"}, {duration:200, complete:function(){
				$(this).css({backgroundPosition: "-20px 35px"})
			}})
		});
    }); 

