function displaySubMenu()
{
  iO.style.display = "block";
  iO.style.zIndex = "2";
}

var font_size = 13;
var font_original = 10;
var min_font = 9;
var max_font = 24;

function plus()
{
  obj = parent.ifr.document.getElementById("xxx");
  ss = obj.style.fontSize.indexOf("px");
  switch (ss)
  {
    case 1:
      xx = obj.style.fontSize.substring(0,1);
      //alert(xx);
    break;
    case 2:
      xx = obj.style.fontSize.substring(0,2);
      //alert(xx);
    break;
  }//switch
  if (xx < max_font)
  {
    xx++;
    xx++;
    //alert(xx+'px');
    obj.style.fontSize = xx + "px";
  }
  else
  {
    alert('Max font size!');
  }
}

function minus()
{
  obj = parent.ifr.document.getElementById("xxx");
  ss = obj.style.fontSize.indexOf("px");
  switch (ss)
  {
    case 1:
      xx = obj.style.fontSize.substring(0,1);
    break;
    case 2:
      xx = obj.style.fontSize.substring(0,2);
    break;
  }//switch
  if (xx > min_font)
  {
    xx--;
    xx--;
    //alert(xx+'px');
    obj.style.fontSize = xx + "px";
  }
  else
  {
    alert('Min font size!');
  }
}

function original()
{
  obj = parent.ifr.document.getElementById("xxx");
  obj.style.fontSize = font_original;
}
//---

function doSearch()
{
  document.srch.search.value= "";
}

function doXX1()
{
  if (one.className == "orr5")
  {
      one.className = "orr5_hover";
      two.className = "orr4";
  }
  else
  {
      one.className = "orr5";
      two.className = "orr3";
  }
}


function doXX2()
{
  if (two.className == "orr3")
  {
      two.className = "orr3_hover";
      three.className = "orr4";
  }
  else
  {
        two.className = "orr3";
        three.className = "orr3";
  }
}

function doXX3()
{
  if (three.className == "orr3")
  {
      three.className = "orr3_hover";
      four.className = "orr4";
  }
  else
  {
      three.className = "orr3";
      four.className = "orr3";
  }
}

function doXX4()
{
  if (four.className == "orr3")
  {
      four.className = "orr3_hover";
      five.className = "orr4";
  }
  else
  {
      four.className = "orr3";
      five.className = "orr3";
  }
}

function doXX5()
{
  if (five.className == "orr3")
  {
      five.className = "orr3_hover";
      six.className = "orr4";
  }
  else
  {
      five.className = "orr3";
      six.className = "orr3";
  }
}

function doXX6()
{
  if (six.className == "orr3")
  {
      six.className = "orr3_hover";
      seven.className = "orr2";
  }
  else
  {
      six.className = "orr3";
      seven.className = "orr";
  }
}
//-----

function drdr_(raz, ops)
{
  clearFilt();
  clearFilt2();
  switch (ops)
  {
	  case 0:
	  	if (raz.className == "on_0")
  		{
      		raz.className = "off_";
  		}
  		else
  		{
      		raz.className = "on_0";
		}
	  break;
	  case 1:
	  	if (raz.className == "on_1")
  		{
      		raz.className = "off_";
  		}
  		else
  		{
      		raz.className = "on_1";
		}
	  break;
	  case 2:
	  	if (raz.className == "on_2")
  		{
      		raz.className = "off_";
  		}
  		else
  		{
      		raz.className = "on_2";
		}
	  break;
	  case 3:
	  	if (raz.className == "on_3")
  		{
      		raz.className = "off_";
  		}
  		else
  		{
      		raz.className = "on_3";
		}
	  break;
	  case 4:
	  	if (raz.className == "on_4")
  		{
      		raz.className = "off_";
  		}
  		else
  		{
      		raz.className = "on_4";
		}
	  break;
	  case 5:
	  	if (raz.className == "on_5")
  		{
      		raz.className = "off_";
  		}
  		else
  		{
      		raz.className = "on_5";
		}
	  break;
	  case 6:
	  	if (raz.className == "on_6")
  		{
      		raz.className = "off_";
  		}
  		else
  		{
      		raz.className = "on_6";
		}
	  break;
	  default:
	  	if (raz.className == "on_1")
  		{
      		raz.className = "off_";
  		}
  		else
  		{
      		raz.className = "on_1";
		}
	  break;
  }
}
  

function getPo()
{
  if(document.getElementById('le'))
  {
  x1 = findPositionX(le);
  y1 = findPositionY(le);
  //alert(x);
  iOx.style.left = x1 + 123;
  iOx.style.top = y1 - 38;

  x2 = findPositionX(ld);
  y2 = findPositionY(ld);
  //alert(x);
  iO2x.style.left = x2 + 123;
  iO2x.style.top = y2 + 38;
  }
  if (document.getElementById('lf'))
  {
  x3 = findPositionX(lf);
  y3 = findPositionY(lf);
  //alert(x);
  iO3x.style.left = x3 + 123;
  iO3x.style.top = y3 + 0;

  x4 = findPositionX(lg);
  y4 = findPositionY(lg);
  //alert(x);
  iO4x.style.left = x4 + 123;
  iO4x.style.top = y4 + 0;
  }
  if (document.getElementById('lh'))
  {
  x5 = findPositionX(lh);
  y5 = findPositionY(lh);
  //alert(x);
  iO5x.style.left = x5 + 123;
  iO5x.style.top = y5 + 0;
  }
  if (document.getElementById('lii'))
  {
  x6 = findPositionX(lii);
  y6 = findPositionY(lii);
  //alert(x);
  iO6x.style.left = x6 + 123;
  iO6x.style.top = y6 + 0;
  }
  if (document.getElementById('ljj'))
  {
  x7 = findPositionX(ljj);
  y7 = findPositionY(ljj);
  //alert(x);
  iO7x.style.left = x7 + 123;
  iO7x.style.top = y7 + 0;
  }
}

//---

function resize_iframe()
{
  //resize the iframe according to the size of the
  //window (all these should be on the same line)
  document.getElementById("ifr").height=
  document.body.offsetHeight-
  document.getElementById("ifr").offsetTop-26;
}

// this will resize the iframe every
// time you change the size of the window.
window.onresize=resize_iframe;