var _flashSite = new SWFObject("VideoPlayer.swf", "flashSite", "528", "290", "8","#000000","", "", "noFlash.html");
	_flashSite.addParam("wmode", "transparent");
	_flashSite.addVariable("videoSrc","flv/TimeJumper_Compressed.flv");

var qdisplay = 0;
var jdisplay = 0;
var images = new Array('security', 'mechanicalengineer', 'physicist', 'historian', 'pr', 'projectmanager');
var titles = new Array('Security Expert', 'Mechanical Engineer', 'Physicist', 'Historian', 'Public Relations Expert', 'Project Manager');
var descriptions = new Array('Intrepid Security Expert with proficiencies in a wide array of combat styles. Expertise in fencing, blunt weapons, archery, black powder, handguns, and plasma weapons suggested.  Extensive experience with in-person and video surveillance required.',
	'Resourceful Mechanical Engineer to work on our team&rsquo;s &ldquo;native hardware&rdquo; project.  Applicants must show an innate ability to improvise with even the most rudimentary raw materials.  Extensive &ldquo;hands-on&rdquo; design experience required.',
	'Physicist with strong knowledge of theoretical physics.  Should be prepared to operate at the bleeding edge of contemporary science and conduct in-depth discussions about the philosophical and ethical repercussions of causality.',
	'Historian with expertise in every age and era.  No region or period too obscure.  Photographic recall of names and dates a plus.  Ability to identify and place artifacts, languages and clothing without the aid of research materials is an absolute must.',
	'Outgoing Public Relations Expert with proven ability to effectively communicate with diverse cultures and defuse touchy situations and misunderstandings with diplomacy.  Fluency in many, many languages a plus.',
	'Extremely organized Project Manager prepared to oversee a massive, complex, and incredibly detailed scheduling project.  Ability to juggle multiple activities at once and top-notch time management skills are a must.');
var quiz_categories = new Array('Yes or No','True Or False','Multiple Choice');

var quiz_questions = new Array('Are you a citizen of the United States?',
	'Have you ever been convicted of a felony?',
	'Are you comfortable operating mobile devices?',
	'Do you consider yourself punctual?',
	'I enjoy outdoor activities such as biking, swimming, and hunting.',
	'I never suffer jet lag.',
	'The needs of the many outweigh the needs of the few.',
	'Technology can solve any problem.',
	'If I could, I&rsquo;d have lunch with:',
	'How comfortable are you with gadgets?',
	'What&rsquo;s the best way to resolve a conflict?',
	'Which scientific advancement are you most interested in?');

var quiz_answers = new Array(
	new Array('Yes','No'),
	new Array('Yes','No'),
	new Array('Yes','No'),
	new Array('Yes','No'),
	new Array('True','False'),
	new Array('True','False'),
	new Array('True','False'),
	new Array('True','False'),
	new Array('Albert Einstein','Cleopatra','Stan Lee','Joan of Arc'),
	new Array('I live for technology!','Give me a night with the manual','Maybe somebody else knows how to work this','I&rsquo;m a total Luddite'),
	new Array('Sit down and discuss the issue','Send a spy to learn your opponent&rsquo;s plans','Compromise','Find a way to please everyone'),
	new Array('Nanotechnology','Robotics','Space Travel','Bioengineering')
);


