$(function() {
	$(".menuL").lavaLamp({ fx: "backout", speed: 600, overcolor: {color: '#fff'},outcolor: {color: '#000'}, speedcolor:300 });
	$("a.bl_").attr({"target":"_blank"});
	if(jQuery.fn.toggleVal) { $(".togvalue").toggleVal(); }


	//global
	$(".leftUlMenu").each(function() {
		if($("a", this).size() == 1) { $("a", this).eq(0).addClass("last"); } else { $("a", this).eq($("a", this).size()-1).addClass("last"); }
		if($("a", this).eq($("a", this).size()-1).hasClass("active")) { $("a", this).eq($("a", this).size()-1).removeClass("active").addClass("activeS"); }
	});


	$(".historyBack").click(function(event) { event.preventDefault(); history.back(-1); });
	$("a.fancybox").fancybox({'overlayShow':true, 'overlayOpacity':0.73, 'padding':0, 'imageScale':true});
	$(".fileDescription").css({opacity:0.7});

	$(".sterPanel a").click(function(event) {
		event.preventDefault();
		$(".sterPanel a").removeClass("active");
		$(this).addClass("active");
		if($(this).attr("rel") == 1) {
			$(".ph2").fadeOut(0);
			$(".ph1").fadeIn("slow");
		} else {
			$(".ph1").fadeOut(0);
			$(".ph2").fadeIn("slow");
		}
	});


	if(jQuery.fn.defuscate) { $(".obfuscated").defuscate(); }

	if(jQuery.fn.toggleVal) { $(".togvalue").toggleVal(); }
	if(jQuery.fn.tooltip) { $(".tool_page").tooltip({ track: true, delay: 0, showURL: false, showBody: " - ", fade: 250 }); }


});
