window.addEvent('domready', function(){



<!--smoth scroll-->
new SmoothScroll({duration: 1000});	
<!--end sm scroll-->
<!-- menu-->
					var list = $$('ul#mainlevel-slick li a');
					list.each(function(element) {
				
				var fx = new Fx.Styles(element, {duration:200, wait:false});
				
				element.addEvent('mouseenter', function(){
					fx.start({
						'margin-left': 20,
						'margin-bottom': 5,
						'background-color': '#fff',
						color: '#567DD4'
						
					});
				});
				
				element.addEvent('mouseleave', function(){
					fx.start({
						'margin-left': 0,
						'margin-bottom': 0,
						'background-color': '#fff',
						color: '#567DD4'
						
					});
				});
				
			});
					<!-- hover-->
					
				var resize = new Fx.Style('fontsize', 'font-size', {duration: 800});

	$('down').addEvent('click', function() {
		resize.start(10);
	});

	$('up').addEvent('click', function() {
		resize.start(15);
	});
		$('medium').addEvent('click', function() {
		resize.start(12);
	});	<!-- end menu-->
		

});
<!-- switch -->
function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

window.onload = function(e) {
  var cookie = readCookie("style");
  var title = cookie ? cookie : getPreferredStyleSheet();
  setActiveStyleSheet(title);
}

window.onunload = function(e) {
  var title = getActiveStyleSheet();
  createCookie("style", title, 365);
}

var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
<!-- show -->
      var show_hide_flag;
      show_hide_flag=false;

      function Hide_Fade(content)
      {
          var fade = new Fx.Style($(content),'opacity',{duration: 600});
          fade.start(1,0.01);
      }

      function Show_Fade(content)
      {
          var fade = new Fx.Style($(content),'opacity',{duration: 600});
          fade.start(0.01,1);
      }

      function ShowHide(content)
      {
        if (show_hide_flag)
        {
          Hide_Fade(content);
        }else
        {
          Show_Fade(content);
        }
        show_hide_flag=!show_hide_flag;
      }