// JavaScript Document
// Conferma ritorno sezione amministrazione
function turnOnMain(lang, text){
	if(confirm(text)){
		// Si poteva usare location.href ma netscape è na merda
		document.myHiddenForm.action = 'index.php?lang=' + lang;
		document.myHiddenForm.submit();
	}
}

// Controllo modulo invio richiesta e accettazione privacy
function checkContact(myForm, text){
	// Privacy
	if(myForm.consenso[1].checked && myForm.consenso[1].value == 'no'){
		if(text == 'IT') alert('Attenzione! Per poter inviare la richiesta bisogna dare il consenso sulla privacy!');
		else alert('Warning! For being able to send the request you must give the consent on the privacy!');
		return;
	}
	// Nome
	if(myForm.nome.value == ''){
		if(text == 'IT') alert('Attenzione! Il nome è obbligatorio.');
		else alert('Warning! The name is obligatory.');
		myForm.nome.focus();
		return;
	}
	// Telefono o email
	if(myForm.tel.value == '' && myForm.email.value == ''){
		if(text == 'IT') alert('Attenzione! Il telefono o l\'email sono aoobligatori.');
		else alert('Warning! The phone or mail are obligatory.');
		myForm.tel.focus();
		return;
	}
	// Telefono o email
	if(myForm.mytext.value == ''){
		if(text == 'IT') alert('Attenzione! Inserire una domanda.');
		else alert('Warning! Please, insert a question.');
		myForm.mytext.focus();
		return;
	}
	// Possiamo inoltrare il modulo
	else myForm.submit();
}


function imenus_data0()
{
	this.menu_showhide_delay = 100
	this.show_subs_onclick = false
	this.hide_focus_box = false

	/*---------------------------------------------
	Box Animation Settings
	---------------------------------------------*/


	//set to... "pointer", "center", "top", "left"
	this.box_animation_type = "center"

	this.box_animation_frames = 10
	this.box_animation_styles = "border-style:solid; border-color:#bbbbbb; border-width:1px; "


	/*---------------------------------------------
	IE Transition Effects
	---------------------------------------------*/

	this.subs_ie_transition_show = ""


/*[end data]*/
}


//[IM Code]


// ---- Add-On [3.1 KB]: Box Outline Animations ----
;

function imenus_box_ani_init(obj, dto)
{
	var tid = obj.getElementsByTagName("UL")[0].id.substring(6);

	if (!(ulm_navigator && ulm_mac)
				&& !(window.opera && ulm_mac)
						 && !(window.navigator.userAgent.indexOf("afari") + 1)
									&& ! ulm_iemac && dto.box_animation_frames > 0 && ! dto.box_animation_disabled)
	{
		ulm_boxa["go" + tid] = 1;
		ulm_boxa.go = 1;
		ulm_boxa.all = new Object();
	}
	else
		return;
}

;

function imenus_box_ani(show, tul, hobj, e)
{
	if (! ulm_boxa.cm)
		ulm_boxa.cm = new Object();

	if (! ulm_boxa["ba" + hobj.id])
		ulm_boxa["ba" + hobj.id] = new Object();

	ulm_boxa["ba" + hobj.id].hobj = hobj;
	var bo = ulm_boxa["ba" + hobj.id];
	bo.id = "ba" + hobj.id;

	if (! bo.bdiv)
	{
		bdiv = document.createElement("DIV");
		bdiv.className = "ulmba";
		bdiv.onmousemove = function(e)
		{
			if (! e)
				e = event;

			e.cancelBubble = 1;
		};

		bdiv.onmouseover = function(e)
		{
			if (! e)
				e = event;

			e.cancelBubble = 1;
		};

		bdiv.onmouseout = function(e)
		{
			if (! e)
				e = event;

			e.cancelBubble = 1;
		};

		bo.bdiv = tul.parentNode.appendChild(bdiv);
	}

	var i;

	for (i in ulm_boxa)
	{
		if ((ulm_boxa[i].steps) && !(ulm_boxa[i].id.indexOf(hobj.id) + 1))
			ulm_boxa[i].reverse = 1;
	}

	if (((hobj.className.indexOf("ishow") + 1) && bo.hobj) || (bo.bdiv.style.visibility == "visible" && ! bo.reverse))
		return 1;

	imenus_box_show(bo, hobj, tul, e);
}

