<!--




var totalImage = 100;
var speed = 3;
var first_opac = 50;
var sec_opac =100;


var opac = new Array();
var si = new Array();

for(i=0; i < totalImage; i++) {
opac[i] = first_opac;
}

function showimage(what,doshow,num) {
   if (document.all) {
     (doshow) ? opac[num] = (opac[num] + speed) : opac[num] = (opac[num] - speed);
     eval(what+".filters.alpha.opacity="+opac[num]);
     if (opac[num] >= sec_opac)
         opac[num] = sec_opac;
     if (opac[num] <= first_opac)
         opac[num] = first_opac;
     
     if (opac[num] <= first_opac || opac[num] >= sec_opac) {
       clearInterval(si[num]);
       cleared = true;
     }
   }
}

function ClearInt(num) {
   clearInterval(si[num]);
}

function Illuminate(theElem){
ClearInt(theElem);
si[theElem]=setInterval('showimage(\'image' + theElem + '\',true,' + theElem + ')',10);
}

function deIlluminate(theElem){
ClearInt(theElem);
si[theElem]=setInterval('showimage(\'image' + theElem + '\',false,' + theElem + ')',10);
}


function ReplaceString(sFull, sOld, sNew) {
  var sData = "";
  for (var i=0; i<sFull.length; i++) { 
  if (sFull.substring(i,i+sOld.length) == sOld) {
      sData = sData + sNew;
      i = i + sOld.length - 1;
  } else { sData = sData + sFull.substring(i,i+1) }
  }
  return sData;
}


function displayImage(sImagepath,sImageNo,sHTML){
	//document.write('<img border=0 src="'+ReplaceString(sImagepath,'thmb_','thmb/thmb_thmb_')+'" style="filter:alpha(opacity=90)" name="image'+sImageNo+'" onMouseover="Illuminate('+sImageNo+')" onMouseout="deIlluminate('+sImageNo+');">')
	document.write('<img border=0 src="'+ReplaceString(sImagepath,'thmb_','thmb/thmb_thmb_')+'" style="filter:alpha(opacity=100)" name="image'+sImageNo+'" onMouseover="" onMouseout="">')
	//document.write('<img border=0 src="'+ReplaceString(sImagepath,'thmb_','thmb/thmb_thmb_')+'>')
	//document.write('<img border=0 src="'+ReplaceString(sImagepath,'thmb_','thmb/thmb_thmb_')+'>')
	//document.write(sHTML);
}


//-->
