//echo realpath(dirname(__FILE__)); // $url_rozdelene = split( "/", $_SERVER['REQUEST_URI'] ); $url_rozdelene = preg_split( "/\//", $_SERVER['REQUEST_URI'] ); $soubor = $url_rozdelene[ count($url_rozdelene)-1 ]; $text_vypis = ""; if ( $soubor == "" ) $soubor = "en_index.html"; $ln = "en"; $prefix = ""; $menu = array( "en" => array( array("url" => "en_index.html", "text" => "Home", "height"=> 28), array("url" => "en_programme.html", "text" => "Programme", "height"=> 28), array("url" => "en_handouts.html", "text" => "Handouts", "height"=> 28), array("url" => "en_registration.html", "text" => "Registration", "height"=> 28), array("url" => "en_accommodation-transfer-payment.html", "text" => "Accommodation, Transfer & Payment", "height"=> 46), array("url" => "en_transportation.html", "text" => "Transportation", "height"=> 28), array("url" => "en_previous_courses.html", "text" => "Previous Courses", "height"=> 28), array("url" => "en_photo_gallery.html", "text" => "Photo Gallery", "height"=> 28), array("url" => "en_contacts.html", "text" => "Contacts", "height"=> 28) ) ); $submenu = array( "en" => array( "0" => array( array("url" => "en_index.html", "text" => "Introduction", "top"=> 26), array("url" => "en_background.html", "text" => "Background", "top"=> 26), array("url" => "en_course_description.html", "text" => "Course Description", "top"=> 26), array("url" => "en_organizing_committee.html", "text" => "Organizing Committee", "top"=> 26)), "5" => array( array("url" => "en_travelling_brno.html", "text" => "Travelling to Brno", "top"=> 26), array("url" => "en_travelling_hotel.html", "text" => "Travelling to hotel", "top"=> 26)), "6" => array( array("url" => "en_3rd_epodes_2013.html", "text" => "3rd EPODES 2013 Advanced", "top"=> 32), array("url" => "en_4th_epodes_2014.html", "text" => "4th EPODES 2014 Advanced II", "top"=> 32), array("url" => "en_5th_epodes_2015.html", "text" => "5th EPODES 2015 Basic", "top"=> 32), array("url" => "en_6th_epodes_2016.html", "text" => "6th EPODES 2016 Advanced", "top"=> 32), array("url" => "en_7th_epodes_2017.html", "text" => "7th EPODES 2017 Advanced II", "top"=> 32), array("url" => "en_8th_epodes_2018.html", "text" => "8th EPODES 2018 Basic", "top"=> 32)) ) ); $zvoleny_index = 0; for ($i=0; $i < count($menu[$ln]); $i++) { if ($menu[$ln][$i]['url'] == $soubor) { $zvoleny_index = $i; } } ?>