;

function imenus_box_h(hobj)
{
	var bo = ulm_boxa["ba" + hobj.id];

	if (bo && bo.bdiv && bo.pos)
	{
		bo.reverse = 1;
		bo.pos = bo.steps;
		bo.bdiv.style.visibility = "visible";
		imenus_box_x44(bo);
	}
}

;

function imenus_box_reverse(x17)
{
	if (! ulm_boxa.go)
		return;

	var i;

	for (i in ulm_boxa.all)
	{
		if (ulm_boxa.all[i] && ulm_boxa[i].hobj != x17)
		{
			var bo = ulm_boxa[i];
			bo.reverse = 1;
			ulm_boxa.all[i] = null;
		}
	}
}

;

function imenus_box_show(bo, hobj, tul, e)
{
	var type;
	var tdto = ulm_boxa["dto" + parseInt(hobj.id.substring(6))];
	clearTimeout(bo.st);
	bo.st = null;

	if (bo.bdiv)
		bo.bdiv.style.visibility = "hidden";

	bo.pos = 0;
	bo.reverse = false;
	bo.steps = tdto.box_animation_frames;
	bo.exy = new Array(tul.offsetLeft, tul.offsetTop);
	bo.ewh = new Array(tul.offsetWidth, tul.offsetHeight);
	bo.sxy = new Array(0, 0);

	if (!(type = tul.getAttribute("boxatype")))
		type = tdto.box_animation_type;

	if (type == "center")
		bo.sxy = new Array(bo.exy[0] + parseInt(bo.ewh[0] / 2), bo.exy[1] + parseInt(bo.ewh[1] / 2));
	else if (type == "top")
		bo.sxy = new Array(parseInt(bo.ewh[0] / 2), 0);
	else if (type == "left")
		bo.sxy = new Array(0, parseInt(bo.ewh[1] / 2));
	else if (type == "pointer")
	{
		if (! e)
			e = window.event;

		var txy = x26(tul);
		bo.sxy = new Array(e.clientX - txy[0], (e.clientY - txy[1]) + 5);
	}

	bo.dxy = new Array(bo.exy[0] - bo.sxy[0], bo.exy[1] - bo.sxy[1]);
	bo.dwh = new Array(bo.ewh[0], bo.ewh[1]);
	bo.tul = tul;
	bo.hobj = hobj;
	imenus_box_x44(bo);
}

;

function imenus_box_x44(bo)
{
	var a = bo.bdiv;
	var cx = bo.sxy[0] + parseInt((bo.dxy[0] / bo.steps) * bo.pos);
	var cy = bo.sxy[1] + parseInt((bo.dxy[1] / bo.steps) * bo.pos);
	a.style.left = cx + "px";
	a.style.top = cy + "px";
	var cw = parseInt((bo.dwh[0] / bo.steps) * bo.pos);
	var ch = parseInt((bo.dwh[1] / bo.steps) * bo.pos);
	a.style.width = cw + "px";
	a.style.height = ch + "px";

	if (bo.pos <= bo.steps)
	{
		if (bo.pos == 0)
			a.style.visibility = "visible";

		if (bo.reverse == 1)
			bo.pos--;
		else
			bo.pos++;

		if (bo.pos == - 1)
		{
			bo.pos = 0;
			a.style.visibility = "hidden";
		}
		else
		{
			bo.st = setTimeout("imenus_box_x44(ulm_boxa['" + bo.id + "'])", 8);
			ulm_boxa.all[bo.id] = 1;
		}
	}
	else
	{
		clearTimeout(bo.st);
		bo.st = null;
		ulm_boxa.all[bo.id] = null;

		if (! bo.reverse)
		{
			if ((bo.hobj) && (bo.pos > - 1))
				hover_handle(bo.hobj);
		}

		a.style.visibility = "hidden";
	}
}


// ---- Add-On [0.7 KB]: Select Tag Fix for IE ----
;

