// JavaScript Document
/*
======================================================================
                           On 2007.9
						  By Townlinn
JS NAME: »ÃµÆÆ¬Ð§¹û
======================================================================
*/

function atl_Slide_effects() 
{
	this.ImgUrl=""; 
	this.LinkUrl=""; 
	this.Title="";
}

function aSlidePic_Slide_effects(_id) 
{
	this.ID=_id; 
	this.Width=952;
	this.Height=244; 
	this.TimeOut=8000; 
	this.Effect=23; 
	this.TitleLen=0; 
	this.PicNum=-1; 
	this.Img=null; 
	//this.Url=null; 
	this.Title=null; 
	this.AllPic=new Array(); 
	this.Add=aSlidePic_Slide_effects_Add; 
	this.Show=aSlidePic_Slide_effects_Show; 
	this.LoopShow=aSlidePic_Slide_effects_LoopShow;
}

function aSlidePic_Slide_effects_Add(_SP) 
{
	this.AllPic[this.AllPic.length] = _SP;
}

function aSlidePic_Slide_effects_Show() 
{
  if(this.AllPic[0] == null) return false;
  document.write("<div align='left' ><img id='Img_" + this.ID + "' style='width:952px; height:244px; filter: revealTrans(duration=2,transition=23);' src='javascript:null' border='0'>");
  if(this.TitleLen != 0) document.write("<br><span id='Title_" + this.ID + "'></span></div>");
  this.Img = document.getElementById("Img_" + this.ID);
  this.Url = document.getElementById("Url_" + this.ID);
  this.Title = document.getElementById("Title_" + this.ID);
  this.LoopShow();
}
function aSlidePic_Slide_effects_LoopShow() 
{
  if(this.PicNum<this.AllPic.length-1) this.PicNum++ ; 
  else this.PicNum=0; 
  this.Img.filters.revealTrans.Transition=this.Effect; 
  this.Img.filters.revealTrans.apply(); 
  this.Img.src=this.AllPic[this.PicNum].ImgUrl;
  this.Img.filters.revealTrans.play();
  //this.Url.href=this.AllPic[this.PicNum].LinkUrl;
  if(this.Title) this.Title.innerHTML="<a href="+this.AllPic[this.PicNum].LinkUrl+" target=_blank>"+this.AllPic[this.PicNum].Title+"</a>";
  this.Img.timer=setTimeout(this.ID+".LoopShow()",this.TimeOut);
}

var atl_SlidePic = new aSlidePic_Slide_effects("atl_SlidePic");
atl_SlidePic.Width    = 952;
atl_SlidePic.Height   = 244;
atl_SlidePic.TimeOut  = 5500;
atl_SlidePic.Effect   = 23;
atl_SlidePic.TitleLen = 20;
//---------------------------------------------------
var atl_Slide = new atl_Slide_effects();
atl_Slide.ImgUrl         = "images/flash/banner3.jpg";
atl_Slide.LinkUrl        = "";
atl_Slide.Title         = "";
atl_SlidePic.Add(atl_Slide);
var atl_Slide = new atl_Slide_effects();
atl_Slide.ImgUrl         = "images/flash/banner2.jpg";
atl_Slide.LinkUrl        = "";
atl_Slide.Title         = "";
atl_SlidePic.Add(atl_Slide);
var atl_Slide = new atl_Slide_effects();
atl_Slide.ImgUrl         = "images/flash/banner1.jpg";
atl_Slide.LinkUrl        = "";
atl_Slide.Title         = "";
atl_SlidePic.Add(atl_Slide);
var atl_Slide = new atl_Slide_effects();
atl_Slide.ImgUrl         = "images/flash/banner4.jpg";
atl_Slide.LinkUrl        = "";
atl_Slide.Title         = "";
atl_SlidePic.Add(atl_Slide);


atl_SlidePic.Show();

