% roomPlate.tex
\newcommand{\jpsNameFont}{}
\newcommand{\roomNameY}{}
\newcommand{\roomNameYb}{}

\newcommand{\makeRoomPlate}[4]{%
%	#1: JPS room name
%	#2: #lines for JPS room name
%	#3: original room#
%	#4: entrance side (L or R).  Not used here, but used in roomPoster.tex
	\thiswatermark{
		% banner at the top
%		\KLShowOrigin
		\put(0,\bannerY){\textcolor{\themeBackgroundColor}{\rule{\textwidth}{\bannerheight mm}}}
		\put(0,\foldingLineY){\textcolor{black}{\rule{\textwidth}{\foldingLineWidth mm}}}
		\put(0,\bannerUnderlineY){\textcolor{\themeTextColor}{\rule{\textwidth}{\bannerUnderlineWidth mm}}}
		\put(0,\bannerUnderlineYb){\textcolor{\themeTextColor}{\rule{\textwidth}{\bannerUnderlineWidth mm}}}
		\put(0,\bannerTextY){%
			\parbox{\textwidth}{\fbanner \textcolor{\themeTextColor}{\textbf{\hspace{\bannerTextX mm}\bannerText}}}
		}
		\put(0,\bannerTextYb){%
			\rotatebox[origin=c]{180}{%
				\parbox{\textwidth}{\fbanner \textcolor{\themeTextColor}{\textbf{\hspace{\bannerTextX mm}\bannerText}}}
			}
		}

	        \fontfamily{phv}\selectfont
		\bfseries%
		\ifthenelse{\equal{#2}{normal}}{%
			\renewcommand{\jpsNameFont}{\fnormal}%
			\renewcommand{\roomNameY}{\roomNameYNormal}
			\renewcommand{\roomNameYb}{\roomNameYbNormal}
		}{%
			\ifthenelse{\equal{#2}{small}}{%
				\renewcommand{\jpsNameFont}{\fsmall}%
				\renewcommand{\roomNameY}{\roomNameYSmall}
				\renewcommand{\roomNameYb}{\roomNameYbSmall}
			}{%
				\renewcommand{\jpsNameFont}{\fsmaller}%
				\renewcommand{\roomNameY}{\roomNameYSmaller}
				\renewcommand{\roomNameYb}{\roomNameYbSmaller}
			}%
		}%
		\put(0,\roomNameY){%
			\parbox{\textwidth}{%
				\begin{spacing}{0.85}%
					\jpsNameFont%
            				\centering%
					\textcolor{\roomTextColor}{#1}%
				\end{spacing}
			}%
		}

		\put(0,\roomNameYb){%
			\rotatebox[origin=c]{180}{%
				\parbox{\textwidth}{%
					\begin{spacing}{0.85}%
						\jpsNameFont%
						\centering%
						\textcolor{\roomTextColor}{#1}%
					\end{spacing}
				}
			}
		}
		
		\put(10,\originalNameY){{\ftiny \textcolor{\roomTextColor}{#3}}}
		\put(10,\originalNameYb){%
			\rotatebox[origin=c]{180}{\ftiny  \textcolor{\roomTextColor}{#3}}
		}
				
	}
	\vspace*{0mm}
	\clearpage
}

\newcommand{\roomPlate}[4]{%
%	#1: JPS room name
%	#2: #lines for JPS room name
%	#3: original room#
%	#4: entrance side (L or R).  Not used here, but used in roomPoster.tex
	\begingroup
		\renewcommand{\roomTextColor}{\themeTextColor}
		\makeRoomPlate{#1}{#2}{#3}{#4}
	\endgroup
}

\newcommand{\freeRoomPlate}[4]{%
	\begingroup
		\renewcommand{\roomTextColor}{freeRoomColor}
		\makeRoomPlate{{\jfnormal 休憩室}{\ffreeAlphabet #1}}{#2}{#3}
	\endgroup
}
