function show1()
{
izisk.style.display='block'; 
list1.style.color='#FF9900';
}
function hide1()
{
izisk.style.display='none'; 
list1.style.color='#ffffff';
}
function show1_1()
{
izisk.style.display='block'; 
}
function hide1_1()
{
izisk.style.display='none'; 
}
function show2()
{
oborud.style.display='block'; 
list2.style.color='#FF9900';
}
function hide2()
{
oborud.style.display='none'; 
list2.style.color='#ffffff';
}
function show2_1()
{
oborud.style.display='block'; 
}
function hide2_1()
{
oborud.style.display='none'; 
}
function move()
{
var deltax=(document.body.clientWidth-1028)/2;
izisk.style.left=150+deltax;
oborud.style.left=185+deltax;
counter.style.left=(document.body.clientWidth-88)/2;
}
function makepage(src)
{
  // We break the closing script tag in half to prevent
  // the HTML parser from seeing it as a part of
  // the *main* page.
  src2 = src.replace("_p","_b");		
  return "<html>\n" +
    "<head>\n" +
    "<title>Temporary Printing Window</title>\n" +
    "<script>\n" +
    "function step1() {\n" +
    "  setTimeout('step2()', 10);\n" +
    "}\n" +
    "function step2() {\n" +
    "  window.print();\n" +
    "  window.close();\n" +
    "}\n" +
    "</scr" + "ipt>\n" +
    "</head>\n" +
    "<body onLoad='step1()'>\n" +
    "<img src='" + src2 + "'/>\n" +
	"</body>\n" +
    "</html>\n";
}

function printme(evt)
{
  if (!evt) {
    // Old IE
    evt = window.event;
  }    
  var image = evt.target;
  if (!image) {
    // Old IE
    image = window.event.srcElement;
  }
  src = image.src;
  link = "about:blank";
  var pw = window.open(link, "_new");
  pw.document.open();
  pw.document.write(makepage(src));
  pw.document.close();
}
