
var global_url_prefix="/";

 function openBI(turl,title,prof,art,skl,price,size,prod,mater,pack) {
  if(!turl) return;
  w = window.open("","viewImg","width=486,height=456,scrollbars=1"); 
  w.document.open("text/html");

  w.document.writeln("<html><head><title>"+title+"</title><LINK type=\"text/css\" href=\""+global_url_prefix+"css/style.css\" rel=\"stylesheet\"></head><body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' style='text-align:center;'>");
  w.document.write("<BR><img style='border:solid 1px #752F1C;' alt='"+title+"' src='"+global_url_prefix+"content/catalogue/img/"+turl+"'><BR>");
  if(art||pack||skl||price){w.document.writeln("<br><TABLE style=\"width:442px;text-align:left;border:solid 1px #752F1C;\" align='center' cellpadding='0' cellspacing='0'>");}
    if(art){w.document.writeln("<TR><TD style='height:20px;border-bottom:solid 1px #752F1C;border-right:solid 1px #752F1C;color:#FF0000;text-align:right;width:140px;'>ÀÐÒÈÊÓË&nbsp;</TD><TD style='border-bottom:solid 1px #752F1C;'>&nbsp;"+art+"</TD></TR>");}
    if(size){w.document.writeln("<TR><TD style='height:20px;border-bottom:solid 1px #752F1C;border-right:solid 1px #752F1C;color:#FF0000;text-align:right;width:140px;'>ÐÀÇÌÅÐÛ&nbsp;</TD><TD style='border-bottom:solid 1px #752F1C;'>&nbsp;"+size+"</TD></TR>");}
    if(pack){w.document.writeln("<TR><TD style='height:20px;border-bottom:solid 1px #752F1C;border-right:solid 1px #752F1C;color:#FF0000;text-align:right;width:140px;'>ÓÏÀÊÎÂÊÀ&nbsp;</TD><TD style='border-bottom:solid 1px #752F1C;'>&nbsp;"+pack+"</TD></TR>");}
    if(prod){w.document.writeln("<TR><TD style='height:20px;border-bottom:solid 1px #752F1C;border-right:solid 1px #752F1C;color:#FF0000;text-align:right;width:140px;'>ÏÐÎÈÇÂÎÄÈÒÅËÜ&nbsp;</TD><TD style='border-bottom:solid 1px #752F1C;'>&nbsp;"+prod+"</TD></TR>");}
    if(mater){w.document.writeln("<TR><TD style='height:20px;border-bottom:solid 1px #752F1C;border-right:solid 1px #752F1C;color:#FF0000;text-align:right;width:140px;'>ÌÀÒÅÐÈÀË&nbsp;</TD><TD style='border-bottom:solid 1px #752F1C;'>&nbsp;"+mater+"</TD></TR>");}
    if(skl){w.document.writeln("<TR><TD style='height:20px;border-bottom:solid 1px #752F1C;border-right:solid 1px #752F1C;color:#FF0000;text-align:right;width:140px;'>ÍÀ ÑÊËÀÄÅ&nbsp;</TD><TD style='border-bottom:solid 1px #752F1C;'>&nbsp;"+skl+"</TD></TR>");}
    if(price){w.document.writeln("<TR><TD style='height:20px;border-right:solid 1px #752F1C;color:#FF0000;text-align:right;width:140px;'>ÖÅÍÀ&nbsp;</TD><TD>&nbsp;"+price+"</TD></TR>");}
    if(art||pack||skl||price){w.document.writeln("</TABLE>");}
  if(prof){w.document.write("<BR><img style='border:solid 1px #752F1C;;' alt='"+title+" - ÏÐÎÔÈËÜ' src='"+global_url_prefix+"content/catalogue/profile/"+prof+"'><BR><BR></body></html>");}else{w.document.write("<BR>");}
  w.focus();
 }
<!--oncontextmenu='return false;' oncopy='return false;' onselectstart='return false;'--!>
 function openBigImg(turl,title,ur) {
  if(!turl) return;
  w = window.open("","viewImg","width=440,height=330"); 
  //if(w!=null){w.close(); w = window.open("","viewImg","width=440,height=330");}
  w.document.open("text/html");
  w.document.write("<html><head><title>"+title+"</title></head><body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' oncontextmenu='return false;' oncopy='return false;' onselectstart='return false;'>");
 if(ur!=""){w.document.write("<a href='"+ur+"' title='"+title+"' target='_blank'>");} 
 w.document.write("<img style='border:none;' width='440' height='330' alt='"+title+"' src='"+global_url_prefix+turl+"'></body></html>");
 if(ur!=""){w.document.write("</a>");}
 w.focus();
 }
 function openBigImgV(turl,title,ur) {
  if(!turl) return;
  w = window.open("","viewImg","width=330,height=440");  
  //if(w!=null){w.close(); w = window.open("","viewImg","width=330,height=440");}
  w.document.open("text/html");
  w.document.write("<html><head><title>"+title+"</title></head><body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' oncontextmenu='return false;' oncopy='return false;' onselectstart='return false;'>");
  if(ur!=""){w.document.write("<a href='"+ur+"' title='"+title+"' target='_blank'>");}   
  w.document.write("<img style='border:none;' width='330' height='440' alt='"+title+"' src='"+global_url_prefix+turl+"'></body></html>");
  if(ur!=""){w.document.write("</a>");}
  w.focus();
 }
 function openBigImgFree(turl,title,wid,hei) {
  if(!turl) return;
  w = window.open("","viewImg","width="+wid+",height="+hei);  
  //if(w!=null){w.close(); w = window.open("","viewImg","width="+wid+",height="+hei);}
  w.document.open("text/html");
  w.document.write("<html><head><title>"+title+"</title></head><body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' oncontextmenu='return false;' oncopy='return false;' onselectstart='return false;'><img width='"+wid+"' height='"+hei+"' alt='"+title+"' src='"+turl+"'></body></html>");
  w.focus();
 }

 function openInfo(cat) {
  wi = window.open(global_url_prefix+"info.php?id="+cat,"","width=500,height=510,scrollbars=1"); 
  wi.focus();
}

 function openf() {
  wf = window.open(global_url_prefix+"faq.php","","width=460,height=280,scrollbars=0"); 
  wf.focus();
}
 function openw(lnk) {
  wi = window.open(lnk,"","width=470,height=450,scrollbars=1"); 
  wi.focus();
}

function show_hide(id_)
 {
 el=document.getElementById(id_);
 if(el.style.display=='' || el.style.display=='block')
  {
  el.style.display='none';
  el.style.visibility='hidden';
  }
 else
  {
  el.style.display='';
  el.style.visibility='visible';
  }
 }
