function popimg(url, title, width, height)
{
        str="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\"><html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\">\n<title>Appolinaria</title>\n</head>\n<body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>\n<img src='"+url+"' alt='"+title+"'>\n</body>\n</html>";
        f_win = window.open(url ,"BigImage" ,'width='+width+',height='+height+',top='+((screen.height/2)-(height/2))+',left='+((screen.width/2)-(width/2))+',toolbar=no,scrollbars=no,resizable=yes,menubar=no,status=no,directories=no,location=no');
        f_win.document.writeln(str);
        f_win.focus();
        f_win.document.close();
}

function popup(url, title, width, height)
{
        f_win = window.open(url ,"" ,'width='+width+',height='+height+',top='+((screen.height/2)-(height/2))+',left='+((screen.width/2)-(width/2))+',toolbar=no,scrollbars=yes,resizable=yes,menubar=no,status=no,directories=no,location=no');
        f_win.focus();
}

function div1(dlink, num) {
        var i;

        for (i=1; i < 4; i++) {
                if (num == i) {
                        document.getElementById('cnt'+i).style.display='block';
                        document.getElementById('btn'+i).className='button_selected';
                       // document.getElementById('sp'+i).className='button_arrow';
                } else {
                        document.getElementById('cnt'+i).style.display='none';
                        document.getElementById('btn'+i).className='button';
                       document.getElementById('sp'+i).className='';
                }
        }
}


function addBookmark(url, title)
{
  if (!url) url = location.href;
  if (!title) title = document.title;

  //Gecko
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel (title, url, "");
  //IE4+
  else if (typeof window.external == "object") window.external.AddFavorite(url, title);
  //Opera7+
  else if (window.opera && document.createElement)
  {
    var a = document.createElement('A');
    if (!a) return false; //IF Opera 6
    a.setAttribute('rel','sidebar');
    a.setAttribute('href',url);
    a.setAttribute('title',title);
    a.click();
  }
  else return false;

  return true;
}

function ie_layout_fix() {
/*@cc_on
        @if (@_jscript_version >= 5)
                document.getElementById('bottom').style.width = '100%';
                window.setTimeout('document.getElementById(\'bottom\').style.width = \'auto\';', 10);
        @end
@*/
}

