var co=document.cookie;
var design=1;
if(co.match(/design=(\d+)/)){design=RegExp.$1;}

//design=7;//karácsony

function boxstart(color,title,gif){
  if(design==0){
    if(color=='G'){ck='5FAF6f';cb='90F0A0';}
    if(color=='O'){ck='FFA040';cb='FFD0B0';}
    if(color=='B'){ck='80B0FF';cb='F0F8FF';}
    document.writeln('<TABLE Width=100% BGCOLOR='+ck+' CELLSPACING=0 CELLPADDING=0 BORDER=0>');
    document.writeln(' <TR BGCOLOR=DDEEFF><TD WIDTH=2></TD><TD WIDTH=7></TD><TD WIDTH=800></TD><TD WIDTH=50></TR>');
    document.writeln(' <TR>');
    document.writeln('  <TD BGCOLOR='+ck+' VALIGN=TOP COLSPAN=2>');
    document.writeln('	 <IMG SRC="/D/0/boxLTo'+color+'.gif" ALIGN=TOP HEIGHT=10></TD>');
    document.writeln('	<TD ALIGN=LEFT NOWARP>');
    document.writeln('	 <FONT CLASS=boxcim>');
    document.writeln('	 <B>'+title+'</B>');
    if(gif){document.writeln('   <IMG SRC="/D/'+gif+'.gif" VSPACE=0 HEIGHT=19 ALIGN=ABSMIDDLE>');}
    document.writeln('	</TD>');
    document.writeln('	<TD VALIGN=TOP><IMG SRC="/D/0/boxRTo'+color+'.gif" ALIGN=RIGHT HEIGHT=19 WIDTH=50 HSPACE=0></TD>');
    document.writeln(' </TR><TR>');
    document.writeln('  <TD WIDTH=2><IMG SRC="/0.gif" WIDTH=0></TD>');
    document.writeln('  <TD COLSPAN=3>');
    document.writeln('   <TABLE WIDTH=100% BGCOLOR='+ck+' CELLSPACING=0 CELLPADDING=1 BORDER=0>');
    document.writeln('    <TR><TD>');
    document.writeln('     <TABLE WIDTH=100% BGCOLOR='+cb+' CELLSPACING=0 CELLPADDING=0 BORDER=0>');
    document.writeln('      <TR>');
    document.writeln('       <TD BGCOLOR='+cb+' COLSPAN=2 BACKGROUND="/D/0/bg'+color+'.gif">');
    document.writeln('        <IMG SRC="/D/0/boxLTi'+color+'.gif" ALIGN=TOP HEIGHT=10></TD>');
    document.writeln('	     <TD WIDTH=3 ROWSPAN=2>&nbsp;</TD>');
    document.writeln('	    </TR><TR>');
    document.writeln('	     <TD WIDTH=3>&nbsp;</TD>');
    document.writeln('	     <TD BGCOLOR='+cb+' BACKGROUND="/D/0/bg'+color+'.gif">');
    document.writeln('	      <FONT SIZE=1 COLOR=000000>');
  }

  if(design==1){
    document.writeln('<STYLE>.formO{background-color:#C0D0FF}</STYLE>');
    document.writeln('<TABLE Width=100% CELLSPACING=0 CELLPADDING=0 BORDER=0>');
    document.writeln(' <TR><TD>');
    document.writeln('  <TABLE Width=100% BGCOLOR=B0C0F0 CELLSPACING=1 CELLPADDING=0 BORDER=0>');
    document.writeln('   <TR><TD>');
    document.writeln('    <TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=0 BORDER=0>');
    document.writeln('     <TR>');
    document.writeln('      <TD WIDTH=9><IMG SRC="/D/1/fejlecjel.gif"></TD>');
    document.writeln('      <TD BACKGROUND="/D/1/fejlecbg.gif">');
    document.writeln('       <FONT CLASS=boxcim>');
    document.writeln('       <B>'+title+'</B>');
    if(gif){document.writeln('	<IMG SRC=/D/'+gif+'.gif VSPACE=0 HEIGHT=19 ALIGN=ABSMIDDLE>');}
    document.writeln('       </FONT>');
    document.writeln('      </TD>');
    document.writeln('      <TD WIDTH=9 ALIGN=RIGHT><IMG SRC="/D/1/fejlecjel.gif"></TD>');
    document.writeln('      </TD>');
    document.writeln('     </TR>');
    document.writeln('    </TABLE>');
    document.writeln('    <TABLE width=100% CELLSPACING=0 CELLPADDING=2 BORDER=0>');
    document.writeln('     <TR BGCOLOR=F0F0FF>');
    document.writeln('      <TD>');
    document.writeln('	');						         
    document.writeln('       <FONT SIZE=1 COLOR=000000>');
  }

  if(design==2){
    if(color=='G'){ck='5FAF6f';cb='90F0A0';}
    if(color=='O'){ck='FFA040';cb='FFD0B0';}
    if(color=='B'){ck='80B0FF';cb='F0F8FF';}
    document.writeln('<TABLE Width=100% BGCOLOR='+ck+' CELLSPACING=0 CELLPADDING=0 BORDER=0>');
    document.writeln(' <TR BGCOLOR=DDEEFF><TD WIDTH=2></TD><TD WIDTH=36></TD><TD WIDTH=800></TD></TR>');
    document.writeln(' <TR>');
    document.writeln('  <TD BGCOLOR='+ck+' VALIGN=TOP COLSPAN=2 BACKGROUND=/D/2/'+color+'.gif>');
    document.writeln('	 <IMG SRC="/D/2/boxcorner.gif" ALIGN=TOP></TD>');
    document.writeln('	<TD ALIGN=LEFT NOWARP BACKGROUND=/D/2/'+color+'.gif>');
    document.writeln('	 <FONT CLASS=boxcim>');
    document.writeln('	 <B>'+title+'</B>');
    if(gif){document.writeln('   <IMG SRC="/D/'+gif+'.gif" VSPACE=0 HEIGHT=19 ALIGN=ABSMIDDLE>');}
    document.writeln(' </TR><TR>');
    document.writeln('  <TD WIDTH=2><IMG SRC="/0.gif" WIDTH=0></TD>');
    document.writeln('  <TD COLSPAN=3>');
    document.writeln('   <TABLE WIDTH=100% BGCOLOR='+ck+' CELLSPACING=0 CELLPADDING=1 BORDER=0>');
    document.writeln('    <TR><TD>');
    document.writeln('     <TABLE WIDTH=100% BGCOLOR='+cb+' CELLSPACING=0 CELLPADDING=0 BORDER=0 BACKGROUND=/D/2/'+color+'.jpg>');
    document.writeln('      <TR>');
    document.writeln('       <TD BGCOLOR='+cb+' COLSPAN=2>');
    document.writeln('       </TD>');
    document.writeln('	     <TD WIDTH=3  BGCOLOR='+cb+' ROWSPAN=2>&nbsp;</TD>');
    document.writeln('	    </TR><TR>');
    document.writeln('	     <TD WIDTH=3 BGCOLOR='+cb+'>&nbsp;</TD>');
    document.writeln('	     <TD BGCOLOR='+cb+' BACKGROUND="/D/0/bg'+color+'.gif">');
    document.writeln('	      <FONT SIZE=1 COLOR=000000>');
  }

  if(design==3){
    document.writeln('<STYLE>.formO{background-color:#E8E8F8}</STYLE>');
    document.writeln('<STYLE>.select{background-color:#D0E0D0}</STYLE>');
    document.writeln('<TABLE Width=100% BGCOLOR=C0C0E0 CELLSPACING=0 CELLPADDING=0 BORDER=0>');
    document.writeln(' <TR><TD>');
    document.writeln('  <TABLE Width=100% BGCOLOR=C0C0E0 CELLSPACING=1 CELLPADDING=0 BORDER=0>');
    document.writeln('   <TR><TD>');
    document.writeln('    <TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=0 BORDER=0>');
    document.writeln('     <TR>');
    document.writeln('      <TD WIDTH=5><IMG SRC="/D/3/left.gif"></TD>');
    document.writeln('	    <TD BACKGROUND="/D/3/center.gif" WIDTH=100%>');
    document.writeln('	     <FONT CLASS=boxcim>');
    document.writeln('	     <B>'+title+'</B>');
    if(gif){document.writeln('   <IMG SRC="/D/'+gif+'.gif" VSPACE=0 HEIGHT=19 ALIGN=ABSMIDDLE>');}
    document.writeln('	     </FONT>');
    document.writeln('	    </TD>');
    document.writeln('	    <TD WIDTH=5 ALIGN=RIGHT><IMG SRC="/D/3/right.gif"></TD>');
    document.writeln('     </TR></TABLE>');
    document.writeln('	  <TABLE Width=100% CELLSPACING=0 CELLPADDING=2 BORDER=0>');
    document.writeln('	   <TR BGCOLOR=E0E0E0><TD>');
    document.writeln('	    <FONT SIZE=1 COLOR=000000>');
  }
  
  if(design==4){
    document.writeln('<STYLE>.formO{background-color:#FFCC88}</STYLE>');
    document.writeln('<STYLE>.select{background-color:#FFFFA0}</STYLE>');
    document.writeln('<TABLE Width=100% BGCOLOR=C0C0E0 CELLSPACING=0 CELLPADDING=0 BORDER=0>');
    document.writeln(' <TR><TD>');
    document.writeln('  <TABLE Width=100% BGCOLOR=C0C0E0 CELLSPACING=1 CELLPADDING=0 BORDER=0>');
    document.writeln('   <TR><TD>');
    document.writeln('    <TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=0 BORDER=0 BGCOLOR=5FAF6F>');
    document.writeln('     <TR>');
    document.writeln('      <TD HEIGHT=20 BACKGROUND=/D/4/bg.gif ALIGN=RIGHT STYLE=\'font-family:"comic sans ms,verdana,arial";font-size:16;color:#FFFFFF\'>');
    document.writeln('       '+title+' &nbsp');
    if(gif){document.writeln('   <IMG SRC="/D/'+gif+'.gif" VSPACE=0 HEIGHT=19 ALIGN=ABSMIDDLE>');}
    document.writeln('		         </TD></TR></TABLE>');
    document.writeln('			   <TABLE Width=100% CELLSPACING=0 CELLPADDING=2 BORDER=0 BGCOLOR=B0E0C0>');
    document.writeln('			     <TR><TD BACKGROUND=/D/4/textbg.gif>');
    document.writeln('			      <FONT SIZE=1 COLOR=000000>');
  }
  
  if(design==5){
    document.writeln('<STYLE>.formO,.select{background-color=#FFE0B0;}</STYLE>');
    document.writeln('<TABLE Width=100% BGCOLOR=0000A0 CELLSPACING=0 CELLPADDING=0 BORDER=0>');
    document.writeln(' <TR><TD>');
    document.writeln('  <TABLE Width=100% BGCOLOR=0000A0 CELLSPACING=1 CELLPADDING=0 BORDER=0>');
    document.writeln('   <TR><TD>');
    document.writeln('    <TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=0 BORDER=0>');
    document.writeln('     <TR BGCOLOR=0000A0>');
    document.writeln('	    <TD HEIGHT=20>');
    document.writeln('		');
    document.writeln('	     <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="100%" HEIGHT="20" ALIGN="LEFT">');
    document.writeln('	      <PARAM NAME=movie VALUE="/D/5/head.swf?cim='+title+' ">');
    document.writeln('	      <PARAM NAME=quality VALUE=high>');
    document.writeln('	      <PARAM NAME=bgcolor VALUE=#0000A0>');
    document.writeln('	      <EMBED src="/D/5/head.swf?cim='+title+' " quality=high bgcolor=#FF00FF  WIDTH="100%" HEIGHT="20" NAME="szivek" ALIGN=""TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
    document.writeln('	     </OBJECT>');
    document.writeln('		');
    document.writeln('	     <INPUT TYPE=HIDDEN NAME=topic>');
    document.writeln('	    </TD></TR></TABLE>');
    document.writeln('	   <TABLE Width=100% CELLSPACING=0 CELLPADDING=2 BORDER=0>');
    document.writeln(' 	  <TR><TD BGCOLOR=B0D0FF>');
    document.writeln('	  <FONT SIZE=1 COLOR=000000>');
  }
  
  if(design==6){
    document.writeln('  <STYLE>.formO,.select{background-color=#FFE0B0;}</STYLE>');
    document.writeln('  <TABLE Width=100% BGCOLOR=A00000 CELLSPACING=1 CELLPADDING=0 BORDER=0>');
    document.writeln('   <TR><TD>');
    document.writeln('    <TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=0 BORDER=0 BACKGROUND=/D/6/header.gif>');
    document.writeln('     <TR>');
    document.writeln('	    <TD HEIGHT=19>');
    document.writeln('	     <FONT CLASS=boxcim> &nbsp');
    document.writeln('	     <B>'+title+' </B>');
    if(gif){document.writeln('   <IMG SRC="/D/'+gif+'.gif" VSPACE=0 HEIGHT=19 ALIGN=ABSMIDDLE>');}
    document.writeln('	     </FONT>');
    document.writeln('	    </TD></TR></TABLE>');
    document.writeln('	  <TABLE Width=100% CELLSPACING=0 CELLPADDING=2 BORDER=0>');
    document.writeln('	   <TR><TD BGCOLOR=FFD0B0 BACKGROUND=/D/6/center.jpg>');
    document.writeln('	    <FONT SIZE=1 COLOR=000000>');
  }

  if(design==7){
    document.writeln('<STYLE>.formO{background-color:#FFE0E0}</STYLE>');
    document.writeln('<STYLE>.select{background-color:#FFE0E0}</STYLE>');
    document.writeln('<TABLE Width=100% BGCOLOR=A00000 CELLSPACING=0 CELLPADDING=0 BORDER=0>');
    document.writeln(' <TR><TD>');
    document.writeln('  <TABLE Width=100% BGCOLOR=A00000 CELLSPACING=1 CELLPADDING=0 BORDER=0>');
    document.writeln('   <TR><TD>');
    document.writeln('    <TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=0 BORDER=0>');
    document.writeln('     <TR>');
    document.writeln('	    <TD WIDTH=19><IMG SRC="/D/7/gyertya.gif" HSPACE=1 HEIGHT=18></TD>');
    document.writeln('	    <TD BACKGROUND="/D/7/fejlec.gif" WIDTH=100%>');
    document.writeln('	     <FONT CLASS=boxcim>');
    document.writeln('	     <B>'+title+'</B>');
    if(gif){document.writeln('   <IMG SRC="/D/'+gif+'.gif" VSPACE=0 HEIGHT=19 ALIGN=ABSMIDDLE>');}
    document.writeln('	     </FONT>');
    document.writeln('	    </TD>');
    document.writeln('	    <TD WIDTH=19><IMG SRC="/D/7/hopihe.gif" HEIGHT=19></TD>');
    document.writeln('	   </TR></TABLE>');
    document.writeln('	   <TABLE Width=100% CELLSPACING=0 CELLPADDING=2 BORDER=0 BACKGROUND="/D/7/hohatter.jpg">');
    document.writeln('	    <TR><TD>');
    document.writeln('	     <FONT SIZE=1 COLOR=000000>');
  }    
}

function boxend(){
  document.writeln('   </TD></TR></TABLE>');
  if(design==6){document.writeln('</TD></TR><TR><TD BACKGROUND=/D/6/header.gif HEIGHT=10>');}else{document.writeln('  </TD></TR></TABLE>');}
  document.writeln(' </TD></TR></TABLE>');
  document.writeln('<TABLE><TR><TD></TD></TR></TABLE>');
}