/* 
 * Файл содержит функции для отображения выбора даты для новостей
 * на главной странице при нажатии на "архив новостей"
 */

function open_window(src, width, height){
   if(width==0)   width=500;
   if(height==0)  height=400;
   var left = (screen.availWidth/2) - (width/2);
   var top = (screen.availHeight/2) - (height/2);
   info=window.open(src,'photo','resizable=1, scrollbars=1, toolbar=0, status=0, width='+width+', height='+height+', left='+left+', top='+top);
   info.focus();
 }
function Show(id) {
    var item = null;
    if (document.getElementById) {
        item = document.getElementById(id);
    }
    else if (document.all) {
        item = document.all[id];
    }
    else if (document.layers) {
        item = document.layers[id];
    }
    if (!item) {
    }
    else if (item.style) {
        item.style.display = "";
        } else {
        item.visibility = "show";
    }
}
function Hide(id) {
    var item = null;
    if (document.getElementById) {
        item = document.getElementById(id);
    }
    else if (document.all) {
        item = document.all[id];
    }
    else if (document.layers) {
        item = document.layers[id];
    }
    if (!item) {
    }
    else if (item.style) {
            item.style.display = "none";
        }
}

