function sestrel(){
var b = document.getElementById('roletove');
var c = document.getElementById('roletoveB');
b.style.display = 'none';
c.style.display = 'none';
}
function ukaz(c,v){
  sestrel();
  var a = document.getElementById('obal1');
	var b;
	if (c>4 || v>4){b = document.getElementById('roletoveB');}
	else{b = document.getElementById('roletove');}
	if(v!=0){a.innerHTML = '';}
	else{b.innerHTML = '';}
  if((c == '1')||(v == '1')){	
	  if(c!=0){
		  var browName = navigator.appName;
			if (browName=="Microsoft Internet Explorer" ){
			b.style.left = '62px';}
			else
			{b.style.left = '62px';}
		}
		b.innerHTML = '<p class="tema">1. Helénismus</p>'
		+'<p align="left" class="prvni"><a href="indexPaL.html" class="prvni">A. Prameny a literatura</a></p>'
    +'<p align="left" class="prvni"><a href="indexPH.html" class="prvni">B. Helénismus</a></p>'
		+'<p align="left" class="druhy"><a href="indexPH.html" class="druhy">a. Pojem "helénismus"</a></p>'
		+'<p align="left" class="druhy"><a href="indexHS.html" class="druhy">b. Historicko-politická situace</a></p>'
		+'<p align="left" class="druhy"><a href="indexDpF.html" class="druhy">c. Helénistická filosofie</a></p>'
		+'<p align="left" class="prvni"><a href="indexSPyrr.html" class="prvni">C. Skepse</a></p>'
		+'<p align="left" class="druhy"><a href="indexSPyrr.html" class="druhy">a. Pyrrhón z Élidy a prameny</a></p>'
		+'<p align="left" class="druhy"><a href="indexSotaz.html" class="druhy">b. Tøi Pyrrhónovy otázky</a></p>'
		+'<p align="left" class="druhy"><a href="indexStrop.html" class="druhy">c. <i>Tropy</i> proti možnosti poznání</a></p>'
		+'<p align="left" class="prvni"><a href="indexEE.html" class="prvni">D. Epikúreismus</a></p>'
		+'<p align="left" class="druhy"><a href="indexEE.html" class="druhy">a. Epikúros</a></p>'
		+'<p align="left" class="druhy"><a href="indexEk.html" class="druhy">b. Kanonika</a></p>'
		+'<p align="left" class="druhy"><a href="indexEf.html" class="druhy">c. Fyzika</a></p>'
		+'<p align="left" class="druhy"><a href="indexEetika.html" class="druhy">d. Etika</a></p>'
		+'<p align="left" class="prvni"><a href="indexSF.html" class="prvni">E. Stoicismus</a></p>'
		+'<p align="left" class="druhy"><a href="indexSFv.html" class="druhy">a. Vývojové fáze stoicismu a prameny</a></p>'
		+'<p align="left" class="druhy"><a href="indexSFZ.html" class="druhy">b. Zénón - život a filosofický systém</a></p>'
		+'<p align="left" class="druhy"><a href="indexSFl.html" class="druhy">c. Logika</a></p>'
		+'<p align="left" class="druhy"><a href="indexSFf.html" class="druhy">d. Fyzika</a></p>'
		+'<p align="left" class="druhy"><a href="indexSFe.html" class="druhy">e. Etika</a></p>'
		+'<p align="left" class="druhy"><a href="indexSFCh.html" class="druhy">f. Svoboda a osud (Chrýsippos)</a></p>'
		+'<p align="left" class="druhy"><a href="indexSFSe.html" class="druhy">g. Svoboda a sebevražda (Seneca)</a></p>'
		+'<p align="left" class="druhy"><a href="indexSFm.html" class="druhy">h. Stoický mudrc</a></p>'
		+'<hr onMouseOut="nastrel();" style="padding: 0; margin: 0px; width: 185px; height: 0px; border-style: dashed; border-width: 1px; border-color: white; overflow: hidden;">'
    +'<div class="pt1"><a href="tiskHelen.html" class="odkaz1">Verze pro tisk</a></div>'
  }
  if((c == '2')||(v == '2')){
		if(c!=0){
		  var browName = navigator.appName;
			if (browName=="Microsoft Internet Explorer" ){
			b.style.left = '190px';}
			else
			{b.style.left = '191px';}
		}
	  b.innerHTML = '<p class="tema">2. Novoplatónismus</p>'
		+'<p align="left" class="prvni"><a href="novoPaL.html" class="prvni">A. Prameny a literatura</a></p>' 
		+'<p align="left" class="prvni"><a href="novo1obnoveni.html" class="prvni">B. Obnovení starých tradic</a></p>'
      +'<p align="left" class="druhy"><a href="novo1.html" class="druhy">a. Oživení pýthagoreismu v 1. st. pø.</a></p>'
		+'<p align="left" class="druhy"><a href="novo2.html" class="druhy">b. Pøedstavitelé novopýthagoreismu</a></p>'
		+'<p align="left" class="prvni"><a href="novo3.html" class="prvni">C. Obecná charakteristika novoplatónismu</a></p>'
		+'<p align="left" class="prvni"><a href="novo4.html" class="prvni">D. Novoplatónské univerzum</a></p>'
		+'<p align="left" class="druhy"><a href="novo4jedno.html" class="druhy">a. Jedno, Bùh, Dobro (&#7965;&#957;)</a></p>'
		+'<p align="left" class="druhy"><a href="novo4duch.html" class="druhy">b. Duch, Intelekt (&#925;&#959;&#8160;&#962;)</a></p>'
		+'<p align="left" class="druhy"><a href="novo4duse.html" class="druhy">c. Duše (&#936;&#965;&#967;&#8053;)</a></p>'
		+'<p align="left" class="druhy"><a href="novo4latka.html" class="druhy">d. Látka (&#8021;&#955;&#951;)</a></p>'
		+'<p align="left" class="prvni"><a href="novo6.html" class="prvni">E. Plótínos</a></p>'
		+'<p align="left" class="druhy"><a href="novo6.html" class="druhy">a. Život a dílo</a></p>'
		/*+'<p align="left" class="druhy"><a href="novo7.html" class="druhy">b. Plótínovy spisy</a></p>'*/
		+'<p align="left" class="druhy"><a href="novo8.html" class="druhy">b. Lidské bytí podle Plótína</a></p>'
		+'<p align="left" class="prvni"><a href="novo9.html" class="prvni">F. Další vývoj novoplatónismu</a></p>'
		+'<p align="left" class="druhy"><a href="novo10.html" class="druhy">a. Porfyrios z Tyru</a></p>'
		+'<p align="left" class="druhy"><a href="novo11.html" class="druhy">b. Syrská škola</a></p>'
		+'<p align="left" class="druhy"><a href="novo12.html" class="druhy">c. Athénská škola</a></p>'
		+'<p align="left" class="druhy"><a href="novo13.html" class="druhy">d. Konec athénské školy</a></p>'
		+'<hr style="padding: 0; margin: 0px; width: 185px; height: 0px; Border-style: dashed; border-width: 1px; border-color: white; overflow: hidden;">'
    +'<div class="pt1"><a href="tiskNovo.html" class="odkaz1">Verze pro tisk</a></div>' 
  }
  if((c == '3')||(v == '3')){
		if(c!=0){
		  var browName = navigator.appName;
			if (browName=="Microsoft Internet Explorer" ){
			b.style.left = '399px';}
			else
			{b.style.left = '393px';}
		}
	  b.innerHTML = '<p class="tema">3. Køes�anská filosofie v antice</p>'
		+'<p align="left" class="prvni"><a href="kfPaL.html" class="prvni">A. Prameny a literatura</a></p>'
		+'<p align="left" class="prvni"><a href="kf.html" class="prvni">B. Filosofie a køes�anství</a></p>'
      /* +'<p align="left" class="druhy"><a href="kf1.html" class="druhy">a. Filón z Alexandrie (1. pol. 1. st.)</a></p>'
		+'<p align="left" class="druhy"><a href="kf2.html" class="druhy">b. Gnósticismus (1. - 3. st.)</a></p>'
		+'<p align="left" class="druhy"><a href="kf3.html" class="druhy">c. Manicheismus (3. </a></p>'
		+'<p align="left" class="prvni"><a href="kf4.html" class="prvni">Apologeti a vztah náboženství a filosofi</a></p>' */
		+'<p align="left" class="prvni"><a href="kf5patr.html" class="prvni">C. Patristika - poèátky</a></p>'
		+'<p align="left" class="druhy"><a href="kf5gnos.html" class="druhy">a. Gnósticismus, manicheismus</a></p>'
		+'<p align="left" class="druhy"><a href="kf5.html" class="druhy">b. Tertulliánus</a></p>'
		+'<p align="left" class="druhy"><a href="kf6.html" class="druhy">c. Kléméns Alexandrijský</a></p>'
		+'<p align="left" class="druhy"><a href="kf7.html" class="druhy">d. Órigenés</a></p>'
		+'<p align="left" class="prvni"><a href="kf8.html" class="prvni">D. Augustinus Aurelius</a></p>'
		/*+'<p align="left" class="druhy"><a href="kf8.html" class="druhy">a. Patristika</a></p>'*/
		+'<p align="left" class="druhy"><a href="kf9.html" class="druhy">a. Pojetí Boha</a></p>'
		+'<p align="left" class="druhy"><a href="kf10.html" class="druhy">b. Bùh a ideje</a></p>'
		+'<p align="left" class="druhy"><a href="kf11.html" class="druhy">c. Bùh a zlo</a></p>'
		+'<p align="left" class="druhy"><a href="kf12.html" class="druhy">d. <i>Predestinace</i> a svobodná vùle</a></p>'
		+'<p align="left" class="druhy"><a href="kf13.html" class="druhy">e. Vztah víry a rozumu</a></p>'
		+'<p align="left" class="druhy"><a href="kf14.html" class="druhy">f. Pojetí èasu</a></p>'		
		+'<p align="left" class="druhy"><a href="kf15.html" class="druhy">g. Nový pohled na dìjiny</a></p>'
		+'<hr style="padding: 0; margin: 0px; width: 185px; height: 0px; Border-style: dashed; border-width: 1px; border-color: white; overflow: hidden;">'
    +'<div class="pt1"><a href="tiskKF.html" class="odkaz1">Verze pro tisk</a></div>'
  }
  if((c == '4')||(v == '4')){
			var browName = navigator.appName;
			if (browName=="Microsoft Internet Explorer" ){
			b.style.left = '620px';}
			else
			{b.style.left = '627px';}
	  b.innerHTML = '<p class="tema">4. Pøechod od antiky ke støedovìku</p>'
		+'<p align="left" class="prvni"><a href="zPaL.html" class="prvni">A. Prameny a literatura</a></p>' 
		+'<p align="left" class="prvni"><a href="zPrenos.html" class="prvni">B. Problém pøenosu antické vzdìlanosti</a></p>'		
		+'<p align="left" class="druhy"><a href="zEncykl.html" class="druhy">a. Kompendia, slovníky a encyklopedie</a></p>'
		+'<p align="left" class="druhy"><a href="zArtes.html" class="druhy">b. "Septem artes liberales"</a></p>'
		+'<p align="left" class="druhy"><a href="zArtesAut.html" class="druhy">c. Významní autoøi</a></p>'
		+'<p align="left" class="prvni"><a href="z1.html" class="prvni">C. Pseudo-Dionýsios Areopagítés</a></p>'
    +'<p align="left" class="druhy"><a href="z2.html" class="druhy">a. Novoplatónské motivy</a></p>'
		+'<p align="left" class="druhy"><a href="z3.html" class="druhy">b. Pozitivní a negativní teologie</a></p>'
		/* +'<p align="left" class="druhy"><a href="z4.html" class="druhy">c. Negativní (apofatická) teologie</a></p>' */
		+'<p align="left" class="druhy"><a href="z5.html" class="druhy">c. Pseudo-Dionýsiùv vliv</a></p>'
		+'<p align="left" class="prvni"><a href="z9.html" class="prvni">D. Boëthius</a></p>'
		+'<p align="left" class="druhy"><a href="z10.html" class="druhy">a. Život a vzdìlání</a></p>'
		+'<p align="left" class="druhy"><a href="z11.html" class="druhy">b. Pøekladatelská èinnost</a></p>'
		+'<p align="left" class="druhy"><a href="z12.html" class="druhy">c. <i>Opuscula sacra</i></a></p>'
		+'<p align="left" class="druhy"><a href="z13.html" class="druhy">d. <i>Filosofie utìšitelka</i></a></p>'
		+'<hr style="padding: 0; margin: 0px; width: 185px; height: 0px; Border-style: dashed; border-width: 1px; border-color: white; overflow: hidden;">'
    +'<div class="pt1"><a href="tiskZ.html" class="odkaz1">Verze pro tisk</a></div>'
  }
  if((c == '5')||(v == '5')){
		if(c!=0){
		  var browName = navigator.appName;
			if (browName=="Microsoft Internet Explorer" ){
			b.style.left = '30px';}
			else
			{b.style.left = '30px';}
		}
	  b.innerHTML = '<p class="tema">5. Úvod ke støedovìké filosofii</p>'
		+'<p align="left" class="prvni"><a href="usfPaL.html" class="prvni">A. Prameny a literatura</a></p>' 
		+'<p align="left" class="prvni"><a href="usf1.html" class="prvni">B. Pojmové, geografické a èasové vymezení støedovìké filosofie</a></p>'
    +'<p align="left" class="druhy"><a href="usf1.html" class="druhy">a. Pojem støedovìku a historické a geografické vymezení</a></p>'
		+'<p align="left" class="druhy"><a href="usf2.html" class="druhy">b. Periodizace støedovìké filosofie</a></p>'
		/* +'<p align="left" class="prvni"><a href="usf3.html" class="prvni">C. Zdroje a vlivy urèující støedovìkou filosofii</a></p>' */
		+'<p align="left" class="prvni"><a href="usf3.html" class="prvni">C. Latina jako jazyk vzdìlanosti</a></p>'
		+'<p align="left" class="druhy"><a href="usf4.html" class="druhy">a. Šíøení aristotelských pøekladù</a></p>'
		/*+'<p align="left" class="druhy"><a href="usf5.html" class="druhy">b. Znalost Platóna</a></p>' */
		+'<p align="left" class="prvni"><a href="usf7.html" class="prvni">D. Køes�anství - podnìty a omezení pro filosofii</a></p>'
		+'<p align="left" class="druhy"><a href="usf6.html" class="druhy">a. Spor o dialektiku</a></p>'
		+'<p align="left" class="druhy"><a href="usf8.html" class="druhy">b. Petr Damián - dialektika a Boží všemohoucnost I</a></p>'
		+'<p align="left" class="druhy"><a href="usfGhaz.html" class="druhy">c. Al-Ghazálí - dialektika a Boží všemohoucnost II</a></p>'
		+'<p align="left" class="druhy"><a href="usf9.html" class="druhy">d. Dialektika a Berengar, Anselm, Abélard, Bernard, Akvinský</a></p>'
		+'<p align="left" class="prvni"><a href="usf10.html" class="prvni">E. Metoda a organizace studia</a></p>'
		+'<p align="left" class="druhy"><a href="usf10.html" class="druhy">a. Metoda - komentáøe a disputace</a></p>'
		+'<p align="left" class="druhy"><a href="usf11.html" class="druhy">b. Paøížská univerzita</a></p>'
		+'<hr style="padding: 0; margin: 0px; width: 185px; height: 0px; Border-style: dashed; border-width: 1px; border-color: white; overflow: hidden;">'
    +'<div class="pt1"><a href="tiskUsf.html" class="odkaz1">Verze pro tisk</a></div>'
  }
  if((c == '6')||(v == '6')){
		if(c!=0){
		  var browName = navigator.appName;
			if (browName=="Microsoft Internet Explorer" ){
			b.style.left = '255px';}
			else
			{b.style.left = '257px';}
		}
	  b.innerHTML = '<p class="tema">6. Dùkazy existence Boha</p>'
		+'<p align="left" class="prvni"><a href="dbPaL.html" class="prvni">A. Prameny a literatura</a></p>'
		+'<p align="left" class="prvni"><a href="db2a.html" class="prvni">B. Proè a jak se dokazuje Bùh?</a></p>'
		+'<p align="left" class="druhy"><a href="db2a.html" class="druhy">a. Dùvody dokazování Boha</a></p>'
		+'<p align="left" class="druhy"><a href="db2b.html" class="druhy">b. Typy dùkazù Boha</a></p>'
    +'<p align="left" class="prvni"><a href="db3.html" class="prvni">C. Dùkazy existence Boha v antické filosofii (4. - 3. st. pø. n. l.)</a></p>'
		+'<p align="left" class="prvni"><a href="db4.html" class="prvni">D. Augustinùv "noologický" argument (4. - 5. st.)</a></p>'
		+'<p align="left" class="prvni"><a href="db5.html" class="prvni">E. Anselm z Canterbury (11. st.)</a></p>'
		+'<p align="left" class="druhy"><a href="db6.html" class="druhy">a. "Ontologický" dùkaz</a></p>'
		+'<p align="left" class="druhy"><a href="db7.html" class="druhy">b. Námitky vùèi Anselmovu argumentu</a></p>'
		+'<p align="left" class="prvni"><a href="db8.html" class="prvni">F. Tomáš Akvinský (13. st.)</a></p>'
		+'<p align="left" class="druhy"><a href="db9.html" class="druhy">a. Tomášových "pìt cest"</a></p>'
		+'<p align="left" class="druhy"><a href="dbKD.html" class="druhy">b. Analýza kosmologických dùkazù</a></p>'
		+'<p align="left" class="druhy"><a href="db10.html" class="druhy">c. Srovnání metodologických východisek Anselma a Tomáše</a></p>'
		+'<p align="left" class="prvni"><a href="db11.html" class="prvni">G. Jan Duns Scotus (13. - 14. st.)</a></p>'
		+'<hr style="padding: 0; margin: 0px; width: 185px; height: 0px; Border-style: dashed; border-width: 1px; border-color: white; overflow: hidden;">'
    +'<div class="pt1"><a href="tiskDB.html" class="odkaz1">Verze pro tisk</a></div>'
  }
  if((c == '7')||(v == '7')){
	  if(c!=0){
		  var browName = navigator.appName;
			if (browName=="Microsoft Internet Explorer" ){
			b.style.left = '450px';}
			else
			{b.style.left = '454px';}
		}
		b.innerHTML = '<p class="tema">7. Petr Abélard</p>'
		+'<p align="left" class="prvni"><a href="paPaL.html" class="prvni">A. Prameny a literatura</a></p>'
		+'<p align="left" class="prvni"><a href="pa.html" class="prvni">B. Abélard na webu</a></p>'
		+'<p align="left" class="prvni"><a href="pa1.html" class="prvni">C. Život a dílo</a></p>'
    +'<p align="left" class="druhy"><a href="pa1.html" class="druhy">a. Abélardùv pùvod a jeho školy</a></p>'
		+'<p align="left" class="druhy"><a href="pa2.html" class="druhy">b. Abélard a Heloisa</a></p>'
		+'<p align="left" class="druhy"><a href="pa3.html" class="druhy">c. Abélard mnich a filosof</a></p>'
		+'<p align="left" class="druhy"><a href="pa4.html" class="druhy">d. Chronologie Abélardových filosofických a teologických dìl</a></p>'
		/*+'<p align="left" class="prvni"><a href="pa5.html" class="prvni">Filosofie</a></p>'*/
		+'<p align="left" class="prvni"><a href="pa6.html" class="prvni">D. Logika a sémantika</a></p>'
		+'<p align="left" class="prvni"><a href="pa7.html" class="prvni">E. Vztah víry a rozumu</a></p>'
		+'<p align="left" class="druhy"><a href="pa8.html" class="druhy">a. <i>Ano a ne</i></a></p>'
		+'<p align="left" class="druhy"><a href="pa9.html" class="druhy">b. Køes�anská víra a pohanská moudrost</a></p>'
		+'<p align="left" class="prvni"><a href="paTroj.html" class="prvni">F. Teologické úvahy</a></p>'
		+'<p align="left" class="druhy"><a href="paTroj.html" class="druhy">a. Názory o Trojici</a></p>'
		+'<p align="left" class="druhy"><a href="paDB.html" class="druhy">b. Dùkaz Boha, dìdièný høích</a></p>'
		+'<p align="left" class="prvni"><a href="pa12.html" class="prvni">G. Etika</a></p>'
		+'<p align="left" class="druhy"><a href="pa12.html" class="druhy">a. Abélardova etika ve vztahu k náboženství</a></p>'
		+'<p align="left" class="druhy"><a href="pa13.html" class="druhy">b. Pojetí ctnosti a høíchu</a></p>'
		/*+'<p align="left" class="druhy"><a href="pa14.html" class="druhy">c. Smysl trestu</a></p>'*/
		+'<p align="left" class="prvni"><a href="pa15.html" class="prvni">H. Bernard z Clairvaux - Abélardùv kritik</a></p>'
		+'<hr style="padding: 0; margin: 0px; width: 185px; height: 0px; Border-style: dashed; border-width: 1px; border-color: white; overflow: hidden;">'
    +'<div class="pt1"><a href="tiskPa.html" class="odkaz1">Verze pro tisk</a></div>'
  }
  if((c == '8')||(v == '8')){
	  if(c!=0){
		  var browName = navigator.appName;
			if (browName=="Microsoft Internet Explorer" ){
			b.style.left = '577px';}
			else
			{b.style.left = '584px';}
		}
	  b.innerHTML = '<p class="tema">8. Problematika univerzálií</p>'
		+'<p align="left" class="prvni"><a href="PuPaL.html" class="prvni">A. Prameny a literatura</a></p>'
		+'<p align="left" class="prvni"><a href="Pu.html" class="prvni">B. Problém s "univerzálním"</a></p>'
    +'<p align="left" class="druhy"><a href="Pu1.html" class="druhy">a. Porfyriova <i>Eisagógé</i> (3. st.)</a></p>'
		+'<p align="left" class="druhy"><a href="Pu2.html" class="druhy">b. Porfyriovy otázky</a></p>'
		+'<p align="left" class="prvni"><a href="Pu3.html" class="prvni">C. Boëthius (5. - 6. st.)</a></p>'
		+'<p align="left" class="druhy"><a href="Pu3.html" class="druhy">a. Pro a proti reálné existenci obecnin</a></p>'
		+'<p align="left" class="druhy"><a href="Pu4.html" class="druhy">b. Øešení aporie a odpovìdi na tøi otázky</a></p>'
		+'<p align="left" class="prvni"><a href="Pu5.html" class="prvni">D. Roscellinus (11. - 12. st.)</a></p>'
		+'<p align="left" class="druhy"><a href="Pu5.html" class="druhy">a. Život a základní rysy myšlení</a></p>'
	  +'<p align="left" class="druhy"><a href="Pu6.html" class="druhy">b. Realita a øeè podle nominalismu</a></p>'
    +'<p align="left" class="druhy"><a href="Pu7.html" class="druhy">c. Dùsledek nominalismu - triteismus</a></p>'
		+'<p align="left" class="prvni"><a href="Pu8.html" class="prvni">E. Vilém ze Champeaux (11. - 12. st.)</a></p>'
		+'<p align="left" class="druhy"><a href="Pu8.html" class="druhy">a. Realismus a trojjedinost</a></p>'
		+'<p align="left" class="druhy"><a href="Pu9.html" class="druhy">b. Vilémùv realismus a Abélardova kritika</a></p>'
		+'<p align="left" class="prvni"><a href="Pu11.html" class="prvni">F. Petr Abélard (11. - 12. st.)</a></p>'
		+'<p align="left" class="druhy"><a href="Pu11.html" class="druhy">a. Ètvrtá otázka k univerzáliím</a></p>'		
		+'<p align="left" class="druhy"><a href="Pu12.html" class="druhy">b. Ontologická rovina problému</a></p>'	
		+'<p align="left" class="druhy"><a href="Pu13.html" class="druhy">c. Sémantická rovina problému</a></p>'	
		+'<p align="left" class="prvni"><a href="Pu14.html" class="prvni">G. Umírnìný realismus 13. st.</a></p>'	
		+'<p align="left" class="prvni"><a href="Pu15.html" class="prvni">H. Vilém Occam (13. - 14. st.)</a></p>'	
		+'<p align="left" class="druhy"><a href="Pu15.html" class="druhy">a. Existují pouze individua</a></p>'	
		/*+'<p align="left" class="druhy"><a href="Pu16.html" class="druhy">b. Námitky proti reálné existenci obecného</a></p>'*/	
		+'<p align="left" class="druhy"><a href="Pu17.html" class="druhy">b. Univerzálie jako znaky</a></p>'	
		+'<hr style="padding: 0; margin: 0px; width: 185px; height: 0px; Border-style: dashed; border-width: 1px; border-color: white; overflow: hidden;">'
    +'<div class="pt1"><a href="tiskPu.html" class="odkaz1">Verze pro tisk</a></div>'
  }
  if((c == '9')||(v == '9')){
	  if(c!=0){
		  var browName = navigator.appName;
			if (browName=="Microsoft Internet Explorer" ){
			b.style.left = '760px';}
			else
			{b.style.left = '750px';}
		}
	  b.innerHTML = '<p class="tema">9. Tomáš Akvinský</p>'
		+'<p align="left" class="prvni"><a href="taPaL.html" class="prvni">A. Prameny a literatura</a></p>'
		+'<p align="left" class="prvni"><a href="ta.html" class="prvni">B. Obecná charakteristika Tomášova myšlení</a></p>'
    +'<p align="left" class="prvni"><a href="ta1.html" class="prvni">C. Život a spisy</a></p>'
    +'<p align="left" class="druhy"><a href="ta1.html" class="druhy">a. Studentská léta</a></p>'
		+'<p align="left" class="druhy"><a href="ta2.html" class="druhy">b. Uèitelské pùsobení v Paøíži</a></p>'
    +'<p align="left" class="druhy"><a href="ta3.html" class="druhy">c. Italská léta</a></p>'
		+'<p align="left" class="druhy"><a href="ta4.html" class="druhy">d. Druhé uèitelské pùsobení v Paøíži</a></p>'
    +'<p align="left" class="druhy"><a href="ta5.html" class="druhy">e. Poslední dny</a></p>'
		+'<p align="left" class="prvni"><a href="ta6.html" class="prvni">D. Metafyzika</a></p>'
    +'<p align="left" class="druhy"><a href="ta7.html" class="druhy">a. Aristotelské motivy v Tomášovì metafyzice</a></p>'
		+'<p align="left" class="druhy"><a href="ta8.html" class="druhy">b. Specifické Tomášovy metafyzické úvahy</a></p>'
    +'<p align="left" class="druhy"><a href="ta9.html" class="druhy">c. Transcendentálie</a></p>'
		+'<p align="left" class="druhy"><a href="ta10.html" class="druhy">d. Tomášovo pojetí bytí</a></p>'
    +'<p align="left" class="prvni"><a href="ta11.html" class="prvni">E. Filosofie a teologie</a></p>'
		+'<p align="left" class="druhy"><a href="ta11.html" class="druhy">a. Pøirozená teologie</a></p>'
    +'<p align="left" class="druhy"><a href="ta12.html" class="druhy">b. Zjevená teologie</a></p>'
		+'<p align="left" class="druhy"><a href="ta13.html" class="druhy">c. Vztah mezi pøirozenou a zjevenou teologií</a></p>'	
		+'<hr style="padding: 0; margin: 0px; width: 185px; height: 0px; Border-style: dashed; border-width: 1px; border-color: white; overflow: hidden;">'
    +'<div class="pt1"><a href="tiskTa.html" class="odkaz1">Verze pro tisk</a></div>'
  }
  if((c == '11')||(v == '11')){
	  b.innerHTML = '<p class="tema">Úvodní informace</p>'
		+'<p align="left" class="prvni"><a href="index.html" class="prvni">Úvodní slovo</a></p>'
		+'<p align="left" class="prvni"><a href="index-zdroje.html" class="prvni">Poznámka k použitým zdrojùm</a></p>'
  }	
  if((c == '12')||(v == '12')){
	  /* b.innerHTML = '<p align="left" class="prvni"><a href="../prameny.html" class="prvni">Prameny on-line</a></p>'
    +'<p align="left" class="druhy"><a href="../prameny.html#obsah0" class="druhy">The Online Books Page</a></p>'
		+'<p align="left" class="druhy"><a href="../prameny.html#obsah1" class="druhy">Projekt Perseus</a></p>'
		+'<p align="left" class="druhy"><a href="../prameny.html#obsah2" class="druhy">Internet Classics Archiv</a></p>'
		+'<p align="left" class="druhy"><a href="../prameny.html#obsah3" class="druhy">James J. O'+"'Donnell</a></p>"
		+'<p align="left" class="druhy"><a href="./prameny.html#obsah4" class="druhy">Sant'+"'Agostino</a></p>"
		+'<p align="left" class="druhy"><a href="prameny.html#obsah5" class="druhy">John Burnet: Early Greek Philosophy</a></p>' 
    +'<p align="left" class="druhy"><a href="../prameny.html#obsah5" class="druhy">Fysis</a></p>'
	  +'<p align="left" class="druhy"><a href="../prameny.html#obsah6" class="druhy">www.FILOSOF.cz</a></p>'
		+'<p align="left" class="druhy"><a href="../prameny.html#obsah7" class="druhy">Internet Medieval Sourcebook</a></p>'
		+'<hr style="padding: 0;margin: 0px; width: 185px; height: 0px; Border-style: dashed; border-width: 1px; border-color: white; overflow: hidden;">'
	  +'<div class="pt1"><a href="tiskPrameny.html" class="odkaz1">Verze pro tisk</a></div>'
		+'<hr style="padding: 0;margin: 0px; width: 185px; height: 0px; Border-style: dashed; border-width: 1px; border-color: white; overflow: hidden;">'
	  +'<div class="pt1"><a href="tiskPrameny.html" class="odkaz1">Verze pro tisk</a></div>' */
  }	
	if(v!=0){
    a.innerHTML = b.innerHTML;	
	}
	else
	{
	if((c != 11)&&(c != 12)){
	  var	pp = b.getElementsByTagName("div");
		pp[0].className = "odkaz2";
	  pp[0].removeChild(pp[0].firstChild);
		pp = b.getElementsByTagName("hr");
	  pp[0].parentNode.removeChild(pp[0]);
	  pp = b.getElementsByTagName("p");
	  for (var j=0;j<pp.length;j++){
	    if(pp[j].className == "prvni"){
		    pp[j].className = "prvni1";
			  pp[j].firstChild.className = "prvni1";
		  }
		  if(pp[j].className == "druhy"){
		    pp[j].className = "druhy1";
			  pp[j].firstChild.className = "druhy1";
		  }
		  if(pp[j].className == "treti"){
		    pp[j].className = "treti1";
		    pp[j].firstChild.className = "treti1";
		  }
	  }
    b.style.display = 'inline';
	}
	else
	{
	  a.innerHTML = b.innerHTML;
		b.style.display = 'none';
	}
	}
}	
function zpracuj(v) {
	 /*zacatek funkce pro zaobleni*/
   settings = {
      tl: { radius: 15 },
      tr: { radius: 15 },
      bl: { radius: 15 },
      br: { radius: 15 },
      antiAlias: true,
      autoPad: true
    } 	
   settings1 = {
      tl: { radius: 30 },
      tr: { radius: 10 },
      bl: { radius: 0 },
      br: { radius: 0 },
      antiAlias: true,
      autoPad: true
    } 
   settings2 = {
      tl: { radius: 0 },
      tr: { radius: 0 },
      bl: { radius: 30 },
      br: { radius: 30 },
      antiAlias: true,
      autoPad: true
    }			
   settings3 = {
      tl: { radius: 20 },
      tr: { radius: 20 },
      bl: { radius: 0 },
      br: { radius: 0 },
      antiAlias: true,
      autoPad: true
    }				
   settings4 = {
      tl: { radius: 0 },
      tr: { radius: 0 },
      bl: { radius: 15 },
      br: { radius: 15 },
      antiAlias: true,
      autoPad: true
    }		
    var divObj = document.getElementById("obsah");	
		var divObj1 = document.getElementById("nadpis");	
		var divObj2 = document.getElementById("nadpis1");	
		var divObj3 = document.getElementById("menuB");	
		var divObj4 = document.getElementById("pruhvodorovny");
		
    var cornersObj = new curvyCorners(settings, divObj);
		var cornersObj1 = new curvyCorners(settings1, divObj1);		
		var cornersObj2 = new curvyCorners(settings2, divObj2);	
		var cornersObj3 = new curvyCorners(settings3, divObj3);
		var cornersObj4 = new curvyCorners(settings4, divObj4);
		
    cornersObj.applyCornersToAll();
		cornersObj1.applyCornersToAll();
		cornersObj2.applyCornersToAll();
		cornersObj3.applyCornersToAll();
    cornersObj4.applyCornersToAll();
/*konec funkce pro zaobleni*/	
	ukaz('0',v);
	sestrel();
}
 /****************************************************************
  *                                                              *
  *  curvyCorners                                                *
  *  ------------                                                *
  *                                                              *
  *  This script generates rounded corners for your divs.        *
  *                                                              *
  *  Version 1.2.9                                               *
  *  Copyright (c) 2006 Cameron Cooke                            *
  *  By: Cameron Cooke and Tim Hutchison.                        *
  *                                                              *
  *                                                              *
  *  Website: http://www.curvycorners.net                        *
  *  Email:   info@totalinfinity.com                             *
  *  Forum:   http://www.curvycorners.net/forum/                 *
  *                                                              *
  *                                                              *
  *  This library is free software; you can redistribute         *
  *  it and/or modify it under the terms of the GNU              *
  *  Lesser General Public License as published by the           *
  *  Free Software Foundation; either version 2.1 of the         *
  *  License, or (at your option) any later version.             *
  *                                                              *
  *  This library is distributed in the hope that it will        *
  *  be useful, but WITHOUT ANY WARRANTY; without even the       *
  *  implied warranty of MERCHANTABILITY or FITNESS FOR A        *
  *  PARTICULAR PURPOSE. See the GNU Lesser General Public       *
  *  License for more details.                                   *
  *                                                              *
  *  You should have received a copy of the GNU Lesser           *
  *  General Public License along with this library;             *
  *  Inc., 59 Temple Place, Suite 330, Boston,                   *
  *  MA 02111-1307 USA                                           *
  *                                                              *
  ****************************************************************/
