//

// TNavigationPrint
function TNavigationPrint(){
	var myNavIndex = XML.getFirstItem("Config").getFirstItem("NavigationIndex").getValue()
	if(!(myNavIndex=="null"||myNavIndex=="")){
		navigation[parseInt(myNavIndex)].active = true;
		if(navigation[parseInt(myNavIndex)].parentId!=null) navigation[navigation[parseInt(myNavIndex)].parentId].open = true;
		};
	var rString = '<TABLE class="CATLINKS1STPARENT" width="100%" border="0" cellpadding="1" cellspacing="0" >';
	for(var i=0;i<navigation.length;i++) if(navigation[i].parentId==null){
		rString += navigation[i].print();
		if(navigation[i].active==true||navigation[i].open==true){
			rString += "</TABLE>"
			rString += '<TABLE class="CATLINKS2NDPARENT" width="100%" border="0" cellpadding="1" cellspacing="0" ><TR valign="top">';
			for(var j=0;j<navigation.length;j++) if(navigation[j].parentId==navigation[i].id){
				rString += navigation[j].print();
				};
			rString += "</TABLE>"
			rString += '<TABLE class="CATLINKS1STPARENT" width="100%" border="0" cellpadding="1" cellspacing="0" >';
			};
		};
		rString += "</TABLE>"
	return(rString);
	};
// TNavElemprint
function TNavElemPrint(){
	var rString = '<TR valign="top">';
	with(this){
		if(active){
			if(parentId!=null) rString += '<TD class="ACTIVECATEGORY" ><IMG SRC="../assets/images/spacer.gif" width="19" height="1"></TD>'
			rString += '<TD class="ACTIVECATEGORY" ><img src="../assets/images/bullet.gif" width="19" height="14" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>'
			}
		else{
			if(parentId!=null){
				rString += '<TD class="CATLINKS2NDBULLET" ><IMG SRC="../assets/images/spacer.gif" width="19" height="1"></TD>';
				rString += '<TD class="CATLINKS2NDBULLET" ><img src="../assets/images/bullet.gif" width="19" height="14" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>';
				}
			else{
				rString += '<TD class="CATLINKS1STBULLET" >';
				if(!open) rString += '<img src="../assets/images/bulletcat1st.gif" width="19" height="14" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>'
				else rString += '<img src="../assets/images/bulletcat1stcls.gif" width="19" height="14" border="0" align="bottom" hspace="0" vspace="0" class="CATNAV"></TD>';
				};
			};
		if(active) rString += '<TD nowrap class="ACTIVECATEGORY"  width="100%">'
		else{
			if(parentId!=null) rString += '<TD nowrap class="CATLINKS2NDCAPTION"  width="100%">'
			else rString += '<TD nowrap colspan="2" class="CATLINKS1STCAPTION"  width="100%">'
			};
		rString += "<a href=\"javascript: changeLoc(" + this.id + ",'" + this.linkUrl + "')\" class=\"wagrunav\">";
		rString += caption;
		rString += "</a>";
		rString += "</TD>"
		rString += "</TR>";
		};
	return rString; 
	};

//

// navElem
function navElem(id,caption,linkUrl,parentId){
	this.id = id;
	this.caption = caption;
	this.linkUrl = linkUrl;
	this.parentId = parentId;
	this.print = TNavElemPrint;
	this.active = false;
	this.open = false;
	};
