//subjects of the librarians var headerSubCS = "

Obory<\/h3>"; var headerSubEN = "

Subjects<\/h3>"; var alena1SubCS = headerSubCS + "Doprava<\/a>, Společenské vědy<\/a>"; var tumova1SubCS = headerSubCS + "Chemie a chemická technologie<\/a>"; var cervenka1SubCS = headerSubCS + "Elektronika a elektrotechnika<\/a>, Strojírenství<\/a>, Výpočetní technika<\/a>"; var turek1SubCS = headerSubCS + "Geodézie a kartografie<\/a>, Hydraulika<\/a>, Hydrogeologie<\/a>, Hydrologie<\/a>, Hydrologie vadózní zóny<\/a>, Patenty<\/a>, Technické normy<\/a>, Vyhledávání<\/a>"; var katoo1SubCS = headerSubCS + "Kategorie1, Kategorie2, Kategorie3"; var petra1SubCS = headerSubCS + "Ekonomické vědy a management<\/a>, Právo<\/a>, Zemědělství<\/a>"; var stephanie1SubCS = headerSubCS + "Akademické psaní, publikování a prezentování v angličtině<\/a>, Materiálové inženýrství<\/a>, Stavebnictví<\/a>"; var jirka1SubCS = headerSubCS + "Biologie a biotechnologie<\/a>, Lesnictví a dřevozpracující průmysl<\/a>, Životní prostředí<\/a>"; var pavlina1SubCS = headerSubCS + "Architektura<\/a>, Robotika a kybernetika<\/a>, Šetrné budovy<\/a>, Validace zdroje<\/a>"; var jakubs1SubCS = headerSubCS + "Bibliometrie a scientometrie<\/a>, Creative Commons<\/a>, Identifikátory autora<\/a>, Open Access<\/a>"; var olga1SubCS = headerSubCS + "Fotografie a film<\/a>, Nanotechnologie<\/a>, Počítačová grafika<\/a>"; var vera1SubCS = headerSubCS + "Bezpečnostní management a bezpečnost práce<\/a>, E-knihy<\/a>"; var stehlik1SubCS = headerSubCS + ""; var nouza1SubCS = headerSubCS + "Dějiny vědy a techniky<\/a>, Vojenství<\/a>"; var kyriaki1SubCS = headerSubCS + "Fyzika<\/a>, Matematika<\/a>"; var carlos1SubCS = headerSubCS + "Biochemie<\/a>, Cytologie<\/a>, Neurověda<\/a>"; var pavlam1SubCS = headerSubCS + ""; var strych1SubCS = headerSubCS + "Biomedicínské inženýrství<\/a>, Citování<\/a>, Jak začít psát<\/a>, Lékařství a farmacie<\/a>"; var ouzka1SubCS = headerSubCS + "Historie a pomocné vědy historické<\/a>"; var alena1SubEN = headerSubEN + "Social Science<\/a>, Transport<\/a>"; var tumova1SubEN = headerSubEN + "Chemistry and Chemical Technology<\/a>"; var cervenka1SubEN = headerSubEN + "Computer Science<\/a>, Electrical and Electronic Engineering<\/a>, Mechanical Engineering<\/a>"; var turek1SubEN = headerSubEN + "Geodesy and Cartography<\/a>, Hydraulics<\/a>, Hydrogeology<\/a>, Hydrology<\/a>, Patents<\/a>, Technical Standards<\/a>, Vadose Zone Hydrology<\/a>"; var petra1SubEN = headerSubEN + "Agriculture and Agrotechnology<\/a>, Economics and Business<\/a>, Law<\/a>"; var stephanie1SubEN = headerSubEN + "Civil Engineering<\/a>, Communicating Research in English<\/a>, Materials Science and Engineering<\/a>"; var jirka1SubEN = headerSubEN + "Biology and Biotechnology<\/a>, Environment<\/a>, Forestry and Woodworking Industry<\/a>"; var pavlina1SubEN = headerSubEN + "Architecture<\/a>, Robotics and Cybernetics<\/a>"; var jakubs1SubEN = headerSubEN + "Bibliometrics and Scientometrics<\/a>"; var olga1SubEN = headerSubEN + "Computer Graphics<\/a>, Nanotechnology<\/a>, Photography and film<\/a>"; var vera1SubEN = headerSubEN + "Security Management and Safety of Work<\/a>"; var stehlik1SubEN = headerSubEN + ""; var nouza1SubEN = headerSubEN + "History of Science and Technology<\/a>, Military Science<\/a>"; var kyriaki1SubEN = headerSubEN + "Mathematics<\/a>, Physics<\/a>"; var carlos1SubEN = headerSubEN + "Biochemistry<\/a>, Cell Biology<\/a>, Neuroscience<\/a>"; var pavlam1SubEN = headerSubEN + ""; var strych1SubEN = headerSubEN + "Biomedical Engineering<\/a>, How to Start Writing<\/a>, Medicine<\/a>"; var ouzka1SubEN = headerSubEN + "History and Historical Sciences<\/a>"; var comby1SubEN = headerSubEN + "Citation Management<\/a>"; var pagination = new Array(); //pagination for the navigation function insertRandPhoto(divId, headerText, langId) //insert photo of random librarian (where to insert, text displayed in the header, language id) { var nRandom = Math.random(); //Get a random number nRandom = 16*nRandom; //16 librarians nRandom = Math.ceil(nRandom); //ceil the number switch(nRandom) { case 1: insertPhoto(divId, "alena1", headerText, langId); break; case 2: insertPhoto(divId, "tumova1", headerText, langId); break; case 3: insertPhoto(divId, "petra1", headerText, langId); break; case 4: insertPhoto(divId, "stephanie1", headerText, langId); break; case 5: insertPhoto(divId, "pavlina1", headerText, langId); break; case 6: insertPhoto(divId, "cervenka1", headerText, langId); break; case 7: insertPhoto(divId, "turek1", headerText, langId); break; case 8: insertPhoto(divId, "jirka1", headerText, langId); break; case 9: insertPhoto(divId, "jakubs1", headerText, langId); break; case 10: insertPhoto(divId, "vera1", headerText, langId); break; case 11: insertPhoto(divId, "olga1", headerText, langId); break; case 12: insertPhoto(divId, "nouza1", headerText, langId); break; case 13: insertPhoto(divId, "kyriaki1", headerText, langId); break; case 14: insertPhoto(divId, "carlos1", headerText, langId); break; case 15: insertPhoto(divId, "strych1", headerText, langId); break; case 16: insertPhoto(divId, "comby1", headerText, langId); break; } } function insertPhotoText(nameId, headerText, langId) //insert photo function (where to insert, person's name id, text displayed in the header, language id) { var imgWidth = 120; //width of image var textBody = ""; //long string with everything var prefArray = new Array(); //the items listed in the profile var cell = ""; //cell phone var img = ""; //address of image var loc = ""; //location in building var mail = ""; //mail var motto = ""; //motto var name = ""; //name var tel= ""; //telephone var web = ""; //web address switch (nameId) { case "katoo1": cell = ""; img = "/default/files/download/id/85312/katoo1.jpg"; loc = "3.30.007"; mail = "katoo@techlib.cz"; motto = ""; name = "Katoo"; tel= "+420 232 002 503"; if(langId=="cs"){web="*";} if(langId=="en"){web="*";} prefArray = [1,1,0,1,1,1,1]; break; case "alena1": cell = "773 850 851"; img = "/default/files/download/id/85492/alena1.jpg"; loc = ""; mail = "Alena.Chodounska@techlib.cz"; motto = ""; name = "Alena Chodounská"; tel= "232 002 502"; if(langId=="cs"){web="/cs/83261-alena-chodounska";} if(langId=="en"){web="/en/83263-alena-chodounska";} prefArray = [1,1,1,1,1,1,1]; break; case "jana1": cell = "778 453 022"; img = "/default/files/download/id/85807/janaorlova.jpg"; loc = ""; mail = "Jana.Orlova@techlib.cz"; motto = ""; name = "Jana Orlová"; tel= "232 002 529"; if(langId=="cs"){web="/cs/83388-jana-orlova";} if(langId=="en"){web="/en/83408-jana-orlova";} prefArray = [1,1,1,1,1,1,1]; break; case "tumova1": cell = ""; img = "/public/phonebook/36686.jpg"; loc = ""; mail = "tereza.tumova@techlib.cz"; motto = ""; name = "Tereza Tůmová"; tel= "232 002 572"; if(langId=="cs"){web="/cs/83813";} if(langId=="en"){web="/en/83814";} prefArray = [1,1,1,1,1,1,1]; break; case "pavlina1": cell = "778 453 021"; img = "/secphonebook/79229.jpg"; loc = ""; mail = "Pavlina.Tassanyi@techlib.cz"; motto = ""; name = "Pavlína Tassanyi"; tel= "232 002 535"; if(langId=="cs"){web="/cs/83511";} if(langId=="en"){web="/en/83517";} prefArray = [1,1,1,1,1,1,1]; break; case "cervenka1": cell = "606 552 407"; img = "/default/files/download/id/85796/jancervenka.jpg"; loc = ""; mail = "Jan.Cervenka@techlib.cz"; motto = "Winners never quit!"; name = "Jan Červenka"; tel= "232 002 501"; if(langId=="cs"){web="/cs/83392-jan-cervenka";} if(langId=="en"){web="/en/83404-jan-cervenka";} prefArray = [1,1,1,1,1,1,1]; break; case "turek1": cell = "778 453 020"; img = "/default/files/download/id/85808/vojtaturek.jpg"; loc = ""; mail = "Vojtech.Turek@techlib.cz"; motto = ""; name = "Vojtěch Turek"; tel= "232 002 548"; if(langId=="cs"){web="/cs/83390-vojtech-turek";} if(langId=="en"){web="/en/83407-vojtech-turek";} prefArray = [1,1,1,1,1,1,1]; break; case "marek1": cell = ""; img = "/public/userfiles/librarians/marek1.jpg"; loc = ""; mail = "Marek.Janik@techlib.cz"; motto = ""; name = "Marek Janik"; tel= "232 002 552"; if(langId=="cs"){web="/cs/2837-marek-janik";} if(langId=="en"){web="/en/2820-marek-janik";} prefArray = [1,1,1,1,1,1,1]; break; case "comby1": cell = ""; img = "/public/phonebook/58431.jpg"; loc = ""; mail = "Marine.Comby@techlib.cz"; motto = ""; name = "Marine Comby"; tel= "232 002 591"; if(langId=="cs"){web="/cs/83853";} if(langId=="en"){web="/en/83852";} prefArray = [1,1,1,1,1,1,1]; break; case "petra1": cell = ""; img = "/default/files/download/id/85493/petra1.jpg"; loc = ""; mail = "Petra.Prochazkova@techlib.cz"; motto = ""; name = "Petra Procházková"; tel= "232 002 450"; if(langId=="cs"){web="/cs/83264-petra-prochazkova";} if(langId=="en"){web="/en/83265-petra-prochazkova";} prefArray = [1,1,1,1,1,1,1]; break; case "stephanie1": cell = "775 517 006"; img = "/default/files/download/id/85566/stephanie1.jpg"; loc = ""; mail = "Stephanie.Krueger@techlib.cz"; motto = ""; name = "Stephanie Krueger"; tel= "232 002 545"; if(langId=="cs"){web="/cs/83320-stephanie-krueger";} if(langId=="en"){web="/en/83319-stephanie-krueger";} prefArray = [1,1,1,1,1,1,1]; break; case "jirka1": cell = "778 453 028"; img = "/secphonebook/79554.jpg"; loc = ""; mail = "Jiri.Henzl@techlib.cz"; motto = ""; name = "Jiří Henzl"; tel= "232 002 548"; if(langId=="cs"){web="/cs/83512";} if(langId=="en"){web="/en/83516";} prefArray = [1,1,1,1,1,1,1]; break; case "jakubs1": cell = ""; img = "/secphonebook/44734.jpg"; loc = ""; mail = "Jakub.Szarzec@techlib.cz"; motto = ""; name = "Jakub Szarzec"; tel = "232 002 431"; if(langId=="cs"){web="/cs/83410-jakub-szarzec";} if(langId=="en"){web="/en/83411-jakub-szarzec";} prefArray = [1,1,1,1,1,1,1]; break; case "olga1": cell = "778 453 026"; img = "/secphonebook/81844.jpg"; loc = ""; mail = "Olga.Martinova@techlib.cz"; motto = ""; name = "Olga Martinová"; tel = "232 002 535"; if(langId=="cs"){web="/cs/83610";} if(langId=="en"){web="/en/83611";} prefArray = [1,1,1,1,1,1,1]; break; case "vera1": cell = "778 453 025"; img = "/secphonebook/76238.jpg"; loc = ""; mail = "Vera.Krasova@techlib.cz"; motto = ""; name = "Věra Krásová"; tel = "232 002 559"; if(langId=="cs"){web="/cs/83600";} if(langId=="en"){web="/en/83604";} prefArray = [1,1,1,1,1,1,1]; break; case "stehlik1": cell = "778 453 027"; img = "/secphonebook/81845.jpg"; loc = ""; mail = "Martin.Stehlik@techlib.cz"; motto = ""; name = "Martin Stehlík"; tel = "232 002 548"; if(langId=="cs"){web="/cs/83591";} if(langId=="en"){web="/en/83592";} prefArray = [1,1,1,1,1,1,1]; break; case "komas1": cell = ""; img = "/secphonebook/85078.jpg"; loc = ""; mail = "Tomas.Houdek@techlib.cz"; motto = ""; name = "Tomáš Houdek"; tel = "232 002 535"; cell = "602 489 170"; if(langId=="cs"){web="/cs/83602";} if(langId=="en"){web="/en/83603";} prefArray = [1,1,1,1,1,1,1]; break; case "nouza1": cell = "778 453 024"; img = "/secphonebook/69296.jpg"; loc = ""; mail = "Petr.Nouza@techlib.cz"; motto = ""; name = "Petr Nouza"; tel = "232 002 400"; if(langId=="cs"){web="/cs/83601";} if(langId=="en"){web="/en/83605";} prefArray = [1,1,1,1,1,1,1]; break; case "ouzka1": cell = ""; img = "/secphonebook/13873.jpg"; loc = ""; mail = "Marcela.Ouzka@techlib.cz"; motto = ""; name = "Marcela Ouzká"; tel = "232 002 453"; if(langId=="cs"){web="/cs/83612";} if(langId=="en"){web="/en/83613";} prefArray = [1,1,1,1,1,1,1]; break; case "kyriaki1": cell = ""; img = "/public/phonebook/79727.jpg"; loc = ""; mail = "kyriaki.maria.saiti@techlib.cz"; motto = ""; name = "Kyriaki Saiti"; tel = "232 002 430"; if(langId=="cs"){web="/cs/83732";} if(langId=="en"){web="/en/83723";} prefArray = [1,1,1,1,1,1,1]; break; case "carlos1": cell = ""; img = "/public/phonebook/91936.jpg"; loc = ""; mail = "carlos.melo@techlib.cz"; motto = ""; name = "Carlos Melo"; tel = "232 002 538"; if(langId=="cs"){web="/cs/83736";} if(langId=="en"){web="/en/83734";} prefArray = [1,1,1,1,1,1,1]; break; case "pavlam1": cell = "778 453 023"; img = "/secphonebook/77579.jpg"; loc = ""; mail = "pavla.minarikova@techlib.cz"; motto = ""; name = "Pavla Minaříková"; tel = "232 002 535"; if(langId=="cs"){web="/cs/83680";} if(langId=="en"){web="/en/83681";} prefArray = [1,1,1,1,1,1,1]; break; case "strych1": cell = "778 453 030"; img = "/secphonebook/85520.jpg"; loc = ""; mail = "filip.strych@techlib.cz"; motto = ""; name = "Filip Strych"; tel = "232 002 535"; if(langId=="cs"){web="/cs/83678";} if(langId=="en"){web="/en/83679";} prefArray = [1,1,1,1,1,1,1]; break; case "julie1": cell = ""; img = "/public/phonebook/98160.jpg"; loc = ""; mail = "julie.nekola.novakova@techlib.cz"; motto = ""; name = "Julie Nekola Nováková"; tel = "232 002 535"; if(langId=="cs"){web="/cs/83837";} if(langId=="en"){web="/en/83838";} prefArray = [1,1,1,1,1,1,1]; break; } if(cell == ""){prefArray[0] = 0;} if(img == ""){prefArray[1] = 0;} if(loc == ""){prefArray[2] = 0;} if(mail == ""){prefArray[3] = 0;} if(motto == ""){prefArray[4] = 0;} if(name == ""){prefArray[5] = 0;} if(tel == ""){prefArray[6] = 0;} textBody = "