function normal_home() {
	var str = '<div id="top_row">';
	str += '<table WIDTH="960" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR valign=top>';
	str += '<TD WIDTH="60"></TD>';
	str += '<TD WIDTH="104"><img src="images/logo.gif" alt="H.U.N.T. Logo" width="104" height="113" BORDER="0" /></TD>';
	str += '<TD WIDTH="490"><img src="images/logo_blurb.gif" alt="The Global Leader in Technology-Driven Security Solutions" width="476" height="58" BORDER="0" /></TD>';
	str += '<TD WIDTH="306"><img src="images/areyou.gif" alt="Are You H.U.N.T. Material?" width="211" height="30" BORDER="0" style="margin-top:82px" /></TD>';
	str += '</TR></TABLE>';
	str += '</div>';

	str += '<div id="middle_row">';
	str += '<div id="media_player"></div>';
	str += '<div id="recruitment"><img src="images/takethequiz.gif" alt="Take The Recruitment Quiz" width="299" height="21" BORDER="0" style="margin-left:34px;cursor:pointer;" onClick="show_quiz();" />';
	str += '<div id="folks"><img src="images/folks.jpg" alt="Folks" width="193" height="209" BORDER="0" /></div>';
	str += '<div id="recruitment_text">Do you have what it takes to join an elite organization dedicated to developing groundbreaking technology that will change the world?  We&rsquo;re looking for talented, intelligent, and motivated men and women to join the growing H.U.N.T. team.  Browse some of our current job openings below and <A HREF="#top" onClick="show_quiz();">take the Recruitment Quiz</A> to see which positions best match your skill set.  Make a change today for a better tomorrow!</div>';
	str += '</div></div>';

	str += '<div id="bottom_row">';
	str += '<img src="images/person.gif" alt="" width="13" height="29" BORDER="0" style="margin-left:20px;margin-top:3px;" /><img src="images/jobpostings.gif" alt="Job Postings" width="109" height="27" BORDER="0" style="margin-left:16px;" /><BR>';
	for (a = 0; a < 6; a++) {
		str += job_postings(a);
	}
	str += '</div>';
	str += '<div id="footer"><A HREF="http://disney.go.com/corporate/legal/terms.html?ppLink=pp_wdig ">Terms Of Use</A> &amp; <A HREF="http://disney.go.com/corporate/privacy/pp_wdig.html">Privacy Policy</A> &nbsp;&nbsp;| &nbsp;&nbsp;<A HREF="https://register.go.com/bvhe/huntheadquarters/index">Register to receive new job postings from H.U.N.T.</A>';
	str += '<BR><BR><span style="color:#555555;">&copy; Disney</span></div>';
	str += '<img height="1" width="1" src="http://switch.atdmt.com/action/StanLee_TimeJumper_homepage"/>';
	return(str);
}

function show_video() {
	_flashSite.write("media_player");
}


function iphone_home() {

	var str = '<img src="images/iphone/logo.gif" width="118" height="81" border="0" onClick="restore_home();"><img src="images/iphone/blurb.gif" width="202" height="81" border="0" onClick="restore_home();"><br>';
//	str += '<a href="qt/TJ.mov"><img src="images/iphone/theman2.jpg" width="312" height="151" border="0" STYLE="margin-top:6px;"></A><BR>';
//	str += '<a href="http://trailersfromhell.com/qt/TJ.mov"><img src="images/iphone/theman2.jpg" width="312" height="151" border="0" STYLE="margin-top:6px;"></A><BR>';

	str += '<object width="312" height="151" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">';
	str += '	<param name="src" value="images/iphone/theman2.jpg" />';
	str += '	<param name="href" value="http://trailersfromhell.com/qt/TJ.mov" />';
	str += '	<param name="target" value="myself" />';
	str += '	<embed width="312" height="151" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"';
	str += '		src="images/iphone/theman2.jpg"';
	str += '		href="http://trailersfromhell.com/qt/TJ.mov"';
	str += '		target="myself">';
	str += '	</embed>';
	str += '</object>';

	str += '<A NAME="1" HREF="#1" onClick="toggle_quiz_description();"><img src="images/iphone/quiz_button.gif" width="309" height="25" border="0" STYLE="margin-top:12px;"></A><BR>';
	str += '<div id="quiz_description"></div>';
	str += '<A NAME="2" HREF="#2" onClick="toggle_job_opportunities();"><img src="images/iphone/jobop_button.gif" width="309" height="25" border="0" STYLE="margin-top:12px;"></A><BR>';
	str += '<div id="job_opportunities"></div>';
	str += '<div id="footer"><A HREF="http://disney.go.com/corporate/legal/terms.html?ppLink=pp_wdig ">Terms Of Use</A> &amp; <A HREF="http://disney.go.com/corporate/privacy/pp_wdig.html">Privacy Policy</A> &nbsp;&nbsp;| &nbsp;&nbsp;<A HREF="https://register.go.com/bvhe/huntheadquarters/index">Register to receive new job postings from H.U.N.T.</A>';
	str += '<BR><BR><span style="color:#555555;">&copy; Disney</span></div>';
	str += '<img height="1" width="1" src="http://switch.atdmt.com/action/StanLee_TimeJumper_iPhone"/>';
	return(str);
}

function job_postings(id) {
	var str = '<div class="posting">';
	str += '<img src="images/redthing.gif" alt="" BORDER="0" class="redthing" /><img src="images/icon_'+images[id]+'.gif" alt="'+titles[id]+'" class="icon" />';
	str += '<div class="posting_text"><B>'+titles[id]+'</B><BR>'+descriptions[id]+'</div>';
	str += '</div>';
	return(str);
}

function job_swap(id) {
	document.getElementById('job_listing').innerHTML = job_postings(id);
	for (a=0;a<titles.length;a++) {
		document.getElementById('listing'+a).style.color = '#FFFFFF';
	}
	document.getElementById('listing'+id).style.color = '#990000';
}

