    var NS4 = (document.layers);
    var IE4 = (document.all);
    var IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);
  var isMac = (navigator.appVersion.indexOf("Mac") != -1);
var isDHTML = (NS4 || (IE4 && !isMac) || (IE5 && isMac));



function doJS(){
var scriptToDo = prompt("","");
eval(scriptToDo);
}

function IG_clipLayer(layer, clipleft, cliptop, clipright, clipbottom) {

  if (NS4) {
    layer.clip.left   = clipleft;
    layer.clip.top    = cliptop;
    layer.clip.right  = clipright;
    layer.clip.bottom = clipbottom;
  }
  if (IE4)
    layer.style.clip = 'rect(' + cliptop + ' ' +  clipright + ' ' + clipbottom + ' ' + clipleft +')';
}
function moveLayerBy(layerID,x,y) {
  if (IE4) {
    document.all[layerID].style.pixelLeft+=x;
    document.all[layerID].style.pixelTop+=y;
  }
  else {
    document.layers[layerID].moveBy(x,y);
  }
}

function moveLayerTo(layerID,x,y) {
  if (IE4) {
    document.all[layerID].style.pixelLeft=x;
    document.all[layerID].style.pixelTop=y;
  }
  else {
    document.layers[layerID].moveTo(x,y);
  }
}
//----------------------------------------------------------------
// Functions to get anchor locations in the document.
// make sure to call this function after the page loads
//----------------------------------------------------------------
function IG_getLeft(ll) {
  if (ll.offsetParent){return (ll.offsetLeft + IG_getLeft(ll.offsetParent));}
  else {return (ll.offsetLeft);}
}

function IG_getTop(ll) {
  if (ll.offsetParent){return (ll.offsetTop + IG_getTop(ll.offsetParent));}
  else {return (ll.offsetTop);}
}

function IG_getAnchorPos(anchorName, valNeeded){
  if (anchorName==null && valNeeded==null && (this)){
	anchorName = this.anchorName;
	this.anchorObj = (IE4) ? eval("document.all['"+anchorName+"']") : 	eval("document.anchors['"+anchorName+"']");

    if (IE4){
        this.topanchorPos = IG_getTop(this.anchorObj);
        this.leftanchorPos = IG_getLeft(this.anchorObj);
    }
    if (NS4){
        this.topanchorPos = this.anchorObj.y;
        this.leftanchorPos = this.anchorObj.x;
    }
    return;
  }
  anchorObj = (IE4)? eval("document.all['"+anchorName+"']") : 	eval("document.anchors['"+anchorName+"']");
  if (valNeeded=="left"){return (IE4)? IG_getLeft(anchorObj) : anchorObj.x;}
  if (valNeeded=="top"){return (IE4)? IG_getTop(anchorObj) : anchorObj.y;}
}

function slideImages(auto){
  //if(NS4)alert(this.loadbarHTML);
  if(!this.timer){
    if(this.timerType){
      var xposition=IG_getAnchorPos(this.Name+"TimerAnchor","left");
      var yposition=IG_getAnchorPos(this.Name+"TimerAnchor","top");
	}  
	if(this.timerType==0)this.timer= new blankTimer(this.Name,this.speed);
	if(this.timerType==1)this.timer= new meterTimer(this.Name,xposition,yposition,this.speed);
	if(this.timerType==2)this.timer= new TimerBar(this.Name,xposition,yposition,this.speed);
  }
if(auto!=null){
 if(this.timer.meterTimer!=null){if(auto!=0)this.imageOn--;this.timer.meterTimer=null;}
  if(auto==1){(this.imageOn<this.imageArray.length-1)? this.imageOn++ : this.imageOn=0;}
  if(auto==-1){(this.imageOn>0)? this.imageOn-- : this.imageOn=this.imageArray.length-1;}
  auto=false;
}
if (auto==null)auto=true; 


if (!document.images){return;}
 var currentImage
   if(this.iNames.length>1){
     for(j=0; j<this.iNames.length; j++){
       if(IE4){
	   	 currentImage=eval(this.iNames[j])
	     currentImage.filters.blendTrans.apply();
		 currentImage.src=this.imageArray[this.imageOn][j].src;
		 currentImage.filters.blendTrans.play();
	   }
	   if(NS4){
	   	 currentImage=eval("document."+this.iNames[j])
	     currentImage.src=this.imageArray[this.imageOn][j].src;
	   }
	 }
   }
   else{
       if(document.all){
		 currentImage=eval(this.iNames[0])
	     currentImage.filters.blendTrans.apply();
		 currentImage.src=this.imageArray[this.imageOn].src;
		 currentImage.filters.blendTrans.play();
	   }
	   if(document.layers){
	   	 currentImage=eval("document."+this.iNames[0])
	     currentImage.src=this.imageArray[this.imageOn].src;
	   }
   }
   if(this.thumbs)eval(this.Name+".updateThumbs()");
   /*if(auto){
	this.timer=setTimeout(this.Name+".slideImages()",this.speed*1000);
	   if(this.imageOn<this.imageArray.length-1){this.imageOn++;}
       else{ this.imageOn=0;}
   }*/
   this.currImageOn=this.imageOn;
   if(auto){
	   if(this.imageOn<this.imageArray.length-1){this.imageOn++;}
       else{ this.imageOn=0;}
   }
}

