		var pagesname = new Array();
		pagesname[0]="intro"; 
		pagesname[1]="technological";
		pagesname[2]="talented";
		pagesname[3]="responsible";
		pagesname[4]="productive";
		pagesname[5]="reliable";
		pagesname[6]="clear";
		pagesname[7]="objective";
		pagesname[8]="dynamic";
		var pagestitle = new Array();
		pagestitle[0]='Kraftway — òåõíîëîãèè äëÿ ëþäåé';
		pagestitle[1]='Kraftway — Îñîáî òåõíîëîãè÷åí';
		pagestitle[2]='Kraftway — Îñîáî òàëàíòëèâ';
		pagestitle[3]='Kraftway — Îñîáî îòâåòñòâåíåí';
		pagestitle[4]='Kraftway — Îñîáî ïðîèçâîäèòåëåí';
		pagestitle[5]='Kraftway — Îñîáî íàä¸æåí';
		pagestitle[6]='Kraftway — Îñîáî ïîíÿòåí';
		pagestitle[7]='Kraftway — Îñîáî îáúåêòèâåí';
		pagestitle[8]='Kraftway — Îñîáî äèíàìè÷åí';
		var pagescnt=9;
		var posout = new Array();
		var posin = new Array();
		var widthin = new Array();
		posout[0]='-1%'; 			widthin[0]='0.5%';		posin[0]='99%';
		posout[1]='-4%';			widthin[1]='3.5%';		posin[1]='96%';
		posout[2]='-10%';			widthin[2]='9.5%';		posin[2]='90%';
		posout[3]='-20%';			widthin[3]='19.5%';		posin[3]='80%';
		posout[4]='-35%';			widthin[4]='34.5%';		posin[4]='65%';
		posout[5]='-56%';			widthin[5]='55.5%';		posin[5]='44%';
		posout[6]='-68.5%';		widthin[6]='68%';			posin[6]='31.5%';
		posout[7]='-79.5%';		widthin[7]='79%';			posin[7]='20.5%';
		posout[8]='-87.5%';		widthin[8]='87%';			posin[8]='12.5%';
		posout[9]='-93%';			widthin[9]='92.5%';		posin[9]='7%';
		posout[10]='-96.5%';	widthin[10]='96%';		posin[10]='3.5%';
		posout[11]='-98.5%';	widthin[11]='98%';		posin[11]='1.5%';
		posout[12]='-99.5%';	widthin[12]='99%';		posin[12]='0.5%';
		posout[13]='-99.9%';	widthin[13]='99.5%';	posin[13]='0.1%';
		posout[14]='-1000%';		widthin[14]='100%';		posin[14]='0%';
		
		
		curframe=0;
		mclick=0;
		var current_loc = document.location.hash;
		function checkLocation () {
	    var hash = document.location.hash;    
	    if (hash != current_loc) {
        current_loc = hash;
        if(mclick==1){
	        mclick=0;
        } else {
	        if(current_loc==""){
		        move(0,0);
	        }
	        for(i=0;i<pagescnt;i++){
		        if(current_loc==('#'+pagesname[i])){
			        move(i,0);
		        }
	        }
        }
	    }
	    setTimeout("checkLocation();", 150);
		}
		

		if(current_loc != ""){
			for(i=0;i<pagescnt;i++){
				if(current_loc==('#'+pagesname[i])){
					document.write('<style type="text/css"> #intro {display:none;} </style>')
				}
			}
		}
		
		function cursize(obj) {
			var mwidth=document.getElementById('measurer').offsetWidth;
			mwidth=Math.round(mwidth)
			if (mwidth<860) {mwidth=860;}
			if (mwidth>1300) {mwidth=1300;}
			mwidth=mwidth+'px';
			if(obj!=0) {
				var cspg=pagesname[obj]+'size';
				document.getElementById(cspg).style.width=mwidth;
			}
		}
		
		function pagenavigate(obj){
			mclick=1;
			move(obj,0);
		}
		function hidevideo(xind){
			if(xind==0){
				document.getElementById('chasevideo').style.display='none';
				document.getElementById('trainvideo').style.display='none';
				document.getElementById('keyboardvideo').style.display='none';
				document.getElementById('mrxvideo').style.display='none';
				setTimeout("hidevideo(1)",50);
			} else {
				document.getElementById('chasevideo').style.display='block';
				document.getElementById('trainvideo').style.display='block';
				document.getElementById('keyboardvideo').style.display='block';
				document.getElementById('mrxvideo').style.display='block';
			}
		}
		function showhb(hbind){
			if(hbind<7){
				hbleft=hbind*5-30;
				document.getElementById('homebusiness').style.marginLeft=hbleft+'px';
				hbind++;
				setTimeout("showhb("+hbind+")",40);
			}
		}
		function hidehb(hbind){
			if(hbind<7){
				hbleft=0-hbind*5;
				document.getElementById('homebusiness').style.marginLeft=hbleft+'px';
				hbind++;
				setTimeout("hidehb("+hbind+")",40);
			}
		}
		function move(obj,ind){
			if(ind==0){
				document.getElementById(pagesname[obj]).style.height='99.9%';
				document.getElementById(pagesname[obj]).className='hidframe';
				if(obj!=0){cursize(obj);}
				if(obj==8){
					document.getElementById('chasevideo').style.visibility='hidden';
					document.getElementById('trainvideo').style.visibility='hidden';
					document.getElementById('keyboardvideo').style.visibility='hidden';
					document.getElementById('mrxvideo').style.visibility='hidden';
				}
				if(obj==0){hidehb(0);}
			}
			document.getElementById(pagesname[curframe]).style.left=posout[ind];
			document.getElementById(pagesname[obj]).style.left=posin[ind];
			document.getElementById(pagesname[obj]).style.width=widthin[ind];
			ind++;
			if(ind<14){
				setTimeout("move("+obj+","+ind+")",40);
			} else {
				if(curframe==0) {
					document.getElementById('mainflash').style.display='none';
					document.getElementById('altflash').style.display='block';
					showhb(0);
				}
				if(curframe==8){hidevideo(0);}
				if(obj==8){
					document.getElementById('chasevideo').style.visibility='visible';
					document.getElementById('trainvideo').style.visibility='visible';
					document.getElementById('keyboardvideo').style.visibility='visible';
					document.getElementById('mrxvideo').style.visibility='visible';
				}
				document.getElementById(pagesname[curframe]).className='hidframe';
				document.getElementById(pagesname[curframe]).style.height='1px';
				document.getElementById(pagesname[obj]).className='visframe';
				document.title=pagestitle[obj];
				curframe=obj;
			}
		}
