function ShowFAQ( iNum ) {
	var oElem = $('text_block_'+iNum);
	
	if( !_MC.MatchClass(oElem, 'hidden') ) {
		_MC.SetClass(oElem, 'hidden', ' ');
	}
	else {
		_MC.SetClass(oElem, ' ', 'hidden');
	}
	if(_MC.isIe()) {
		var oLayout = $('layout');
		var oFooter = $('footer');
		var iLHeight = oLayout.offsetHeight*1;
		var iFHeight = oFooter.offsetHeight*1;
		
		oFooter.style.top = iLHeight - iFHeight + 'px';
		oFooter.removeAttribute('style');
	}
}

function MailToUs( sLang ) {
	var sPage = ( sLang != null && sLang == 'en' ) ? '/en/form' : '/form';
	window.open(sPage, 'MailForm', 'height=650, width=660,location=false, menubar=false, resizable=false, scrollbars=true, toolbar=false');
}

var bStart = false;
function ShowHideText( sId ) {
	if(bStart)
		return;
	bStart = true;
	var _this = this;
	this.oContainer = $( 'container_'+sId );
	this.oText = $( sId );
	
	this.iCurrHeight = oContainer.offsetHeight;
	this.iHeight = oText.offsetHeight;
	
	this.iTime = 1000;
	this.iStep = Math.round(this.iHeight/15);
	this.iInterval = 10;
	
	if(iCurrHeight == 0) {
		this.oShow = window.setInterval(function(){
			if( _this.oContainer.offsetHeight >= _this.iHeight ) {
				_this.oContainer.style.height = '100%';
				bStart = false;
				window.clearInterval(_this.oShow);
				if( _MC.isIe() ) {
					var oLayout = $('layout');
					var oFooter = $('footer');
					var iHeight = oLayout.offsetHeight*1;
					var iFHeight = oFooter.offsetHeight*1;
					oFooter.style.top = iHeight-iFHeight+'px';
					oFooter.removeAttribute('style');
				}
				return;
			}
			else {
				var iCurrHeight = ( (_this.iHeight - _this.oContainer.offsetHeight*1) < this.iStep*1 ) ? _this.oContainer.offsetHeight*1 + (_this.iHeight - _this.oContainer.offsetHeight*1) : _this.oContainer.offsetHeight*1 + this.iStep*1;
				_this.oContainer.style.height = iCurrHeight+'px';
			}
		}, this.iInterval);
	}
	else {
		this.oShow = window.setInterval(function(){
			if( _this.oContainer.offsetHeight <= 0 ) {
				_this.oContainer.style.height = '0px';
				bStart = false;
				window.clearInterval(_this.oShow);
				if( _MC.isIe() ) {
					var oLayout = $('layout');
					var oFooter = $('footer');
					var iHeight = oLayout.offsetHeight*1;
					var iFHeight = oFooter.offsetHeight*1;
					oFooter.style.top = iHeight-iFHeight+'px';
					oFooter.removeAttribute('style');
				}
				return;
			}
			else {
				var iCurrHeight = ( _this.oContainer.offsetHeight*1 < this.iStep*1 ) ? 0 : _this.oContainer.offsetHeight*1 - this.iStep*1;
				_this.oContainer.style.height = iCurrHeight+'px';
			}
		}, this.iInterval);
	}
}

function ShowRoomPhoto( oElem ) {
	var aId = oElem.id.split('_');
	var oPhoto = $('room_photo_'+aId[1]);
	
	_MC.SetClass(oPhoto, ' ', 'hidden');
}

function HideRoomPhoto( oElem ) {
	var aId = oElem.id.split('_');
	var oPhoto = $('room_photo_'+aId[1]);
	
	_MC.SetClass(oPhoto, 'hidden', ' ');
}































