// JavaScript Document
var slidespeed=5

g_fPlayMode = 0;
g_iimg = -1;
g_imax = 0;
g_ImageList = new Array();

g_ImageList[g_imax++] = new Array ("/album/G1/L_01.jpg", "Lu&#7853;t s&#432;  Judith M.Saffer - Ch&#7911; t&#7883;ch Hi&#7879;p h&#7897;i Lu&#7853;t S&#7903; H&#7919;u Tr&iacute; Tu&#7879; Hoa K&#7923;  (<a href='http://www.aipla.org/' target='_blank'><b>AIPLA</b></a>) v&agrave; Lu&#7853;t s&#432; Margaret A Boulware thu&#7897;c C&ocirc;ng ty Lu&#7853;t <a href='http://www.bakernet.com' target='_blank'><b>Baker & McKenzie LLP</b></a> th&#259;m v&agrave; l&agrave;m vi&#7879;c v&#7899;i Novapro &amp; Associates");
g_ImageList[g_imax++] = new Array ("/album/G1/L_02.jpg", "");
g_ImageList[g_imax++] = new Array ("/album/G1/L_03.jpg", "");
g_ImageList[g_imax++] = new Array ("/album/G1/L_04.jpg", "");



function ChangeImage(fFwd){
	if (fFwd){
		if (++g_iimg==g_imax){
			g_iimg=0;
		}
	}
	else{
		if (g_iimg==0){
			g_iimg=g_imax-1;
		}
		else{
			g_iimg--
		}
	}
	Update();
}

function getobject(obj){
	if (document.getElementById)
		return document.getElementById(obj)
	else if (document.all)
		return document.all[obj]
}

function Update(){
	SlideImage()
	//getobject("Image_Slide").src = g_ImageList[g_iimg][0];
	getobject("Image_FileName").innerHTML = g_ImageList[0][1];
}

function Play(){
	g_fPlayMode = !g_fPlayMode;
	if (g_fPlayMode){
		getobject("btnPrev").disabled = getobject("btnNext").disabled = true;
		Next();
	}
	else {
		getobject("btnPrev").disabled = getobject("btnNext").disabled = false;
	}
}

function OnImgLoad(){
	if (g_fPlayMode){
		window.setTimeout("Tick()", slidespeed*1000);
	}
}

function Tick(){
	if (g_fPlayMode){
		Next();
	}
}

function Prev(){
	ChangeImage(false);
}

function Next(){
	ChangeImage(true);
}

function PreloadImage(){
	ImageArray = new Array(g_imax);
	
  	for(var i=0; i<ImageArray.length; i++){
    	ImageArray[i] = new Image;
    	ImageArray[i].src = g_ImageList[i][0];
  	}
}

function SlideImage(){
if (!document.images) return
document.Image_Slide.filters[0].apply()
document.images.Image_Slide.src=g_ImageList[g_iimg][0]
document.images.Image_Slide.filters[0].play()
}

