function RepertoarHideRecension()
{
	Repertoar.hideRecension();
}

var Repertoar = {

	initRecension : function()
	{
		$('Recenze').style.display = 'none';
		$('RecenzeSpace').style.display = 'none';
	},
	
	showRecension : function()
	{
	   window.scrollTo(0, 0);
	
	   jsEffects.Curtain.create('#222222');
	   jsEffects.Curtain.updateSize(0, 0, document.body);
	   
	   var cId = jsEffects.Curtain.getId();
	   U.setEvent($(cId), 'onclick', RepertoarHideRecension);

		var h = (U.getWindowHeight() - 100);
		var w = Math.ceil(U.getWindowWidth() * 0.5);

	   var elm = document.createElement('DIV');
	   elm.id = 'OpenRecension';
      elm.style.height = h + 'px';
      elm.style.width = w + 'px';
	   elm.style.position = 'absolute';
	   elm.style.left = Math.ceil((U.getWindowWidth() - w) / 2) + 'px';
	   elm.style.top = Math.ceil((U.getWindowHeight() - h) / 2) + 'px';
		elm.style.overflow = 'auto';
		elm.style.textAlign = 'left';
		elm.style.color = '#000';
		elm.style.background = '#959595';
		elm.style.padding = '5px';
		elm.style.zIndex = '1001';

		elm.innerHTML = $('Recenze').innerHTML;
		
		document.body.appendChild(elm);
	},
	
	hideRecension : function()
	{
	   document.body.removeChild($('OpenRecension'));
	   jsEffects.Curtain.destroy();
	}
}

if($('Recenze'))
	Repertoar.initRecension();


