var avs = navigator.appVersion

var vers = parseInt(avs, 10);

if (avs.indexOf("MSIE") > 0) {
	vers = parseInt(avs.substr(avs.indexOf("MSIE") + 5, 1));
}

var ie = navigator.appName.indexOf("Microsoft") >= 0;

var str = self.location.href.split("#")[1];

if (str == undefined) str = "index";

function sendLocation() {
	var receiver = prompt("Geben Sie die Adresse an, an die der Link versendet werden soll", "");
	if (receiver) {
		self.location.href = 'mailto:' + receiver + '?subject=Falcon-Reklame&body=' + escape(self.location.href);
	}
}

function popup(dest) {
	var sw = screen.availWidth;
	var sh = screen.availHeight;
	var w = Math.min(800, sw);
	var h = Math.min(600, sh);
	var l = Math.round(sw / 2 - w / 2);
	var t = Math.round(sh / 2 - h / 2);
	var win = window.open(dest, "FALCON_REKLAME", "width=" + w + ",height=" + h + ",top=" + t + ",left=" + l + ",scrollbars=yes,resizable=1");
}

function setLink(str) {
	if (ie && vers < 7) return;
	self.location.href = "#" + str;
}
