// JavaScript Document

function testit() {
	alert("test");
	}

function BookmarkIt() {
 strtitle = document.title; 
 strurl = document.URL;
	if (window.sidebar) { 
		window.sidebar.addPanel(strtitle, strurl,"");
		} 
	else if( window.external ) { 
		window.external.AddFavorite(strurl, strtitle);
		}
	else { // Opera Hotlist
		alert("Please use the your browser\'s bookmark function from the menu or use the keyboard shortcut to bookmark this page! (Netscape CRTL-D \/ Opera CTRL-T)"); 
		}
	}

// 
function SwitchIt() {
	var strurl = document.URL;
	var de = strurl.match("/de/");
	var en = strurl.match("/en/");
	if (de != null) {
		var newurl = strurl.replace( "/de/", "/en/" ) ;
		location.href=newurl;
		return false;
		}
	else if (en != null) {
		var newurl = strurl.replace( "/en/", "/de/" ) ;
		location.href=newurl;
		return false;
		}
	}

function PrintIt() {
 	window.print();  
	}
	
function MailIt() {
 	strtitle = document.title; 
 	strurl = document.URL;
	strmailto = "mailto:";
	var de = strurl.match("/de/");
	var en = strurl.match("/en/");

	if (de != null) {
		strsubject ="?subject=Link-Empfehlung";
		strbody = "&body=Hallo,%0Ahabe gerade folgende Seite entdeckt, die fuer Dich auch interessant sein koennte:%0A%0A" + strtitle + "%0A" + strurl + "%0A%0AGruss";
		}
	else if (en != null) {
		alert("no");
		strsubject ="?subject=Site Recommendation";
		strbody = "&body=Hello,%0AI just discovered the following website and thought it might be interesting for you too:%0A%0A" + strtitle + "%0A" + strurl + "%0A%0ABest regards";
		}

	strmailto = "mailto:" + strsubject + strbody;

	document.location.href=strmailto;
	}