\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{label}[2005/11/04 CD Label]
\RequirePackage{typearea}
\paperwidth 140mm
\paperheight 140mm
\areaset{116mm}{116mm}
\addtolength\topmargin{4mm}
\RequirePackage{pstricks}
\RequirePackage{lmodern,german,pst-text,graphicx,color}
\RequirePackage[T1]{fontenc}
\AtBeginDocument{\noindent}

\def\@hoaid{}
\newcommand\hoaid[1]{\def\@hoaid{#1}}

\newcommand\qq{/\kern-.1em/}

\pagestyle{empty}
\definecolor{lehmannsgreen}{cmyk}{0.85,0,1,0}

\newif\ifborder
\newif\ifprepress

% \Status command for output style option
% 0: normal output in real colors
% 1: output in real colors with border lines as draft
% 2: output in fulltone CMYK colors for color separation of films
\@ifundefined{Status}{\chardef\Status=0}{}
\ifcase\Status
	\prepressfalse
	\borderfalse
	\renewcommand\hoaid[1]{}
\or
	\prepressfalse
	\bordertrue
	\renewcommand\hoaid[1]{}
\or
	\prepresstrue
	\borderfalse
\else
	\typeout{Unknown Status given}
\fi

\psset{unit=1mm}
\newenvironment{cdlabel}{%
  \begin{pspicture}(-58,-58)(58,58)%
  \rput[tl](-65,65){\fontsize{5}{5}\sffamily\@hoaid}
  \ifprepress\else\rput[tr](65,65){\sffamily\color{red}\textbf{Proof CMYK}}\fi
  \begin{psclip}{\pscircle[linestyle=none](0,0){58}}%
}{%
  \end{psclip}%
  % Nur f�r Entwurf: Begrenzung des Covers
  \ifborder
  \pscircle[linecolor=red](0,0){58}
  \pscircle[linecolor=red](0,0){10.5}
  \fi
  \rput(0,0){\psline[linewidth=.05](-2,-2)(2,2)\psline[linewidth=.05](-2,2)(2,-2)}
  \rput(45,45){\psline[linewidth=.05](-1,-1)(1,1)\psline[linewidth=.05](-1,1)(1,-1)}
  \rput(-45,45){\psline[linewidth=.05](-1,-1)(1,1)\psline[linewidth=.05](-1,1)(1,-1)}
  \rput(45,-45){\psline[linewidth=.05](-1,-1)(1,1)\psline[linewidth=.05](-1,1)(1,-1)}
  \rput(-45,-45){\psline[linewidth=.05](-1,-1)(1,1)\psline[linewidth=.05](-1,1)(1,-1)}
  %\psgrid[unit=1cm,subgriddiv=1](-6,-6)(6,6)
  \end{pspicture}%
}

