// Copyright 2011 Author - ©Barton Anderson
//

function loadNewVideo(id) {

	switch (id){
	case "1": 
		swfobject.embedSWF("movies/landingMovie.swf", "homeVideoCont", "460", "288", "9.0.0", "expressInstall.swf");
		break;
	case "2": 
		swfobject.embedSWF("movies/landingMovie2.swf", "homeVideoCont", "460", "288", "9.0.0", "expressInstall.swf");
		break;	
	case "3": 
		swfobject.embedSWF("movies/landingMovie1.swf", "homeVideoCont", "460", "288", "9.0.0", "expressInstall.swf");
		break;
	case "4": 
		swfobject.embedSWF("movies/landingMovie3.swf", "homeVideoCont", "460", "288", "9.0.0", "expressInstall.swf");
		break;
	case "5": 
		swfobject.embedSWF("movies/landingMovie4.swf", "homeVideoCont", "460", "288", "9.0.0", "expressInstall.swf");
		break;
	case "6": 
		swfobject.embedSWF("movies/landingMovie5.swf", "homeVideoCont", "460", "288", "9.0.0", "expressInstall.swf");
		break;
	case "7": 
		swfobject.embedSWF("movies/landingMovie6.swf", "homeVideoCont", "460", "288", "9.0.0", "expressInstall.swf");
		break;
	case "8": 
		swfobject.embedSWF("movies/landingMovie7.swf", "homeVideoCont", "460", "288", "9.0.0", "expressInstall.swf");
		break;
	default : "";
	}
};
	
function onplayerStateChange(e) 
{
	swfobject.removeSWF("homeVideoCont");
	var graPhic = "<img src=\"images/videoSoccer.jpg\" width=\"460\" height=\"288\" /><img src=\"images/videoCombo.jpg\" width=\"460\" height=\"288\" /><img src=\"images/videoFootball.jpg\" width=\"460\" height=\"288\" /><img src=\"images/videoBaseball.jpg\" width=\"460\" height=\"288\" /><img src=\"images/videoGroup.jpg\" width=\"460\" height=\"288\" /><img src=\"images/videoHockey.jpg\" width=\"460\" height=\"288\" /><img src=\"images/videoTennis.jpg\" width=\"460\" height=\"288\" /><img src=\"images/videoFan.jpg\" width=\"460\" height=\"288\" /><img src=\"images/videoBoxing.jpg\" width=\"460\" height=\"288\" /><img src=\"images/videoBasketball.jpg\" width=\"460\" height=\"288\" />";
  	var k = document.getElementById('VideoCont');
	k.innerHTML = "<div id=\"homeVideoCont\"></div>";
	var m = document.getElementById('homeVideoCont');
	m.innerHTML = graPhic;
	$('#homeVideoCont').cycle({
		fx: 'fade'
	});
};

    


