function BookLink(url, txt, img){
	this.url = url;
	this.txt = txt;
	this.img = img;
}
var _links = new Array();
_links[0]  = new BookLink("ay_ic_lomg1.html"     , "Lauf &uacute;r gar&eth;i Morya I"        , "leaves_of_moryas_1924_i.gif");
_links[1]  = new BookLink("ay_ic_lomg2.html"     , "Lauf &uacute;r gar&eth;i Morya II"       , "leaves_of_moryas_1925_i.gif");
_links[2]  = new BookLink("ay_ic_community.html" , "Samf&eacute;lag n&yacute;rra t&iacute;ma", "new_era_community_1926_i.gif");
_links[3]  = new BookLink("ay_ic_ay.html"        , "Agni Yoga"                               , "agni_yoga_1929_i.gif");
_links[4]  = new BookLink("ay_ic_infinity1.html" , "&Oacute;endaleiki I"                     , "infinity_1930_i.gif");
_links[5]  = new BookLink("ay_ic_infinity2.html" , "&Oacute;endaleiki II"                    , "infinity_1930_i.gif");
_links[6]  = new BookLink("ay_ic_hierarchy.html" , "Helgivaldi&eth;"                         , "hierarchy_1931_i.gif");
_links[7]  = new BookLink("ay_ic_heart.html"     , "Hjarta&eth;"                             , "heart_1932_i.gif");
_links[8]  = new BookLink("ay_ic_fw1.html"       , "Eldheimar I"                             , "fiery_world_1933_i.gif");
_links[9]  = new BookLink("ay_ic_fw2.html"       , "Eldheimar II"                            , "fiery_world_1934_i.gif");
_links[10] = new BookLink("ay_ic_fw3.html"       , "Eldheimar III"                           , "fiery_world_1935_i.gif");
_links[11] = new BookLink("ay_ic_aum.html"       , "Ákallið"                                 , "aum_1936_i.gif");
_links[12] = new BookLink("ay_ic_broth.html"     , "Br&aelig;&eth;ralagi&eth;"               , "brotherhood_1937_i.gif");
_links[13] = new BookLink("ay_ic_supm1.html"     , "&AElig;&eth;ri heimar I"                 , "supermundane_I_i.gif");
_links[14] = new BookLink("ay_ic_supm2.html"     , "&AElig;&eth;ri heimar II"                , "supermundane_II_i.gif");
_links[15] = new BookLink("ay_ic_supm3.html"     , "&AElig;&eth;ri heimar III"               , "supermundane_III_i.gif");
_links[16] = new BookLink("ay_ic_supm4.html"     , "&AElig;&eth;ri heimar IV"                , "supermundane_IV_i.gif");

_links[17] = new BookLink("ay_ic_loHR1.html"     ,"Br&eacute;fasafn Helenu Roerich, Vol. I"  ,"letters_helena1929-1938_i.gif");
_links[18] = new BookLink("ay_ic_loHR2.html"     ,"Br&eacute;fasafn Helenu Roerich, Vol. II" ,"letters_helena1935-1939_i.gif");
_links[19] = new BookLink("ay_ic_crossroads.html","Vi&eth; austr&aelig;n vegam&oacute;t"     ,"crossroads_i.gif");
_links[20] = new BookLink("ay_ic_FoB.html"       ,"Grundv&ouml;llur Buddhisma"               ,"FoB_i.gif");
_links[21] = new BookLink("ay_ic_glossary.html"  ,"Agni Yoga orðasafn"                       ,"glossary_i.gif");

function writeImg(ndx){
	var s="<IMG SRC='ay_book_images/"+_links[ndx].img+"' BORDER=1>";
	document.write(s);
}
function writeLinks(ndx){
	var s="";
	for(var i=0; i<_links.length; i++){
		if(i==17) s+="<IMG SRC=\"../gifs/type_emb4.gif\"></IMG><BR>";
		if(i!=ndx)
			s+="\n<NOBR><A HREF='javascript:parent.document.location.href=\""+_links[i].url+"\"' CLASS='sideBookList' onMouseOver='status=\"\"; return true;' onMouseOut=''>"+_links[i].txt+"</A></NOBR><BR>";
		else
			s+="\n<NOBR><SPAN CLASS='sideBookListSel'>"+_links[i].txt+"</SPAN></NOBR><BR>";
	}
	document.write(s);
}