// navigation
var navigation = new Array();
//
navigation[0] = new navElem(0,"Orginalgrafik","pi1051166879.htm",null);
navigation[1] = new navElem(1,"Linolschnitt","pi1082580860.htm",0);
navigation[2] = new navElem(2,"Kalender","pi-2134435523.htm",null);
navigation[3] = new navElem(3,"Poster","pi-722346508.htm",null);
navigation[4] = new navElem(4,"Heilige und Namenspatrone","pi1414296896.htm",3);
navigation[5] = new navElem(5,"Biblische Themen","pi-1069371870.htm",3);
navigation[6] = new navElem(6,"Profane Motive","pi313206779.htm",3);
navigation[7] = new navElem(7,"Karten","pi1061368023.htm",null);
navigation[8] = new navElem(8,"Heilige und Namenspatrone","pi1707182368.htm",7);
navigation[9] = new navElem(9,"Weihnachten","pi2004751438.htm",7);
navigation[10] = new navElem(10,"Profane Motive","pi1424467383.htm",7);
navigation[11] = new navElem(11,"Sakrale Motive","pi-1564765979.htm",7);
navigation[12] = new navElem(12,"Doppelkarten","pi1251648698.htm",7);
navigation[13] = new navElem(13,"Dias","pi-366805283.htm",null);
navigation[14] = new navElem(14,"Kreuze","pi-1084138790.htm",null);
navigation[15] = new navElem(15,"Ansteckkreuze","pi260842846.htm",14);
navigation[16] = new navElem(16,"Edelstahlkreuze","pi1110279842.htm",14);
navigation[17] = new navElem(17,"Bronzekreuze","pi-2022295941.htm",14);
navigation[18] = new navElem(18,"Glas","pi272421971.htm",null);
navigation[19] = new navElem(19,"Bücher","pi1126690364.htm",null);
navigation[20] = new navElem(20,"Gerahmte Arbeiten","pi1170667647.htm",null);
navigation[21] = new navElem(21,"Engelbilder","pi-335820716.htm",20);
navigation[22] = new navElem(22,"Heribert Schenk","pi87417954.htm",20);
navigation[23] = new navElem(23,"Kerzen","pi847213289.htm",null);
navigation[24] = new navElem(24,"Overheadfolien","pi46853101.htm",null);
navigation[25] = new navElem(25,"Evita Gründler","pi2059191712.htm",24);
navigation[26] = new navElem(26,"Werner Persy","pi-2122334535.htm",null);
navigation[27] = new navElem(27,"Holzschnitte","pi16880954.htm",26);
navigation[28] = new navElem(28,"Aquarelle","pi1171871539.htm",26);
navigation[29] = new navElem(29,"Seriegraphien","pi-1723062792.htm",26);
navigation[30] = new navElem(30,"Poster","pi41909401.htm",26);
navigation[31] = new navElem(31,"Karten","pi-476422938.htm",26);
navigation[32] = new navElem(32,"Mappen","pi-317130641.htm",26);
navigation[33] = new navElem(33,"Dias","pi1297573252.htm",26);
navigation[34] = new navElem(34,"Heinz Seeber","pi1510915206.htm",null);
navigation[35] = new navElem(35,"Grafiken","pi-359567307.htm",34);
navigation[36] = new navElem(36,"Poster","pi-70904368.htm",34);
navigation[37] = new navElem(37,"Karten","pi-1653951087.htm",34);
navigation[38] = new navElem(38,"Dias","pi-635293570.htm",34);
navigation[39] = new navElem(39,"Roland P. Litzenburger","pi360155023.htm",null);
navigation[40] = new navElem(40,"Lithographien","pi957594151.htm",39);
navigation[41] = new navElem(41,"Poster","pi-931740964.htm",39);
navigation[42] = new navElem(42,"Karten","pi1525803181.htm",39);
navigation[43] = new navElem(43,"Hortense von Gelmini","pi-2104668636.htm",null);
navigation[44] = new navElem(44,"Leporellos","pi-1742531933.htm",43);
navigation[45] = new navElem(45,"Karten","pi-89605976.htm",43);
navigation[46] = new navElem(46,"Poster","pi-2020645495.htm",43);
navigation[47] = new navElem(47,"Edzard Seeger","pi-1140124587.htm",null);
navigation[48] = new navElem(48,"Holzschnitte","pi514715414.htm",47);
navigation[49] = new navElem(49,"Poster","pi-2132751649.htm",47);
navigation[50] = new navElem(50,"Karten","pi981992244.htm",47);
navigation[51] = new navElem(51,"Karl Maldek","pi779546866.htm",null);
navigation[52] = new navElem(52,"Poster","pi1170819109.htm",51);
navigation[53] = new navElem(53,"Kreuzweg Mappe","pi728951938.htm",51);
navigation[54] = new navElem(54,"Evita Gründler","pi1100508932.htm",null);
navigation[55] = new navElem(55,"Karten","pi1933475026.htm",54);
navigation[56] = new navElem(56,"Kalender","pi1291237200.htm",54);
navigation[57] = new navElem(57,"Poster","pi-919556539.htm",54);
navigation[58] = new navElem(58,"Bücher","pi381573640.htm",54);
navigation[59] = new navElem(59,"Overheadfolien","pi-767965629.htm",54);
navigation[60] = new navElem(60,"Heribert Schenk","pi680074165.htm",null);
navigation[61] = new navElem(61,"Orginalarbeiten","pi1323600118.htm",60);
navigation[62] = new navElem(62,"Kerzen","pi549001023.htm",60);
navigation[63] = new navElem(63,"Helmut Jermer","pi-1721853443.htm",null);
navigation[64] = new navElem(64,"Linolschnitte","pi1111121786.htm",63);
navigation[65] = new navElem(65,"Dieter F. Domes","pi1163859102.htm",null);
navigation[66] = new navElem(66,"Engelbilder","pi1000716938.htm",65);
navigation[67] = new navElem(67,"Glas","pi1225122783.htm",65);
navigation[68] = new navElem(68,"Otmar Alt","pi1169984167.htm",null);
navigation[69] = new navElem(69,"Lithographien","pi1299605852.htm",68);
navigation[70] = new navElem(70,"Radierungen","pi-1954992851.htm",68);
navigation[71] = new navElem(71,"Siebdrucke","pi-1927061782.htm",68);
navigation[72] = new navElem(72,"Kunstdrucke","pi1170488188.htm",68);
navigation[73] = new navElem(73,"Andreas Felger","pi-71265657.htm",null);
navigation[74] = new navElem(74,"Karten","pi-2093020228.htm",73);
navigation[75] = new navElem(75,"Medaillen","pi1242228295.htm",null);

// changeLoc
function changeLoc(id,linkUrl){
	XML.getFirstItem("Config").getFirstItem("NavigationIndex").putValue(id.toString());
	safeData();
	location.href = linkUrl;
	};