function iao_iframefix()
{
	if (ulm_ie && ! ulm_mac && ! ulm_oldie && ! ulm_ie7)
	{
		for (var i = 0; i < (x31 = uld.getElementsByTagName("iframe")).length; i++)
		{
			if ((a = x31[i]).getAttribute("x30"))
			{
				a.style.height = (x32 = a.parentNode.getElementsByTagName("UL")[0]).offsetHeight;
				a.style.width = x32.offsetWidth;
			}
		}
	}
}

;

function iao_ifix_add(b)
{
	if (ulm_ie && ! ulm_mac && ! ulm_oldie && ! ulm_ie7 && window.name != "hta" && window.name != "imopenmenu")
	{
		b.parentNode.insertAdjacentHTML("afterBegin",
																		"<iframe src='javascript:false;' x30=1 style='z-index:-1;position:absolute;float:left;border-style:none;width:1px;height:1px;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);' frameborder='0'></iframe><div></div>");
	}
}


// ---- Add-On [2.6 KB]: Image Cache Fix for IE 6 ----
;

function imenus_efix_styles(ni)
{
	var rv = ni + " li a .imefixh{visibility:hidden;}";
	rv += ni + " li a .imefix{visibility:inherit;}";
	rv += ni + " li a.iactive .imefixh{visibility:visible;}";
	rv += ni + " li a.iactive .imefix{visibility:hidden;}";
	return rv;
}

;

function imenus_get_ss(id)
{
	var a, ds;

	if (a = document.getElementById("ssimenus" + id))
		return a;

	ds = document.styleSheets;

	for (var i = 0; i < ds.length; i++)
	{
		try
		{
			if (ds[i].owningElement
				&& ! ds[i].owningElement.id && (ds[i].cssText) && (ds[i].cssText.indexOf("imenus" + id) + 1))
				return ds[i].owningElement;
		}
		catch (e)
		{
		}
	}
}

;

function imenus_strip_file_name(pn)
{
	var sa = 0;
	var ca = 0;

	while ((ca = pn.indexOf("/", ca)) + 1)
	{
		ca++;
		sa = ca;
	}

	return pn.substring(0, sa);
}

;

function imenus_efix(x2)
{
	if (window.name == "hta" || window.name == "imopenmenu")
		return;

	ulm_mglobal.eimg_fix = 1;
	ulm_mglobal.eimg_sub = "";
	ulm_mglobal.eimg_sub_hover = "";
	ulm_mglobal.eimg_main = "";
	ulm_mglobal.eimg_main_hover = "";
	ulm_mglobal.eimg_bl = "";

	if (ss = imenus_get_ss(x2))
	{
		if (ss.tagName == "LINK")
		{
			var cl = ss.href.replace(/\\/g, "/");

			if (cl.indexOf("/") + 1)
			{
				cl = imenus_strip_file_name(cl);
				var wl = imenus_strip_file_name(window.location.href);
				ulm_mglobal.eimg_bl = wl + cl;
			}
		}

		ss = ss.styleSheet;

		for (i in ss.rules)
		{
			if (a = imenus_efix_strip(ss.rules[i], "#imenus" + x2 + " .imeamj SPAN", 1))
				ulm_mglobal.eimg_main = a;

			if (a = imenus_efix_strip(ss.rules[i], "#imenus" + x2 + " LI A.iactive .imeamj SPAN"))
				ulm_mglobal.eimg_main_hover = a;

			if (a = imenus_efix_strip(ss.rules[i], "#imenus" + x2 + " UL .imeasj SPAN", 1))
				ulm_mglobal.eimg_sub = a;

			if (a = imenus_efix_strip(ss.rules[i], "#imenus" + x2 + " UL LI A.iactive .imeasj SPAN"))
				ulm_mglobal.eimg_sub_hover = a;
		}
	}
}

;

function imenus_efix_strip(rule, selector, dms)
{
	if (rule.selectorText == selector)
	{
		var t = ulm_mglobal.eimg_bl + imenus_efix_stripurl(rule.style.backgroundImage);
		rule.style.backgroundImage = "";

		if (dms)
		{
			var tw = rule.style.width;

			if ((a = parseInt(tw)) && ! isNaN(a))
				t += "|" + a;
			else
				t += "|0";

			var tw = rule.style.height;

			if ((a = parseInt(tw)) && ! isNaN(a))
				t += "|" + a;
			else
				t += "|0";
		}

		return t;
	}
}

