/* author: pancreatitis@o2.pl */

/* Generated by AceHTML Freeware http://freeware.acehtml.com */

/* Creation date: 2004-06-14 */



function initbody() {

  pozycja('mainmenu');

  ml=l;

  mt1=t+75;

  mt2=t+50;

	mt3=t+130;
	
  moveTo('submenu1',l,mt1);

  hide('submenu1')

  moveTo('submenu2',l,mt2);

  hide('submenu2')

	moveTo('submenu3',l,mt3);

  hide('submenu3')
}



function showsub1() {

  show('submenu1');

  hides1=false;

  pozycja('submenu1');

  if (l<ml+110) {

     moveBy('submenu1',10,0);

     tt1=setTimeout("showsub1()",10);

  }

}
function showsub2() {

  show('submenu2');

  hides2=false;

  pozycja('submenu2');

  if (l<ml+110) {

     moveBy('submenu2',10,0);

     tt2=setTimeout("showsub2()",10);

  }

}
function showsub3() {

  show('submenu3');

  hides3=false;

  pozycja('submenu3');

  if (l<ml+110) {

     moveBy('submenu3',10,0);

     tt3=setTimeout("showsub3()",10);

  }

}


function tryhidesub1() {

   hides1=true;

   tt1 = setTimeout( "hidesub1()" , 1000);

}
function tryhidesub2() {

   hides2=true;

   tt2 = setTimeout( "hidesub2()" , 1000);

}
function tryhidesub3() {

   hides3=true;

   tt3 = setTimeout( "hidesub3()" , 1000);

}


function hidesub1() {

   if (hides1==true) {

     pozycja('mainmenu');

     ml=l;

     mt1=t+75;

     shide1();

   }

}
function hidesub2() {

   if (hides2==true) {

     pozycja('mainmenu');

     ml=l;

     mt2=t+50;

     shide2();

   }

}
function hidesub3() {

   if (hides3==true) {

     pozycja('mainmenu');

     ml=l;

     mt3=t+130;

     shide3();

   }

}


function shide1()

{

  pozycja('submenu1');

  if ((l>ml)&&hides1) {

     moveBy('submenu1',-10,0);

     tt1=setTimeout("shide1()",10);

  }

  else {

     moveTo('submenu1',ml,mt1);

	 hide('submenu1');

  }

}



function shide2()

{

  pozycja('submenu2');

  if ((l>ml)&&hides2) {

     moveBy('submenu2',-10,0);

     tt2=setTimeout("shide2()",10);

  }

  else {

     moveTo('submenu2',ml,mt2);

	 hide('submenu2');

  }

}



function shide3()

{

  pozycja('submenu3');

  if ((l>ml)&&hides3) {

     moveBy('submenu3',-10,0);

     tt3=setTimeout("shide3()",10);

  }

  else {

     moveTo('submenu3',ml,mt3);

	 hide('submenu3');

  }

}


function stophide1()

{

   hides1=false;

   clearTimeout(tt1);

}



function stophide2()

{

   hides2=false;

   clearTimeout(tt2);

}

function stophide3()

{

   hides3=false;

   clearTimeout(tt3);

}