function toggle_quiz_description() {
	if (qdisplay == 1) {
		document.getElementById('quiz_description').style.visibility = 'hidden';
		document.getElementById('quiz_description').style.height = '0px';
		document.getElementById('quiz_description').style.padding = '0px';
		document.getElementById('quiz_description').innerHTML = '';
		qdisplay = 0;	
	} else {
		document.getElementById('quiz_description').style.visibility = 'visible';
		document.getElementById('quiz_description').style.height = '116px';
		document.getElementById('quiz_description').style.padding = '10px';
		document.getElementById('quiz_description').innerHTML = '<img src="images/iphone/folks.jpg" width="89" height="96" border="0" STYLE="float:left; margin-top:4px; margin-right:6px; margin-bottom:2px;">Do you have what it takes to join an elite organization dedicated to developing groundbreaking technology that will change the world?  We&rsquo;re looking for talented, intelligent, and motivated men and women to join the growing H.U.N.T. team.  Browse some of our current job openings below and <A HREF="#top" onClick="show_quiz();">take the Recruitment Quiz</A> to see which positions best match your skill set.  Make a change today for a better tomorrow!';
		qdisplay = 1;	
	}
}

function toggle_job_opportunities() {
	if (jdisplay == 1) {
		document.getElementById('job_opportunities').style.visibility = 'hidden';
		document.getElementById('job_opportunities').style.height = '0px';
		document.getElementById('job_opportunities').style.padding = '0px';
		document.getElementById('job_opportunities').innerHTML = '';
		jdisplay = 0;	
	} else {
		document.getElementById('job_opportunities').style.visibility = 'visible';
		document.getElementById('job_opportunities').style.height = '180px';
		document.getElementById('job_opportunities').style.padding = '10px';
		for (a=0;a<6;a++) {
			document.getElementById('job_opportunities').innerHTML += '<div class=iphone_listing><A onClick="job_swap('+a+')" id="listing'+a+'">'+titles[a]+'</A></div>';
		}
		document.getElementById('job_opportunities').innerHTML += '<div id=job_listing></div>';
		document.getElementById('job_listing').innerHTML += job_postings(0);
		document.getElementById('listing0').style.color = '#990000';
		jdisplay = 1;	
	}
}



function restore_home() {
	if (navigator.userAgent.match('Mobile') && navigator.userAgent.match('Safari')) { 
		document.body.style.background = '#000000 url(images/iphone/bg.jpg) no-repeat center top';
		document.getElementById('main_content').innerHTML = iphone_home();
	} else {
		document.body.style.background = '#000000 url(images/bg3.jpg) no-repeat center top';
		document.getElementById('main_content').innerHTML = normal_home();
		show_video();
	}
	hitbox_home();
}