var isIE = navigator.userAgent.toLowerCase().indexOf("msie") > -1; var isMoz = document.implementation && document.implementation.createDocument; var isSafari = ((navigator.userAgent.toLowerCase().indexOf('safari')!=-1)&&(navigator.userAgent.toLowerCase().indexOf('mac')!=-1))?true:false; function curvyCorners()
{ if(typeof(arguments[0]) != "object") throw newCurvyError("First parameter of curvyCorners() must be an object."); if(typeof(arguments[1]) != "object" && typeof(arguments[1]) != "string") throw newCurvyError("Second parameter of curvyCorners() must be an object or a class name."); if(typeof(arguments[1]) == "string")
{ var startIndex = 0; var boxCol = getElementsByClass(arguments[1]);}
else
{ var startIndex = 1; var boxCol = arguments;}
var curvyCornersCol = new Array(); if(arguments[0].validTags)
var validElements = arguments[0].validTags; else
var validElements = ["div"]; for(var i = startIndex, j = boxCol.length; i < j; i++)
{ var currentTag = boxCol[i].tagName.toLowerCase(); if(inArray(validElements, currentTag) !== false)
{ curvyCornersCol[curvyCornersCol.length] = new curvyObject(arguments[0], boxCol[i]);}
}
this.objects = curvyCornersCol; this.applyCornersToAll = function()
{ for(var x = 0, k = this.objects.length; x < k; x++)
{ this.objects[x].applyCorners();}
}
}
function curvyObject()
{ this.box = arguments[1]; this.settings = arguments[0]; this.topContainer = null; this.bottomContainer = null; this.masterCorners = new Array(); this.contentDIV = null; var boxHeight = get_style(this.box, "height", "height"); var boxWidth = get_style(this.box, "width", "width"); var borderWidth = get_style(this.box, "borderTopWidth", "border-top-width"); var borderColour = get_style(this.box, "borderTopColor", "border-top-color"); var boxColour = get_style(this.box, "backgroundColor", "background-color"); var backgroundImage = get_style(this.box, "backgroundImage", "background-image"); var boxPosition = get_style(this.box, "position", "position"); var boxPadding = get_style(this.box, "paddingTop", "padding-top"); this.boxHeight = parseInt(((boxHeight != "" && boxHeight != "auto" && boxHeight.indexOf("%") == -1)? boxHeight.substring(0, boxHeight.indexOf("px")) : this.box.scrollHeight)); this.boxWidth = parseInt(((boxWidth != "" && boxWidth != "auto" && boxWidth.indexOf("%") == -1)? boxWidth.substring(0, boxWidth.indexOf("px")) : this.box.scrollWidth)); this.borderWidth = parseInt(((borderWidth != "" && borderWidth.indexOf("px") !== -1)? borderWidth.slice(0, borderWidth.indexOf("px")) : 0)); this.boxColour = format_colour(boxColour); this.boxPadding = parseInt(((boxPadding != "" && boxPadding.indexOf("px") !== -1)? boxPadding.slice(0, boxPadding.indexOf("px")) : 0)); this.borderColour = format_colour(borderColour); this.borderString = this.borderWidth + "px" + " solid " + this.borderColour; this.backgroundImage = ((backgroundImage != "none")? backgroundImage : ""); this.boxContent = this.box.innerHTML; if(boxPosition != "absolute") this.box.style.position = "relative"; this.box.style.padding = "0px"; if(isIE && boxWidth == "auto" && boxHeight == "auto") this.box.style.width = "100%"; if(this.settings.autoPad == true && this.boxPadding > 0)
this.box.innerHTML = ""; this.applyCorners = function()
{ for(var t = 0; t < 2; t++)
{ switch(t)
{ case 0:
if(this.settings.tl || this.settings.tr)
{ var newMainContainer = document.createElement("DIV"); newMainContainer.style.width = "100%"; newMainContainer.style.fontSize = "1px"; newMainContainer.style.overflow = "hidden"; newMainContainer.style.position = "absolute"; newMainContainer.style.paddingLeft = this.borderWidth + "px"; newMainContainer.style.paddingRight = this.borderWidth + "px"; var topMaxRadius = Math.max(this.settings.tl ? this.settings.tl.radius : 0, this.settings.tr ? this.settings.tr.radius : 0); newMainContainer.style.height = topMaxRadius + "px"; newMainContainer.style.top = 0 - topMaxRadius + "px"; newMainContainer.style.left = 0 - this.borderWidth + "px"; this.topContainer = this.box.appendChild(newMainContainer);}
break; case 1:
if(this.settings.bl || this.settings.br)
{ var newMainContainer = document.createElement("DIV"); newMainContainer.style.width = "100%"; newMainContainer.style.fontSize = "1px"; newMainContainer.style.overflow = "hidden"; newMainContainer.style.position = "absolute"; newMainContainer.style.paddingLeft = this.borderWidth + "px"; newMainContainer.style.paddingRight = this.borderWidth + "px"; var botMaxRadius = Math.max(this.settings.bl ? this.settings.bl.radius : 0, this.settings.br ? this.settings.br.radius : 0); newMainContainer.style.height = botMaxRadius + "px"; newMainContainer.style.bottom = 0 - botMaxRadius + "px"; newMainContainer.style.left = 0 - this.borderWidth + "px"; this.bottomContainer = this.box.appendChild(newMainContainer);}
break;}
}
if(this.topContainer) this.box.style.borderTopWidth = "0px"; if(this.bottomContainer) this.box.style.borderBottomWidth = "0px"; var corners = ["tr", "tl", "br", "bl"]; for(var i in corners)
{ if(i > -1 < 4)
{ var cc = corners[i]; if(!this.settings[cc])
{ if(((cc == "tr" || cc == "tl") && this.topContainer != null) || ((cc == "br" || cc == "bl") && this.bottomContainer != null))
{ var newCorner = document.createElement("DIV"); newCorner.style.position = "relative"; newCorner.style.fontSize = "1px"; newCorner.style.overflow = "hidden"; if(this.backgroundImage == "")
newCorner.style.backgroundColor = this.boxColour; else
newCorner.style.backgroundImage = this.backgroundImage; switch(cc)
{ case "tl":
newCorner.style.height = topMaxRadius - this.borderWidth + "px"; newCorner.style.marginRight = this.settings.tr.radius - (this.borderWidth*2) + "px"; newCorner.style.borderLeft = this.borderString; newCorner.style.borderTop = this.borderString; newCorner.style.left = -this.borderWidth + "px"; break; case "tr":
newCorner.style.height = topMaxRadius - this.borderWidth + "px"; newCorner.style.marginLeft = this.settings.tl.radius - (this.borderWidth*2) + "px"; newCorner.style.borderRight = this.borderString; newCorner.style.borderTop = this.borderString; newCorner.style.backgroundPosition = "-" + (topMaxRadius + this.borderWidth) + "px 0px"; newCorner.style.left = this.borderWidth + "px"; break; case "bl":
newCorner.style.height = botMaxRadius - this.borderWidth + "px"; newCorner.style.marginRight = this.settings.br.radius - (this.borderWidth*2) + "px"; newCorner.style.borderLeft = this.borderString; newCorner.style.borderBottom = this.borderString; newCorner.style.left = -this.borderWidth + "px"; newCorner.style.backgroundPosition = "-" + (this.borderWidth) + "px -" + (this.boxHeight + (botMaxRadius + this.borderWidth)) + "px"; break; case "br":
newCorner.style.height = botMaxRadius - this.borderWidth + "px"; newCorner.style.marginLeft = this.settings.bl.radius - (this.borderWidth*2) + "px"; newCorner.style.borderRight = this.borderString; newCorner.style.borderBottom = this.borderString; newCorner.style.left = this.borderWidth + "px"
newCorner.style.backgroundPosition = "-" + (botMaxRadius + this.borderWidth) + "px -" + (this.boxHeight + (botMaxRadius + this.borderWidth)) + "px"; break;}
}
}
else
{ if(this.masterCorners[this.settings[cc].radius])
{ var newCorner = this.masterCorners[this.settings[cc].radius].cloneNode(true);}
else
{ var newCorner = document.createElement("DIV"); newCorner.style.height = this.settings[cc].radius + "px"; newCorner.style.width = this.settings[cc].radius + "px"; newCorner.style.position = "absolute"; newCorner.style.fontSize = "1px"; newCorner.style.overflow = "hidden"; var borderRadius = parseInt(this.settings[cc].radius - this.borderWidth); for(var intx = 0, j = this.settings[cc].radius; intx < j; intx++)
{ if((intx +1) >= borderRadius)
var y1 = -1; else
var y1 = (Math.floor(Math.sqrt(Math.pow(borderRadius, 2) - Math.pow((intx+1), 2))) - 1); if(borderRadius != j)
{ if((intx) >= borderRadius)
var y2 = -1; else
var y2 = Math.ceil(Math.sqrt(Math.pow(borderRadius,2) - Math.pow(intx, 2))); if((intx+1) >= j)
var y3 = -1; else
var y3 = (Math.floor(Math.sqrt(Math.pow(j ,2) - Math.pow((intx+1), 2))) - 1);}
if((intx) >= j)
var y4 = -1; else
var y4 = Math.ceil(Math.sqrt(Math.pow(j ,2) - Math.pow(intx, 2))); if(y1 > -1) this.drawPixel(intx, 0, this.boxColour, 100, (y1+1), newCorner, -1, this.settings[cc].radius); if(borderRadius != j)
{ for(var inty = (y1 + 1); inty < y2; inty++)
{ if(this.settings.antiAlias)
{ if(this.backgroundImage != "")
{ var borderFract = (pixelFraction(intx, inty, borderRadius) * 100); if(borderFract < 30)
{ this.drawPixel(intx, inty, this.borderColour, 100, 1, newCorner, 0, this.settings[cc].radius);}
else
{ this.drawPixel(intx, inty, this.borderColour, 100, 1, newCorner, -1, this.settings[cc].radius);}
}
else
{ var pixelcolour = BlendColour(this.boxColour, this.borderColour, pixelFraction(intx, inty, borderRadius)); this.drawPixel(intx, inty, pixelcolour, 100, 1, newCorner, 0, this.settings[cc].radius, cc);}
}
}
if(this.settings.antiAlias)
{ if(y3 >= y2)
{ if (y2 == -1) y2 = 0; this.drawPixel(intx, y2, this.borderColour, 100, (y3 - y2 + 1), newCorner, 0, 0);}
}
else
{ if(y3 >= y1)
{ this.drawPixel(intx, (y1 + 1), this.borderColour, 100, (y3 - y1), newCorner, 0, 0);}
}
var outsideColour = this.borderColour;}
else
{ var outsideColour = this.boxColour; var y3 = y1;}
if(this.settings.antiAlias)
{ for(var inty = (y3 + 1); inty < y4; inty++)
{ this.drawPixel(intx, inty, outsideColour, (pixelFraction(intx, inty , j) * 100), 1, newCorner, ((this.borderWidth > 0)? 0 : -1), this.settings[cc].radius);}
}
}
this.masterCorners[this.settings[cc].radius] = newCorner.cloneNode(true);}
if(cc != "br")
{ for(var t = 0, k = newCorner.childNodes.length; t < k; t++)
{ var pixelBar = newCorner.childNodes[t]; var pixelBarTop = parseInt(pixelBar.style.top.substring(0, pixelBar.style.top.indexOf("px"))); var pixelBarLeft = parseInt(pixelBar.style.left.substring(0, pixelBar.style.left.indexOf("px"))); var pixelBarHeight = parseInt(pixelBar.style.height.substring(0, pixelBar.style.height.indexOf("px"))); if(cc == "tl" || cc == "bl"){ pixelBar.style.left = this.settings[cc].radius -pixelBarLeft -1 + "px";}
if(cc == "tr" || cc == "tl"){ pixelBar.style.top = this.settings[cc].radius -pixelBarHeight -pixelBarTop + "px";}
switch(cc)
{ case "tr":
pixelBar.style.backgroundPosition = "-" + Math.abs((this.boxWidth - this.settings[cc].radius + this.borderWidth) + pixelBarLeft) + "px -" + Math.abs(this.settings[cc].radius -pixelBarHeight -pixelBarTop - this.borderWidth) + "px"; break; case "tl":
pixelBar.style.backgroundPosition = "-" + Math.abs((this.settings[cc].radius -pixelBarLeft -1) - this.borderWidth) + "px -" + Math.abs(this.settings[cc].radius -pixelBarHeight -pixelBarTop - this.borderWidth) + "px"; break; case "bl":
pixelBar.style.backgroundPosition = "-" + Math.abs((this.settings[cc].radius -pixelBarLeft -1) - this.borderWidth) + "px -" + Math.abs((this.boxHeight + this.settings[cc].radius + pixelBarTop) -this.borderWidth) + "px"; break;}
}
}
}
if(newCorner)
{ switch(cc)
{ case "tl":
if(newCorner.style.position == "absolute") newCorner.style.top = "0px"; if(newCorner.style.position == "absolute") newCorner.style.left = "0px"; if(this.topContainer) this.topContainer.appendChild(newCorner); break; case "tr":
if(newCorner.style.position == "absolute") newCorner.style.top = "0px"; if(newCorner.style.position == "absolute") newCorner.style.right = "0px"; if(this.topContainer) this.topContainer.appendChild(newCorner); break; case "bl":
if(newCorner.style.position == "absolute") newCorner.style.bottom = "0px"; if(newCorner.style.position == "absolute") newCorner.style.left = "0px"; if(this.bottomContainer) this.bottomContainer.appendChild(newCorner); break; case "br":
if(newCorner.style.position == "absolute") newCorner.style.bottom = "0px"; if(newCorner.style.position == "absolute") newCorner.style.right = "0px"; if(this.bottomContainer) this.bottomContainer.appendChild(newCorner); break;}
}
}
}
var radiusDiff = new Array(); radiusDiff["t"] = Math.abs(this.settings.tl.radius - this.settings.tr.radius)
radiusDiff["b"] = Math.abs(this.settings.bl.radius - this.settings.br.radius); for(z in radiusDiff)
{ if(z == "t" || z == "b")
{ if(radiusDiff[z])
{ var smallerCornerType = ((this.settings[z + "l"].radius < this.settings[z + "r"].radius)? z +"l" : z +"r"); var newFiller = document.createElement("DIV"); newFiller.style.height = radiusDiff[z] + "px"; newFiller.style.width = this.settings[smallerCornerType].radius+ "px"
newFiller.style.position = "absolute"; newFiller.style.fontSize = "1px"; newFiller.style.overflow = "hidden"; newFiller.style.backgroundColor = this.boxColour; switch(smallerCornerType)
{ case "tl":
newFiller.style.bottom = "0px"; newFiller.style.left = "0px"; newFiller.style.borderLeft = this.borderString; this.topContainer.appendChild(newFiller); break; case "tr":
newFiller.style.bottom = "0px"; newFiller.style.right = "0px"; newFiller.style.borderRight = this.borderString; this.topContainer.appendChild(newFiller); break; case "bl":
newFiller.style.top = "0px"; newFiller.style.left = "0px"; newFiller.style.borderLeft = this.borderString; this.bottomContainer.appendChild(newFiller); break; case "br":
newFiller.style.top = "0px"; newFiller.style.right = "0px"; newFiller.style.borderRight = this.borderString; this.bottomContainer.appendChild(newFiller); break;}
}
var newFillerBar = document.createElement("DIV"); newFillerBar.style.position = "relative"; newFillerBar.style.fontSize = "1px"; newFillerBar.style.overflow = "hidden"; newFillerBar.style.backgroundColor = this.boxColour; newFillerBar.style.backgroundImage = this.backgroundImage; switch(z)
{ case "t":
if(this.topContainer)
{ if(this.settings.tl.radius && this.settings.tr.radius)
{ newFillerBar.style.height = topMaxRadius - this.borderWidth + "px"; newFillerBar.style.marginLeft = this.settings.tl.radius - this.borderWidth + "px"; newFillerBar.style.marginRight = this.settings.tr.radius - this.borderWidth + "px"; newFillerBar.style.borderTop = this.borderString; if(this.backgroundImage != "")
newFillerBar.style.backgroundPosition = "-" + (topMaxRadius + this.borderWidth) + "px 0px"; this.topContainer.appendChild(newFillerBar);}
this.box.style.backgroundPosition = "0px -" + (topMaxRadius - this.borderWidth) + "px";}
break; case "b":
if(this.bottomContainer)
{ if(this.settings.bl.radius && this.settings.br.radius)
{ newFillerBar.style.height = botMaxRadius - this.borderWidth + "px"; newFillerBar.style.marginLeft = this.settings.bl.radius - this.borderWidth + "px"; newFillerBar.style.marginRight = this.settings.br.radius - this.borderWidth + "px"; newFillerBar.style.borderBottom = this.borderString; if(this.backgroundImage != "")
newFillerBar.style.backgroundPosition = "-" + (botMaxRadius + this.borderWidth) + "px -" + (this.boxHeight + (topMaxRadius + this.borderWidth)) + "px"; this.bottomContainer.appendChild(newFillerBar);}
}
break;}
}
}
if(this.settings.autoPad == true && this.boxPadding > 0)
{ var contentContainer = document.createElement("DIV"); contentContainer.style.position = "relative"; contentContainer.innerHTML = this.boxContent; contentContainer.className = "autoPadDiv"; var topPadding = Math.abs(topMaxRadius - this.boxPadding); var botPadding = Math.abs(botMaxRadius - this.boxPadding); if(topMaxRadius < this.boxPadding)
contentContainer.style.paddingTop = topPadding + "px"; if(botMaxRadius < this.boxPadding)
contentContainer.style.paddingBottom = botMaxRadius + "px"; contentContainer.style.paddingLeft = this.boxPadding + "px"; contentContainer.style.paddingRight = this.boxPadding + "px"; this.contentDIV = this.box.appendChild(contentContainer);}
}
this.drawPixel = function(intx, inty, colour, transAmount, height, newCorner, image, cornerRadius)
{ var pixel = document.createElement("DIV"); pixel.style.height = height + "px"; pixel.style.width = "1px"; pixel.style.position = "absolute"; pixel.style.fontSize = "1px"; pixel.style.overflow = "hidden"; var topMaxRadius = Math.max(this.settings["tr"].radius, this.settings["tl"].radius); if(image == -1 && this.backgroundImage != "")
{ pixel.style.backgroundImage = this.backgroundImage; pixel.style.backgroundPosition = "-" + (this.boxWidth - (cornerRadius - intx) + this.borderWidth) + "px -" + ((this.boxHeight + topMaxRadius + inty) -this.borderWidth) + "px";}
else
{ pixel.style.backgroundColor = colour;}
if (transAmount != 100)
setOpacity(pixel, transAmount); pixel.style.top = inty + "px"; pixel.style.left = intx + "px"; newCorner.appendChild(pixel);}
}
function insertAfter(parent, node, referenceNode)
{ parent.insertBefore(node, referenceNode.nextSibling);}
function BlendColour(Col1, Col2, Col1Fraction)
{ var red1 = parseInt(Col1.substr(1,2),16); var green1 = parseInt(Col1.substr(3,2),16); var blue1 = parseInt(Col1.substr(5,2),16); var red2 = parseInt(Col2.substr(1,2),16); var green2 = parseInt(Col2.substr(3,2),16); var blue2 = parseInt(Col2.substr(5,2),16); if(Col1Fraction > 1 || Col1Fraction < 0) Col1Fraction = 1; var endRed = Math.round((red1 * Col1Fraction) + (red2 * (1 - Col1Fraction))); if(endRed > 255) endRed = 255; if(endRed < 0) endRed = 0; var endGreen = Math.round((green1 * Col1Fraction) + (green2 * (1 - Col1Fraction))); if(endGreen > 255) endGreen = 255; if(endGreen < 0) endGreen = 0; var endBlue = Math.round((blue1 * Col1Fraction) + (blue2 * (1 - Col1Fraction))); if(endBlue > 255) endBlue = 255; if(endBlue < 0) endBlue = 0; return "#" + IntToHex(endRed)+ IntToHex(endGreen)+ IntToHex(endBlue);}
function IntToHex(strNum)
{ base = strNum / 16; rem = strNum % 16; base = base - (rem / 16); baseS = MakeHex(base); remS = MakeHex(rem); return baseS + '' + remS;}
function MakeHex(x)
{ if((x >= 0) && (x <= 9))
{ return x;}
else
{ switch(x)
{ case 10: return "A"; case 11: return "B"; case 12: return "C"; case 13: return "D"; case 14: return "E"; case 15: return "F";}
}
}
function pixelFraction(x, y, r)
{ var pixelfraction = 0; var xvalues = new Array(1); var yvalues = new Array(1); var point = 0; var whatsides = ""; var intersect = Math.sqrt((Math.pow(r,2) - Math.pow(x,2))); if ((intersect >= y) && (intersect < (y+1)))
{ whatsides = "Left"; xvalues[point] = 0; yvalues[point] = intersect - y; point = point + 1;}
var intersect = Math.sqrt((Math.pow(r,2) - Math.pow(y+1,2))); if ((intersect >= x) && (intersect < (x+1)))
{ whatsides = whatsides + "Top"; xvalues[point] = intersect - x; yvalues[point] = 1; point = point + 1;}
var intersect = Math.sqrt((Math.pow(r,2) - Math.pow(x+1,2))); if ((intersect >= y) && (intersect < (y+1)))
{ whatsides = whatsides + "Right"; xvalues[point] = 1; yvalues[point] = intersect - y; point = point + 1;}
var intersect = Math.sqrt((Math.pow(r,2) - Math.pow(y,2))); if ((intersect >= x) && (intersect < (x+1)))
{ whatsides = whatsides + "Bottom"; xvalues[point] = intersect - x; yvalues[point] = 0;}
switch (whatsides)
{ case "LeftRight":
pixelfraction = Math.min(yvalues[0],yvalues[1]) + ((Math.max(yvalues[0],yvalues[1]) - Math.min(yvalues[0],yvalues[1]))/2); break; case "TopRight":
pixelfraction = 1-(((1-xvalues[0])*(1-yvalues[1]))/2); break; case "TopBottom":
pixelfraction = Math.min(xvalues[0],xvalues[1]) + ((Math.max(xvalues[0],xvalues[1]) - Math.min(xvalues[0],xvalues[1]))/2); break; case "LeftBottom":
pixelfraction = (yvalues[0]*xvalues[1])/2; break; default:
pixelfraction = 1;}
return pixelfraction;}
function rgb2Hex(rgbColour)
{ try{ var rgbArray = rgb2Array(rgbColour); var red = parseInt(rgbArray[0]); var green = parseInt(rgbArray[1]); var blue = parseInt(rgbArray[2]); var hexColour = "#" + IntToHex(red) + IntToHex(green) + IntToHex(blue);}
catch(e){ alert("There was an error converting the RGB value to Hexadecimal in function rgb2Hex");}
return hexColour;}
function rgb2Array(rgbColour)
{ var rgbValues = rgbColour.substring(4, rgbColour.indexOf(")")); var rgbArray = rgbValues.split(", "); return rgbArray;}
function setOpacity(obj, opacity)
{ opacity = (opacity == 100)?99.999:opacity; if(isSafari && obj.tagName != "IFRAME")
{ var rgbArray = rgb2Array(obj.style.backgroundColor); var red = parseInt(rgbArray[0]); var green = parseInt(rgbArray[1]); var blue = parseInt(rgbArray[2]); obj.style.backgroundColor = "rgba(" + red + ", " + green + ", " + blue + ", " + opacity/100 + ")";}
else if(typeof(obj.style.opacity) != "undefined")
{ obj.style.opacity = opacity/100;}
else if(typeof(obj.style.MozOpacity) != "undefined")
{ obj.style.MozOpacity = opacity/100;}
else if(typeof(obj.style.filter) != "undefined")
{ obj.style.filter = "alpha(opacity:" + opacity + ")";}
else if(typeof(obj.style.KHTMLOpacity) != "undefined")
{ obj.style.KHTMLOpacity = opacity/100;}
}
function inArray(array, value)
{ for(var i = 0; i < array.length; i++){ if (array[i] === value) return i;}
return false;}
function inArrayKey(array, value)
{ for(key in array){ if(key === value) return true;}
return false;}
function addEvent(elm, evType, fn, useCapture) { if (elm.addEventListener) { elm.addEventListener(evType, fn, useCapture); return true;}
else if (elm.attachEvent) { var r = elm.attachEvent('on' + evType, fn); return r;}
else { elm['on' + evType] = fn;}
}
function removeEvent(obj, evType, fn, useCapture){ if (obj.removeEventListener){ obj.removeEventListener(evType, fn, useCapture); return true;} else if (obj.detachEvent){ var r = obj.detachEvent("on"+evType, fn); return r;} else { alert("Handler could not be removed");}
}
function format_colour(colour)
{ var returnColour = "#ffffff"; if(colour != "" && colour != "transparent")
{ if(colour.substr(0, 3) == "rgb")
{ returnColour = rgb2Hex(colour);}
else if(colour.length == 4)
{ returnColour = "#" + colour.substring(1, 2) + colour.substring(1, 2) + colour.substring(2, 3) + colour.substring(2, 3) + colour.substring(3, 4) + colour.substring(3, 4);}
else
{ returnColour = colour;}
}
return returnColour;}
function get_style(obj, property, propertyNS)
{ try
{ if(obj.currentStyle)
{ var returnVal = eval("obj.currentStyle." + property);}
else
{ if(isSafari && obj.style.display == "none")
{ obj.style.display = ""; var wasHidden = true;}
var returnVal = document.defaultView.getComputedStyle(obj, '').getPropertyValue(propertyNS); if(isSafari && wasHidden)
{ obj.style.display = "none";}
}
}
catch(e)
{ }
return returnVal;}
function getElementsByClass(searchClass, node, tag)
{ var classElements = new Array(); if(node == null)
node = document; if(tag == null)
tag = '*'; var els = node.getElementsByTagName(tag); var elsLen = els.length; var pattern = new RegExp("(^|\s)"+searchClass+"(\s|$)"); for (i = 0, j = 0; i < elsLen; i++)
{ if(pattern.test(els[i].className))
{ classElements[j] = els[i]; j++;}
}
return classElements;}
function newCurvyError(errorMessage)
{ return new Error("curvyCorners Error:\n" + errorMessage)
}