
function open_fullview(bild_src, file_dir, b, h) {
	wind_b = parseInt(b) + 40;
	wind_h = parseInt(h) + 100;
	//alert(wind_b + " - " + wind_h);
	url = "float_fullview.php?bild_src=" + bild_src + "&file_dir=" + file_dir + "&bild_h=" + h + "&bild_b=" + b;
	//alert(url);
	newWind = open(url,"fullview","toolbar=no,statusbar=no,scrollbars=no,height=" + wind_h + ",width=" + wind_b);
	//newWind.moveTo(move_x, move_y);
	newWind.focus();
	newWind.resizeTo(wind_b, wind_h);
}
function open_float_cont(id) {
	url = "content.php?contid=" + id;
	newWind = open(url,"floatcont","toolbar=no,statusbar=no,scrollbars=yes,height=400,width=750");

}
move_x = 20;
move_y = 20;
function open_video_qt(html_file) {
	url = "/videos/" + html_file;
	newWind = open(url,"Video4","toolbar=no,statusbar=no,scrollbars=no,height=440,width=480");
	newWind.moveTo(move_x, move_y);
	newWind.focus();
}
activate_timer = 0;
pos_x = 0;
pos_y = 0;
pos_x_hold = 0;
pos_y_hold = 0;
stat_activate = 0;
function activate_info() { // IE
	//window.status = "activate";
	elem = document.getElementById("energie_pic");
	elem.attachEvent("onmousemove", mouse_move);
	myinterval = setInterval('check_pos_diff()', 2000);
}
function deactivate_info() { // IE
	//window.status = "deactivate";
	elem = document.getElementById("energie_pic");
	elem.detachEvent("onmousemove", mouse_move);
	clearInterval(myinterval);
}
function mouse_move(evt) {
	if(!evt) {
		evt = window.event;
	}
	elem = evt.srcElement.id;
	pos_x = evt.clientX;
	pos_y = evt.clientY;
	//window.status = pos_x + " " + pos_y + " hold:" + pos_x_hold + " " + pos_y_hold + " " + elem;
}
function check_pos_diff() {
	/*
	if(pos_x_hold == pos_x && pos_y_hold == pos_y) {
		window.status = "mouse sleep";
		elem = document.getElementById("bildsprache");
		elem.style.visibility = "visible";
		elem.style.left = pos_x + "px";
		elem.style.top = pos_y + "px";
	}
	pos_x_hold = pos_x;
	pos_y_hold = pos_y;
	*/
}

novar = "";
das_at = "@";
function send_mail(name,leer,domain) {
	location.href = "mailto:" + name + das_at + domain;
}