function show_quiz() {

	if (navigator.userAgent.match('Mobile') && navigator.userAgent.match('Safari')) { 
		document.body.style.background = 'black';
		var str = '<img src="images/iphone/logo.gif" width="118" height="81" border="0" onClick="restore_home();"><img src="images/iphone/blurb.gif" width="202" height="81" border="0" onClick="restore_home();"><br>';
		str+= '	<div id="title_image"><img src="images/quiz/recruitment_quiz.gif" width="183" height="32" border="0"></div>';
		str+= '	<div id="title_text">The <SPAN class=red>H.U.N.T.</span> Recruitment Quiz has been designed to measure your compatibility with our current job openings.  Additionally, we will collect data regarding your personality, intelligence and physical acumen by recording your keystrokes, eye movement and nervous system responses. There is no such thing as a wrong answer. </div>';
	} else {
		document.body.style.background = 'black url(images/quiz/quiz_bg.jpg) no-repeat center top';
		var str = '	<div id="top_row">';
		str += '<table WIDTH="960" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR valign=top>';
		str += '<TD WIDTH="60"></TD>';
		str += '<TD WIDTH="104"><img src="images/logo.gif" alt="H.U.N.T. Logo" width="104" height="113" BORDER="0" onClick="restore_home();" style="cursor:pointer"; /></TD>';
		str += '<TD WIDTH="490"><img src="images/logo_blurb.gif" alt="The Global Leader in Technology-Driven Security Solutions" width="476" height="58" BORDER="0" onClick="restore_home();" style="cursor:pointer"; /></TD>';
		str += '<TD WIDTH="306"></TD>';
		str += '</TR></TABLE>';
		str+= '	<div id="title_image"><img src="images/quiz/recruitment_quiz.gif" width="183" height="32" border="0"></div>';
		str+= '	<div id="title_text">The <SPAN class=red>H.U.N.T.</span> Recruitment Quiz has been designed to measure your compatibility with our current job openings.  Additionally, we will collect data regarding your personality, intelligence and physical acumen by recording your keystrokes, eye movement and nervous system responses. There is no such thing as a wrong answer. </div>';
		str+= '</div>';
	}


	str+= '<div class="quiz_body"><form name="quiz">';
	str+= '	<div class="qb1">';
	str+= '		<img src="images/quiz/yesorno.gif" width="153" height="16" border="0" class="title_image">';
	str+= show_question(0);
	str+= show_question(1);
	str+= show_question(2);
	str+= show_question(3);
	str+= '		</div>';
	str+= '	<div class="qb1">';
	str+= '		<img src="images/quiz/trueorfalse.gif" width="153" height="16" border="0" class="title_image">';
	str+= show_question(4);
	str+= show_question(5);
	str+= show_question(6);
	str+= show_question(7);
	str+= '		</div>';
	str+= '	<div class="qb2">';
	str+= '		<img src="images/quiz/multiplechoice.gif" width="153" height="16" border="0" class="title_image"><BR clear=all>';
	str+= '		<div class=col>';
	str+= show_question(8);
	str+= show_question(9);
	str+= '		</div>';
	str+= '		<div class=col>';
	str+= show_question(10);
	str+= show_question(11);
	str+= '		</div>';
	str+= '	</div>';
	str += '<P style="text-align:center;"><IMG SRC="images/submit.gif" width="84" height="21" border="0" style="cursor:pointer;margin-top:20px;" onClick="check_form();">&nbsp;<img src="images/back.gif" width="164" height="21" border="0" style="cursor:pointer;margin-top:20px;" onClick="restore_home();"></P>';
	str+= '</form></div>';
	str += '<div id="footer"><A HREF="http://disney.go.com/corporate/legal/terms.html?ppLink=pp_wdig ">Terms Of Use</A> &amp; <A HREF="http://disney.go.com/corporate/privacy/pp_wdig.html">Privacy Policy</A> &nbsp;&nbsp; | &nbsp;&nbsp;<A HREF="https://register.go.com/bvhe/huntheadquarters/index">Register to receive new job postings from H.U.N.T.</A>';
	str += '<BR><BR><span style="color:#555555;">&copy; Disney</span></div>';
	str += '<img height="1" width="1" src="http://switch.atdmt.com/action/StanLee_TimeJumper_Quiz"/>';
	document.getElementById('main_content').innerHTML = str;
	hitbox_quiz();

}

function show_question(q) {
	if (q > 3) {
		no = (q%4)+1;
	} else {
		no = q+1;
	}
	var str = '	<div class=question><img src="images/quiz/lilredthing.gif" class="lilredthing"><img src="images/quiz/'+no+'.gif" class="qicon"><div class=question_text><B>'+quiz_questions[q]+'</B><BR>';
	for (var b = 0; b  < quiz_answers[q].length; b++) {
		str += '<div class=answers><INPUT TYPE=RADIO NAME="q'+q+'" ID="q'+q+'" VALUE="'+b+'" CLASS="radio">'+quiz_answers[q][b]+'</div>';
	}
	str+= '</div></div>';
	return(str);
}



function check_form() {
	var str = '';
	var answers = new Array();
	for (var q = 0; q < 12; q++) {
		for (var i=0;i<document.quiz['q'+q].length;i++) {
			if (document.quiz['q'+q][i].checked == true) {
				answers.push(i);
				str+=' '+answers.length+':'+quiz_answers[q][i]+"<BR>\n";
			}
		}
	}

	if (answers.length == 12) {
		quiz_summary(str);
	} else {
		alert("You have answered "+answers.length+" of the 12 questions. Please complete all questions.\r");
	}
	
}

