// JavaScript Document
<!--sliding nav bar-->
function start(){
var thisLayer=document.getElementById("Layer1").style

if (thisLayer.width="10px"){
document.getElementById("Layer1").style.width="11px"
expand()
	}
}

function expand(){
	var thisLayer=document.getElementById("Layer1").style
	
	if(parseInt(thisLayer.width) <= 10)
	{
	return
	}
	
	if (parseInt(thisLayer.width) < 200)
	{
	thisLayer.width = parseInt(thisLayer.width) + 4 + "px"
	setTimeout("expand()",1)
	
	}
	if(parseInt(thisLayer.width) >= 200)
	{
	return
	}
}

function end(){
var thisLayer=document.getElementById("Layer1").style

if (thisLayer.width="200px"){
document.getElementById("Layer1").style.width="199px"
expand2()
	}
}

function expand2(){
	var thisLayer=document.getElementById("Layer1").style
	
	if (parseInt(thisLayer.width) >= 11)
	{
	thisLayer.width = parseInt(thisLayer.width) + -3 + "px"
	setTimeout("expand2()",1)
	}
	if(parseInt(thisLayer.width) <= 10)
	{
	return
	}
}
<!--drawers-->
<!--distances drawer-->
function begin1(){
var thisLayer=document.getElementById("distancescontent").style
	document.getElementById("distancescontent").style.height="5px"
		reveal1()
}

function reveal1(){
var thisLayer=document.getElementById("distancescontent").style
	
	
	if (parseInt(thisLayer.height) < 200)
	{
	thisLayer.height = parseInt(thisLayer.height) + 9 + "px"
	setTimeout("reveal1()",1)
	}
	
	if(parseInt(thisLayer.height) >= 200)
	{
	return
	}
}

function end1(){
var thisLayer=document.getElementById("distancescontent").style
	if (thisLayer.height="200px"){
	document.getElementById("distancescontent").style.height="198px"
		reveal1a()
	}
}
function reveal1a(){
var thisLayer=document.getElementById("distancescontent").style
	
	if (parseInt(thisLayer.height) >= 1)
	{
	thisLayer.height = parseInt(thisLayer.height) + - 9 + "px"
	setTimeout("reveal1a()",1)
	}
	if(parseInt(thisLayer.height) <=0)
	{
	return
	}
}

<!--brands drawer-->
function begin2(){
var thisLayer=document.getElementById("brandcontent").style
	document.getElementById("brandcontent").style.height="5px"
		reveal2()
}

function reveal2(){
var thisLayer=document.getElementById("brandcontent").style
	
	
	if (parseInt(thisLayer.height) < 70)
	{
	thisLayer.height = parseInt(thisLayer.height) + 3 + "px"
	setTimeout("reveal2()",1)
	}
	
	if(parseInt(thisLayer.height) >= 70)
	{
	return
	}
}

function end2(){
var thisLayer=document.getElementById("brandcontent").style
	if (thisLayer.height="70px"){
	document.getElementById("brandcontent").style.height="69px"
		reveal2a()
	}
}
function reveal2a(){
var thisLayer=document.getElementById("brandcontent").style
	
	if (parseInt(thisLayer.height) >= 1)
	{
	thisLayer.height = parseInt(thisLayer.height) + - 3 + "px"
	setTimeout("reveal2a()",1)
	}
	if(parseInt(thisLayer.height) <= 0)
	{
	return
	}
}

<!--rating drawer-->
function begin3(){
var thisLayer=document.getElementById("ratingcontent").style
	document.getElementById("ratingcontent").style.height="5px"
		reveal3()
}

function reveal3(){
var thisLayer=document.getElementById("ratingcontent").style
	
	
	if (parseInt(thisLayer.height) < 70)
	{
	thisLayer.height = parseInt(thisLayer.height) + 3 + "px"
	setTimeout("reveal3()",1)
	}
	
	if(parseInt(thisLayer.height) >= 70)
	{
	return
	}
}

function end3(){
var thisLayer=document.getElementById("ratingcontent").style
	if (thisLayer.height="70px"){
	document.getElementById("ratingcontent").style.height="69px"
		reveal3a()
	}
}
function reveal3a(){
var thisLayer=document.getElementById("ratingcontent").style
	
	if (parseInt(thisLayer.height) >= 1)
	{
	thisLayer.height = parseInt(thisLayer.height) + - 3 + "px"
	setTimeout("reveal3a()",1)
	}
	if(parseInt(thisLayer.height) <= 0)
	{
	return
	}
}

<!--amenity drawer-->
function begin4(){
var thisLayer=document.getElementById("amenitycontent").style
	document.getElementById("amenitycontent").style.height="5px"
		reveal4()
}

function reveal4(){
var thisLayer=document.getElementById("amenitycontent").style
	
	
	if (parseInt(thisLayer.height) < 70)
	{
	thisLayer.height = parseInt(thisLayer.height) + 3 + "px"
	setTimeout("reveal4()",1)
	}
	
	if(parseInt(thisLayer.height) >= 70)
	{
	return
	}
}

function end4(){
var thisLayer=document.getElementById("amenitycontent").style
	if (thisLayer.height="70px"){
	document.getElementById("amenitycontent").style.height="69px"
		reveal4a()
	}
}
function reveal4a(){
var thisLayer=document.getElementById("amenitycontent").style
	
	if (parseInt(thisLayer.height) >= 1)
	{
	thisLayer.height = parseInt(thisLayer.height) + - 3 + "px"
	setTimeout("reveal4a()",1)
	}
	if(parseInt(thisLayer.height) <= 0)
	{
	return
	}
}

<!--property drawer-->
function begin5(){
var thisLayer=document.getElementById("propertycontent").style
	document.getElementById("propertycontent").style.height="5px"
		reveal5()
}

function reveal5(){
var thisLayer=document.getElementById("propertycontent").style
	
	
	if (parseInt(thisLayer.height) < 70)
	{
	thisLayer.height = parseInt(thisLayer.height) + 3 + "px"
	setTimeout("reveal5()",1)
	}
	
	if(parseInt(thisLayer.height) >= 70)
	{
	return
	}
}

function end5(){
var thisLayer=document.getElementById("propertycontent").style
	if (thisLayer.height="70px"){
	document.getElementById("propertycontent").style.height="69px"
		reveal5a()
	}
}
function reveal5a(){
var thisLayer=document.getElementById("propertycontent").style
	
	if (parseInt(thisLayer.height) >= 1)
	{
	thisLayer.height = parseInt(thisLayer.height) + - 3 + "px"
	setTimeout("reveal5a()",1)
	}
	if(parseInt(thisLayer.height) <= 0)
	{
	return
	}
}

<!--steps for table expands-->
function steps(a){
	var o = document.getElementById(a).style.display
if (o=="none"){
setTimeout("show('1')", 100)
setTimeout("show('2')", 150)
setTimeout("show('3')", 200)
setTimeout("show('4')", 250)
setTimeout("show('5')", 300)
}else{
setTimeout("hide('5')", 100)
setTimeout("hide('4')", 150)
setTimeout("hide('3')", 200)
setTimeout("hide('2')", 250)
setTimeout("hide('1')", 300)
	}
}

<!--basic display dhtml-->
function show(a){
document.getElementById(a).style.display=""
}

function hide(a){
document.getElementById(a).style.display="none"
}

function switches(a,b){
document.getElementById(a).style.display="none"
document.getElementById(b).style.display=""
}

function display(a){
var o=document.getElementById(a).style.display
if (o=="none"){
document.getElementById(a).style.display =""
}else{
document.getElementById(a).style.display ="none"
	}
}