//var myalternative = "alternative.html"; //location of alternative page (or omit line if none - only write once)

var menuTree = new autoMenu(
  150,                          //width of menu items (remember not to use up too much screen width!)
  [11,8,"../pics/arrow_down.gif","../pics/arrow_down.gif"], //dimensions and location of right arrow (width,height,normal src,highlight src)
  [11,8,"../pics/arrow_down.gif","../pics/arrow_down.gif"], //dimensions and location of down arrow (width,height,normal src,highlight src)
                                //(just put [] for down arrows if menu is vertically orientated)
  '#bfbfbf',                    //normal background colour of menu
  '#7f7f7f',                    //highlight background colour of menu
  '#006600',                    //normal link colour of menu
  '#ddddff',                    //highlight link colour of menu
  '#000000',                    //border colour of menu
  0,                            //border thickness of menu
  'font-weight: bold;text-decoration: none;', //stylesheet for the links - do not define colours here
  500,                          //length of time (ms) to keep menu open when mouse is not over it
  0,                            //initial left position
  0,                            //initial top position
  false,                        //orientation: true for vertical, false for horizontal
  false                         //scroll: true for scroll with page, false for not
);

//create parents before children
//PUT THE EXTERNAL SCRIPT TAGS FIRST!!
menuTree.sub[0] = new menuBox( "Všeobecné info" );
menuTree.sub[0].sub[0] = new menuBox( "Úvod", "index_sk.php" );
menuTree.sub[0].sub[1] = new menuBox( "Zameranie", "virtuni_scope_sk.php" );
menuTree.sub[0].sub[2] = new menuBox( "Výbory", "virtuni_committees_sk.php" );
//menuTree.sub[1] = new menuBox( "Program", "virtuni_program_sk.php");
menuTree.sub[1] = new menuBox( "Program", "sw/program_show.php", "new");
menuTree.sub[2] = new menuBox( "Termíny / Poplatky" );
menuTree.sub[2].sub[0] = new menuBox( "Termíny", "virtuni_deadlines_sk.php" );
menuTree.sub[2].sub[1] = new menuBox( "Poplatky", "virtuni_fees_sk.php" );
menuTree.sub[3] = new menuBox( "Pre autorov" );
menuTree.sub[3].sub[0] = new menuBox( "Abstrakty", "virtuni_guidelines_draft_sk.php" );
menuTree.sub[3].sub[1] = new menuBox( "Finálne články", "virtuni_guidelines_paper_sk.php" );
menuTree.sub[3].sub[2] = new menuBox( "Online systém", "sw/index.php?lang=sk", "new" );
menuTree.sub[4] = new menuBox( "Registrácia", "sw/index.php?lang=sk", "new" );
menuTree.sub[5] = new menuBox( "Súťaž", "virtuni_competition_sk.php" );
menuTree.sub[6] = new menuBox( "Miesto konania" );
menuTree.sub[6].sub[0] = new menuBox( "Miesto konania", "virtuni_venue_sk.php" );
menuTree.sub[6].sub[1] = new menuBox( "Ubytovanie", "virtuni_accommodation_sk.php" );
menuTree.sub[6].sub[2] = new menuBox( "Doprava", "virtuni_transport_sk.php " );
menuTree.sub[6].sub[3] = new menuBox( "Turistické informácie", "virtuni_turistinfo_sk.php " );
menuTree.sub[7] = new menuBox( "Sekretariát", "virtuni_secretariat_sk.php" );
menuTree.sub[8] = new menuBox( "Sponzori", "virtuni_sponsors_sk.php" );

var myWidth = 630, myHeight = 460;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  
var posun;
if (myWidth>750) 
 {posun=(myWidth-750)/2+5;}
else
 {posun=5;}
//alert(posun);

var menuTree2 = new autoMenu(
  145,                           //width of menu items (remember not to use up too much screen width!)
  [11,8,"../pics/arrow_down.gif","../pics/arrow_down.gif"], //dimensions and location of right arrow (width,height,normal src,highlight src)
  [],                            //dimensions and location of down arrow (width,height,normal src,highlight src)
                                 //(just put [] for down arrows if menu is vertically orientated)
  '#336699',                     //normal background colour of menu
  '#003366',                     //highlight background colour of menu
  '#ffffff',                     //normal link colour of menu
  '#ffffff',                     //highlight link colour of menu
  '',                     //border colour of menu
  3,                             //border thickness of menu
  'font-weight: none;text-decoration: none;', //stylesheet for the links - do not define colours here
  1000,                          //length of time (ms) to keep menu open when mouse is not over it
  posun,                             //initial left position
  190,                            //initial top position
  true,                          //orientation: true for vertical, false for horizontal
  true                           //scroll: true for scroll with page, false for not
);

//menuTree2.sub = menuTree.sub;

//menuTree2.buildMenu();
//menuTree.buildMenu();

//-->