function quiz_summary() {
	var entries = new Array('',
	'<P><B>Potential Administrator</B>:<BR>You are always willing to lend your support in a difficult situation.  Your attention to detail and ability to execute orders from superiors make you an ideal Administrator.  However, you may not want to live in someone else&rsquo;s shadow forever.</P>',
	'<P><B>Potential Ambassador</B>:<BR>Your outgoing personality and ability to work well with others make you a potential Ambassador.  Your good looks and charm can take you a long way, but your tendency to stretch the truth sometimes gets you into trouble.</P>',
	'<P><B>Potential Field Rep</B>:<BR>Physical prowess and quick thinking make you an ideal candidate for field work.  You are passionate about your projects and always strive to do the right thing.  However, a tendency towards recklessness suggests you&rsquo;ll require supervision.</P>',
	'<P><B>Potential Technologist</B>:<BR>You are an independent thinker with the ability to transform ideas into &ldquo;real world&rdquo; applications.  You have superior skills in science and/or engineering, but your crazy ideas don&rsquo;t always turn out as planned.</P>',
	'<P><B>Potential Director</B>:<BR>Unparalleled leadership skills and a penchant for strategic thinking make you a great Director.  Your love of power gives you the confidence to make tough decisions that could potentially change the lives of billions.</P>')
	var randomnumber = Math.floor(Math.random()*5)+1;

	if (navigator.userAgent.match('Mobile') && navigator.userAgent.match('Safari')) { 
		var str = '<A NAME="top"></A><img src="images/iphone/logo.gif" width="118" height="81" border="0" onClick="restore_home();" style="cursor:pointer";><img src="images/iphone/blurb.gif" width="202" height="81" border="0" onClick="restore_home();" style="cursor:pointer;"><br>';
		str += '<div id=privacy>';
		str += '<img src="images/results.gif" width="161" height="31" border="0">';
	} else {
		document.body.style.background = 'black url(images/results_bg.jpg) no-repeat center top';
		var str = '<div id="top_row">';
		str += '<table WIDTH="960" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR valign=top>';
		str += '<TD WIDTH="60"></TD>';
		str += '<TD WIDTH="104"><img src="images/logo.gif" alt="H.U.N.T. Logo" width="104" height="113" BORDER="0" onClick="restore_home();" style="cursor:pointer"; /></TD>';
		str += '<TD WIDTH="490"><img src="images/logo_blurb.gif" alt="The Global Leader in Technology-Driven Security Solutions" width="476" height="58" BORDER="0" onClick="restore_home();" style="cursor:pointer"; /></TD>';
		str += '<TD WIDTH="306"></TD>';
		str += '</TR></TABLE>';
		str += '</div>';
		str += 		'<div id="middle_row">';
		str += 		'<img src="images/results.gif" width="161" height="31" border="0" STYLE="margin: 0 0 0 20px;">';
	}

	str += 		'<div class="results_text">';
	str += 		'	<P>Thank you for taking the H.U.N.T. Recruitment Quiz.  If you answered the questions honestly, our super computers should have an accurate snapshot of your personality, mental prowess and tax situation.  Here are the details we can share with you:</P>';
	str += 		'	<P>You are a:</P>';
	str += 		'	<img src="images/redthing.gif" alt="" BORDER="0" class="redthing" /><img src="images/icons/'+randomnumber+'.jpg" width="53" height="55" border="0" class=icon>'+entries[randomnumber];
	str += 		'	<P style="text-align:center;"><img src="images/back.gif" width="164" height="21" border="0" style="margin-top: 20px; margin-right:10px;cursor:pointer;" onClick="restore_home();"></P>';
	str += 		'</div>';
	str += '<div id="footer"><A HREF="http://disney.go.com/corporate/legal/terms.html?ppLink=pp_wdig ">Terms Of Use</A> &amp; <A HREF="http://disney.go.com/corporate/privacy/pp_wdig.html">Privacy Policy</A> &nbsp; &nbsp; | &nbsp;&nbsp;<A HREF="https://register.go.com/bvhe/huntheadquarters/index">Register to receive new job postings from H.U.N.T.</A>';
	str += '<BR><BR><span style="color:#555555;">&copy; Disney</span></div>';
	document.getElementById('main_content').innerHTML = str;
	hitbox_quiz_results();
}

function hitbox_home() {
	cto.h.mlc="/stan+lee/information/home";
	cto.h.pageName="index";
	cto.account="disneydvd";
	cto.category="dmov";
	cto.site="stan";
	cto.siteSection="home";
	cto.pageName="home";
	cto.contentType="homepage";
	cto.property="stan";
	cto.track();//Required. Do not remove.
}

function hitbox_quiz() {
	cto.h.mlc="/stan+lee/interactive+content/games";
	cto.h.pageName="quiz";
	cto.account="disneydvd";
	cto.category="dmov";
	cto.site="stan";
	cto.siteSection="games";
	cto.pageName="quiz";
	cto.contentType="ganes";
	cto.property="stan";
	cto.track();//Required. Do not remove.
}

function hitbox_quiz_results() {
	cto.h.mlc="/stan+lee/interactive+content/games";
	cto.h.pageName="quiz+results";
	cto.account="disneydvd";
	cto.category="dmov";
	cto.site="stan";
	cto.siteSection="games";
	cto.pageName="quiz_results";
	cto.contentType="games";
	cto.property="stan";
	cto.track();//Required. Do not remove.
}