;

function imenus_efix_stripurl(txt)
{
	wval = txt.toLowerCase();

	if (wval.indexOf("url(") + 1)
	{
		txt = txt.substring(4);

		if ((commai = txt.indexOf(")")) > - 1)
			txt = txt.substring(0, commai);
	}

	return txt;
}

;

function imenus_efix_add(level, expdiv)
{
	var a, l;
	var w = 0;
	var h = 0;
	var addwh = "";
	var show = 1;
	var x4 = "main";

	if (level != 1)
		x4 = "sub";

	var ih = "";

	if ((a = ulm_mglobal["eimg_" + x4]) && a.toLowerCase() != "none")
	{
		a = a.split("|");

		if (a.length > 2)
		{
			l = a[0];
			w = parseInt(a[1]);
			h = parseInt(a[2]);
			addwh = 'width=' + w + ' height=' + h;

			if (! w || ! h)
				show = false;
		}
		else
			l = a;

		if (l.toLowerCase() != "none")
			ih += '<img class="imefix" src="' + l + '" ' + addwh + '>';
	}

	if ((a = ulm_mglobal["eimg_" + x4 + "_hover"]) && a.toLowerCase() != "none" && show)
		ih += '<img class="imefixh" style="position:absolute;top:0px;left:0px;" src="' + a + '" ' + addwh + '>';

	if (show)
		expdiv.firstChild.innerHTML = ih;
}


// ---- IM Code + Security [7.4 KB] ----
im_version = "9.3.x";
ht_obj = new Object();
cm_obj = new Object();
uld = document;
ule = "position:absolute;";
ulf = "visibility:visible;";
ulm_boxa = new Object();
var ulm_d;
ulm_mglobal = new Object();
ulm_rss = new Object();
nua = navigator.userAgent;
ulm_ie = window.showHelp;
ulm_ie7 = nua.indexOf("MSIE 7") + 1;
ulm_mac = nua.indexOf("Mac") + 1;
ulm_navigator = nua.indexOf("Netscape") + 1;
ulm_version = parseFloat(navigator.vendorSub);
ulm_oldnav = ulm_navigator && ulm_version < 7.1;
ulm_oldie = ulm_ie && nua.indexOf("MSIE 5.0") + 1;
ulm_iemac = ulm_ie && ulm_mac;
ulm_opera = nua.indexOf("Opera") + 1;
ulm_safari = nua.indexOf("afari") + 1;
x42 = "_";
ulm_curs = "cursor:hand;";

if (! ulm_ie)
{
	x42 = "z";
	ulm_curs = "cursor:pointer;";
}

ulmpi = window.imenus_add_pointer_image;
var x43;

for (mi = 0; mi < (x1 = uld.getElementsByTagName("UL")).length; mi++)
{
	if ((x2 = x1[mi].id) && x2.indexOf("imenus") + 1)
	{
		dto = new window["imenus_data" + (x2 = x2.substring(6))];
		ulm_boxa.dto = dto;
		ulm_boxa["dto" + x2] = dto;
		ulm_d = dto.menu_showhide_delay;

		if (ulm_ie && ! ulm_ie7 && ! ulm_mac && (b = window.imenus_efix))
			b(x2);

		imenus_create_menu(x1[mi].childNodes, x2 + x42, dto, x2);
		(ap1 = x1[mi].parentNode).id = "imouter" + x2;
		ulm_mglobal["imde" + x2] = ap1;
		var dt = "onmouseover";

		if (ulm_mglobal.activate_onclick)
			dt = "onclick";

		document[dt] = function()
		{
			var a;

			if (! ht_obj.doc)
			{
				clearTimeout(ht_obj.doc);
				ht_obj.doc = null;
			}
			else
				return;

			ht_obj.doc = setTimeout("im_hide()", ulm_d);

			if (a = window.imenus_box_reverse)
				a();

			if (a = window.imenus_expandani_hideall)
				a();

			if (a = window.imenus_hide_pointer)
				a();

			if (a = window.imenus_shift_hide_all)
				a();
		};

		imarc("imde", ap1);

		if (ulm_oldnav)
			ap1.parentNode.style.position = "static";

		if (! ulm_oldnav && ulmpi)
			ulmpi(x1[mi], dto, 0, x2);

		x6(x2, dto);

		if ((ulm_ie && ! ulm_iemac) && (b1 = window.iao_iframefix))
			window.attachEvent("onload", b1);

		if ((b1 = window.iao_hideshow) && (ulm_ie && ! ulm_mac))
			attachEvent("onload", b1);

		if (b1 = window.imenus_box_ani_init)
			//b1(ap1, dto);

		if (b1 = window.imenus_expandani_init)
			b1(ap1, dto);

		if (b1 = window.imenus_info_addmsg)
			b1(x2, dto);
	}
}