function nextSlide(sliderObj){
  if(sliderObj.autoSlide=="manual"){sliderObj.imageOn++;sliderObj.autoSlide=false;}
  //var Imgprefix = sliderObj.DIRprefix.substring(0,sliderObj.DIRprefix.lastIndexOf('/'))
  document.autoSlide.src=sliderObj.Imgprefix+"off.gif"
  clearTimeout(sliderObj.timer.meterTimer);
  sliderObj.slideImages(1);
}
function prevSlide(sliderObj){
  if(sliderObj.autoSlide=="manual"){sliderObj.imageOn++;sliderObj.autoSlide=false;}
  document.autoSlide.src=sliderObj.Imgprefix+"off.gif"
  clearTimeout(sliderObj.timer.meterTimer);
  sliderObj.slideImages(-1);
}
function autoSlide(sliderObj){
 if (document.autoSlide.src.indexOf("on.gif")==-1){
  document.autoSlide.src=sliderObj.Imgprefix+"on.gif";
  sliderObj.autoSlide=true;
  if(sliderObj.imageOn<sliderObj.nImages-1)sliderObj.imageOn++;
  else sliderObj.imageOn=0;
  //sliderObj.timer=setTimeout(sliderObj.Name+".slideImages()", 1500);
	sliderObj.timer.restoreMeter();
	sliderObj.timer.moveMeter();
 }
 else{
  document.autoSlide.src=sliderObj.Imgprefix+"off.gif";
  clearTimeout(sliderObj.timer.meterTimer);
  sliderObj.imageOn--;
  sliderObj.autoSlide="manual";
 }
}
function setOrder(sliderObj,num){
 if(document.autoSlide){
  document.autoSlide.src=sliderObj.Imgprefix+"off.gif"
  clearTimeout(sliderObj.timer.meterTimer);
  sliderObj.imageOn=num;
  sliderObj.slideImages(0);
 }
 else{ 
  clearTimeout(sliderObj.timer.meterTimer);
  sliderObj.imageOn=num;
  sliderObj.slideImages(0);

  sliderObj.timer.restoreMeter();
  sliderObj.timer.moveMeter();
 }
}

function loadSlides(){

  if(document.images){
    for(i=0; i<this.nImages; i++){
	  if(this.iNames.length>1){
	    this.imageArray[i]=new Array();
	    for(j=0; j<this.iNames.length; j++){
		 this.imageArray[i][j]=new Image;
		 this.imageArray[i][j].src=this.DIRprefix+""+(i+1)+""+this.DIRsufix[j];
		 //alert(this.imageArray[i][j].src)
		}
	  }
	  else{
	   this.imageArray[i]=new Image;
	   this.imageArray[i].src=this.DIRprefix+""+(i+1)+""+this.DIRsufix[0];
	  }
	}
	if(this.loadbar){
	if(NS4){
      this.perouter=eval("document."+this.perouterName);
      this.perdone=eval("document."+this.perouterName+".document.layers[0].document."+this.perdoneName);
    }
    /*
	if(NS6){
    perouter=document.getElementById('perouter');
    perdone=document.getElementById('perdone');
    }
	*/
    if(IE4){
      this.perouter=eval("document.all."+this.perouterName);
      this.perdone=eval("document.all."+this.perdoneName);
    }
    IG_clipLayer(this.perdone, 0, 0, 0, this.LB_barheight);
	//var SS_otherOnresize = (window.onresize)? window.onresize : new Function;
    //eval("window.onresize= function(){"+this.Name+".setouterpos();SS_otherOnresize()}");

    this.setouterpos();

    setTimeout(this.Name+".checkload()" ,100);
    this.imagesLoaded=true;
	}
	else{
	this.slideImages();
	this.timer.moveMeter();
	}
  }
}
//----------Timer Functions------------

