/*
*	DVD section js library
*	author: Keiichi Shibuya
*
*/

function testCall(){
	alert("dvd.js is called!!");
}

function switchSeason(season){
	var tt = document.getElementById("toptab");
	tt.innerHTML = '';
	if(season == '1'){
		tt.innerHTML += '<a><div id="tt_season1" style="z-index:3">Season one</div></a>';
		tt.innerHTML += '<a href="season2.htm"><div id="tt_season2_off" onclick="switchSeason(2)" style="z-index:2">Season two</div></a>';
		tt.innerHTML += '<a href="season3.htm"><div id="tt_season3_off" onclick="switchSeason(3)" style="z-index:1">Season three</div></a>';

	}
	else if(season == '2'){
		tt.innerHTML += '<a href="season1.htm"><div id="tt_season1_off" onclick="switchSeason(1)" style="z-index:1">Season one</div></a>';
		tt.innerHTML += '<a><div id="tt_season2" style="z-index:3">Season two</div></a>';
		tt.innerHTML += '<a href="season3.htm"><div id="tt_season3_off" onclick="switchSeason(3)" style="z-index:2">Season three</div></a>';	
	}
	else{
		tt.innerHTML += '<a href="season1.htm"><div id="tt_season1_off" onclick="switchSeason(1)" style="z-index:1">Season one</div></a>';
		tt.innerHTML += '<a href="season2.htm"><div id="tt_season2_off"  onclick="switchSeason(2)" style="z-index:2">Season two</div></a>';
		tt.innerHTML += '<a><div id="tt_season3" style="z-index:3">Season three</div></a>';
	}
		
}

function switchVideoGallery(sw){
	var svg = document.getElementById("sw-video-gallery");
	svg.innerHTML = '';
	
	var vp = document.getElementById("videoplayer");
	var mvparam = document.getElementByName("movie");
	
	if(sw == 0){
		svg.innerHTML += '<div id="sw-video-on"></div><div id="sw-gallery-off" onclick="switchVideoGallery(1)"></div>';
		vp.data = 'swf/placeholder_650x460.swf';
		mvparam.value = 'swf/placeholder_650x460.swf';
	}
	else{
		svg.innerHTML += '<div id="sw-video-off" onclick="switchVideoGallery(0)"></div><div id="sw-gallery-on"></div>';
		vp.data = 'swf/placeholder_650x460_red.swf';
		mvparam.value = 'swf/placeholder_650x460_red.swf';
	
	}
	
}