// JavaScript Document

setTimeout("teaser2();", 2000);
   
   
function teaser1(){
    $("#tsr05").fadeOut(2000);
    $("#tsr01").fadeIn(2000);
	setTimeout("teaser2();", 6000);
}
function teaser2(){
    $("#tsr01").fadeOut(2000);
    $("#tsr02").fadeIn(2000);
    setTimeout("teaser3();", 6000);
}
function teaser3(){
    $("#tsr02").fadeOut(2000);
    $("#tsr03").fadeIn(2000);
    setTimeout("teaser4();", 6000);
}
function teaser4(){
    $("#tsr03").fadeOut(2000);
    $("#tsr04").fadeIn(2000);
    setTimeout("teaser5();", 6000);
}

function teaser5(){
    $("#tsr04").fadeOut(2000);
    $("#tsr05").fadeIn(2000);
    setTimeout("teaser1();", 6000);
}
//****************************//





function intro1() {
    $("#video_popup").animate({ top: "0px" }, 1500);
	scroll(0, 0);
	    var so = new SWFObject('player.swf', 'mpl', '460', '380', '9', '#000000');
	    so.addParam('allowfullscreen', 'true');
	    so.addParam('allowscriptaccess', 'always');
	    so.addParam('wmode', 'opaque');
	    so.addVariable('file', 'flv/goforit_tsr.flv');
	    so.addVariable('controlbar', 'none');
	    so.addVariable('image', 'images/bg_video2.jpg');
	    so.addVariable('autostart', 'true');
	    so.write('player');

	}

	function intro122() {
	    $("#video_popup").animate({ top: "0px" }, 1500);
	    scroll(0, 0);
	    var strVid = "<video width='460' height='380' src='flv/goforit_tsr.mp4' autoplay='autoplay' ><div class='no-html5-video'><p>This video will work in Mozilla Firefox or Google Chrome only.</p></div></video>";
	    //var strVid = "mp4"

	    $(".screen22").attr("innerHTML", strVid);
	   $(".screen22").css("display", "block");

	}

function intro2(){
	
    $("#video_popup").animate({ top: "-680px" }, 1500);
}
	


function HideIntro() {
		$("#video_popup").animate({ top: "-680px" }, 1000);
		scroll(0, 0);
	    var so = new SWFObject('player.swf', 'mpl', '460', '380', '9', '#000000');
	    so.addParam('allowfullscreen', 'true');
	    so.addParam('allowscriptaccess', 'always');
	    so.addParam('wmode', 'opaque');
	    so.addVariable('file', 'flv/goforit_tsr.flv');
	    so.addVariable('controlbar', 'none');
	    so.addVariable('image', 'images/bg_video2.jpg');
	    so.addVariable('autostart', 'false');
	    so.write('player');

	
}


setTimeout("m1();", 400);


function PlayMovie() {
		 $("#tsr_movie").fadeOut(1000);
	     $("#player").fadeIn(800);
	     $("#filter").fadeIn(800);
		 scroll(0, 0);
	    var so = new SWFObject('player.swf', 'mpl', '620', '420', '8', '#000000');
	    so.addParam('allowfullscreen', 'true');
	    so.addParam('allowscriptaccess', 'always');
	    so.addParam('wmode', 'opaque');
	    so.addVariable('file', 'flv/goforit_tsr.flv');
	    so.addVariable('controlbar', 'none');
	    so.addVariable('image', 'images/start.gif');
	    so.addVariable('autostart', 'true');
	    so.write('player');
		
		
		setTimeout("m2();", 30000);
}

function m2(){
	$("#player").fadeOut(1000);
	$("#filter").fadeOut(1000);
    $("#tsr_movie").fadeIn(1000);
    setTimeout("m3();", 10);
}




function HideMovie() {
		 document.getElementById('player').style.display = "none";
	     $("#tsr_movie").fadeIn(800);
	     $("#filter").fadeOut(800);
		 document.getElementById('player').style.display = "none";
		scroll(0, 0);
	    var so = new SWFObject('player.swf', 'mpl', '460', '380', '9', '#000000');
	    so.addParam('allowfullscreen', 'true');
	    so.addParam('allowscriptaccess', 'always');
	    so.addParam('wmode', 'opaque');
	    so.addVariable('file', 'flv/goforit_tsr.flv');
	    so.addVariable('controlbar', 'none');
	    so.addVariable('image', 'images/bg_video2.jpg');
	    so.addVariable('autostart', 'false');
	    so.write('player');	
	
}







//****************************//


//VIDEO PLAYER 1//

Ron();

	    function HideAll() {
	        document.getElementById('transparant_layer').style.display = "none";
	        document.getElementById('popup').style.display = "none";

	    }
	    
	    function Play() {
	        $("#tsr_movie").fadeOut(250);
	        $("#player").fadeIn(300);
	        scroll(0, 0);
	    var so = new SWFObject('player.swf', 'mpl', '460', '380', '9', '#000000');
	    so.addParam('allowfullscreen', 'true');
	    so.addParam('allowscriptaccess', 'always');
	    so.addParam('wmode', 'opaque');
	    so.addVariable('file', 'flv/goforit_film.flv');
	    so.addVariable('controlbar', 'none');
	    so.addVariable('image', 'images/header_goforit.jpg');
	    so.addVariable('autostart', 'true');
	    so.write('player');	
	    }


//****************************//




function player() {
	        scroll(0, 0);
	        var so = new SWFObject('player.swf', 'mpl', '450', '322', '9');
	        so.addParam('allowfullscreen', 'true');
	        so.addParam('allowscriptaccess', 'always');
	        so.addParam('wmode', 'opaque');
	        so.addVariable('file', 'flv/goforit_film.flv');
	        so.addVariable('controlbar', 'none');
	        so.addVariable('image', 'images/startvideo.jpg');
	        so.addVariable('autostart', 'true');
	        so.write('player');
	    }