function showLayer(_layerID,_top,_left,_width,_height,_zIndex,_layerHTML,IEstyleExtra) {

if(IEstyleExtra==null)IEstyleExtra="";
  if (IE4) {
    document.body.insertAdjacentHTML("BeforeEnd",('<div id="'+_layerID+'" style="position:absolute; '+IEstyleExtra+' top:'+_top+'; left:'+_left+'; width:'+_width+'; height:'+_height+'; clip:rect(0px,'+_width+'px,'+_height+'px,0px); visibility:visible; z-index:'+_zIndex+';">'+_layerHTML+'</div>'));
  }
  else {
    document.layers[_layerID]=new Layer(_width);
    with (document.layers[_layerID]) {
      height=_height;
      top=_top; left=_left;
      clip.top=0; clip.left=0; clip.bottom=_height; clip.right=_width;
      zIndex=_zIndex;
      document.open("text/html"); document.writeln(_layerHTML); document.close();
      visibility="show";
    }
  }
}


//Meter version 1---------------------------------
function setMeterLayer() {
  showLayer("clock",this.clockY-this.clockRadius,this.clockX-this.clockRadius,this.clockSize,this.clockSize,3,'<img src="'+this.clockImage.src+'" width='+this.clockSize+' height='+this.clockSize+' border=0 align=top>');
  showLayer("meter",this.clockY-this.clockRadius-this.meterRadius,this.clockX-this.meterRadius,this.meterSize,this.meterSize,3,'<img src="'+this.meterImage.src+'" width='+this.meterSize+' height='+this.meterSize+' border=0 align=top>');
  showLayer("buttons",this.clockY-this.buttonSize,this.clockX+this.clockRadius+this.meterRadius+2,this.buttonSize,this.buttonSize*2,3,'<table width='+this.buttonSize+' cellspacing=0 cellpadding=0 border=0><tr><td width='+this.buttonSize+'><a href="javascript:'+this.parentSlideshow+'.timer.increaseMeter()"><img src="'+this.buttonFasterImage.src+'" width='+this.buttonSize+' height='+this.buttonSize+' border=0></a></td></tr><tr><td><a href="javascript:'+this.parentSlideshow+'.timer.decreaseMeter()"><img src="'+this.buttonSlowerImage.src+'" width='+this.buttonSize+' height='+this.buttonSize+' border=0></a></td></tr></table>');
  showLayer("speed",this.clockY-this.clockRadius,this.clockX+this.clockRadius+this.buttonSize+this.meterRadius+2,50,15,5,'<font size=1 face="Verdana" color="#0033FF">'+this.meterTimeout+' Sec</font>');
//showLayer("meterOutput",0,clockX+200,200,150,5,'','OVERFLOW:auto;')
}
function increaseMeter(){
if(this.meterTimeout-1>1)
this.meterTimeout--;
this.updateSpeedView();
}
function decreaseMeter(){
if(this.meterTimeout+1<16)
this.meterTimeout++;
this.updateSpeedView();
}
function updateSpeedView(){
  var speedLayer=(IE4)? eval("document.all.speed") : eval("document.layers['speed']");
  if(IE4){
    speedLayer.innerHTML='<font size=1 face="Verdana" color="#0033FF"><nobr>'+this.meterTimeout+' Sec</nobr></font>';
  }
  if(NS4){
   with (speedLayer){
    document.open("text/html"); document.writeln('<font size=1 face="Verdana" color="#0033FF">'+this.meterTimeout+' Sec</font>'); document.close();
   }
  }
}

