
var timer
var step=1
var StepVal=0
var win



function OpenWin(ImgName,win_Width,win_Height,ArrValue,Image_Desc)
	{
	
//var win_Width=null
//var win_Height=null	
//var pic=new Image()
	//pic.src=ImgName
	
	//win_Width=pic.width+20
	//win_Height=pic.height+20
	//	
	if(win!=null)
	   {
	   if(win.closed==false)
	      win.close()
	   }
  
	//win=window.open("enlarge.asp?name="+ImgName+"&ImgArray="+ArrValue+"","","width="+ win_Width +",height="+(win_Height+60)+",TOOLBAR=no,left=5,top=5")
	win=window.open("enlarge.asp?name="+ImgName+"&ImageDesc="+Image_Desc+"&ImgArray="+ArrValue+"","","width="+ win_Width +",height="+(win_Height+55)+",toolbar=no,titlebar=no,menubar=no,status=no,left=0,top=0")
   }
   	
function slideit()
	{
	
	clearTimeout(timer)
   
	if (document.all)
	
	slide1.filters.blendTrans.apply();
	document.images.slide1.src=ImgArr[step][0]
	
    
	if (document.all)
	slide1.filters.blendTrans.play();

	if (step<ImgArr.length-1)
	step++;
	else
	step=0;
	if (StepVal<ImgArr.length-1)
	   StepVal++	
	else
	   StepVal=0	

	if (document.all)
	timer = setTimeout("slideit()",4000);
	else
	timer = setTimeout("slideit()",speed*4000);
	}
