function bookmark(){
	var bookmarkurl = window.location.href, bookmarktitle = document.title, browser = navigator.appName;
	if (browser == "Microsoft Internet Explorer") {
		window.external.AddFavorite(bookmarkurl,bookmarktitle);
	} else if (browser == "Netscape") {
		if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) {
			window.sidebar.addPanel(bookmarktitle, bookmarkurl, "");
		} else {
			alert("Sie Nutzen eine veralterte Netscape Version!\nLesezeichen hinzufügen ist nicht möglich!");
		}
	} else {
		alert("Mit ihren Browser ist kein Lesezeichen über Javascript möglich.\nBitte legen sie das Lesezeichnen manuel an.\nURL:" + bookmarkurl);
	}
}

function smilies (smilie) {
	document.guestbook.text.value+=smilie+" ";
	document.guestbook.text.focus();
}	

function switchlayer(Layer_Name) { 
  var GECKO = document.getElementById? 1:0 ; 
  var NS = document.layers? 1:0 ; 
  var IE = document.all? 1:0 ; 

  if (GECKO) 
       {document.getElementById(Layer_Name).style.display= 
           (document.getElementById(Layer_Name).style.display=='block') ? 'none' : 'block';} 
  else if (NS) 
       {document.layers[Layer_Name].display=(document.layers[Layer_Name].display== 
           'block') ? 'none' : 'block';} 
  else if (IE) 
       {document.all[Layer_Name].style.display=(document.all[Layer_Name].style.display== 
           'block') ? 'none' : 'block';} 
} 

function picture() { 
	self.focus();
}

function contentfader(divid) { 
	var divcontent = divid+'_content'; 
	var divstatus = divid+'_status'; 
	// check if element is opened 
	if (document.getElementById(divcontent).style.display == '') { 
			document.getElementById(divcontent).style.display = 'none'; 
			document.getElementById(divstatus).src = '../../htdocs/resources/images/click/show.gif'; 
	} else 	{ 
			document.getElementById(divcontent).style.display = ''; 
			document.getElementById(divstatus).src = '../../htdocs/resources/images/click/hide.gif'; 
	} 
} 
