﻿
        

  
  
scrollStep=1

timerLeft=""
timerRight=""

function swapImage(id) {
  document.getElementById("ctl00_SectionImage").src = id
}


function toLeft(id){
  document.getElementById(id).scrollLeft=0
}

function scrollDivLeft(id,id2){
  clearTimeout(timerRight) 
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",10)
  var GetScroll = document.getElementById(id).scrollLeft;
  var GetWidth = document.getElementById(id).scrollWidth - 182;
  /* Commented out as does NOT work in IE (works in firefox) - NV 11/02/2009 */
  /*if (GetScroll == GetWidth) { 
   document.getElementById("leftarrow").style.background = "Transparent url(/images/arrow-left-flash.gif) no-repeat;"
   document.getElementById("rightarrow").style.background = "Transparent url(/images/arrow-blank-right.gif) no-repeat;"
 } else {
   document.getElementById("leftarrow").style.background = "Transparent url(/images/arrow-left.gif) no-repeat;"
   document.getElementById("rightarrow").style.background = "Transparent url(/images/arrow-right.gif) no-repeat;"
  }*/
}


function scrollDivRight(id,id2){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",10)
  var GetScroll = document.getElementById(id).scrollLeft;
  var GetWidth = 0;
 /* Commented out as does NOT work in IE (works in firefox) - NV 11/02/2009 */
 /* if (GetScroll == GetWidth) {
   document.getElementById("leftarrow").style.background = "Transparent url(/images/arrow-blank-left.gif) no-repeat;"
   document.getElementById("rightarrow").style.background = "Transparent url(/images/arrow-right-flash.gif) no-repeat;"
  } else {
   document.getElementById("leftarrow").style.background = "Transparent url(/images/arrow-left.gif) no-repeat;"
   document.getElementById("rightarrow").style.background = "Transparent url(/images/arrow-right.gif) no-repeat;"
  }*/
}

function toRight(id){
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}


function clearText(field){

    if (field.defaultValue == field.value) field.value = '';
    else if (field.value == '') field.value = field.defaultValue;

}







