/**
 * Javascript file include for the tour
 */

function switcher(divID, classSwitch) { document.getElementById(divID).className = classSwitch; }

function goToSignup(NATS) { location.href="https://join.digitalplayground.com/signup/signup.php" + NATS; }

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));


/**
 * Movie stop/play functions
 */
function getFlashMovie( movieName )
{
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
}

function stopOtherMovies( movie )
{
	switch( movie )
	{
		case "recent":
			getFlashMovie("liveChatFlash").stopMovie();
			break;
			
		case "live":
			getFlashMovie("recentPlayerFlash").stopMovie();
			break;
			
		case "iPhone":
			getFlashMovie("liveChatFlash").stopMovie();
			getFlashMovie("recentPlayerFlash").stopMovie();
			break;
			
		case "disclaimer":
			getFlashMovie("recentPlayerFlash").stopMovie();
			break;
		
		case "vrsex-home":
			getFlashMovie("recentPlayerFlash").stopMovie();
			getFlashMovie("liveChatFlash").stopMovie();
			break;
			
		case "vrsex-videos":
			getFlashMovie("BTSPlayerFlash").stopMovie();
			getFlashMovie("MoviePlayerFlash").stopMovie();
			break;
	}
	
	return 1;
}

function playOtherMovies( setCookie )
{
	if( setCookie ) document.cookie = "EnterAccept=1; path=/";
	
	//getFlashMovie("recentPlayerFlash").playMovie();
	
	return 1;
}