$(function() {
	$('div.sub').hide();
	
	var id_href = /^#(.*)/;
	$('#top_level a').click(function () {
		$('div.sub').hide();
		$('#top_level a').removeClass("clickk");
		if (id_href.test($(this).attr('href'))) {
			$($(this).attr('href')).fadeIn('slow');
			$(this).addClass("clickk");
			window.top.document.body.rows = '' + 
				($('#top_level').height() + $($(this).attr('href')).height()) + ',*';					
			return false;
		} else
			window.top.document.body.rows = '' + $('#top_level').height() + ',*';
	});
});


// JavaScript Document by Airweb.sk
$(document).ready(function(){           
      $(".ref").hover(function(){
        $(this).children('h2').stop().animate({bottom: '0px'},{duration:200});
      }, function(){
        $(this).children('h2').stop().animate({bottom: '-226px'},{duration:200});
      });
	  
	 $(".ref2").hover(function(){
        $(this).children('h2').stop().animate({bottom: '0px'},{duration:200});
      }, function(){
        $(this).children('h2').stop().animate({bottom: '-120'},{duration:200});
      });
			
	$(".ref3").hover(function(){
        $(this).children('h2').stop().animate({bottom: '0px'},{duration:200});
      }, function(){
        $(this).children('h2').stop().animate({bottom: '-106px'},{duration:200});
      });
    });