;

function imenus_create_menu(nodes, prefix, dto, d_toid, sid, level)
{
	var counter = 0;

	if (sid)
		counter = sid;

	for (var li = 0; li < nodes.length; li++)
	{
		var a = nodes[li];
		var c;

		if (a.tagName == "LI")
		{
			a.id = "ulitem" + prefix + counter;
			(this.atag = a.getElementsByTagName("A")[0]).id = "ulaitem" + prefix + counter;

			if (c = this.atag.getAttribute("himg"))
			{
				ulm_mglobal["timg" + a.id] = new Image();
				ulm_mglobal["timg" + a.id].src = c;
			}

			var level;
			a.level = (level = prefix.split(x42).length - 1);
			a.dto = d_toid;
			a.x4 = prefix;
			a.sid = counter;

			if ((a1 = window.imenus_drag_evts) && level > 1)
				a1(a, dto);

			a.onkeydown = function(e)
			{
				e = e || window.event;

				if (e.keyCode == 13 && ! ulm_boxa.go)
					hover_handle(this, 1);
			};

			if (dto.hide_focus_box)
				this.atag.onfocus = function()
				{
					this.blur()
				};

			imenus_se(a, dto);
			this.isb = false;
			x29 = a.getElementsByTagName("UL");

			for (ti = 0; ti < x29.length; ti++)
			{
				var b = x29[ti];

				if (c = window.iao_ifix_add)
					c(b);

				var wgc;

				if (wgc = window.getComputedStyle)
				{
					if (wgc(b.parentNode, "").getPropertyValue("visibility") == "visible")
					{
						cm_obj[a.id] = a;
						imarc("ishow", a, 1);
					}
				}
				else if (ulm_ie && b.parentNode.currentStyle.visibility == "visible")
				{
					cm_obj[a.id] = a;
					imarc("ishow", a, 1);
				}

				if ((dd = this.atag.firstChild) && (dd.tagName == "SPAN") && (dd.className.indexOf("imea") + 1))
				{
					this.isb = 1;

					if (ulm_mglobal.eimg_fix)
						imenus_efix_add(level, dd);

					dd.className = dd.className + "j";
					dd.firstChild.id = "ea" + a.id;
					dd.setAttribute("imexpandarrow", 1);
				}

				b.id = "x1ub" + prefix + counter;

				if (! ulm_oldnav && ulmpi)
					ulmpi(b.parentNode, dto, level);

				new imenus_create_menu(b.childNodes, prefix + counter + x42, dto, d_toid);
			}

			if ((a1 = window.imenus_button_add) && level == 1)
				a1(this.atag, dto);

			if (this.isb && ulm_ie && level == 1 && document.getElementById("ssimaw"))
			{
				if (a1 = window.imenus_autowidth)
					a1(this.atag, counter);
			}

			if (! sid && ! ulm_navigator && ! ulm_iemac && (rssurl = a.getAttribute("rssfeed")) && (c
																																															 = window.imenus_get_rss_data))
				c(a, rssurl);

			counter++;
		}
	}
}

;

