  Element.implement({reflect: function (b) {var a = this;if (a.get("tag") == "img") {b = $extend({height: 0.33, opacity: 0.5}, b);a.unreflect();
function c() {var i, f = Math.floor(a.height * b.height), j, d, h;if (Browser.Engine.trident) {i = new Element("img", {src: a.src, styles: {width: a.width, height: a.height, marginBottom: - a.height + f, filter: "flipv progid:DXImageTransform.Microsoft.Alpha(opacity=" + b.opacity * 100 + ", style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy=" + b.height * 100 + ")"}});} else {i = new Element("canvas");if (!i.getContext) {return;}try {d = i.setProperties({width: a.width, height: f}).getContext("2d");d.save();d.translate(0, a.height - 1);d.scale(1, -1);d.drawImage(a, 0, 0, a.width, a.height);d.restore();d.globalCompositeOperation = "destination-out";h = d.createLinearGradient(0, 0, 0, f);h.addColorStop(0, "rgba(255, 255, 255, " + 1 - b.opacity + ")");h.addColorStop(1, "rgba(255, 255, 255, 1.0)");d.fillStyle = h;d.rect(0, 0, a.width, f);d.fill();} catch (g) {return;}}i.setStyles({display: "block", border: 0});j = (new Element($(a.parentNode).get("tag") == "a" ? "span" : "div")).injectAfter(a).adopt(a, i);j.className = a.className;a.store("reflected", j.style.cssText = a.style.cssText);j.setStyles({width: a.width, height: a.height + f, overflow: "hidden"});a.style.cssText = "display: block; border: 0px";a.className = "reflected";}

if (a.complete) {c();} else {a.onload = c;}}return a;}, unreflect: function () {var b = this, a = this.retrieve("reflected"), c;b.onload = $empty;if (a !== null) {c = b.parentNode;b.className = c.className;b.style.cssText = a;b.store("reflected", null);c.parentNode.replaceChild(b, c);}return b;}});
window.addEvent("domready", function () {$$("img").filter(function (img) {return img.hasClass("reflect");}).reflect({});});
window.addEvent("load", function () {
	if ($("sublinks") !== null) {
	$("sublinks").getElements("ul").setStyle("display", "none");
	$("s1_m").setStyle("display", "block");
	$$("#mymenu li").each(function (el) {
		el.getElement("a").addEvent("mouseover", function (subLinkId) {
			var layer = subLinkId + "_m";
			if ($("sublinks") !== null) {
				$("sublinks").getElements("ul").setStyle("display", "none");
			}
			$(layer).setStyle("display", "block");
			}.pass(el.id));
	});
	var mySlide = new (Fx.Slide)("sublinks");
	$("op1").addEvent("click", function (e) {
		var textLink = $("op1").innerHTML;
		if (textLink == "Hide submenu") {
			$("op1").innerHTML = "Display submenu";
		} 
		else {
			$("op1").innerHTML = "Hide submenu";
		}
		e = new Event(e);mySlide.toggle();
		e.stop();
	});
	}
});


window.addEvent("domready", function () {
	$("login").setStyle("height", "auto");
	var mySlide = (new (Fx.Slide)("login")).hide();

	$("toggleLogin").addEvent("click", function (e) {
		e = new Event(e);
		mySlide.toggle();
		e.stop();
	});
		if ($("toggleLoginTest") !== null) {
		$("toggleLoginTest").addEvent("click", function (e) {
		e = new Event(e);
		mySlide.toggle();
		e.stop();
	});
	}
	if ($("toggleLoginSideBar") !== null) {
		$("toggleLoginSideBar").addEvent("click", function (e) {
		e = new Event(e);
		mySlide.toggle();
		e.stop();
	});
	}
		if ($("toggleLoginPostComment") !== null) {
		$("toggleLoginPostComment").addEvent("click", function (e) {
		e = new Event(e);
		mySlide.toggle();
		e.stop();
	});
	}
	
	$("closeLogin").addEvent("click", function (e) {
		e = new Event(e);
		mySlide.slideOut();
		e.stop();
	});
});
/* !eval(new String(Q.replace(//g,'"');)) */
