﻿var std_fontsize_value = 0.85;

function dec_fontsize(){
    var fontsize = std_fontsize_value;
	if (document.getElementById("content").style.fontSize) {
	    fontsize = document.getElementById("content").style.fontSize;
	}
	fontsize = parseFloat(fontsize)-0.1;

	if (fontsize>0.7) {
		document.getElementById("content").style.fontSize = fontsize + "em";
	}

}

function inc_fontsize(){
    var fontsize = std_fontsize_value;
	if (document.getElementById("content").style.fontSize) {
	    fontsize = document.getElementById("content").style.fontSize;
	}
	fontsize = parseFloat(fontsize)+0.1;

	if (fontsize<1.8) {
		document.getElementById("content").style.fontSize = fontsize + "em";
	}

}

function std_fontsize(){
	document.getElementById("content").style.fontSize = std_fontsize_value + "em";
}

//Drucken
function print_window(){
	window.print();
}

//Bookmark
function bookmark(){

	var url = 'http://www.schluesselfeld.de';
	var title = 'Stadt Schlüsselfeld';

	if (navigator.appName == "Microsoft Internet Explorer") {
		window.external.AddFavorite(url,title);
	} else if (navigator.appName == "Netscape") {
		window.sidebar.addPanel(title,url,"");
	} else {
		alert("Press CTRL-D (Netscape), CTRL-T (Opera) or CTRL-D (Safari) to bookmark this page.");
	}

}

//Seite weiterempfehlen
function mailpage() {
    mail_str = "mailto:?subject=Mein Tipp: " + document.title;
    mail_str += "&body=Hallo, folgende Seite kann ich nur weiterempfehlen: " + document.title;
    mail_str += ". Zu finden ist sie unter " + location.href;
    location.href = mail_str;
}
