var n1,n2,n3,n4,v1;var b1,b2,b3,c1,c2,c3;var m2,m3,m1,fa1,fm1,flsz1;var pp2,pp3,pp1,pp4,wH1,wW1;var l2,l3,l1,l4,f1,i1,d1,s1,ss1;var d1,d2,d3;flsz1=0;window.onresize=get_c1;function init1(){fa1=1;fm1=1;s1=window.screen;ss1=window;b1=340;n1=100;n2=30;d1=document.getElementById('m1');d2=document.createElement('div');d2.setAttribute('id','img1');v1=' <img src="images/line1.jpg"; id="linia1" style="position:absolute; left:'+n1+'px; float:left;" onclick="moveRight1();">';d2.innerHTML=v1;d1.appendChild(d2);d2=document.createElement('div');d2.setAttribute('id','img2');v1='<img src="images/line2.jpg"; id="linia2" style="position:absolute; left:'+(n1+n2)+'px; float:left;" onclick="moveRight2();">';d2.innerHTML=v1;d1.appendChild(d2);d2=document.createElement('div');d2.setAttribute('id','img3');v1='<img src="images/line3.jpg"; id="linia3" style="position:absolute; left:'+(n1+2*n2)+'px; float:left;" onclick="moveRight3();">';d2.innerHTML=v1;d1.appendChild(d2);d2=document.createElement('div');d2.setAttribute('id','logo');v1='<img src="images/logo.jpg" id="logo1" style="float:right">';d2.innerHTML=v1;d1.appendChild(d2);SetIFrame1();d3=document.getElementById("logo1");b2=parseInt(d3.clientWidth);if(b2==0)b2=228;n3=b2%100;b3=b2-n3;n4=(b2-b3)%10;b1=b3+(n3-n4)+10;d3=document.getElementById("c1");if(d3==undefined){SetIFrame1();d3=document.getElementById("c1");}d3.offsetTop='20px';f1=document.getElementById("i1");if(f1==undefined){SetIFrame1();f1=document.getElementById("i1");}ss1=document.getElementById("linia1");get_c2();mvT1();flsz1=1;};function SetIFrame1(){d2=document.createElement('div');d2.setAttribute('id','c1');v1="position:absolute; left:"+(n1+3*n2)+"px;";d2.setAttribute('style',v1);d2.innerHTML="<iframe id='i1' frameborder=0 width=60px  src='welcome.htm'></iframe>";d1.appendChild(d2);}function get_c2(){wH1=400;wW1=600;if(document.body&&document.body.offsetWidth){wW1=document.body.offsetWidth;wH1=document.body.offsetHeight;}if(document.compatMode=='CSS1Compat'&&document.documentElement&&document.documentElement.offsetWidth){wW1=document.documentElement.offsetWidth;wH1=document.documentElement.offsetHeight;}if(window.innerWidth&&window.innerHeight){wW1=window.innerWidth;wH1=window.innerHeight;}if(b1==undefined)location.reload(true);if(f1==undefined){f1=document.getElementById("i1");if(f1==undefined){f1=document.getElementById("c1");}}if(ss1==undefined)ss1=document.getElementById("linia1");if(ss1.clientHeight)wH1=ss1.clientHeight;f1.height=wH1;c1=wW1-b1-20-(n1+3*n2);};function get_c1(){if(flsz1){get_c2();get_pp();c2=(wW1-n1-b1-2*n2);if(c2>0){if((l1>(wW1-b1-2*n2))||(l1>n1))pp1.style.left=(wW1-b1-2*n2)+"px";if((l2>(wW1-b1-n2))||(l2>(n1+n2)))pp2.style.left=(wW1-b1-n2)+"px";if((l3>(wW1-b1))||(l3>(n1+2*n2)))pp3.style.left=(wW1-b1)+"px";f1.width=c1+"px";set_P4();}else{pp1.style.left=n1+'px';pp2.style.left=n1+n2+'px';pp3.style.left=n1+2*n2+'px';pp4.style.left=n1+3*n2+"px";f1=document.getElementById("i1");f1.width='1px';f1.height='1px';}}};function get_pp(){pp4=document.getElementById("c1");pp2=document.getElementById("linia2");pp3=document.getElementById("linia3");pp1=document.getElementById("linia1");l2=parseInt(pp2.style.left);l1=parseInt(pp1.style.left);l3=parseInt(pp3.style.left);l4=parseInt(pp4.style.left);};function getpr1(){f1.width='1px';f1.height='1px';get_pp();};function mvT1(){if(fa1){i1=parseInt(f1.width);i1=i1+10;f1.width=i1+"px";var tim1=setTimeout("mvT1()",2);if(i1>c1)clearTimeout(tim1);}else{f1.width=c1+"px";}};function mvT2(){f1.width='60px';f1.height=wH1;f1.src=ss1;mvT1();};function set_P4(){if(l4<l3)pp4.style.left=n1+3*n2+"px";if(l4<l2)pp4.style.left=n1+2*n2+"px";if(l4<l1)pp4.style.left=n1+n2+"px";};function mvR123(){get_pp();set_P4();switch(m1){case 0:break;default:l1=l1+m1*10;pp1.style.left=l1+"px";break;}switch(m2){case 0:break;default:l2=l2+m2*10;pp2.style.left=l2+"px";break;}switch(m3){case 0:break;default:l3=l3+m3*10;pp3.style.left=l3+"px";break;}if(fm1){var tim=setTimeout("mvR123()",2);}switch(m1){case 0:break;case 1:if(fm1){if(l1>(wW1-b1-2*n2)){clearTimeout(tim);}}else{pp1.style.left=(wW1-b1-2*n2)+"px";}break;case-1:if(fm1){if(l1<=n1){clearTimeout(tim);}}else{pp1.style.left=n1+"px";}break;}switch(m2){case 0:break;case 1:if(fm1){if(l2>(wW1-b1-n2)){clearTimeout(tim);}}else{pp2.style.left=(wW1-b1-n2)+"px";}break;case-1:if(fm1){if(l2<=(n1+n2)){clearTimeout(tim);}}else{pp2.style.left=(n1+n2)+"px";}break;}switch(m3){case 0:break;case 1:if(fm1){if(l3>(wW1-b1)){clearTimeout(tim);}}else{pp3.style.left=(wW1-b1)+"px";}break;case-1:if(fm1){if(l3<=(n1+2*n2)){clearTimeout(tim);}}else{pp3.style.left=(n1+2*n2)+"px";}break;}get_pp();set_P4();};function moveRight1(){ss1='aboutus.htm';m2=0;m3=0;m1=1;getpr1();if((l1==n1)&&(l2==(n1+n2))){if(l3==(n1+2*n2))m3=1;else m3=0;m2=1;}else{if(l1==n1){m2=0;m3=0;}else{m1=-1;}}if(m1<0){ss1='clients.htm';}mvR123();mvT2();};function moveRight2(){ss1='clients.htm';m2=1;m3=0;m1=0;getpr1();if((l3==(n1+n2*2))&&(l2==(n1+n2)))m3=1;else{if(l2==(n1+n2)){m3=0;m1=0;}else{m2=-1;if(l1!=n1)m1=-1;}}if(m2<0){ss1='contactus.htm';}mvR123();mvT2();};function moveRight3(){ss1='contactus.htm';m2=0;m3=1;m1=0;getpr1();if((l3==(n1+n2*2))&&(l2==(n1+n2))){m3=1;m2=0;}else{if(l2==(n1+n2)){m2=0;m3=-1;}else{m2=-1;m3=-1;if(l1==n1)m1=0;else m1=-1;}}if(m3<0){ss1='welcome.htm';}mvR123();mvT2();};
