/* Hides email from bots */
function email() {
	ML="n<\".:rolcm@=hs>ie/t fa";
	MI="1EC<5@D;29E?7B64?0D6:?=7386939B2>?0D6:?=7386939B1AE>";
	OT="";
	for(j=0;j<MI.length;j++){
	OT+=ML.charAt(MI.charCodeAt(j)-48);
	}document.write(OT);
}

function hr_email() {
    ML="/ s.\"mahi=et@l<r:o>fc";
    MI=">617?:C94568=;A@7?<82=3DA535;4B7?<82=3DA535;>06B";
    OT="";
    for(j=0;j<MI.length;j++){
    OT+=ML.charAt(MI.charCodeAt(j)-48);
    }document.write(OT);
}

/* Sub menu links (anchors) */
function setAnchorLinks() {
	jQuery(document).ready(function() {
	    //jQuery("a.anchor").remove().prependTo("body");
	    jQuery("#main-content div").hide();
	    jQuery("ul.boxed-list li a").click(function() {
            var href = jQuery(this).attr("href");
            jQuery("ul.boxed-list li a.active").removeClass("active");
            jQuery("#main-content div:visible").hide();
            jQuery(this).addClass("active");
            jQuery(href).fadeIn("slow");
            return false;
        });
        
	    var myFile = document.location.toString();
        if (myFile.match('#')) { // the URL contains an anchor
          // click the navigation item corresponding to the anchor
          var myAnchor = '#' + myFile.split('#')[1];
          $('ul.boxed-list li a[href="' + myAnchor + '"]').click();
        } else {
          // click the first navigation item
          jQuery("ul.boxed-list li:first a").click();
        }
	});
}