// function bookmark
function bookmark(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}
// function layer
var win= null;
function Layer(url,name,w,h,scroll,menu,rezi,tool,stat,direct){

  // Seite Empfehlen - Add link of current page as parameter to the url!  
  if(url.indexOf("LinkForEmail") != -1){
	linkforemail = location.href;
	// replace slashes - otherwise broswer tries to redirected to this site!
    url = url + linkforemail.replace("\//","-PLACEHOLDER-");
  }

  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
			settings +='width='+w+',';
			settings +='top='+wint+',';
			settings +='left='+winl+',';
			settings +='scrollbars='+scroll+',';
			settings +='menubar='+menu+',';
			settings +='resizable='+rezi+',';
			settings +='toolbar='+tool+',';
			settings +='status='+stat+',';
			settings +='directories='+direct+',';
			win=window.open(url,name,settings);
	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}