$(document).ready(function(){
	$('.container').hide();
});
function scroll(id){
  $(id).jScrollPane({showArrows:true});
}
function fade_in(){
	$('.container').fadeIn('slow');
}
function divMeretez(div,height) {
	height+='px';
	$('.'+div).css('height', height);
}
function move_center(){
  var screenh=$(window).height();
  var containerh=$("#container").height();
  var top=(screenh/2)-(containerh/2);
  if (top<0) top=0;
  $('#positioner').css({'margin-top' : top+'px'});
}


function jq_gallery_init(param){
  $(param+' a').each(function(){
      var $this=$(this);
      var link=$this.attr("href");
      var new_link=link.replace('.html','.jpg');
      $this.attr('href',new_link);
    }
  );
  $(param+' a').lightBox();
}

window.onresize=move_center;

function reFresh(o){
  if (o.id=='codepic') o.src='http://www.atriumhotelbudapest.com/plugins/codegen.php?r='+Math.floor(Math.random()*10000);
  else o.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader( src='http://www.atriumhotelbudapest.com/plugins/codegen.php?"+Math.floor(Math.random()*10000)+"', sizingMethod='image');";
}

