function ShowImage(Dest,Wi, Hi){
	SetWidth = Wi;
	SetHeight = Hi;
	WinName = "PostojnaGallery";
	GetIt = "popup.php?file="+Dest;
	SetTop = ( window.screen.height - SetHeight ) / 2 ;
	SetLeft = ( window.screen.width - SetWidth ) / 2;
	if(SetHeight == 1600 || SetWidth == 1600)scrollbar = 'yes';
	else scrollbar = 'no';
	PostojnaGallery = window.open( GetIt, WinName , "width=" + SetWidth + ",height=" + SetHeight + ",left=" + SetLeft + ",top=" + SetTop + ",location=no,menubar=no,status=no,toolbar=no,scrollbars="+ scrollbar +",resizable=no");
}
function ShowClips(Files){
	SetWidth = 405;
	SetHeight = 320;
	WinName = "PostojnaClips";
	GetIt = "movie.php?file="+Files;
	SetTop = ( window.screen.height - SetHeight ) / 2 ;
	SetLeft = ( window.screen.width - SetWidth ) / 2;
	scrollbar = 'no';	
	PostojnaGallery = window.open( GetIt, WinName , "width=" + SetWidth + ",height=" + SetHeight + ",left=" + SetLeft + ",top=" + SetTop + ",location=no,menubar=no,status=no,toolbar=no,scrollbars="+ scrollbar +",resizable=no");
}
function ShowVR(){
	SetWidth = 1000;
	SetHeight = 800;
	WinName = "PostojnaVR";
	GetIt = "/VR/index.html";
	SetTop = ( window.screen.height - SetHeight ) / 2 ;
	SetLeft = ( window.screen.width - SetWidth ) / 2;
	scrollbar = 'yes';	
	PostojnaVR = window.open( GetIt, WinName , "width=" + SetWidth + ",height=" + SetHeight + ",left=" + SetLeft + ",top=" + SetTop + ",location=no,menubar=no,status=no,toolbar=no,scrollbars="+ scrollbar +",resizable=no");
}