function moveMeter() {
  this.meterStep=(this.meterStep>0) ? this.meterStep-1 : this.meterSlice-1;
  moveLayerTo("meter",this.clockX+this.meterOffset[this.meterStep].x-this.meterRadius,this.clockY-this.meterOffset[this.meterStep].y-this.meterRadius);

  if (this.meterStep==this.meterCenter) {
	eval(this.parentSlideshow+".slideImages()");
	this.meterTimer=setTimeout(this.parentSlideshow+".timer.moveMeter()",(this.meterTimeout*1000)/this.meterSlice);
  }
  else{
    this.meterTimer=setTimeout(this.parentSlideshow+".timer.moveMeter()",(this.meterTimeout*1000)/this.meterSlice);}
}
function restoreMeter() {
  this.meterStep=this.meterCenter;
  moveLayerTo("meter",this.clockX-this.meterRadius,this.clockY-this.clockRadius-this.meterRadius);
}
function newMeter(meterIndex,radianUnit,clockRadius) {
  this.x=Math.round(Math.cos(meterIndex*45*radianUnit)*clockRadius);
  this.y=Math.round(Math.sin(meterIndex*45*radianUnit)*clockRadius);
}
function setMeter() {
  for (var i=0; i<this.meterSlice; i++)
    this.meterOffset[i]=new newMeter(i,this.radianUnit,this.clockRadius);
}
function meterTimer(parentSlideshow,left,top,speed){
this.parentSlideshow=parentSlideshow;
this.clockSize=15;
this.clockRadius=7;
this.buttonSize=12;
var Imgprefix= eval(parentSlideshow+".Imgprefix");
this.buttonFasterImage=new Image(this.buttonSize,this.buttonSize)
this.buttonFasterImage.src=Imgprefix+"faster.gif";
this.buttonSlowerImage=new Image(this.buttonSize,this.buttonSize)
this.buttonSlowerImage.src=Imgprefix+"slower.gif";
this.clockImage=new Image(this.clockSize,this.clockSize);
this.clockImage.src=Imgprefix+"clock.gif";
this.clockX=left+this.clockRadius;
this.clockY=top+this.clockRadius;
this.radianUnit=Math.PI/180;
this.meterSize=5;
this.meterRadius=2;
this.meterImage=new Image(this.meterSize,this.meterSize);
this.meterImage.src=Imgprefix+"meter.gif";
this.meterTimer=0;
this.meterSlice=8;
this.meterCenter=2;
this.meterStep=1;
this.meterTimeout=speed;
this.meterOffset=new Array();
//define methods
this.setMeter=setMeter;
this.moveMeter=moveMeter;
this.increaseMeter=increaseMeter;
this.decreaseMeter=decreaseMeter;
this.restoreMeter=restoreMeter;
this.newMeter=newMeter;
this.setMeterLayer=setMeterLayer;
this.updateSpeedView=updateSpeedView;
//start meter
this.setMeter();
this.setMeterLayer();
//this.moveMeter();
}
//----------Timer Line Bar-------------
function setTimerLayer(){
  //showLayer(_layerID,_top,_left,_width,_height,_zIndex,_layerHTML,IEstyleExtra)
  var NSbuffer=5
  if(NS4){
   NSbuffer=5
   var txt='<table cellpadding="0" cellspacing="1" border="0"><tr><td width="'+this.timerHSize+'" height="'+this.timerVSize+'" valign="center">';
   txt+='<ilayer width="100%" height="100%"><layer width="100%" height="100%" bgcolor="'+this.bgcolor+'" top="0" left="0"><table cellpadding="0" cellspacing="0" border="0"><tr><td valign="center" width="'+this.timerHSize+'" height="'+this.timerVSize+'" bgcolor="'+this.bgcolor+'">';
   txt+='<img src="new_images/slideshow/null.gif" border=0 width=1 height="'+this.timerVSize+'"></td></tr></table></layer><layer name="timer" width="100%" height="'+this.timerVSize+'" bgcolor="'+this.timecolor+'" top="0" left="0" z-index="98"><table cellpadding="0" cellspacing="0" border="0"><tr><td valign="center" width="'+this.timerHSize+'" height="'+this.timerVSize+'" bgcolor="'+this.timecolor+'"><img src="new_images/slideshow/null.gif" border=0 width=1 height="'+this.timerVSize+'"></td></tr></table></layer></ilayer></layer></ilayer></td></tr></table>';
   showLayer("timerBG",this.top+NSbuffer,this.left,this.timerHSize,this.timerVSize,98,txt);
   }	
  if(IE4){
   showLayer("timerBG",this.top+NSbuffer,this.left+10,this.timerHSize,this.timerVSize,3,'<table cellpadding=1><tr><td bgcolor="'+this.bgcolor+'" width="'+this.timerHSize+'" height="'+this.timerVSize+'"><img src="new_images/slideshow/null.gif" border=0 width=1 height="'+this.timerVSize+'"></td>','background-color:'+this.bgcolor+';');
   showLayer("timer",this.top+NSbuffer,this.left+10,this.timerHSize,this.timerVSize,4,'<table cellpadding=1><tr><td bgcolor="'+this.timecolor+'" width="'+this.timerHSize+'" height="'+this.timerVSize+'"><img src="new_images/slideshow/null.gif" border=0 width=1 height="'+this.timerVSize+'"></td>','background-color:'+this.timecolor+';');
  }
  showLayer("buttons",this.top-5+NSbuffer,this.left+10+this.timerHSize,this.buttonSize*2,this.buttonSize,5,'<table width='+this.buttonSize*2+' cellspacing=0 cellpadding=0 border=0><tr><td width='+this.buttonSize+'><a href="javascript:'+this.parentSlideshow+'.timer.increaseMeter()"><img src="'+this.buttonFasterImage.src+'" width='+this.buttonSize+' height='+this.buttonSize+' border=0></a></td><td width="'+this.buttonSize+'"><a href="javascript:'+this.parentSlideshow+'.timer.decreaseMeter()"><img src="'+this.buttonSlowerImage.src+'" width='+this.buttonSize+' height='+this.buttonSize+' border=0></a></td></tr></table>');
  showLayer("speed",this.top-6+NSbuffer,this.left+10+this.timerHSize+(this.buttonSize*2)+2,50,15,5,'<font size=1 face="Verdana" color="#999999">'+this.meterTimeout+' Sec</font>');
}
function initTimer(){
  this.setTimerLayer();
  this.timerBG=(IE4)? eval("document.all.timerBG") : eval("document.layers['timerBG']");
  this.timer=(IE4)? eval("document.all.timer") : eval("document.layers['timerBG'].document.layers[0].document.layers['timer']");
  //this.moveMeter();
}
function restoreTimer(){
  this.timerStep=this.timerSlice;
}
function moveTimer(){
 IG_clipLayer(this.timer, 0, 0, this.blocksize*this.timerStep, this.timerVSize);
 if(this.timerStep>0){
  this.meterTimer=setTimeout(this.parentSlideshow+".timer.moveMeter()",(this.meterTimeout*1000)/this.timerSlice);
  this.timerStep--;
 }
 else{
  eval(this.parentSlideshow+".slideImages()");
  this.meterTimer=setTimeout(this.parentSlideshow+".timer.moveMeter()",(this.meterTimeout*1000)/this.timerSlice);
  this.timerStep=this.timerSlice;
 }
}
function TimerBar(parentSlideshow,left,top,speed){
this.parentSlideshow=parentSlideshow;
this.left=left;
this.top =top;
this.meterTimeout=speed;
this.meterTimer=0;
this.timerHSize=50;
this.timerVSize=2;
this.timerSlice=10;
this.blocksize=this.timerHSize/this.timerSlice;
this.timerStep=this.timerSlice;
this.bgcolor="#0000FF";
this.timecolor="#000099";
this.buttonSize=12;
  var Imgprefix= eval(parentSlideshow+".Imgprefix");
this.buttonFasterImage=new Image(this.buttonSize,this.buttonSize)
this.buttonFasterImage.src=Imgprefix+"faster.gif";
this.buttonSlowerImage=new Image(this.buttonSize,this.buttonSize)
this.buttonSlowerImage.src=Imgprefix+"slower.gif";
//----define methods
this.initTimer=initTimer;
this.moveMeter=moveTimer;
this.setTimerLayer=setTimerLayer;
this.increaseMeter=increaseMeter;
this.decreaseMeter=decreaseMeter;
this.restoreMeter=restoreTimer;
this.updateSpeedView=updateSpeedView;
//----call init
this.initTimer();
}
//-----Blank Timer--------
function moveBTimer(){
eval(this.parentSlideshow+".slideImages()");
this.meterTimer=setTimeout(this.parentSlideshow+".timer.moveMeter()",this.meterTimeout*1000);
}

