//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( "General info" );
menuTree.sub[0].sub[0] = new menuBox( "Home", "index.php" );
menuTree.sub[0].sub[1] = new menuBox( "Scope", "virtuni_scope_en.php" );
menuTree.sub[0].sub[2] = new menuBox( "Committees", "virtuni_committees_en.php" );
//menuTree.sub[1] = new menuBox( "Program", "virtuni_program_en.php");
menuTree.sub[1] = new menuBox( "Program", "sw/program_show.php", "new");
menuTree.sub[2] = new menuBox( "Deadlines / Fees" );
menuTree.sub[2].sub[0] = new menuBox( "Deadlines", "virtuni_deadlines_en.php" );
menuTree.sub[2].sub[1] = new menuBox( "Fees", "virtuni_fees_en.php" );
menuTree.sub[3] = new menuBox( "For authors" );
menuTree.sub[3].sub[0] = new menuBox( "Abstracts", "virtuni_guidelines_draft_en.php" );
menuTree.sub[3].sub[1] = new menuBox( "Final papers", "virtuni_guidelines_paper_en.php" );
menuTree.sub[3].sub[2] = new menuBox( "Online system", "sw/index.php?lang=en", "new" );
menuTree.sub[4] = new menuBox( "Registration", "sw/index.php?lang=en", "new" );
menuTree.sub[5] = new menuBox( "Competition", "virtuni_competition_en.php" );
menuTree.sub[6] = new menuBox( "Venue" );
menuTree.sub[6].sub[0] = new menuBox( "Venue", "virtuni_venue_en.php" );
menuTree.sub[6].sub[1] = new menuBox( "Accommodation", "virtuni_accommodation_en.php" );
menuTree.sub[6].sub[2] = new menuBox( "Transport", "virtuni_transport_en.php " );
menuTree.sub[6].sub[3] = new menuBox( "Tourist info", "virtuni_turistinfo_en.php " );
menuTree.sub[7] = new menuBox( "Secretariat", "virtuni_secretariat_en.php" );
menuTree.sub[8] = new menuBox( "Sponsors", "virtuni_sponsors_en.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(
  125,                           //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();

//-->

