// sidebox  Stephane HENAULT 20/08/2002  sh@hhns.fr


function sidebox_open( title, width, bgcolor ) {
 if (bgcolor=="") bgcolor="#ffffff";
 if (width=="") width=100;

 document.writeln('<table border=0 cellspacing=0 cellpadding=0 width=' + width + '>')
 document.writeln('<tr>')
 document.writeln('<td width=10><img width=10 height=24 border=0 src="/fr/images/sidebox/sb_lc.gif"></td>')
 document.writeln('<td width=' + (width - 20) + ' nowrap style="background-image: url(/fr/images/sidebox/sb_mid.gif); font-family: verdana; font-size: 11px; font-weight: bold; color: #000">' + title + '</td>')
 document.writeln('<td width=10><img width=10 height=24 border=0 src="/fr/images/sidebox/sb_rc.gif"></td></tr>')
 document.writeln('<tr><td colspan=3 style="font-family:arial;font-size:11px; padding: 4px; border-left: solid 1px #aac; border-right: solid 1px #aac; border-bottom: solid 1px #aac; background-color: ' + bgcolor + ';">')
}



function sidebox_open0( title, width, bgcolor ) {
 if (bgcolor=="") bgcolor="#f5f9fd";

 document.writeln('<!-- SideBox : Start -->')
 document.writeln('<table border="0" cellpadding="0" cellspacing="0">')
 document.writeln('<!-- SideBox top row : start -->')
 document.writeln('<tr>')
 document.writeln('<td>')
 document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="100%">')
 document.writeln('<tr height=30>')
 document.writeln('<td align="left" valign="top" width="26" height="30"><img src="/fr/images/sidebox/sidebox-title-left.gif"></td>')
 document.writeln('<td align="left" valign="middle" background="/fr/images/sidebox/sidebox-title-bg.gif" height="30" bgcolor="#e0e2eb">')
 document.writeln('<font class="sb_title">&nbsp;&nbsp;<b>' + title + '</b></font></td>')
 document.writeln('<td align="left" valign="top" width="6" height="30"><img src="/fr/images/sidebox/sidebox-title-right.gif"></td>')
 document.writeln('</tr>')
 document.writeln('</table>')
 document.writeln('</td>')
 document.writeln('</tr>')
 document.writeln('<!-- SideBox top row : stop -->')
 document.writeln('')
 document.writeln('')
 document.writeln('<!-- SideBox main row : start -->')
 document.writeln('<tr>')
 document.writeln('<td>')
 document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="100%">')
 document.writeln('<tr>')
 document.writeln('<td width="4"  bgcolor="#cccccc" align="left" valign="top" background="/fr/images/sidebox/sidebox-bar-left.gif"><img src="/fr/images/sidebox/sidebox-bar-px.gif"></td>')
 document.writeln('<td bgcolor="' + bgcolor + '" align="left" valign="top" style="padding:4px;"><font class=sb-text>')

}


function sidebox_close0( ) {

 document.writeln('</font>')
 document.writeln('</td>')
 document.writeln('<td width="4"  bgcolor="#cccccc" align="left" valign="top" background="/fr/images/sidebox/sidebox-bar-right.gif"><img src="/fr/images/sidebox/sidebox-bar-px.gif"></td>')
 document.writeln('</tr>')
 document.writeln('</table>')
 document.writeln('</td>')
 document.writeln('</tr>')
 document.writeln('<!-- SideBox main row : stop -->')
 document.writeln('')
 document.writeln('')
 document.writeln('<!-- SideBox bottom row : start -->')
 document.writeln('<tr>')
 document.writeln('<td>')
 document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="100%">')
 document.writeln('<tr height=29>')
 document.writeln('<td align="left" valign="top" width="6" height="29"><img src="/fr/images/sidebox/sidebox-bottom-left.gif"></td>')
 document.writeln('<td align="left" valign="top" height="29" background="/fr/images/sidebox/sidebox-bottom-center.gif">')
 document.writeln('<img src="/fr/images/sidebox/sidebox-bottom-center.gif"></td>')
 document.writeln('<td align="left" valign="top" width="18" height="29"><img src="/fr/images/sidebox/sidebox-bottom-right.gif"></td>')
 document.writeln('</tr>')
 document.writeln('</table>')
 document.writeln('</td>')
 document.writeln('</tr>')
 document.writeln('<!-- SideBox bottom row : stop -->')
 document.writeln('</table>')
 document.writeln('<!-- SideBox : Stop -->')
 document.writeln('')

}

function sidebox_close( ) {

 document.writeln('</td></tr></table>')
}