"+headerText+"<\/h3>"; textBody = textBody + "
"; textBody = textBody + "\"\""; textBody = textBody + "
"; if(prefArray[5] == 1){textBody = textBody + "

"+name+"

";} if(prefArray[3] == 1) { if(mail.length >= 23) { var atIndex = mail.indexOf("@"); var shortMail = mail.substring(0,atIndex); textBody = textBody + "
<\/span> "+shortMail+"<\/a><\/abbr><\/div>"; } else { textBody = textBody + ""; textBody = textBody + "
"; return textBody; } function insertPhoto(divId ,nameId, headerText, langId) //insert photo function (where to insert, person's name id, text displayed in the header, language id) { var text = insertPhotoText(nameId, headerText, langId); document.getElementById(divId).innerHTML=text; } function insertSGPhoto(divId ,nameId, headerText, langId, curPage) //inserf photo of librarian with their subject guides cathergories, curPage = current page { var text = insertPhotoText(nameId, headerText, langId); if(langId == "cs") { switch (nameId) { case "alena1": text = text + alena1SubCS; break; case "jana1": text = text + jana1SubCS; break; case "tumova1": text = text + tumova1SubCS; break; case "pavlina1": text = text + pavlina1SubCS; break; case "katoo1": text = text + katoo1SubCS; break; case "cervenka1": text = text + cervenka1SubCS; break; case "marek1": text = text + marek1SubCS; break; case "turek1": text = text + turek1SubCS; break; case "pavla1": text = text + pavla1SubCS; break; case "petra1": text = text + petra1SubCS; break; case "stephanie1": text = text + stephanie1SubCS; break; case "jirka1": text = text + jirka1SubCS; break; case "jakubs1": text = text + jakubs1SubCS; break; case "olga1": text = text + olga1SubCS; break; case "vera1": text = text + vera1SubCS; break; case "stehlik1": text = text + stehlik1SubCS; break; case "komas1": text = text + komas1SubCS; break; case "nouza1": text = text + nouza1SubCS; break; case "ouzka1": text = text + ouzka1SubCS; break; case "kyriaki1": text = text + kyriaki1SubCS; break; case "carlos1": text = text + carlos1SubCS; break; case "pavlam1": text = text + pavlam1SubCS; break; case "strych1": text = text + strych1SubCS; break; case "julie1": text = text + julie1SubCS; break; case "comby1": text = text + comby1SubCS; break; } } else { switch (nameId) { case "alena1": text = text + alena1SubEN; break; case "jana1": text = text + jana1SubEN; break; case "tumova1": text = text + tumova1SubEN; break; case "pavlina1": text = text + pavlina1SubEN; break; case "katoo1": text = text + katoo1SubEN; break; case "cervenka1": text = text + cervenka1SubEN; break; case "marek1": text = text + marek1SubEN; break; case "turek1": text = text + turek1SubEN; break; case "pavla1": text = text + pavla1SubEN; break; case "petra1": text = text + petra1SubEN; break; case "stephanie1": text = text + stephanie1SubEN; break; case "jirka1": text = text + jirka1SubEN; break; case "jakubs1": text = text + jakubs1SubEN; break; case "olga1": text = text + olga1SubEN; break; case "vera1": text = text + vera1SubEN; break; case "stehlik1": text = text + stehlik1SubEN; break; case "komas1": text = text + komas1SubEN; break; case "nouza1": text = text + kyriaki1SubEN; break; case "ouzka1": text = text + ouzka1SubEN; break; case "kyriaki1": text = text + kyriaki1SubEN; break; case "carlos1": text = text + carlos1SubEN; break; case "pavlam1": text = text + pavlam1SubEN; break; case "strych1": text = text + strych1SubEN; break; case "julie1": text = text + julie1SubEN; break; case "comby1": text = text + comby1SubEN; break; } } var indexPage = pagination.length; var navigation = new Array(); navigation = document.getElementsByTagName("h3"); var navTxt = ""; //start