var saved = document.cookie
				
		if (saved == null || saved == "undefined" || saved == "" || saved.indexOf("GVTCookie") == -1){
				var tracking ="page=0,sound=0";
				var when = new Date(2019,08,01); //expires the cookie
				var date = when.toGMTString();
						
				document.cookie = "GVTCookie=" + tracking + ";expires=" + date
		}
	
	function accessTracking(){
		saved = document.cookie
				
			if (saved != null && saved != "undefined" && saved != "" && saved.indexOf("GVTCookie") != -1){
				saved = saved.substring((saved.indexOf("GVTCookie=") + 10), saved.length)
							
					myVars = new String(saved)
					splitComma = myVars.split(",");
			 }
	}
	
	function saveTracking(Score,Location,Status,Suspend){
		//pass info for suspend_data
		if (Suspend != 0){
			var tracking = Suspend;
				} else {var tracking = splitComma[0] + "," + splitComma[1];}
		
		var when = new Date(2019,08,01);
			var date = when.toGMTString();
	
		document.cookie = "GVTCookie=" + tracking + ";expires=" + date
	}
accessTracking();
var loadPage ="";
var soundSetting ="";
		
		var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
		function mainMovie_DoFSCommand(command){
		  var mainMovieObj = InternetExplorer ? mainMovie : document.mainMovie;
			if(command == "whichpage"){
					if(splitComma[0] == "page=0"){loadPage = "content/home.swf";}
					if(splitComma[0] == "page=1"){loadPage = "content/mailresponse.swf";}
					sendtoFlash(loadPage);
				}
			if(command == "sendmail"){
				splitComma[0] = "page=1";
				saveTracking(0,0,0,0);
				}
			if(command == "sendhome"){
				splitComma[0] = "page=0";
				saveTracking(0,0,0,0);
				}
			
			if(command == "sound"){
				
					if(splitComma[1].indexOf("sound=0") != -1){soundSetting = "ON";}
					if(splitComma[1].indexOf("sound=1") != -1){soundSetting = "OFF";}
					sendSoundtoFlash(soundSetting);
				}
			if(command == "soundon"){
				splitComma[1] = "sound=0";
				saveTracking(0,0,0,0);
			}
			if(command == "soundoff"){
				splitComma[1] = "sound=1";
				saveTracking(0,0,0,0);
			}
		}
		
		if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
		  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		  document.write('on error resume next \n');
		  document.write('Sub mainMovie_FSCommand(ByVal command, ByVal args)\n');
		  document.write(' call mainMovie_DoFSCommand(command, args)\n');
		  document.write('end sub\n');
		  document.write('</SCRIPT\> \n');
		} 
		//communicate from js to flash
		function sendtoFlash(choice){
			if(window.mainMovie){window.document.mainMovie.SetVariable("startPage", choice)};
			if(document.embeds['mainMovie'] != null && document.mainMovie){document.embeds['mainMovie'].SetVariable("startPage", choice)};
		}
		function sendSoundtoFlash(choice){
			if(window.mainMovie){window.document.mainMovie.SetVariable("setSound", choice)};
			if(document.embeds['mainMovie'] != null && document.mainMovie){document.embeds['mainMovie'].SetVariable("setSound", choice)};
		}