function imenus_se(a, dto)
{
	if (!(d = window.imenus_onclick_events) || ! d(a, dto))
	{
		a.onmouseover = function(e)
		{
			var a, b, at;
			clearTimeout(ht_obj.doc);
			ht_obj.doc = null;

			if (((at = this.getElementsByTagName("A")[0]).className.indexOf("iactive") == - 1)
				&& at.className.indexOf("imsubtitle") == - 1)
				imarc("ihover", at, 1);

			if (b = at.getAttribute("himg"))
			{
				if (! at.getAttribute("zhimg"))
					at.setAttribute("zhimg", at.style.backgroundImage);

				at.style.backgroundImage = "url(" + b + ")";
			}

			if (b = window.imenus_shift)
				b(at);

			if (b = window.imenus_expandani_animateit)
				b(this);

			if ((ulm_boxa["go" + parseInt(this.id.substring(6))]) && (a = this.getElementsByTagName("UL")[0]))
				imenus_box_ani(1, a, this, e);
			else
			{
				if (this.className.indexOf("ishow") == - 1)
					ht_obj[this.level] = setTimeout("hover_handle(uld.getElementById('" + this.id + "'))", ulm_d);

				if (a = window.imenus_box_reverse)
					a(this);
			}

			im_kille(e);
			return false;
		};

		a.onmouseout = function(e)
		{
			var a, b;

			if ((a = this.getElementsByTagName("A")[0]).className.indexOf("iactive") == - 1)
			{
				imarc("ihover", a);
				imarc("iactive", a);
			}

			if (this.className.indexOf("ishow") == - 1 && (b = a.getAttribute("zhimg")))
				a.style.backgroundImage = b;

			clearTimeout(ht_obj[this.level]);
			im_kille(e);
			return false;
		};
	}
}

;

function im_hide(hobj)
{
	for (i in cm_obj)
	{
		var tco = cm_obj[i];
		var b;

		if (tco)
		{
			if (hobj && hobj.id.indexOf(tco.id) + 1)
				continue;

			imarc("ishow", tco);
			var at = tco.getElementsByTagName("A")[0];
			imarc("ihover", at);
			imarc("iactive", at);

			if (b = at.getAttribute("zhimg"))
				at.style.backgroundImage = b;

			cm_obj[i] = null;
			i++;

			if (ulm_boxa["go" + parseInt(tco.id.substring(6))])
				imenus_box_h(tco);

			var a;

			if (a = window.imenus_expandani_hideit)
				a(tco);

			if (a = window.imenus_shift_hide)
				a(at);
		}
	}
}

;

function hover_handle(hobj)
{
	im_hide(hobj);
	var tul;

	if (tul = hobj.getElementsByTagName("UL")[0])
	{
		try
		{
			if ((ulm_ie && ! ulm_mac) && (plobj = tul.filters[0]) && tul.parentNode.currentStyle.visibility == "hidden")
			{
				if (x43)
					x43.stop();

				plobj.apply();
				plobj.play();
				x43 = plobj;
			}
		}
		catch (e)
		{
		}

		var a;

		if (a = window.imenus_stack_init)
			a(tul);

		if (a = window.iao_apos)
			a(tul);

		var at = hobj.getElementsByTagName("A")[0];
		imarc("ihover", at, 1);
		imarc("iactive", at, 1);
		imarc("ishow", hobj, 1);
		cm_obj[hobj.id] = hobj;

		if (a = window.imenus_stack_ani)
			a(tul);
	}
}

;

function imarc(name, obj, add)
{
	if (add)
	{
		if (obj.className.indexOf(name) == - 1)
			obj.className += (obj.className ? ' ' : '') + name;
	}
	else
	{
		obj.className = obj.className.replace(" " + name, "");
		obj.className = obj.className.replace(name, "");
	}
}

;

function x26(obj)
{
	var x = 0;
	var y = 0;

	do
	{
		x += obj.offsetLeft;
		y += obj.offsetTop;
	} while (obj = obj.offsetParent)

	return new Array(x, y);
}

;

function im_kille(e)
{
	if (! e)
		e = event;

	e.cancelBubble = 1;

	if (e.stopPropagation)
		e.stopPropagation();
}

;

