function go() {
	window.location = document.getElementById("selectmember").value;
}
function goSpeciality() {
	window.location = document.getElementById("speciality").value;
}
function goPeriod() {
	window.location = document.getElementById("year").value;
}


document.observe('dom:loaded', function () {
 if (typeof Vx === 'undefined') {
  try {
   var location_sub = /([^\/]+?)\/([^\/]+?)\.asp$/;
   var folder_name, file_name, window_location;
   window.location.href.gsub(location_sub, function (match) {
    window_location = match[0];
    folder_name = match[1];
    file_name = match[2];
   });
 
   $$('.menu a', '.submenu a').each(function (element) {
    $(element).readAttribute('href').gsub(location_sub, function (match) {
     if (match[0] === window_location) {
      var active_elements = $(element).ancestors().select(
       function (el) { return (el.tagName.toUpperCase() === 'LI') }
      );
      
      active_elements.invoke('addClassName', 'selected');
      
      active_elements.each(function (li) {
       var class_pattern = 'menu-';
       var class_names = $w(li.className);
       var hover_class = false;
       class_names.each(function (class_name) {
        if (class_name.startsWith(class_pattern)) {
         li.addClassName(class_name + '_selected');
        }
       });
      });
     }
    });
   });
  } catch (address_error) {}
 }


	$$('.pdf_list a[href$=asp]').invoke('observe', 'click', function (event) {
		event.stop();
		var href = $(this).readAttribute('href');
		window.open('../_pdf/pdf.aspx?page=' + href);
	});
});