// JavaScript Document
function getShow(s,g){
   siz = s;
   if(sliderHeight == 0){
	  Slidedown();
   }
   else{
   	  Slideup();
   }
}
function switchtable(value){
	hidet = document.getElementById('returnsl');
	showt = document.getElementById('slidest');
	hidet.style.display='none';
	showt.style.display=value;
}
function Slidedown()
{
   if(sliding)
      return;
   sliding = true;
   sliderIntervalId = setInterval('SlideDownRun()', 30);
}
function Slideup(){
   if(sliding)
      return;
   sliding = true;
   sliderIntervalId = setInterval('SlideUpRun()', 30);
}

function resetslider(){
   slider = document.getElementById('exampleSlider');
   sliderHeight = 0;
   slider.style.height = '0px';
}
function SlideUpRun()
{
   slider = document.getElementById('exampleSlider');
   if(sliderHeight <= 0)
   {
      sliding = false;
      sliderHeight = 0;
      slider.style.height = '0px';
      clearInterval(sliderIntervalId);
   }
   else
   {
	  var sht='';
      sliderHeight -= slideSpeed;
      if(sliderHeight <= 0){
		 slider.style.borderBottom = '0';
         sliderHeight = 0;
		 switchtable(sht);
	  }
      slider.style.height = sliderHeight + 'px';
   }
}
function SlideDownRun()
{
   slider = document.getElementById('exampleSlider');
   slider.style.borderBottom = '1px solid #666666';
   if(sliderHeight >= siz)
   {
      sliding = false;
      sliderHeight = siz;
      slider.style.height = siz + 'px';
      clearInterval(sliderIntervalId);
   }
   else
   {
      sliderHeight += slideSpeed;
	  if(sliderHeight >= siz)
         sliderHeight = siz;
      slider.style.height = sliderHeight + 'px';
   }
}