
function startList() { 

  //code only for IE 
  //if(!document.body.currentStyle) return; 
  var subs = document.getElementsByName('submenu'); 
  for(var i=0; i<subs.length; i++) { 
     var li = subs[i].parentNode; 
     if(li && li.lastChild.style) { 
        li.onmouseover = function() { 
           this.lastChild.style.visibility = 'visible'; 
        } 
        li.onmouseout = function() { 
           this.lastChild.style.visibility = 'hidden'; 
        } 
     } 
  } 
} 
//window.onload=startList(); 



function menu_button(a,b)
{
	if(b==a)
	{
		document.write('<td id="menu_end_td"><img src="images/pix.gif" id="menu_end_td"></td><td id="menu_end_td1"><img src="images/pix.gif" id="menu_end_td1"></td></tr><tr><td colspan="2" id="menu_end_td2"><img src="images/pix.gif" id="menu_end_td2"></td><td id="menu_end_td3"><img src="images/pix.gif" id="menu_end_td3"></td>');
	}
	else
	{
		document.write('<td id="menu_standart_td"><img src="images/pix.gif" id="menu_standart_td"></td><td id="menu_standart_td1"><img src="/images/pix.gif" id="menu_standart_td1"></td></tr><tr><td colspan="2" id="menu_standart_td2"><img src="images/pix.gif" id="menu_standart_td2"></td><td id="menu_standart_td3"></td>');
		b++;
	}

	return b;
}

function new_img(a,b)
{
	//alert(b);
	if(b==a)
	{
		document.write('<img src="images/new.gif" border="0" width="29" height="12">');
	}
}

function new_img1(a,b)
{
	//alert(b);
	if(b==a)
	{
		document.write('<img src="../images/new.gif" border="0" width="29" height="12">');
	}
}

function overcolor(el)
{
	var obj = document.getElementById(el).style;
	//obj.background = "FF0000";
	alert(document.getElementById(el).style.background);
}

function outcolor(el)
{
	var obj = document.getElementById(el).style;
	//alert(obj.background);
	obj.background = "00FF00";
}

/*isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isActive=false;

function MoveInit(e){
  topOne=isIE ? "BODY" : "HTML";
  whichOne=isIE ? document.all.FloatingLayer : document.getElementById("FloatingLayer");  
  ActiveOne=isIE ? event.srcElement : e.target;  
  while (ActiveOne.id!="titleBar"&&ActiveOne.tagName!=topOne){
    ActiveOne=isIE ? ActiveOne.parentElement : ActiveOne.parentNode;
  }  
  if (ActiveOne.id=="titleBar"){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(whichOne.style.left);
    nowY=parseInt(whichOne.style.top);
    MoveEnabled=true;
    document.onmousemove=Move;
  }
}

function Move(e){
  if (!MoveEnabled) return;
  whichOne.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx; 
  whichOne.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
  return false;  
}

function MoveN4(whatOne){
  if (!isN4) return;
  N4=eval(whatOne);
  N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  N4.onmousedown=function(e){
    N4.captureEvents(Event.MOUSEMOVE);
    N4x=e.x;
    N4y=e.y;
  }
  N4.onmousemove=function(e){
    if (isActive){
      N4.moveBy(e.x-N4x,e.y-N4y);
      return false;
    }
  }
  N4.onmouseup=function(){
    N4.releaseEvents(Event.MOUSEMOVE);
  }
}

function ToggleFloatingLayer(DivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[DivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(DivID);
        obj.style.visibility = iState ? "hidden" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[DivID].style.visibility = iState ? "visible" : "hidden";
    }
}

document.onmousedown=MoveInit;
document.onmouseup=Function("MoveEnabled=false");*/
