uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;var scompat = document.compatMode;var hotelintcomplate=0;hotelimgarr=new Array();hotelaltarr=new Array();hotellinkarr=new Array();hoteltargetarr=new Array();hoteltitarr=new Array();hoteldesarr=new Array();hotelimgarr[0]="";hotelaltarr[0]="";hotellinkarr[0]="";hoteltargetarr[0]="";hoteltitarr[0]="";hoteldesarr[0]="";hotelimgarr[1]="../images/sputnik1.jpg";hotelaltarr[1]="Гостиница «Спутник»";hotellinkarr[1]="hotel.html";hoteltargetarr[1]="_self";hoteltitarr[1]="Гостиница «Спутник»";hoteldesarr[1]="Почему мы подходим Вам?<br/>Как к нам добраться?<br/>Отзывы наших клиентов<br/>Фотогалерея";hotelimgarr[2]="../images/sputnik2.jpg";hotelaltarr[2]="Номера";hotellinkarr[2]="rooms.html";hoteltargetarr[2]="_self";hoteltitarr[2]="Номера";hoteldesarr[2]="Экскурсии по номерам<br/>Фотографии<br/>Цены и скидки<br/>Бронирование";hotelimgarr[3]="../images/sputnik3.jpg";hotelaltarr[3]="Питание";hotellinkarr[3]="restourant.html";hoteltargetarr[3]="_self";hoteltitarr[3]="Питание";hoteldesarr[3]="Ресторан / Бар<br/>Банкетный зал<br/>Обслуживание в номерах<br/>Фотогалерея";hotelimgarr[4]="../images/sputnik4.jpg";hotelaltarr[4]="Услуги";hotellinkarr[4]="services.html";hoteltargetarr[4]="_self";hoteltitarr[4]="Услуги";hoteldesarr[4]=" Конференц-залы / Бизнес-центр<br/>Салон красоты<br/>Автостоянка<br/>Дополнительные услуги";hotelimgarr[5]="../images/sputnik5.jpg";hotelaltarr[5]="Контакт";hotellinkarr[5]="contacts.html";hoteltargetarr[5]="_self";hoteltitarr[5]="Контакт";hoteldesarr[5]="Главные телефоны<br/>Схема проезда<br/>Пишите нам!";var gnrated='';var hotelstepcount=20;var hotelcurrstep=10;var hoteltimeo=null;var hotelhorvert=0;var hotelllllll=0;var hotellllllll=0;var hotelllllllll=0;var hotelll=new Array();var hotellll=new Array();var hotelllll=new Array();var hotelstartposx=new Array();var hotellllll=new Array();var i=0;var hotellllllllll=0;var hotelDescCalcLeftBir=0;var hotelDescCalcLeft=0;var hotelDescCalcWidth=0;var hotelDescCalcHeight=0;var hotelDescCalcIcWidth=0;var hotelDescCalcIcHeight=0;var hotelhpiece='';var hotelds="";var hotelIEDescOpacity=100;var hotelFFOpacity=1.0;var hotelDescFadeEffectTimer=null;var hotelAutoPlayTimer=null;var hotelAutoPlayCurrent=1;var hotelicerdemi=0;function hotelWriteDesc(){	if(hotellinkarr[i].length>2){hotelds=hotelds+'<a href="'+hotellinkarr[i]+'" target="'+hoteltargetarr[i]+'" style="text-decoration:none;">';}	hotelds=hotelds+'<div id="adesc'+i+'" style="position:absolute;top:'+360+'px;left:0px;width:'+hotelDescCalcWidth+'px;height:'+hotelDescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:pointer;filter:alpha(opacity=50);opacity:0.50;" onMouseOut="hoteloutall()">';	hotelds=hotelds+'<div style="position:absolute;left:0px;top:0px;width:'+hotelDescCalcWidth+'px;height:'+hotelDescCalcHeight+'px;border-style:solid;border-width:0px;border-color:#000000;background-color:#'+'000000'+';opacity: '+0.50+';filter:alpha(opacity='+50+');" onMouseOut="hoteloutall()"></div>';	hotelds=hotelds+'<div style="position:relative;left:0px;top:0px;width:'+hotelDescCalcIcWidth+';height:'+hotelDescCalcIcHeight+'px;text-align:'+'left'+';overflow:hidden;padding:'+3+'px;border-style:'+'solid'+';border-width:'+2+'px;border-color:#'+'990000'+';color:#'+'FFFFFF'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+13+';font-weight:'+'normal'+';text-decoration:'+'none'+';opacity: 1.0;filter:alpha(opacity=100);" onMouseOut="hoteloutall()">';	hotelds=hotelds+'<span style="color:#'+'FECE3F'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+14+';font-weight:'+'normal'+';text-decoration:'+'none'+';" onMouseOut="hoteloutall()">'+hoteltitarr[i]+'</span>';	if(hoteltitarr[i].length>0){hotelds=hotelds+'<br />';}			hotelds=hotelds+''+hoteldesarr[i];	hotelds=hotelds+'</div>';	hotelds=hotelds+'</div>';	if(hotellinkarr[i].length>2){hotelds=hotelds+'</a>';}}function hotelinit_doc(fstr,hormuvertmi){	hotelDescCalcLeftBir=5;		if((0==0)&&(hotelhorvert==0))	{		hotelDescCalcLeft=5+2;	}	else	{		hotelDescCalcLeft=5;	}	if(0==0)	{		hotelDescCalcWidth=338-5-5;	}	else	{		hotelDescCalcWidth=852-5-5;	}	if((hotelhorvert==1)&&(0==1))	{		hotelDescCalcHeight=475-360-5;	}	else	{		hotelDescCalcHeight=475-360-5;	}	if((IEB==true)&&(scompat == "BackCompat" ))	{		hotelDescCalcIcWidth=hotelDescCalcWidth;		hotelDescCalcIcHeight=hotelDescCalcHeight;	}	else	{		hotelDescCalcIcWidth=hotelDescCalcWidth-2*(2)-2*(3);		hotelDescCalcIcHeight=hotelDescCalcHeight-2*(2)-2*(3);	}	hotelfolderset=fstr;	var tmpleftpad=0;	var tmptoppad=0;	hotelhpiece=hotelhpiece+'<div style="position:relative;width:'+852+'px;height:'+475+'px;border-style:solid;border-width:'+3+'px;border-color:#'+'342016'+';">';	hotelhpiece=hotelhpiece+'<div style="position:relative;width:'+852+'px;height:'+475+'px;overflow:hidden;border-style:solid;border-width:0px;border-color:#1f110a;cursor:default;" onMouseOver="hoteloutall()" onMouseOut="hotelmouse_divout()">';	if(0==1)	{		for(i=1;i<=5;i++) 		{			hotelWriteDesc();		}	}	for(i=1;i<=5;i++)	{		if(hotelhorvert==0)		{			if(i==1){tmpleftpad=0;}else{tmpleftpad=2;}			tmptoppad=0;		}		else		{			tmpleftpad=0;			if(i==1){tmptoppad=0;}else{tmptoppad=2;}		}		gnrated=gnrated+'<div id="hotelpo'+i+'" style="position:absolute;left:0px;top:0px;" onMouseOver="hotelmouse_over('+i+')" onMouseOut="hoteloutall()"><div style="background-color:#1f110a;padding-left:'+tmpleftpad+'px;padding-top:'+tmptoppad+'px;"><a href="'+hotellinkarr[i]+'" target="'+hoteltargetarr[i]+'"><img width="'+338+'" height="'+475+'" src="'+hotelfolderset+hotelimgarr[i]+'" style="border-style:solid;border-width:0px;" TITLE="'+hotelaltarr[i]+'"></img></a>';		if(0==0)		{			hotelds="";			hotelWriteDesc();			gnrated=gnrated+hotelds;		}		gnrated=gnrated+'</div></div>';	}	hotelhpiece=hotelhpiece+gnrated;	if(0==1)	{		hotelhpiece=hotelhpiece+hotelds;	}	hotelhpiece=hotelhpiece+'</div>';	hotelhpiece=hotelhpiece+'</div>';	document.write(''+hotelhpiece);	setTimeout("hotelinit_position("+parseInt(hormuvertmi)+")",50);}function hotelinit_position(hv){	hotelhorvert=hv;	for(i=1;i<=5;i++)	{		hotelll[i]=document.getElementById('hotelpo'+i);		hotellll[i]=document.getElementById('adesc'+i);		if((hotelll[i]==null)||(hotellll[i]==null))		{		    setTimeout("hotelinit_position("+parseInt(hv)+")",200);		    return;		}	}		if(hotelhorvert==0)	{		hotelllllll=parseInt(     (852-((5-1)*2))     /(5));		hotellllllll=hotelllllll+2;		hotelllllllll=parseInt(((852-338)/(5-1)));	}	else	{		hotelllllll=parseInt(     (280-((5-1)*2))     /(5));		hotellllllll=hotelllllll+2;		hotelllllllll=parseInt(((280-475)/(5-1)));	}	for(i=1;i<=5;i++)	{		hotelll[i]=document.getElementById('hotelpo'+i);		sx=(hotellllllll*(i-1))-2;		if(hotelhorvert==0)		{			if(i==1)			{				hotelll[i].style.left="0px";			}			else			{				hotelll[i].style.left=""+sx+"px";			}		}		else		{			if(i==1)			{				hotelll[i].style.top="0px";			}			else			{				hotelll[i].style.top=""+sx+"px";			}		}		hotelstartposx[i]=sx;		hotellllll[i]=hotelstartposx[i];		if(i==1)		{			hotellll[i].style.left=""+hotelDescCalcLeftBir+"px";		}		else		{			hotellll[i].style.left=""+hotelDescCalcLeft+"px";		}			}	hotelintcomplate=1;	if(0==1)	{		hotelDoAutoPlay();	}}function hotelDoAutoPlay(){	hotelmouse_over(hotelAutoPlayCurrent);	hotelAutoPlayCurrent=hotelAutoPlayCurrent+1;	if(hotelAutoPlayCurrent>5)	{		hotelAutoPlayCurrent=1;	}	hotelAutoPlayTimer=setTimeout("hotelDoAutoPlay()",0);}function hoteldo_FadeAnim(){	if(hotellllllllll<1)	{		return;	}	hotelIEDescOpacity=hotelIEDescOpacity+5;	hotelFFOpacity=hotelFFOpacity+0.05;	if(IEB==true)	{		if(hotelIEDescOpacity>100)		{			hotelIEDescOpacity=100;			return;		}	}	else	{		if(hotelFFOpacity>1.00)		{			hotelFFOpacity=1.00;			return;		}	}	if(IEB==true)	{		hotellll[hotellllllllll].filters.item(0).opacity=hotelIEDescOpacity;	}	else	{		hotellll[hotellllllllll].style.opacity = hotelFFOpacity;	}	hotelDescFadeEffectTimer=setTimeout("hoteldo_FadeAnim()",20);}function hoteldo_anim(){	if(hotelcurrstep<=0)	{		if(hotellllllllll>=1)		{			if(hotelhorvert==0)			{				if(hotellllllllll==1)				{					hotellll[hotellllllllll].style.left=""+hotelDescCalcLeftBir+"px";				}				else				{					hotellll[hotellllllllll].style.left=""+hotelDescCalcLeft+"px";				}			}			else			{				if(0==0)				{					hotellll[hotellllllllll].style.left=""+(hotelDescCalcLeft+parseInt(hotelll[hotellllllllll].style.left))+"px";					var DesvertTop=0;					if((hotellllllllll>1) &&(hotellllllllll!=5)){DesvertTop=80+2;}else{DesvertTop=80;}					hotellll[hotellllllllll].style.top=""+(DesvertTop)+"px";				}				else				{					hotellll[hotellllllllll].style.left=""+(hotelDescCalcLeft)+"px";					hotellll[hotellllllllll].style.top=""+80+"px";				}			}			if((hoteltitarr[hotellllllllll].length>0)||(hoteldesarr[hotellllllllll].length>0))			{				if(2==2)				{					hotelIEDescOpacity=0;					hotelFFOpacity=0.00;					hoteldo_FadeAnim();					hotellll[hotellllllllll].style.visibility="visible";				}				else				{					hotellll[hotellllllllll].style.visibility="visible";				}			}			else			{				hotellll[hotellllllllll].style.visibility="hidden";			}		}		return;	}	for(i=2;i<=5;i++)	{		hotellllll[i] = parseInt(hotellllll[i])+parseInt((hotelllll[i]-hotellllll[i])/hotelcurrstep);		if(hotelhorvert==0)		{			hotelll[i].style.left=""+hotellllll[i]+"px";		}		else		{			hotelll[i].style.top=""+hotellllll[i]+"px";		}	}	if((2==1)&&(hotellllllllll>=1))	{		var dtop=0;		hotellll[hotellllllllll].style.visibility="visible";		dtop= 80+        parseInt(hotelDescCalcHeight-      ((hotelDescCalcHeight/hotelstepcount)*(hotelstepcount-(hotelcurrstep-1)))         );		hotellll[hotellllllllll].style.top=""+dtop+"px";	}	hotelcurrstep--;	setTimeout("hoteldo_anim()",10);}function hotelreposition(g){	for(i=1;i<=5;i++)	{		if(i<=g)		{			if(i==1)			{				hotelllll[i]=0;			}			else			{				hotelllll[i]=parseInt(((i-1)*hotelllllllll)-2);			}		}		else		{			oncekix=0;			for(j=1;j<(i-1);j++)			{				oncekix=oncekix+hotelllllllll;			}			if(hotelhorvert==0)			{				hotelllll[i]=parseInt(((338)+(oncekix)));			}			else			{				hotelllll[i]=parseInt(((475)+(oncekix)));			}		}			}	if((hotelhorvert==0)&&(5==g))	{		var bul1=hotelllll[5]+2+338;		var bul2=852-bul1;		hotelllll[5]=hotelllll[5]+bul2;	}	if((hotelhorvert==1)&&(5==g))	{		var bul1=hotelllll[5]+2+475;		var bul2=475-bul1;		hotelllll[5]=hotelllll[5]+bul2;	}	hotelcurrstep=hotelstepcount;	hoteldo_anim();}function hotelmouse_over(g){	if(hotelintcomplate==0){return;}	if(g==hotellllllllll){return;}	hotellllllllll=g;	clearTimeout(hoteltimeo);	if(0==1){if(hotelicerdemi==1){clearTimeout(hotelAutoPlayTimer);}}	for(i=1;i<=5;i++)	{		if(i!=g)		{			hotellll[i].style.visibility="hidden";			if(IEB==true)			{				hotellll[i].filters.item(0).opacity=100;			}			else			{				hotellll[i].style.opacity = 1.0;			}		}	}	hotelreposition(g);}function hoteloutall(){	hotelicerdemi=1;	clearTimeout(hotelAutoPlayTimer);	clearTimeout(hoteltimeo);}function hotelmouse_divout2(){	hotelicerdemi=0;	clearTimeout(hoteltimeo);	if(0==1)	{		clearTimeout(hotelAutoPlayTimer);		hotelAutoPlayCurrent=1;		hotelDoAutoPlay();	}	else	{	for(i=1;i<=5;i++)	{		hotellll[i].style.visibility="hidden";	}	for(i=1;i<=5;i++)	{		sx=(hotellllllll*(i-1))-2;		if(i==1)		{			hotelllll[i]=0;		}		else		{			hotelllll[i]=sx;		}			}	hotellllllllll=-1;	hotelcurrstep=hotelstepcount;	hoteldo_anim();	}}function hotelmouse_divout(){	clearTimeout(hoteltimeo);	hoteltimeo=setTimeout("hotelmouse_divout2()",300);}