function wo_pics_riesenia(url, namew)
{
	win_width = 750; //sirka okna
	win_height = 650; //vyska okna
	x = Math.ceil((screen.width-win_width)/4);
	y = Math.ceil((screen.height-win_height)/4);
	msg = window.open(url, namew, 'toolbar=no,menubar=no,location=no ,directories=no, scrollbars=yes,resizable=yes,status=no,width='+win_width+',height='+win_height+',top='+y+',left='+x);
}

function confirm_pic_delete(url, namew) {
	xx = confirm('Naozaj chcete odstrániť zvolený obraz?');
	if(xx)
		wo_pics_riesenia(url, namew);
}

window.defaultStatus = "dd presentation 2005";

function close_win()
{
	window.self.close();
}

//strankovanie
function mouse_riesenia(page, m_type, css_class)
{
	if(m_type == 'over')
		page.className = css_class;
	else
		page.className = css_class;
} 

function FitPic(obr)
{
	 var plusWidth = 60; //sirka okne plus okolo obrazka	
     var IE=document.all;
	 var obrk = document.images[obr];
	 
	 iWidth2 = (!IE)?window.innerWidth:document.body.clientWidth;
     iHeight2 = (!IE)?window.innerHeight:document.body.clientHeight;
     iWidth = obrk.width - iWidth2;
     iHeight = obrk.height - iHeight2;
     
	 if(!IE){
	 	window.resizeBy(iWidth+plusWidth, iHeight+plusWidth);
		self.moveTo((self.screen.width - self.outerWidth) / 2, (self.screen.height - self.outerHeight) / 2);
	 }
     else{
		 window.resizeTo(obrk.width+10+plusWidth, obrk.height+38+plusWidth);
	 	self.moveTo((self.screen.width-document.body.clientWidth) / 2, (self.screen.height-document.body.clientHeight) / 2);
	 }
     self.focus();
}

function wo_pics_riesenia2(url, namew){
	msg = window.open(url, namew, 'toolbar=no,menubar=no,location=no ,directories=no, scrollbars=no,resizable=yes,status=no,width=1,height=1');
}