/* A JavaScript 1.2 script */ 

function msieversion() {
var ua = navigator.userAgent
var msie = ua.indexOf ( "MSIE " )
if ( msie > 0 )      // is Microsoft Internet Explorer; return version number
   return parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) )
else
   return 0          // is other browser
}

function writeflashstyle() {
document.write('<STYLE>')
document.write('<!--')
document.write('.flashlink{filter:alpha(opacity=50)}')
document.write('// -->')
document.write('</STYLE>')
}


if (msieversion() > 4)
  writeflashstyle()

/*
Based on a dynanimicdrive.com script
Improved with checking for minimal MSIE version 5
*/

function high(which2){
if (msieversion() > 4) {
  theobject=which2
  highlighting=setInterval("highlightit(theobject)",30)
  }
}
function low(which2){
if (msieversion() > 4) {
  clearInterval(highlighting)
  which2.filters.alpha.opacity=50
  }
}

function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}
