function change(){
    if (ver==1){
		with(eval('f_img').filters.revealTrans){
			Transition = Math.floor(Math.random()*23);
			apply();
			play(); 
		}
	}
	if (firstTime){ firstTime=false;timeOut=_timeOut_/2;}
	else{	 
		 f_img.src=imgUrl[now];
 		 f_img.alt=imgAlt[now];
		 f_imgLink.href=imgLink[now];
		 f_text.innerHTML=imgText[now];
		 for (var i=0;i<count;i++) {eval('b'+i).className="button";}
		 eval('b'+now).className="on";		 
		 now=(now>=imgUrl.length-1)?0:now+1;
		 timeOut=_timeOut_;		 
	}
	theTimer=setTimeout("change()", timeOut);
}

function b_change(num){
  window.clearInterval(theTimer);
  now=num;
  firstTime=false;
  change();
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

    /*------------------------------------------------------*\ 
     * Subject: 使用 javascript 函数 完美控制页面图片显示大小 By shawl.qiu   
     * 使用: 
     * -------------------------------------- 
     * 1. Javascript 脚本块 
     *    window.onload=function(){ 
     *        fResizeImg(500, 500, 'img'); 
     *        //fResizeImg(500, 500); 
     *    } 
     * 
     * 2. html body 标签 
     * <body onload="fResizeImg(500, 500, 'textMain');" > 
     * -------------------------------------- 
     * 注: 必须在页面加载完毕后使用本函数(这是基本的客户端应用概念) 
     * -------------------------------------- 
     * 参数说明: 
     * w: 数值, 设置最大宽度, 图片宽度大于该值则设置大小为该值 
     * h: 数值, 设置最大高度, 图片高度大于该值则设置大小为该值 
     * id: 字串, 设置函数作用域 ID, 如不设置, 作用于全页面.  
	 调用
	 //<![CDATA[ 
				window.onload=function(){ 
					fResizeImg(680, 750, 'table');
				} 
			//]]> 
	 
    \*-------------------------------------------------------*/ 
    //-----------------------------begin function fResizeImg(w, h, id)-------------------------// 
    function fResizeImg(w, h, id){ 
        var img, obj; 
        if(!id)obj=document.images; 
        else obj=document.getElementById(id).getElementsByTagName('img'); 
         
        for(var i=0; i<obj.length; i++){ 
            img=obj[i]; 
            if(img.width>w&&(img.height<img.width)){ 
                img.height=img.height-(img.height/(img.width/(img.width-w))) 
                img.width=w; 
            }else if(img.height>h&&(img.height>img.width)){ 
                img.width=img.width-(img.width/(img.height/(img.height-h))) 
                img.height=h; 
            } 
            img.onclick=function(){ 
                try{ w.close();} catch(e){} 
                var temp=new Image(); 
                    temp.src=this.src; 
                var wW=temp.width; 
                var wH=temp.height; 
                w=open('#', 'imgurl', 'width='+wW+', height='+wH+ 
                ', left='+(screen.availWidth-wW)/2+', top='+(screen.availHeight-wH)/2); 
                w.document.write('<script>document.onclick=function(){ close();}<\/script>'); 
                w.document.write('<img src="'+this.src+'"/>', 
                '<style>body{margin:0; padding:0;} .hd{visibility:hidden;}<\/style>'); 
                w.focus(); 
                w.document.close(); 
                return true; 
            } 
        } // shawl.qiu script 
        return true; 
    } 
    //-----------------------------end function fResizeImg(w, h, id)---------------------------// 