	document.onkeydown = killTab;
	function killTab(e)
	{
		if (window.event) 
			keycode = window.event.keyCode;
		else if (e) 
			keycode = e.which;
		if(keycode == 9){
			return false;
		}
	}

	var fortisEngine = {
		
		pWidth :null,
		speed : 0.8, // speed in seconds
		step : 125,

		currPage : 0,

		goPixel: 0,
		currPixel : 0,

		direction: 0,
		shift : 50,

		timer : null,

		strelki: [],

		isMotion : false,

		findArrows : function()
		{
			var buff = document.getElementsByTagName("div");
			for(var i=0;i<buff.length;i++)
			{
				if(buff[i].className=="go" || buff[i].className=="back_button")
				{
					this.strelki[this.strelki.length]=buff[i];
				}
			}
		},

		hideArrows : function()
		{
			for(var i=0;i<this.strelki.length;i++)
			{
				this.strelki[i].style.display = "none";
			}
		},

		showArrows : function()
		{
			for(var i=0;i<this.strelki.length;i++)
			{
				this.strelki[i].style.display = "block";
			}
		},

		init : function()
		{
			if (document.body.clientHeight<808)
			{
				document.getElementById("minWidth").style.height="808px"
			}else{
				document.getElementById("minWidth").style.height=document.body.clientHeight+"px";
			}
			fortisEngine.findArrows();
			if(!this.isMotion)
			{
				clearTimeout(this.timer);
			}
			this.pWidth = document.body.clientWidth<997?997:document.body.clientWidth;
			this.shift = this.speed * document.body.clientWidth * this.step / 1000;
			document.getElementById("page0").style.width=this.pWidth+"px";
			for(var i=1; i<8; i++)
			{
				page = document.getElementById("page"+i);
				page.style.left=this.pWidth*i+"px";
				page.style.width=this.pWidth+"px";
				page.style.display="block";
			}
			document.getElementById("container").style.left=-this.currPage*this.pWidth+"px";
			if(!this.currPage)
			{
				this.currPage = this.currPixel = 0;
				document.getElementById('container').style.left=0;
				document.getElementById('page7').innerHTML = document.getElementById('page0').innerHTML;
			}
		},

		goPage : function(num)
		{
			this.goPixel = (num-1)*this.pWidth;
			if(this.currPage != num-1)
			{
				this.isMotion = true;
				this.hideArrows();
				this.direction = this.currPage > num-1 ? 1:-1;
				this.shift = document.body.clientWidth * Math.abs(this.currPage - num+1)*25/1000;
				this.currPage = num-1;
				this.scroll();
			}
		},

		showPage : function(n)
		{
			this.currPage = n-1;
			this.currPixel = -(n-1)*this.pWidth;
			document.getElementById("container").style.left=this.currPixel+"px";
		},

		scroll : function()
		{
			this.currPixel = this.currPixel+(this.direction*this.shift);
			if(Math.abs(Math.abs(this.currPixel) - this.goPixel) > this.shift)
			{
				document.getElementById("container").style.left=this.currPixel+"px";
				this.timer = setTimeout("fortisEngine.scroll()", 25);
			}
			else
			{
				this.isMotion = false;
				this.showArrows();
				if(this.currPage==7)
				{
					this.showPage(1);
					return;
				}
				document.getElementById("container").style.left=-this.goPixel+"px";
			}
		},

		showContacts : function(id)
		{
			var d = document.getElementById("xepb"+(this.currPage+1));
			d.style.display = (d.style.display=='none')?'block':'none';
			d = document.getElementById("cont_info"+id);
			if(d.innerHTML.match("@"))
			{
				d.innerHTML="<!-- -->";
			}
			else
			{
				d.innerHTML=document.getElementById("cc").innerHTML;
			}
		},

		reloadPage : function()
		{
			this.showPage(this.currPage+1);
		},

		swapInfo : function(id)
		{
			var d = document.getElementById(id);
			var d1 = document.getElementById("xepb");
			d.style.display = (d.style.display=='none')?'block':'none';
			d1.style.display = (d1.style.display=='none')?'block':'none';

		},

		currCont : 1,
		currCont0 : 1,
		currCont1 : 11,
		currCont2 : 21,
		currCont3 : 31,
		swapContent : function(id)
		{
			//var id = parseInt(id.replace("line_", ""));
			var id;
			var x = parseInt(id / 10);
			var i =1;
			var d, r;

			if (id > 29){this.currCont = this.currCont3;}
			else if (id > 19){this.currCont = this.currCont2;}
			else if (id > 9){this.currCont = this.currCont1;}
			else {this.currCont = this.currCont0;}

			while((d = document.getElementById("cont_"+parseInt(x*10+i))))
			{
				d.style.display="none";
				if(this.currCont != id)
				{
					document.getElementById("line_"+parseInt(x*10+i)).className = "u";
					document.getElementById("link_"+parseInt(x*10+i)).className = "ha";
				}
				i++;
			}
			if(this.currCont != id)
			{
				var row = document.getElementById("line_"+id);
				row.className = (row.className=="u")?"u1":"u";
				var head = document.getElementById("link_"+id);
				head.className = (head.className=="ha")?"h":"ha"
			}
			if(document.getElementById("cont_"+id))
			{
				document.getElementById("cont_"+id).style.display="block";
			}
			
			if (id > 29){this.currCont3 = id;}
			else if (id > 19){ this.currCont2 = id; }
			else if (id > 9){ this.currCont1 = id; }
			else {this.currCont0 = id; }
		},
		
		changeLine : function(id)
		{
			//var id = parseInt(id.replace("line_", ""));
			var id;
			var row = document.getElementById("line_"+id);
			var head = document.getElementById("link_"+id);
			
			if (id > 29){this.currCont = this.currCont3;}
			else if (id > 19){this.currCont = this.currCont2;}
			else if (id > 9){this.currCont = this.currCont1;}
			else {this.currCont = this.currCont0;}
			
			if(this.currCont != id)
			{
				row.className = (row.className=="u")?"u2":"u";
				head.className = (head.className=="hh")?"ha":"hh"
			}
			
		}
	}
	
function CheckForm()
{
	w=window.open('send.php','send','height=160,width=220,maximize=0,minimize=0,center=1,resizable=0,status=0,top=200,left=300');
}
// --></script></p><form action=order.html method=post name=form_price target=price onsubmit="return CheckForm();"><br><b> Контекстная поисковая ре