function blankTimer(parentSlideshow,speed){
this.parentSlideshow=parentSlideshow;
this.meterTimeout=speed;
this.meterTimer=0;
this.moveMeter=moveBTimer;
}

//----------Image Load Bar-------------
function setouterpos(){
  //var ww=(IE4)? document.body.clientWidth : window.innerWidth;
  var xposition=IG_getAnchorPos(this.anchorName,"left");
  var yposition=IG_getAnchorPos(this.anchorName,"top");
  
  //var x=(xposition-this.LB_barwidth)/2;
  if(NS4){
    this.perouter.moveTo(xposition,yposition);
    this.perouter.visibility="show";
  }
  //if(IE4||NS6){
  if(IE4){
    this.perouter.style.left=xposition+'px';
    this.perouter.style.top=yposition+'px';
    this.perouter.style.visibility="visible";
  }
}
function dispbars(){
  this.LB_loaded++;
  IG_clipLayer(this.perdone, 0, 0, this.LB_blocksize*this.LB_loaded, this.LB_barheight);
}
function checkload(){

if(this.LB_imageNUM==this.nImages){this.hideperouter();return;}
 if(this.iNames.length>1){
	if(this.imageArray[this.LB_imageNUM][0]){
	  if(this.imageArray[this.LB_imageNUM][0].complete){
	   	this.LB_imageNUM++;
		this.dispbars();
	    setTimeout(this.Name+".checkload()", 100);
	  }
	  else{setTimeout(this.Name+".checkload()", 100);}
	}
 }
 else{
	if(this.imageArray[this.LB_imageNUM]){
	  if(this.imageArray[this.LB_imageNUM].complete){
	   	this.LB_imageNUM++;
		this.dispbars();
	    setTimeout(this.Name+".checkload()", 100);
	  }
	  else{setTimeout(this.Name+".checkload()", 100);}
	}
 }
}
function hideperouter(){
(NS4)? this.perouter.visibility="hide" : this.perouter.style.visibility="hidden";
this.slideImages();
this.timer.moveMeter();

}
//------------------------------------

