<!--//

YOffset=175;
staticYOffset=20;
slideSpeed=20
waitTime=1000;
hdrFontFamily="Verdana";
hdrFontSize="2";
hdrFontColor="C0C0C0";
hdrBGColor="#400000";
hdrAlign="left";
hdrVAlign="center";
hdrHeight="20";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="C0C0C0";
linkOverBGColor="#808080";
linkTarget="_top";
linkAlign="left";
menuBGColor="000000";
menuIsStatic="yes";
menuWidth=100;
barBGColor="#800000";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="C0C0C0";
barVAlign="center";
barWidth=20;


NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")

moving=setTimeout('null',1)
function moveOut() {
if ((NS6 && parseInt(slider.left)<0)||(IE && slider.pixelLeft<0)||(NS && slider.left<0)) {
clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed)
if (NS6) {theleft+=10;slider.left = theleft;}
if (IE) {slider.pixelLeft += 10;}
if (NS) {slider.left += 10;slider.clip.left-=10}}
else {clearTimeout(moving);moving=setTimeout('null',1)}};
function moveBack() {
clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime)}
function moveBack1() {
if ((NS6 && parseInt(slider.left)>(-menuWidth))||(IE && slider.pixelLeft>(-menuWidth))||(NS && slider.left>(-menuWidth))) {
clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);
if (NS6) {theleft-=10;slider.left = theleft;}
if (IE) {slider.pixelLeft -= 10;}
if (NS) {slider.left -= 10;slider.clip.left+=10}}
else {clearTimeout(moving);moving=setTimeout('null',1)}};

lastY = 0;
function makeStatic() {
if (IE) {winY = document.body.scrollTop;}
if (NS||NS6) {winY = window.pageYOffset;}
if (NS6||IE||NS) {
if (winY!=lastY&&winY>YOffset-staticYOffset) {
smooth = .3 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .3 * (winY - lastY);}
else {smooth=0}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (NS6) slider.top=parseInt(slider.top)+smooth;
if (IE) slider.pixelTop+=smooth;
if (NS) bslider.top+=smooth;
lastY = lastY+smooth;
setTimeout('makeStatic()', 1)}}

function initSlide() {
if (NS6){slider=document.getElementById("theslider").style;
slider.visibility="visible";slider.left = -menuWidth;}
else if (IE) {slider=document.all("theslider").style;
slider.visibility = "visible";slider.pixelLeft = -menuWidth;}
else if (NS) {bslider=document.layers["baseslider1"];
slider=bslider.document.layers["baseslider2"].document.layers["theslider"];
slider.clip.left = menuWidth;slider.left = -menuWidth;slider.visibility = "show";}
if (menuIsStatic=="yes") makeStatic();}

function startMenu(menuHeader, barText) {
if (IE||NS6) {document.write('<DIV ID="theslider" style="visibility:hidden;Position : Absolute ;Left : 0 ;Top : '+YOffset+' ;Z-Index : 20;width:1px;clip:" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS) {document.write('<LAYER name="baseslider1" top="'+YOffset+'" LEFT=0 visibility="show" width="'+(menuWidth+barWidth+10)+'"><ILAYER name="baseslider2" width="'+(menuWidth+barWidth+20)+'"><LAYER visibility="hide" name="theslider" bgcolor="'+menuBGColor+'" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'"><TR><TD>')}
document.write('<table border="0" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'">');tempBar='';addHdr(menuHeader);
if(barText.indexOf('<IMG')>-1) {tempBar=barText}
else{for (i=0;i<barText.length;i++) {
tempBar+=barText.substring(i, i+1)+"<BR>"}}
document.write('<td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'"><p align="center"><font face="'+barFontFamily+'" Size="'+barFontSize+'" COLOR="'+barFontColor+'"><B>'+tempBar+'</B></font></p></TD></tr>')
theleft=-menuWidth}

function endMenu() {
addHdr('&nbsp;');
document.write('</table>')
if (NS6){document.write('</TD></TR></TABLE>')}
if (IE||NS6) {document.write('</DIV>')}
if (NS) {document.write('</LAYER></ILAYER></LAYER>')}
if (NS6||IE||NS) setTimeout('initSlide();', 1)}

function addHdr(text) {
document.write('<tr><td bgcolor="'+hdrBGColor+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+(menuWidth-1)+'">&nbsp;<font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>'+text+'</b></font></td>'+((!tempBar)?"":"</TR>"))}

function addItem(text, link, target) {
if (!target) {target=linkTarget}
document.write('<TR><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV  ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'">&nbsp;<A HREF="'+link+'" target="'+target+'" CLASS="sliderChoices">'+text+'</DIV></LAYER></ILAYER></TD></TR>')}

//-->
