function changeElemFontSize(elemId, fs){
	var fsTable = new Array( '11px','13px','16px' );
	if ( fs < 0 ) fs = 0;
	if ( fs > 2 ) fs = 2;
	var elem = document.getElementById(elemId);
	elem.style.fontSize = fsTable[fs];
	
	if ( fs == 1 ) {
		document.getElementById('size1').className = "size1";
		document.getElementById('size2').className = "size2 active";
		document.getElementById('size3').className = "size3";
	} else if ( fs == 2 ) {
		document.getElementById('size1').className = "size1";
		document.getElementById('size2').className = "size2";
		document.getElementById('size3').className = "size3 active";	
	} else {
		document.getElementById('size1').className = "size1 active";
		document.getElementById('size2').className = "size2";
		document.getElementById('size3').className = "size3";
	}
setCookieValue('font_size', fs);
}// pobiera wartosc ciastka
function getCookieValue(cookieName){
 cookieName+="=";
 startIndex=document.cookie.indexOf(cookieName);
 if (startIndex==-1) {
 return "";
 }
 startIndex+=cookieName.length;

 if (document.cookie.indexOf(";",startIndex)==-1) {
 endIndex=document.cookie.length;
 } else {
 endIndex=document.cookie.indexOf(";",startIndex);
 }
 cookieValue=document.cookie.substring(startIndex,endIndex);
cookieValue=unescape(cookieValue);
 return cookieValue;
}

// ustawia wartosc ciastka
function setCookieValue(cookieName, cookieValue) {
 cookieValue=escape(cookieValue);
 document.cookie=cookieName + "=" + cookieValue + '; path=/';
}