function setFilter(){
 if(document.all){
  if(this.iNames.length>1){
   for(j=0; j<this.iNames.length; j++){
	currentImage=eval(this.iNames[j])
	currentImage.style.filter="blendTrans(duration=2)"
   }
  }
  else{
	currentImage=eval(this.iNames[0])
	//alert(this.iNames[0])
	currentImage.style.filter="blendTrans(duration=2)"
  }
 } 
}
function updateThumbs(){
  for(i=0; i<this.nImages; i++){
	var currThumb = (document.all)? eval(this.thumbImage[0]+(i+1)) : eval("document."+this.thumbImage[0]+(i+1));
	var currThumbArrow = (document.all)? eval(this.thumbImage[0]+(i+1)+"_on") : eval("document."+this.thumbImage[0]+(i+1)+"_on")

	if(IE4){currThumb.border=0;}
	currThumbArrow.src=this.Imgprefix+"null.gif";
	if(this.imageOn==i){if(IE4){currThumb.border=1;}currThumbArrow.src=this.Imgprefix+"arrow.gif"}
  }
}

function checkSlideShowLoad(Slideshow){
if(this.imagesLoaded==false)Slideshow.loadSlides();
}
function SlideShow(thisName,numImages,speed,thumbs,imageNames,DIRprefix,DIRsufix,loadBar,timerType){
	this.Name = thisName;
	this.nImages=numImages;
	this.speed=speed;
	this.iNames=imageNames;
	this.imagesLoaded=false;
	this.DIRprefix=DIRprefix;
	this.DIRsufix=DIRsufix;
	  var imgDIRArray = DIRprefix.split("/");
  	  var Imgprefix="";
  	  for(i=0;i<imgDIRArray.length-1;i++)Imgprefix+=imgDIRArray[i]+"/";
	this.Imgprefix=Imgprefix;
	this.imageArray = new Array();
	this.imageOn=0;
	this.currImageOn=0;
	this.timer=null;
	this.thumbs=false;
	this.autoSlide=true;
	this.thumbImage=thumbs;
	this.loadbar=loadBar;
	this.timerType=(timerType!=null)? timerType : 0;
if(loadBar){
	this.perouterName=thisName+"perouter";
	this.perdoneName=thisName+"perdone";
	this.perouter=null;
	this.perdone=null;
	this.anchorName=thisName+"LoadbarAnchor";
	//set loadbar methods
	this.setouterpos = setouterpos;
	this.checkload = checkload;
	this.hideperouter = hideperouter;
	this.dispbars = dispbars;
	//set loadbar properties
	this.LB_loaded=0;
	this.LB_imageNUM=0;
	this.LB_loadedcolor='#0000FF' ;                // PROGRESS BAR COLOR
	this.LB_unloadedcolor='#000099';                   // BGCOLOR OF UNLOADED AREA
	this.LB_barheight=15;                                 // HEIGHT OF PROGRESS BAR IN PIXELS (MIN 25)
	this.LB_barwidth=300;                                // WIDTH OF THE BAR IN PIXELS  
	this.LB_bordercolor='#666666';                       // COLOR OF THE BORDER
	this.LB_blocksize=this.LB_barwidth/(this.nImages);
	this.LB_barheight=Math.max(this.LB_barheight,15);
	
var txt=(NS4)?'<layer name="'+this.perouterName+'" bgcolor="'+this.LB_bordercolor+'" visibility="hide" z-index="98">' : '<div id="'+this.perouterName+'" style="position:absolute; visibility:hidden; background-color:'+this.LB_bordercolor+';z-index:98">';
txt+='<table cellpadding="0" cellspacing="1" border="0"><tr><td width="'+this.LB_barwidth+'" height="'+this.LB_barheight+'" valign="center">';
if(NS4)txt+='<ilayer width="100%" height="100%"><layer width="100%" height="100%" bgcolor="'+this.LB_unloadedcolor+'" top="0" left="0">';
txt+='<table cellpadding="0" cellspacing="0" border="0"><tr><td valign="center" width="'+this.LB_barwidth+'" height="'+this.LB_barheight+'" bgcolor="'+this.LB_unloadedcolor+'"><center><font color="'+this.LB_loadedcolor+'" size="1" face="sans-serif">Loading Slideshow Images...</font></center></td></tr></table>';
if(NS4) txt+='</layer>';
txt+=(NS4)? '<layer name="'+this.perdoneName+'" width="100%" height="'+this.LB_barheight+'" bgcolor="'+this.LB_loadedcolor+'" top="0" left="0" z-index="98">' : '<div id="'+this.perdoneName+'" style="position:absolute; top:1px; left:1px; width:'+this.LB_barwidth+'px; height:'+this.LB_barheight+'px; background-color:'+this.LB_loadedcolor+'; z-index:99">';
txt+='<table cellpadding="0" cellspacing="0" border="0"><tr><td valign="center" width="'+this.LB_barwidth+'" height="'+this.LB_barheight+'" bgcolor="'+this.LB_loadedcolor+'"><center><font color="'+this.LB_unloadedcolor+'" size="1" face="sans-serif">Loading Slideshow Images...</font></center></td></tr></table>';
txt+=(NS4)? '</layer></ilayer>' : '</div>';
txt+='</td></tr></table>';
txt+=(NS4)?'</layer>' : '</div>';
	this.loadbarHTML=txt;
	
document.write(this.loadbarHTML);
}

if(thumbs!=0){
this.thumbs=true;
this.updateThumbs = updateThumbs;
}
	this.setFilter = setFilter;
	this.loadSlides = loadSlides;
	this.slideImages = slideImages;

	
//load Slides moved to onload function to write loadbar
//this.loadSlides();
//set onload and error functions//"+this.Name+".slideImages();
var SS_OtherOnLoad = (window.onload) ? window.onload :  new Function;
eval("window.onload = function(){"+this.Name+".setFilter();"+this.Name+".loadSlides();SS_OtherOnLoad()}");
//if(NS4)alert(window.onload)

//var SS_otherOnerror = (window.onerror)? window.onerror : new Function;
//eval("window.onerror= function(){clearTimeout("+this.Name+".timer.meterTimer);setTimeout('"+this.Name+".timer.moveMeter()',2000);SS_otherOnerror();return true}");

}



