/*
var Xoffset=30;
var Yoffset= 30;
var popwidth=110;
var bcolor="#ffffff";
var fcolor="blue";
var fface="verdana";

document.write("<DIV ID='pup'></DIV>");

var iex=(document.all);
var nav=(document.layers);
var old=(navigator.appName=="Netscape" && !document.layers && !document.getElementById);
var n_6=(window.sidebar);

var skin;
if(nav) skin=document.pup;
if(iex) skin=pup.style;
if(n_6) skin=document.getElementById("pup").style;

var yyy=-1000;

if(nav)document.captureEvents(Event.MOUSEMOVE);
if(n_6) document.addEventListener("mousemove",get_mouse,true);
if(nav||iex)document.onmousemove=get_mouse;

function get_mouse(e)
{
  var x,y;
  if(nav || n_6) x=e.pageX;
  if(iex) x=event.x+document.body.scrollLeft;
  if(nav || n_6) y=e.pageY;
  if(iex)
  {
    y=event.y;
    if(navigator.appVersion.indexOf("MSIE 4")==-1)
      y+=document.body.scrollTop;
  }
  if(iex || nav)
  {
    skin.top=y+yyy;
    skin.left=x+Xoffset;
  }
  if(n_6)
  {
    skin.top=(y+yyy)+"px";
    skin.left=x+Xoffset+"px";
  }
  nudge(x);
}

function nudge(x)
{
  var extreme,overflow,temp;
  // right
  if(iex) extreme=(document.body.clientWidth-popwidth);
  if(n_6 || nav) extreme=(window.innerWidth-popwidth);
  if(parseInt(skin.left)>extreme)
  {
    overflow=parseInt(skin.left)-extreme;
    temp=parseInt(skin.left);
    temp-=overflow;
    if(nav || iex) skin.left=temp;
    if(n_6)skin.left=temp+"px";
  }

  if(parseInt(skin.left)<1)
  {
    overflow=parseInt(skin.left)-1;
    temp=parseInt(skin.left);
    temp-=overflow;
    if(nav || iex) skin.left=temp;
    if(n_6)skin.left=temp+"px";
  }
}

function popup(msg)
{
  var content="<TABLE class=tabl BORDER='0' BORDERCOLOR="+bcolor+" CELLPADDING=2 CELLSPACING=0 "+"BGCOLOR=#33ccff><TD ALIGN='center'><FONT COLOR="+fcolor+" FACE="+fface+" SIZE='1'>"+msg+"</FONT></TD></TABLE>";
  if(old)
  {
    alert(msg);
    return;
  }
  yyy=Yoffset;
  skin.width=popwidth;
  if(nav)
  {
    skin.document.open();
    skin.document.write(content);
    skin.document.close();
    skin.visibility="visible";
  }
  if(iex)
  {
    pup.innerHTML=content;
    skin.visibility="visible";
  }
  if(n_6)
  {
    document.getElementById("pup").innerHTML=content;
    skin.visibility="visible";
  }
}

function kill()
{
  if(!old)
  {
    yyy=-1000;
    skin.visibility="hidden";
    skin.width=0;
  }
}
*/
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=60
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=20
else if (window.highlighting)
clearInterval(highlighting)
}

function wi(winurl, name) 
{ 
OpenWindow=window.open(winurl ,'_blank','width=600, height=500,location=no,toolbar=no,menubar=no,status=no,scrollbars=1,resizable=1'); 
OpenWindow.document.write("<HTML>")
OpenWindow.document.write("<TITLE>")
OpenWindow.document.write(name)
OpenWindow.document.write("</TITLE>")
OpenWindow.document.write("<BODY bgcolor='#ffffff' >")
OpenWindow.document.write("<table border='0'><tr align='center' valign='middle'>")
OpenWindow.document.write("<td width='515' height='350'  bgcolor='#ffffff'>")
OpenWindow.document.write("<b>")
OpenWindow.document.write(name)
OpenWindow.document.write("</b><br>")
OpenWindow.document.write("<img src=")
OpenWindow.document.write(winurl)
OpenWindow.document.write(">")
OpenWindow.document.write("<br><a href='' onClick='self.close()'> Закрыть окно</a></td></tr>")
OpenWindow.document.write("</td></tr></table>")
OpenWindow.document.write("</HTML>")
self.name="main window"
}