<!--
var newWindow;

function show_close(D) {
 //alert ('id='+D.id);
 id_nugno='div_'+D.id;
 //alert ('id_nugno='+id_nugno);
 ident(id_nugno);
 //alert ('nugn0='+o1);
 //alert ('style='+o1.style.display);

 //if (o1.style.display=='block') {alert ('block'); o1.style.display='none';}
 if (o1.style.display=='none') {o1.style.display="block"; D.innerText='закрыть ...';} else { D.innerText='Все строительные смеси Вебер'; o1.style.display='none';}
 //alert ('style='+o1.style.display);
}


function link(N){

//alert (N.href);
//if (N=="vibor") {href="vibor.php"; href=href+'?group='+document.forms[0].group.value} else href=N.href;
if (N=="vibor") {href="vibor.php";} else href=N.href;
//alert (href);
    if (href.indexOf("srav")>0) {var width = 800; var height = 600;} else {var width = 600; var height = 700;}; 


//    var left = parseInt((screen.availWidth/2) - (width/2));
//    var top = parseInt((screen.availHeight/2) - (height/2));
var left = 0;
    var top = 0;



    var windowFeatures = "toolbar=yes, scrollbars=1, width=" + width + ",height=" + height + 
        ",status,resizable,left=" + left + ",top=" + top + 
        "screenX=" + left + ",screenY=" + top;

//alert ("aaa");


//        if (N!="vibor")  {newWindow =window.open (href,'link', windowFeatures); newWindow.focus();} else newWindow =window.open (href,'link', windowFeatures);

newWindow =window.open ('','llink', windowFeatures);
alert ('aaa');


//alert ("sss");
//if (N!="vibor") {return false;} else return true;
//alert ("xxx");
return true;
}

function no_window (){
//alert ('закрываем');
    if (newWindow) {newWindow.close ()};
}

function window_size (){
//alert (window.location);
if (window.location.href.indexOf("srav")>0) {window.resizeTo(800,600);} else window.resizeTo(600,700);
//    if (newWindow) {newWindow.close ()};

}

function zapiska(){
//alert ('zapiska111');
//alert (opener.top.zap);
opener.top.zap.location="zapiska.htm";       
//opener.top.zapiska.focus();
}

function soob() {
//alert ('после выбора всех критериев для отбора нажмите кнопку "Отобрать нужное"');
}

function fasad(f) {
//alert (f.options[f.selectedIndex].value);
if (f.value=='fasad')  {f.form.nazn.style.visibility='hidden';} else {f.form.nazn.style.visibility='visible'; }

}

function conf (f){
//alert ('aaa');
//if (f.value=='fasad')  {f.form.nazn.style.visibility='hidden';} else {f.form.nazn.style.visibility='visible'; f.form.nazn.options[f.selectedIndex].value='all';}

}

dd=document; NS=(dd.layers)?1:0; IE=(dd.all)?1:0; DOM=(dd.getElementById)?1:0;
function ident(D) {
    if (IE){o1=dd.all[D]}
       else {o1=dd.getElementById(D)};
}



function svet(D) {ident(D); o1.style.visibility="visible"}
function tem() {o1.style.visibility="hidden"}

function fon(s)  {s.style.backgroundColor="#DCDCDC"}
function fon2(s) {s.style.backgroundColor="navy"}
function fon3(s) {s.style.backgroundColor="#DCDCDC"}
function fon4(s) {s.style.backgroundColor="#F4F4F4"}



function handler3(e)
{
  
  e = e || window.event;

  // здесь что-то делаем
  //alert(3);
  var t = e.target || e.srcElement;
	 
  //alert('class='+t.className);
  //alert('id_hand3='+t.id);
  var width = 600; var height = 700; 
  var left = 0; var top = 0; 
    var windowFeatures = "toolbar=yes, scrollbars=1, width=" + width + ",height=" + height + 
        ",status,resizable,left=" + left + ",top=" + top + 
        "screenX=" + left + ",screenY=" + top;

  href='http://www.artmiks.ru/katalog/'+t.id+'.htm';

  newWindow =window.open (href,'link', windowFeatures); 
  newWindow.focus();

  if (typeof e.preventDefault != 'undefined')     e.preventDefault(); //если надо прекратить событие (переход)
  return false;
}

function handler2(e)
{
  e = e || window.event;

  // здесь что-то делаем
  //alert(2);
  var t = e.target || e.srcElement;

  alert('id_hand2='+t.id);
  if (typeof e.preventDefault != 'undefined')     e.preventDefault(); //если надо прекратить событие (переход)
  return false;
}


function addHandler(d, event, handler)
{
 for (i = 0; i < d.length; i++)
    {
    if (d[i].className == 'jump')
       {
        object=d[i];
        if (typeof object.addEventListener != 'undefined')  object.addEventListener(event, handler, false);
          else 
            if (typeof object.attachEvent != 'undefined')    object.attachEvent('on' + event, handler);
                //else alert ('qqq');
       }
    }
}

function removeHandler(d, event, handler)
{
 for (i = 0; i < d.length; i++)
    {
    if (d[i].className == 'jump')
       {
        object=d[i];
        if (typeof object.removeEventListener != 'undefined')     object.removeEventListener(event, handler, false);
          else 
            if (typeof object.detachEvent != 'undefined')      object.detachEvent('on' + event, handler);
                //else alert ('qqq');

       }
    }
}





//-->