	
	function navigate_two (WHERE, ID, NAME) {
	
		parent.PictureViewer.document.location.href = WHERE; // + '?CurrSubMenue=' + ID + '&CurrThirdMenue=0';
		parent.Overview.location.href = 'Overview.php?stammid=' + ID + '&Kategorie=Two';
		parent.logo.location.href = 'logo.php?stammname=' + NAME;
		parent.overviewbottom.location.href = 'Bottom.Overview.php?stammid=' + ID;
	
	}
	
	
	
	function navigate_three (WHERE, ID, FATHERID, NAME) {
	
		parent.PictureViewer.document.location.href = WHERE; // + '?CurrSubMenue=' + FATHERID + '&CurrThirdMenue=' + ID;
		parent.Overview.location.href = 'Overview.php?stammid=' + ID + '&Kategorie=Three';
		parent.logo.location.href = 'logo.php?stammname=' + NAME;
		parent.overviewbottom.location.href = 'Bottom.Overview.php?stammid=' + ID;
	
	}
	
  function KonMedia_ShowHide_Two (DATA) {
		
		var ALLDATA = DATA.split(";");
		for(NUM = 0; NUM <= ALLDATA.length-1; NUM++) {
			var CURDATA = ALLDATA[NUM].split(",");
      if (parent.PictureViewer.document.getElementById('two' + CURDATA[0])) {
      	parent.PictureViewer.document.getElementById('two' + CURDATA[0]).style.visibility = CURDATA[1];
      }
		}
  }
  
  function KonMedia_ShowHide (LayerID, What) {
  
    if (parent.PictureViewer.document.getElementById(LayerID))
    	parent.PictureViewer.document.getElementById(LayerID).style.visibility = What;
		
  }
	
	function change_pic (BILD, ARTIKELID, STAMMID, PICNUM, KATEGORIE) {
		
		parent.PictureViewer.location.href='Picture.php?artikelbild=' + BILD;
		parent.artikelbottom.location.href='Bottom.Artikel.php?artikelid=' + ARTIKELID + '&stammid=' + STAMMID + '&CurrPicNum=' + PICNUM + '&Kategorie=' + KATEGORIE;;
		//parent.artikelbottom.location.href='Bottom.Artikel.php?artikelid=' + ARTIKELID + /*'&artikelbild=' + BILD + */ '&stammid=' + STAMMID + '&CurrPicNum=' + PICNUM + '&Kategorie=' + KATEGORIE;;
		
		chang_border (ARTIKELID);
		
	}
	
  function choose_pic (STAMMID, ARTIKELID, ALLPICNUM, KATEGORIE) {
  	
    parent.overviewbottom.location.href='Bottom.Overview.php?stammid=' + STAMMID + '&artikelid=' + ARTIKELID;
    parent.artikelbottom.location.href='Bottom.Artikel.php?artikelid=' + ARTIKELID + '&CurrPicNum=' + ALLPICNUM + '&Kategorie=' + KATEGORIE + '&stammid=' + STAMMID;
   	
		chang_border (ARTIKELID);
		
  }
	
	function chang_border (ARTIKELID) {
		
    if (parent.Overview.document.getElementById('lastcheckedid').value != '')
    	parent.Overview.document.getElementById(parent.Overview.document.getElementById('lastcheckedid').value).style.border = '#CCCCCC 2px solid';
    
    parent.Overview.document.getElementById(ARTIKELID).style.border = '#FFAA00 2px solid';
    parent.Overview.document.getElementById('lastcheckedid').value = ARTIKELID;
	
	}
	
	function change_language(SPRACHENID) {
	
		parent.PictureViewer.location.href='start.php?sprachenid=' + SPRACHENID;
		
		window.setTimeout("parent.Overview.location.reload();", 1000);
		window.setTimeout("parent.overviewbottom.location.reload();", 1000);
		window.setTimeout("parent.logo.location.href='logo.php';", 1000);
		window.setTimeout("parent.menue.location.reload();", 1000);
		//window.setTimeout("parent.artikelbottom.location.reload();", 1000);
	
	}