var bgAudio = "audio.mp3";
var movie1 = "video1.swf";
var movie2 = "video2.swf";
var movie3 = "video3.swf";
var movie4 = "video4.swf";
var movie5 = "video5.swf";
var movie6 = "video6.swf";
var movie7 = "video7.swf";
var movie8 = "video8.swf";
var image1 = "video1.jpg";
var image2 = "video2.jpg";
var image3 = "video3.jpg";
var image4 = "video4.jpg";
var image5 = "video5.jpg";
var image6 = "video6.jpg";
var image7 = "video7.jpg";
var image8 = "video8.jpg";
var finalImage = "sraLogoblack1.jpg";
var finalImageWidth = 350;
var finalImageHeight = 59;
var nextPage = "introduction1.html";
var width = 224;
var height = 168;
var transitionLength = 3; //Seconds
var movieLength = 2.75; //Seconds
//Don't edit under here
//-------------------------------------------------------------------------------------
var totalLength = 0;
var t2Length = transitionLength*60;
var tLength = transitionLength*1000;
var mLength = movieLength*1000
window.onload = start;
function start() {
    step0();
	setTimeout('step1()',totalLength);
	totalLength += tLength;
	setTimeout('step2()',totalLength);
	totalLength += mLength;
	setTimeout('step3()',totalLength);
	totalLength += tLength;
	setTimeout('step4()',totalLength);
	totalLength += mLength;
	setTimeout('step5()',totalLength);
	totalLength += tLength;
	setTimeout('step6()',totalLength);
	totalLength += mLength;
	setTimeout('step7()',totalLength);
	totalLength += tLength;
	setTimeout('step8()',totalLength);
	totalLength += mLength;
	setTimeout('step9()',totalLength);
	totalLength += tLength;
	setTimeout('step10()',totalLength);
	totalLength += mLength;
	setTimeout('step11()',totalLength);
	totalLength += tLength;
	setTimeout('step12()',totalLength);
	totalLength += mLength;
	setTimeout('step13()',totalLength);
	totalLength += tLength;
	setTimeout('step14()',totalLength);
	totalLength += mLength;
	setTimeout('step15()',totalLength);
	totalLength += tLength;
	setTimeout('step16()',totalLength);
	totalLength += mLength;
	setTimeout('step17()',totalLength);
	totalLength += tLength;
	setTimeout('newLocation()',totalLength);
}

function step0() {
if (swfobject.hasFlashPlayerVersion("8.0.0")) {
	      var fn0 = function() {
	        var flashvars = {};
					flashvars.song_url = bgAudio;
					flashvars.autoplay = "true";
					flashvars.repeat = "true";
					flashvars.b_fgcolor = "000000";
					var params = {};
					params.play = "true";
					params.loop = "true";
					params.bgcolor = "#000000";
					var attributes = {};
					attributes.id = "audio";
			swfobject.embedSWF("musicplayer_f6.swf", "audio", "17", "17", "8.0.0", false, flashvars, params, attributes);
	      };
	      swfobject.addDomLoadEvent(fn0);
	    }
}

function step1() {
	testObj = document.getElementById('video1');
	setOpacity(0);
	testObj.style.display = "inline";
	for (var i=0;i<11;i++)
		setTimeout('setOpacity('+i+')',t2Length*i);
}

function step2() {
	if (swfobject.hasFlashPlayerVersion("8.0.0")) {
	      var fn1 = function() {
	        var att = { data:"video1.swf", width:"224", height:"168" };
	        var par = { flashvars:"", loop:"true" };
	        var el = document.getElementById("video1");
	        swfobject.createSWF(att, par, el);
	      };
	      swfobject.addDomLoadEvent(fn1);
	    }
}

function step3() {
	testObj = document.getElementById('video2');
	setOpacity(0);
	testObj.style.display = "inline";
	for (var i=0;i<11;i++)
		setTimeout('setOpacity('+i+')',t2Length*i);
}

function step4() {
	if (swfobject.hasFlashPlayerVersion("8.0.0")) {
	      var fn2 = function() {
	        var att = { data:"video2.swf", width:"224", height:"168" };
	        var par = { flashvars:"", loop:"true" };
	        var el = document.getElementById("video2");
	        swfobject.createSWF(att, par, el);
	      };
	      swfobject.addDomLoadEvent(fn2);
	    }
}

