﻿// JScript 文件
function doZoom(size){   
    document.getElementById('zoom').style.fontSize = size+'px'; 
} 

function Openersub(strUrl)
{
 var vReturn='';
 var strFeature = 'dialogWidth:560px;dialogHeight:400px;status:0;scroll:0:0;help:0;scrollbars:no';
 vReturn=window.showModalDialog(strUrl,window,strFeature);
}

function changecode(){
	var r = Math.random(); 
	document.getElementById("getValidateImg").src = "/getValidateImg.aspx?"+r;
}

function WriteFlash(flash,_width,_height) {
	document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"" + _width + "\" height=\"" + _height + "\">");
	document.writeln("  <param name=\"movie\" value=\"" + flash + "\" />");
	document.writeln("  <param name=\"quality\" value=\"high\" />");
	document.writeln("  <param name=\"wmode\" value=\"transparent\" />");
	document.writeln("  <embed src=\"" + flash + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + _width + "\" height=\"" + _height + "\" wmode=\"transparent\"></embed>");
	document.writeln("</object>");
}

function hdFlash()
{
	var NowFrame = 1;
	var MaxFrame = 5;
	var bStart = 0;
	function fnToggle() 
	{
	    var next = NowFrame + 1;
	    if(next == MaxFrame+1) 
	    {
	        NowFrame = MaxFrame;
	        next = 1;
	    }
	    
	    if(bStart == 0)
	    {
	        bStart = 1;
	        setTimeout('fnToggle()', 1000);
	        return;
	    }
	    else
	    {
	        oTransContainer.filters[0].Apply();
	        document.images['oDIV'+next].style.display = "";
	        document.images['oDIV'+NowFrame].style.display = "none"; 
	        oTransContainer.filters[0].Play(duration=5);
	        if(NowFrame == MaxFrame) 
	            NowFrame = 1;
	        else
	            NowFrame++;
	    } 
        setTimeout('fnToggle()', 6000);
	}
	fnToggle();
}
