var ab=4;var STEPS=55;var bb=0;var cb=0;var db=0;var eb=true;var fb=0;var gb=[];var hb="";var ib="";function jb(kb){clearInterval(hb);eb=true;fb=0;db=kb;lb(kb);mb(kb);hb=setInterval(nb,15);}
function lb(kb){cb=-kb*644;var ob=pb(Math.abs(cb-bb),STEPS);ob=cb>bb?ob:-ob;gb[0]=bb+ob*qb(0,STEPS);for(var i=1;i<STEPS;i++){gb[i]=gb[i-1]+ob*qb(i,STEPS);}
}
function nb(){if(fb>=STEPS){bb=cb;ib.style.left=bb+"px";rb=sb;tb.style.left=sb+"px";eb=false;document.getElementById("arrow_right").style.display=db==ab-1?"none":"block";document.getElementById("arrow_left").style.display=db==0?"none":"block";clearInterval(hb);return;}
bb=gb[fb];ib.style.left=Math.round(bb)+"px";rb=ub[fb];tb.style.left=Math.round(rb)+"px";fb++;}
var vb=3;function qb(fb,wb){switch(vb){case 1:return xb(fb,wb);case 2:return yb(fb,wb);case 3:return zb(fb,wb);}
}
function xb(fb,wb){var $b=Math.sin(1.5*Math.PI*fb/wb)+1;return Math.pow($b,1.2);}
function yb(fb,wb){var $b=Math.sin(2*Math.PI*fb/wb-Math.PI/2)+1;return Math.pow($b,1.2);}
function zb(fb,wb){var $b=Math.sin(Math.PI*fb/wb+Math.PI/2)+1;return $b;}
function pb(_b,wb){var ac=0;for(var i=0;i<wb;i++){ac+=qb(i,wb);}
var ob=_b/ac;return ob;}
var tb="";var bc=0;var cc=[];var dc=[];var sb=0;var rb=0;var ub=[];ec=function(name){var a=document.createElement("a");a.__folioNum=bc;a.onclick=function(){jb(this.__folioNum);}
a.href="javascript: void(0);";cc[bc]=a;a.appendChild(document.createTextNode(name));tb.appendChild(a);bc++;}
fc=function(){var gc=[];var hc=[];for(var i=0;i<bc;i++){gc[i]=cc[i].offsetWidth;hc[i]=cc[i].offsetLeft;dc[i]=-(cc[i].offsetLeft+cc[i].offsetWidth/2)+322;}
for(var i=0;i<bc;i++){cc[i].style.position="absolute";cc[i].style.left=hc[i]+"px";cc[i].style.width=gc[i]+"px";cc[i].style.top="10px";}
rb=dc[0];tb.style.left=rb+"px";}
mb=function(ic){sb=dc[ic];var jc=pb(Math.abs(rb-sb),STEPS);jc=sb>rb?jc:-jc;ub[0]=rb+jc*qb(0,STEPS);for(var i=1;i<STEPS;i++){ub[i]=ub[i-1]+jc*qb(i,STEPS);}
}
function kc(){ib=document.getElementById("folio_wrapper");for(var i=1;i<ab;i++){var lc=document.getElementById("project"+i);lc.style.left=i*644+"px";lc.style.display="block";}
document.getElementById("arrow_left").onmousedown=function(){if(db>0){db--;jb(db);}
}
document.getElementById("arrow_right").onmousedown=function(){if(db<ab-1){db++;jb(db);}
}
tb=document.getElementById("folio_list");ec("Region Mszana");ec("ZINTECH");ec("Pro Optima");ec("ARNDEX");fc();var mc=document.getElementById("real_png");var nc=navigator.appVersion.split("MSIE");var oc=parseFloat(nc[1]);if(document.body.filters){if(oc<7){mc.style.background="";mc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='gfx/real.png')";}
mc.style.visibility="visible";}
eb=false;}
window.onload=function(){kc();pc();}
var qc=[];var rc=[];function pc(){var cc=document.getElementById("__preLoader1").getElementsByTagName("a");var i=0;for(k in cc){if(!cc[k].firstChild)continue;var sc=cc[k].firstChild.src;rc[i++]=new Image();rc[i-1].src=sc.substr(0,sc.length-4)+"_red.jpg";qc[i-1]=new Image();qc[i-1].src=sc;(function(tc){cc[k].onmouseover=function(){this.firstChild.src=rc[tc].src;}
cc[k].onmouseout=function(){this.firstChild.src=qc[tc].src;}
}
)(i-1);}
}




