
   var p_autor = "Multimedia Telecommunications Group"
   var p_institution 	= "Poznan University of Technology"
  
//page name prefix 
  var p_coursename = "mm";

 // number of lesson in course
   var l_max_no = 12;

/////////////////  26.02.04 - Roger

	rgr_url=document.URL;


// check if not a special file
	rgr_check=0;
	rgr_index=rgr_url.indexOf(".htm"); if (rgr_index==-1) {rgr_check=1}; //wywolano bez wskazania indexu
	rgr_index=rgr_url.indexOf("index.htm"); if (rgr_index!=-1) {rgr_check=1; l_no="toc";}
	rgr_index=rgr_url.indexOf("_tq.htm"); if (rgr_index!=-1) {rgr_check=1; l_no="tq";};
	rgr_index=rgr_url.indexOf("_glos.htm"); if (rgr_index!=-1) {rgr_check=1; l_no="glos";};
	rgr_index=rgr_url.indexOf("_qh.htm"); if (rgr_index!=-1) {rgr_check=1; l_no="qh";};
 	rgr_index=rgr_url.indexOf("_ax_reload.htm"); if (rgr_index!=-1) {rgr_check=1;; l_no="111"};
 	rgr_index=rgr_url.indexOf("_intro.htm"); if (rgr_index!=-1) {rgr_check=1;; l_no="111"};
 	rgr_index=rgr_url.indexOf("_visual.htm"); if (rgr_index!=-1) {rgr_check=1;; l_no="111"};
 	rgr_index=rgr_url.indexOf("_audio.htm"); if (rgr_index!=-1) {rgr_check=1;; l_no="111"};
 	rgr_index=rgr_url.indexOf("_rights.htm"); if (rgr_index!=-1) {rgr_check=1;; l_no="111"};


	if (rgr_check==0) //if not then find the page and lesson number
	
{
	rgr_dot=rgr_url.indexOf(".htm");
	rgr_pos=rgr_dot+1;
	do rgr_pos=rgr_pos-1; while (rgr_url.substring(rgr_pos,rgr_pos+1)!="_");
	p_no=rgr_url.substring(rgr_pos+1, rgr_dot);
	rgr_dot=rgr_pos;
	do rgr_pos=rgr_pos-1; while (rgr_url.substring(rgr_pos,rgr_pos+1)!="_");
	l_no=rgr_url.substring(rgr_pos+1, rgr_dot);
}

else {p_no=1}; /// escape lesson number

// now set the data common for a given lesson
Lesson_title = new Array (12);
Lesson_title[1]="Cyfrowa reprezentacja obrazów";
Lesson_title[2]="Przetwarzanie obrazów - operacje podstawowe";
Lesson_title[3]="Filtry w przetwarzaniu obrazów";
Lesson_title[4]="Ocena jakości obrazów";
Lesson_title[5]="Właściwości widmowe obrazów";
Lesson_title[6]="Bezstratna kompresja obrazów i JPEG-LS"
Lesson_title[7]="Kodowanie transformatowe obrazów i JPEG";
Lesson_title[8]="Kodowanie falkowe obrazów i JPEG-2000";
Lesson_title[9]="Cyfrowa reprezentacja sekwencji wizyjnych i kompensacja ruchu";
Lesson_title[10]="Kompresja sekwencji wizyjnych w standardach MPEG 1-4 i H.263/H.264";
Lesson_title[11]="Dźwięk i słyszenie";
Lesson_title[12]="Cyfrowa reprezentacja i kodowanie dźwięku w MPEG";

 if( l_no==1) { var p_max_no = 23; document.title = Lesson_title[l_no]; }
 if( l_no==2) { var p_max_no = 23; document.title = Lesson_title[l_no]};
 if( l_no==3) { var p_max_no = 20;  document.title = Lesson_title[l_no]};
 if( l_no==4) { var p_max_no = 10;  document.title = Lesson_title[l_no]};
 if( l_no==5) { var p_max_no = 19;  document.title = Lesson_title[l_no]};
 if( l_no==6) { var p_max_no = 15;  document.title = Lesson_title[l_no]};
 if( l_no==7) { var p_max_no = 19;  document.title = Lesson_title[l_no]};
 if( l_no==8) { var p_max_no = 18;  document.title = Lesson_title[l_no]};
 if( l_no==9) { var p_max_no = 14;  document.title = Lesson_title[l_no]};
 if( l_no==10) { var p_max_no = 14; document.title = Lesson_title[l_no]};
 if( l_no==11) { var p_max_no = 22; document.title = Lesson_title[l_no]};
 if( l_no==12) { var p_max_no = 25; document.title = Lesson_title[l_no]};

///special case for special files :-)
if( l_no==111) 	 { var p_max_no = 1; document.title = "Multimedia"};
if( l_no=="toc")  { var p_max_no = 1; document.title = "Multimedia"};
if( l_no=="tq") 	 { var p_max_no = 1; document.title = "Multimedia"};
if( l_no=="glos") 	 { var p_max_no = 1; document.title = "Multimedia"};
if( l_no=="qh") 	 { var p_max_no = 1; document.title = "Multimedia"};
if( l_no=="intro") 	 { var p_max_no = 1; document.title = "Multimedia"};




///////////////////////////////// Roger end