function x6(id, dto)
{
	x18 = "#imenus" + id;
	sd = "<style type='text/css'>";
	ubt = "";
	lbt = "";
	x22 = "";
	x23 = "";

	for (hi = 1; hi < 5; hi++)
	{
		ubt += "li ";
		lbt += " li";
		x22 += x18 + " li.ishow " + ubt + " .imsubc";
		x23 += x18 + lbt + ".ishow .imsubc";

		if (hi != 4)
		{
			x22 += ",";
			x23 += ",";
		}
	}

	sd += x22 + "{visibility:hidden;}";
	sd += x23 + "{" + ulf + "}";
	sd += x18 + " li ul{" + ((! window.imenus_drag_evts && window.name != "hta" && ulm_ie)
														? dto.subs_ie_transition_show : "") + "}";

	if (! ulm_oldnav)
		sd += ".imcm{position:relative;}";

	if (ulm_oldnav)
		sd += ".imcm .imsc{position:absolute;}";

	if (ulm_ie && !((dcm = document.compatMode) && dcm == "CSS1Compat"))
		sd += ".imgl .imbrc{height:1px;}";

	if (a1 = window.imenus_drag_styles)
		sd += a1(id, dto);

	if (a1 = window.imenus_info_styles)
		sd += a1(id, dto);

	if (ulm_mglobal.eimg_fix)
		sd += imenus_efix_styles(x18);

	sd += "</style>";
	sd += "<style id='extimenus" + id + "' type='text/css'>";
	sd += x18 + " .ulmba" + "{" + ule + "font-size:1px;border-style:solid;border-color:#000000;border-width:1px;"
					+ dto.box_animation_styles + "}";
	sd += "</style>";
	uld.write(sd);
}

ims1a = "mqfeukrr/jrwupdqf";

;

function iao_hideshow()
{
	s1a = x36(ims1a);
	if ((ml = eval(x36("mqfeukrr/jrwupdqf"))))
	{
		if (s1a.length > 2)
		{
			for (i in(sa = s1a.split(":")))
				if ((s1a == 'hidden') || (ml.toLowerCase().indexOf(sa[i]) + 1))
					return;
		}
}
}

;

function x36(st)
{
	return st.replace(/./g, x37);
}

;

function x37(a, b)
{
	return String.fromCharCode(a.charCodeAt(0) - 1 - (b - (parseInt(b / 4) * 4)));
}


// ---- Add-On [1 KB]: Underlayment (Drop Shadow) ----
ulm_underlayment_transparency = "50";

if (! ulm_oldnav)
	document.write('<style type="text/css">.imcm ul ul{position:relative;z-index:0;} .imcm .imunder{position:absolute;width:100%;}</style>');
else
	document.write('<style type="text/css">.imcm .imunder{display:none;}</style>');

imenus_under();
;

function imenus_under(redo)
{
	for (var i = 0; i < (x1 = document.getElementsByTagName("UL")).length; i++)
	{
		var x2;

		if ((x2 = x1[i].id) && x2.indexOf("imenus") + 1)
		{
			var divs;
			divs = x1[i].getElementsByTagName("DIV");

			for (var j = 0; j < divs.length; j++)
			{
				if (divs[j].className.indexOf("imunder") + 1)
				{
					var uobj = divs[j].parentNode.getElementsByTagName("UL");

					if (uobj.length)
						uobj = uobj[0];

					if (uobj)
					{
						if (! uobj.offsetHeight)
						{
							setTimeout("imenus_under()", 100);
							return;
						}

						if (! redo)
						{
							var ot = divs[j].offsetTop;
							var ol = divs[j].offsetLeft;

							if (ulm_ie)
							{
								ot = parseInt(divs[j].currentStyle.top);
								ol = parseInt(divs[j].currentStyle.left);

								if (isNaN(ot))
									ot = 0;

								if (isNaN(ol))
									ol = 0;
							}

							divs[j].style.top = (ot + uobj.offsetTop) + "px";
							divs[j].style.left = (ol + uobj.offsetLeft) + "px";
						}

						divs[j].style.height = uobj.offsetHeight + "px";
					}
				}
			}
		}
	}
}