function step5() {
	testObj = document.getElementById('video3');
	setOpacity(0);
	testObj.style.display = "inline";
	for (var i=0;i<11;i++)
		setTimeout('setOpacity('+i+')',t2Length*i);
}

function step6() {
	if (swfobject.hasFlashPlayerVersion("8.0.0")) {
	      var fn3 = function() {
	        var att = { data:"video3.swf", width:"224", height:"168" };
	        var par = { flashvars:"", loop:"true" };
	        var el = document.getElementById("video3");
	        swfobject.createSWF(att, par, el);
	      };
	      swfobject.addDomLoadEvent(fn3);
	    }
}

function step7() {
	testObj = document.getElementById('video4');
	setOpacity(0);
	testObj.style.display = "inline";
	for (var i=0;i<11;i++)
		setTimeout('setOpacity('+i+')',t2Length*i);
}

function step8() {
	if (swfobject.hasFlashPlayerVersion("8.0.0")) {
	      var fn4 = function() {
	        var att = { data:"video4.swf", width:"224", height:"168" };
	        var par = { flashvars:"", loop:"true" };
	        var el = document.getElementById("video4");
	        swfobject.createSWF(att, par, el);
	      };
	      swfobject.addDomLoadEvent(fn4);
	    }
}

function step9() {
	testObj = document.getElementById('video5');
	setOpacity(0);
	testObj.style.display = "inline";
	for (var i=0;i<11;i++)
		setTimeout('setOpacity('+i+')',t2Length*i);
}

function step10() {
	if (swfobject.hasFlashPlayerVersion("8.0.0")) {
	      var fn5 = function() {
	        var att = { data:"video5.swf", width:"224", height:"168" };
	        var par = { flashvars:"", loop:"true" };
	        var el = document.getElementById("video5");
	        swfobject.createSWF(att, par, el);
	      };
	      swfobject.addDomLoadEvent(fn5);
	    }
}

function step11() {
	testObj = document.getElementById('video6');
	setOpacity(0);
	testObj.style.display = "inline";
	for (var i=0;i<11;i++)
		setTimeout('setOpacity('+i+')',t2Length*i);
}

function step12() {
	if (swfobject.hasFlashPlayerVersion("8.0.0")) {
	      var fn6 = function() {
	        var att = { data:"video6.swf", width:"224", height:"168" };
	        var par = { flashvars:"", loop:"true" };
	        var el = document.getElementById("video6");
	        swfobject.createSWF(att, par, el);
	      };
	      swfobject.addDomLoadEvent(fn6);
	    }
}

function step13() {
	testObj = document.getElementById('video7');
	setOpacity(0);
	testObj.style.display = "inline";
	for (var i=0;i<11;i++)
		setTimeout('setOpacity('+i+')',t2Length*i);
}

function step14() {
	if (swfobject.hasFlashPlayerVersion("8.0.0")) {
	      var fn7 = function() {
	        var att = { data:"video7.swf", width:"224", height:"168" };
	        var par = { flashvars:"", loop:"true" };
	        var el = document.getElementById("video7");
	        swfobject.createSWF(att, par, el);
	      };
	      swfobject.addDomLoadEvent(fn7);
	    }
}

function step15() {
	testObj = document.getElementById('video8');
	setOpacity(0);
	testObj.style.display = "inline";
	for (var i=0;i<11;i++)
		setTimeout('setOpacity('+i+')',t2Length*i);
}

function step16() {
	if (swfobject.hasFlashPlayerVersion("8.0.0")) {
	      var fn8 = function() {
	        var att = { data:"video8.swf", width:"224", height:"168" };
	        var par = { flashvars:"", loop:"true" };
	        var el = document.getElementById("video8");
	        swfobject.createSWF(att, par, el);
	      };
	      swfobject.addDomLoadEvent(fn8);
	    }
}

function step17() {
	testObj = document.getElementById('finalFrame');
	setOpacity(0);
	testObj.style.display = "inline";
	for (var i=0;i<11;i++)
		setTimeout('setOpacity('+i+')',t2Length*i);
}

function setOpacity(value) {
	testObj.style.opacity = value/10;
	testObj.style.filter = 'alpha(opacity=' + value*10 + ')';
}