Shadowbox.init({
	language:   "pl",
	players:  ['html', 'iframe', 'img']
});
function showHideMenu()
{
	elem = document.getElementById("menu");
	if(elem.style.display == 'none') elem.style.display = 'block';
	else elem.style.display = 'none';
}


function moveBox(box)
{
	elem = document.getElementById(box);
	if (navigator.appName=="Netscape" || navigator.appName=="Opera") {
		winHeight = window.innerHeight;
		elemHeight = elem.offsetHeight;
	 }
	if (navigator.appName.indexOf("Microsoft")!=-1) {
		winHeight = document.body.offsetHeight;
		elemHeight = elem.offsetHeight;
	 }
	elemTopMargin = (winHeight - elemHeight)/2;
	elem.style.marginTop = elemTopMargin+"px";
	//alert(winHeight);
}

function noVote()
{
	Shadowbox.open({
			content:    '<div style="margin:0;padding:0;width:586px;height:246px;background:url(komunikat.png) no-repeat; behavior:url(iepngfix.htc);"><div style="padding-top: 105px; padding-left: 100px; width: 380px; font-family: verdana, tahoma, arial; color: #ffffff; font-weight: bold; font-size: 16px; text-align: center;">Przykro nam, ale głosowanie na tę pracę zostało zakończone.</div></div>',
			player:     'html',
			width:      '586',
			height:     '246'				
		});		
}
function noVoteYet(start,end)
{
	Shadowbox.open({
			content:    '<div style="margin:0;padding:0;width:586px;height:246px;background:url(komunikat.png) no-repeat; behavior:url(iepngfix.htc);"><div style="padding-top: 80px; padding-left: 100px; width: 380px; font-family: verdana, tahoma, arial; color: #ffffff; font-weight: bold; font-size: 14px; text-align: center;">Przykro nam, ale głosowanie na tę pracę<br />nie zostało jeszcze rozpoczęte.<br /><br />Na tą prace będzie można głosowac od '+start+' do '+end+'</div></div>',
			player:     'html',
			width:      '586',
			height:     '246'				
		});		
}

function openAward(popup)
{
	Shadowbox.open({
			content:    '<div style="margin:0;padding:0;width:766px;height:425px;background:url(\'img/popup-nagroda-'+popup+'.png\') no-repeat; behavior:url(iepngfix.htc);"></div>',
			player:     'html',
			width:      '766',
			height:     '425'				
		});		
}
