function marquee(x,typ,p){
    typ={
        'up':[-1,'top','offsetHeight'],
        'down':[1,'top','offsetHeight'],
        'left':[-1,'left','offsetWidth'],
        'right':[1,'left','offsetWidth']
    }[typ];
    var m=this,mOut,mIn,turlaj,T,i=typ[0],j=0,p=p||30;
    (mOut=document.getElementById(x)).onmouseover=function(){T=clearInterval(T)};
        mOut.appendChild((mIn=mOut.childNodes)[0].cloneNode(1));
        mOut.onmouseout=function(e){
            e=e||event;e=e.toElement||e.relatedTarget;
            if(e)do{if(e==this)return!1}while(e=e.parentNode)
            T=setInterval(turlaj,p)
        };
    mOut=mIn[0][typ[2]];
    turlaj=function(){
        mIn[0].style[typ[1]]=(-2*i*(j+=i)<(i-1)*mOut?(j=(-i-1)/2*mOut+i):j)+'px';
        mIn[1].style[typ[1]]=j+mOut+'px';
    }
    T=setInterval(turlaj,p);   
}


var fontColor='#91c6e7';
var selectedFontColor='#004a8f';
var white='#fff';
var color2='#c4e6fc';

function largeFontSize() {
	document.getElementById("zmien").style.fontSize = "14px";
	//document.getElementById("zmien").style.line-height="20px";
	
	document.getElementById("smallText").style.color = fontColor;
	document.getElementById("mediumText").style.color = fontColor;
	document.getElementById("largeText").style.color = selectedFontColor;
	//document.getElementById("z").innerHTML =" ";
    document.getElementById("smallT").style.backgroundColor = white;
    document.getElementById("smallM").style.backgroundColor = white;
    document.getElementById("smallB").style.backgroundColor = color2;
	
}
function mediumFontSize() {
	document.getElementById("zmien").style.fontSize = "12px";
	document.getElementById("smallText").style.color = fontColor;
	document.getElementById("mediumText").style.color = selectedFontColor;
	document.getElementById("largeText").style.color = fontColor;
	//document.getElementById("z").innerHTML =" ";
    document.getElementById("smallT").style.backgroundColor = white;
    document.getElementById("smallM").style.backgroundColor = color2;
    document.getElementById("smallB").style.backgroundColor = white;

}
function smallFontSize() {
	document.getElementById("zmien").style.fontSize = "10px"; //12px
	document.getElementById("smallText").style.color = selectedFontColor;
	document.getElementById("mediumText").style.color = fontColor;
	document.getElementById("largeText").style.color = fontColor;
	
    document.getElementById("smallT").style.backgroundColor = color2;
    document.getElementById("smallM").style.backgroundColor = white;
    document.getElementById("smallB").style.backgroundColor = white;
    
    //document.getElementById("z").innerHTML =" ";
	
}




