window.addEvent('domready', function(){
var bodyFx = new Fx.Style('centar', 'width', {duration: 1, transition: Fx.Transitions.quadInOut});
	$ES('.largeRun').addEvent('click', function() {
			bodyFx.start(930);
			Cookie.set("width", "large");
		});
	$ES('.smallRun').addEvent('click', function() {
			bodyFx.start(736);
			Cookie.set("width", "small");
		});	
		if(Cookie.get("width") == "large"){
			bodyFx.set(930);
		}else if(Cookie.get("width") == "small"){
			bodyFx.set(736);
		}else{
			//do nothing, leave default
		}	
		
var body2Fx = new Fx.Style('centar', 'width', {unit: "%",duration: 1, transition: Fx.Transitions.quadInOut});
	$ES('.fluidR').addEvent('click', function() {
			body2Fx.start(93);
			Cookie.set("width", "fluid");
		});

		if(Cookie.get("width") == "fluid"){
			body2Fx.set(93);

		}else{
			//do nothing, leave default
		}

<!--smoth scroll-->
new SmoothScroll({duration: 1000});	
<!--end sm scroll-->

		

});

<!-- 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;
      }
	  
	  
	  
	  
	  <!-- font -->
	  
	  var prefsLoaded = false;
var defaultFontSize = 76;
var currentFontSize = defaultFontSize;

function revertStyles(){

	currentFontSize = defaultFontSize;
	changeFontSize(0);

}


function changeFontSize(sizeDifference){
	currentFontSize = parseInt(currentFontSize) + parseInt(sizeDifference * 5);

	if(currentFontSize > 85){
		currentFontSize = 85;
	}else if(currentFontSize < 41){
		currentFontSize = 41;
	}

	setFontSize(currentFontSize);
};

function setFontSize(fontSize){
	var stObj = (document.getElementById) ? document.getElementById('content_area') : document.all('content_area');
	document.body.style.fontSize = fontSize + '%';
	
	//alert (document.body.style.fontSize);
};


