/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

var pathBase = "/th/yugi5d/cmn/img/"; 
 
//var bannerImg =new Array()
//SET IMAGE PATHS. Extend or contract array as needed
/* bannerImg[0]=[pathBase + "banner2009_yugioh_hk.jpg", "/th/yugi5d/cmn/images/poster/ncs2009-poster_980-hk.jpg", ""] 
bannerImg[1]=[pathBase + "banner2009_yugioh_tw.jpg", "/th/yugi5d/cmn/images/poster/ncs2009-poster_980-tw.jpg", ""] 
bannerImg[2]=[pathBase + "banner2009_yugioh_my.jpg", "/th/yugi5d/cmn/images/poster/ncs2009-poster_980-my.jpg", ""] 
bannerImg[2]=[pathBase + "banner2009_yugioh_sg.jpg", "/th/yugi5d/cmn/images/poster/ncs2009-poster_980-sg.jpg", ""] */

/*bannerImg[0]=[pathBase + "notice.gif", "/th/yugi5d/cn-t/event_taikai/acs/2010/index.html", ""] 
bannerImg[1]=[pathBase + "notice.gif", "/th/yugi5d/cn-t/event_taikai/acs/2010/index.html", ""] */
//bannerImg[0]=[pathBase + "noticea_xmas.gif", "/th/yugi5d/cn-t/event/special/christmas-carnival-2009-hong-kong.html", ""]

var mygallery=new fadeSlideShow({
	wrapperid: "sp_banner", //ID of blank DIV on page to house Slideshow
	dimensions: [950, 92], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
				//[pathBase + "notice.gif", "/th/yugi5d/cn-t/event_taikai/acs/2010/index.html", "", "Click for more information / 點擊本圖查閱詳細資料 "],
				
				[pathBase + "banner/banner_anicom2010.jpg", "/th/yugi5d/cn-t/event/special/ani-com2010.html", "", "Click for more information / 點擊本圖查閱詳細資料 "],
				
				[pathBase + "banner/promo_bnr_draft.gif", "/th/yugi5d/cn-t/event/special/dk_draft-tournament.php", "", "Click for more information / 點擊本圖查閱詳細資料 "]
					
 			//<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:8500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})


var max = 12;
//document.write('<img src="../cmn/img/top_img_' + Math.ceil(Math.random()*max) + '.jpg" alt="">');
							
var topimg=new fadeSlideShow({
	wrapperid: "top_banner", //ID of blank DIV on page to house Slideshow
	dimensions: [774, 332], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
				//[pathBase + "notice.gif", "/th/yugi5d/cn-t/event_taikai/acs/2010/index.html", "", "Click for more information / 點擊本圖查閱詳細資料 "],
				//[pathBase + "top_img_99.jpg", "/th/yugi5d/promotion/5d_duelist_id.html", "", "I want to register now! / 我要立即申請! "],
				[pathBase + 'top_img_' + Math.ceil(Math.random()*max) + '.jpg', "", "", ""]
 //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:8500, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})
