<!--
template_image_window="";
presentation_window="";

function show_template_image(x, y, filename)
{
if(x+20 > screen.availWidth || y+110 > screen.availHeight) {
  if(x+20 > screen.availWidth) {Width=screen.availWidth;screenx=1;}
  else {Width=x+20;screenx=(screen.availWidth-x)/2;}
  if(y-30 > screen.availHeight) {Height=screen.availHeight-30;screeny=1;}
  else {Height=y;screeny=(screen.availHeight-y)/2;}
  template_image_window=window.open("http://www.skvelyweb.sk/show_image.php?image="+filename,"Design", "dependent=yes, menubar=no, location=no, resizable=yes, scrollbars=yes, width="+Width+", height="+Height+", toolbar=no, screenX="+screenx+", screenY="+screeny+", top="+screeny+", left="+screenx );
}
else
  template_image_window=window.open("http://www.skvelyweb.sk/show_image.php?image="+filename,"Design", "dependent=yes, menubar=no, location=no, resizable=yes, scrollbars=no, width="+x+", height="+y+", toolbar=no, screenX="+(screen.availWidth-x)/2+", screeny="+(screen.availHeight-y)/2+", left="+(screen.availWidth-x)/2+", top="+(screen.availHeight-y)/2 );
template_image_window.focus();
}

function show_presentation(x, y, filename)
{
if(x+20 > screen.availWidth || y+110 > screen.availHeight) {
  if(x+20 > screen.availWidth) {Width=screen.availWidth;screenx=1;}
  else {Width=x+20;screenx=(screen.availWidth-x)/2;}
  if(y-30 > screen.availHeight) {Height=screen.availHeight-30;screeny=1;}
  else {Height=y;screeny=(screen.availHeight-y)/2;}
  presentation_window=window.open("http://www.skvelyweb.sk/show_presentation.php?presentation="+filename+"&w="+x+"&h="+y,"Prezentácia", "dependent=yes, menubar=no, location=no, resizable=yes, scrollbars=yes, width="+Width+", height="+Height+", toolbar=no, screenX="+screenx+", screenY="+screeny+", top="+screeny+", left="+screenx );
}
else
  presentation_window=window.open("http://www.skvelyweb.sk/show_presentation.php?presentation="+filename+"&w="+x+"&h="+y,"Prezentácia", "dependent=yes, menubar=no, location=no, resizable=yes, scrollbars=no, width="+x+", height="+y+", toolbar=no, screenX="+(screen.availWidth-x)/2+", screeny="+(screen.availHeight-y)/2+", left="+(screen.availWidth-x)/2+", top="+(screen.availHeight-y)/2 );
presentation_window.focus();
}
-->
