﻿var height=85;
var id=0;
function Showroom(){
	
	if(document.getElementById("flash").style.height!="575px"){
		OpenShowroom();
	}else{
		CloseShowroom();
	}
}

function OpenShowroom(){
	if (height<575)
	{
		height = height + 50;
		height = height > 575 ? 575 : height;
		document.getElementById("flash").style.height = height + 'px';
		id = setTimeout("OpenShowroom()",5);
	} else {
		clearTimeout(id);
	}
}

function CloseShowroom(){

	if (height>85) {
	height = height - 50;
	height = height < 85 ? 85 : height;
	document.getElementById("flash").style.height = height + 'px';
	id = setTimeout("CloseShowroom()",5);
	} else {
		clearTimeout(id);
	}
}


function Gallery(){
	
	var Gl = document.getElementById("ctl00_gallery");
	
	if(Gl.style.height!="430px"){
		Gl.style.height ='430px';
		Gl.style.marginTop = '-440px';
	}else{
		Gl.style.height ='20px';
		Gl.style.marginTop = '-20px';
	}
}

