function _m_a_i_l_t_o(u, d, e, t) {
	if (!e) return;
	if (!t) return;
	var m = "m" + "a" + "i" + "l" + "t" + "o";
	switch (e.type) {
		case "mouseover":
			window.status = m  + ":" + u + "@" + d;
			t.href		= m  + ":" + u + "@" + d;
			return true;
			break;
		case "mouseout":
			window.status = "";
			t.href		= "";
			return true;
			break;
		case "click":
			top.location.href = m  + ":" + u + "@" + d;
			return false;
			break;
	}
}

function display_flash(src, width, height, a) {
	if (!window.flash_id) window.flash_id = 1;
	var isIE  = !!(navigator.appVersion.indexOf("MSIE") != -1);
	var isWin = !!(navigator.appVersion.toLowerCase().indexOf("win") != -1);
	var isOpera = !!(navigator.userAgent.indexOf("Opera") != -1);
	var id = window.flash_id ++;
	var r = "";
	if (!a) a = {};
	if (!a.id) a.id = "flash_" + id;
	if (!a.version) a.version = 9;
	if (!a.align) a.align = "middle";
	if (!a.access) a.access = "sameDomain";
	if (!a.quality) a.quality = "high";
	if (!a.background) a.background = "#ffffff";
	if (!a.wmode) a.wmode = "transparent";
	if (!a.scale) a.scale = "noscale";
	if (!a.play) a.play = "true";
	if (!a.loop) a.loop = "true";
	if (!a.menu) a.menu = "true";
	if (!a.salign) a.salign = "";
	if (!a.devicefont) a.devicefont = "false";
	if (!a.fullscreen) a.fullscreen = "false";
	if (isIE && isWin && !isOpera) {
		r += ""
		 + "<object"
		 + " classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\""
		 + " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" + a.version + ",0,0,0\""
		 + " width=\"" + width + "\""
		 + " height=\"" + height + "\""
		 + " align=\"" + a.align + "\""
		 + " id=\"" + a.id + "\""
		 + " name=\"" + a.id + "\""
		 + ">"
		 + "<param name=\"movie\" value=\"" + src + "\" />"
		 + "<param name=\"quality\" value=\"" + a.quality + "\" />"
		 + "<param name=\"bgcolor\" value=\"" + a.background + "\" />"
		 + "<param name=\"allowScriptAccess\" value=\"" + a.access + "\" />"
		 + "<param name=\"wmode\" value=\"" + a.wmode + "\" />"
		 + "<param name=\"scale\" value=\"" + a.scale + "\" />"
		 + "<param name=\"play\" value=\"" + a.play + "\" />"
		 + "<param name=\"loop\" value=\"" + a.loop + "\" />"
		 + "<param name=\"menu\" value=\"" + a.menu + "\" />"
		 + "<param name=\"salign\" value=\"" + a.salign + "\" />"
		 + "<param name=\"devicefont\" value=\"" + a.devicefont + "\" />"
		 + "<param name=\"allowFullScreen\" value=\"" + a.fullscreen + "\" />"
		 + "</object>"
		;
	} else {
		r += "<embed"
		 + " src=\"" + src + "\""
		 + " width=\"" + width + "\""
		 + " height=\"" + height + "\""
		 + " align=\"" + a.align + "\""
		 + " name=\"" + a.id + "\""
		 + " quality=\"" + a.quality + "\""
		 + " bgcolor=\"" + a.background + "\""
		 + " allowScriptAccess=\"" + a.access + "\""
		 + " wmode=\"" + a.wmode + "\""
		 + " scale=\"" + a.scale + "\""
		 + " play=\"" + a.play + "\""
		 + " loop=\"" + a.loop + "\""
		 + " menu=\"" + a.menu + "\""
		 + " salign=\"" + a.salign + "\""
		 + " devicefont=\"" + a.devicefont + "\""
		 + " allowFullScreen=\"" + a.fullscreen + "\""
		 + " type=\"application/x-shockwave-flash\""
		 + " pluginspage=\"http://www.macromedia.com/go/getflashplayer\""
		 + "/>"
		;
	}
	return r;
}

function flash_version() {
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins['Shockwave Flash 2.0']) {
			return parseInt(navigator.plugins['Shockwave Flash 2.0'].description.split(" ")[2]);
		} else if (navigator.plugins['Shockwave Flash']) {
			return parseInt(navigator.plugins['Shockwave Flash'].description.split(" ")[2]);
		}
	} else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) {
		return 4;
	} else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) {
		return 3;
	} else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) {
		return 2;
	} else if ((navigator.appVersion.indexOf("MSIE") != -1) && (navigator.appVersion.toLowerCase().indexOf("win") != -1) && !(navigator.userAgent.indexOf("Opera") != -1)) {
		try {
			return parseInt(((new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")).GetVariable("$version")).split(" ")[1]);
		} catch (e) { }
		try {
			return (new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6")) ? 6 : 0;
		} catch (e) { }
		try {
			return parseInt(((new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3")).GetVariable("$version")).split(" ")[1]);
		} catch (e) { }
		try {
			return (new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) ? 2 : 0;
		} catch (e) { }
	}
	return 0;
}

function write_flash(src, width, height, a) {
	document.write(display_flash(src, width, height, a));
}

function flash_text(tag, css, a) {
	var list = document.getElementById(tag);
	if (list) {
		list = [ list ];
	} else {
		list = [];
		var l = document.getElementsByTagName(tag);
		for (var i = 0; i < l.length; i ++) if (l[i] && (!css || l[i].className == css)) list[list.length] = l[i];
	}
	for (var i = 0; i < list.length; i ++) {
		var o = list[i];
		var z = o.innerHTML;
		z = z.replace("\r", "");
		z = z.replace("\n", " ");
		z = z.replace("&", "%26");
		var f = "/SiteNN/images/flash/text-03.swf";
		var w = o.offsetWidth;
		var h = o.offsetHeight;
		var x = o.offsetX;
		var y = o.offsetY;
		if (a.flash) f = a.flash;
		if (a.width) w = a.width;
		if (a.height) h = a.height;
		f += "?text=" + z;
		f += "&width=" + w;
		f += "&height=" + h;
		for (var j in a) f += "&" + j + "=" + escape(a[j]);
		var div = document.createElement("div");
		div.style.position = "absolute";
		div.innerHTML = display_flash(f, w, h, { version: 7, scale: 'noscale', wmode: 'transparent', salign: 'lt' });
		o.parentNode.insertBefore(div, o);
		o.style.visibility = "hidden";
	}
}

function flash_show() {
	if (window.movies && window.movies.length) {
		for (var i = 0; i < window.movies.length; i ++) window.movies[i].style.display = "inline";
	}
}

function flash_hide() {
	if (!window.movies) {
		window.movies = [];
		var list;
		list = document.getElementsByTagName("embed");
		if (list) for (var i = 0; i < list.length; i ++) if (list[i] && list[i].style && list[i].style.display != "none") window.movies[window.movies.length] = list[i];
		list = document.getElementsByTagName("object");
		if (list) for (var i = 0; i < list.length; i ++) if (list[i] && list[i].style && list[i].style.display != "none") window.movies[window.movies.length] = list[i];
	}
	if (window.movies && window.movies.length) {
		for (var i = 0; i < window.movies.length; i ++) window.movies[i].style.display = "none";
	}
}
