function BrowserCheck() {
var SafariYN;
SafariYN=browser.isSafari;
if (SafariYN == 1) 
 {
 alert("Sorry, but SAFARI has some issues with JavaScript and does not work with this site. However, all other browsers work just fine, so you might try FireFox, Netscape or IE");
 }
}

function loadMovie(portrait,question) {
  var portrait;//identifies the interviewed person
  var prevportrait;//identifies the previous portrait
  var question;//the question identifier
  var prevquestion;//identifies the previous question
  var title;//will hold the relative URL for the title frame
  var questiontext;
  
  if (portrait == "no")// no means no change: we stay with the same person but change the question
  {
  portrait=(top.movie.document.formular.portraitfield.value);
  prevquestion=(top.movie.document.formular.questionfield.value);
  //since we changed the question we'll have to set the new URL for the questiontext frame
  questiontext="../questions/"+question+".html"
  top.questiontext.document.location.href=questiontext;
  //code to hilite the active question (set bgcolor of the cell containing this question)
  top.questions.document.getElementById(prevquestion).style.backgroundColor='FFFFFF';
  top.questions.document.getElementById(question).style.backgroundColor='FFFF00';
   }
   else//we're changing the interviewed person but remain with the same questioon
  {
  question=(top.movie.document.formular.questionfield.value);
  prevportrait=(top.movie.document.formular.portraitfield.value);
  //since we are changing the portrait, we have to change the titlefield accordingly:
  title="../../portrait_"+portrait+"/name.html";
  top.title.document.location.href=title;
    //code to hilite the active question (set bgcolor of the cell containing this question)
  top.portraits.document.getElementById(prevportrait).style.backgroundColor='FFFFFF';
  top.portraits.document.getElementById(portrait).style.backgroundColor='FFFF00';
   }
  var myVar = ''
  var myMovie = "../../portrait_"+portrait+"/movies/"+question+".mov";
 // top.movie.document.open();
  
  if(typeof(top.movie.innerWidth ) == 'number' ) 
    {
	//Non-IE
    myWidth = top.movie.innerWidth;
    myHeight = top.movie.innerHeight;
    } else {
    //IE 6+ in 'standards compliant mode'
    myWidth = top.movie.document.body.clientWidth;
    myHeight = top.movie.document.body.clientHeight;
    }
    x = myWidth - 50;
    y = myHeight - 50;
	
	top.movie.document.formular.questionfield.value = question;
	top.movie.document.formular.portraitfield.value = portrait;

//myVar=myVar+'<html><body><form name="formular"><input name="portraitfield" type="hidden" value="'+portrait+'"><input name="questionfield" type="hidden" value="'+question+'"></form><p align="middle">';	

	myVar=myVar+'<object id="id3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"';
	myVar=myVar+' codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="'+x+'" height="'+y+'">';
	myVar=myVar+' <param name="src" value="' + myMovie + '" />';
	myVar=myVar+' <param name="controller" value="true" />';
	myVar=myVar+' <param name="autoplay" value="true" />';
	myVar=myVar+' <param name="scale" value="aspect" />';
	myVar=myVar+' <param name="volume" value="100" />';
	myVar=myVar+' <param name="BGCOLOR" VALUE="#FFFFFF">';
	myVar=myVar+' <param name="loop" value="false" />';
	myVar=myVar+' <embed pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" class="mov" width="'+x+'" height="'+y+'"';
	myVar=myVar+' src="' + myMovie + '" controller="true" autoplay="true" bgcolor="#FFFFFF" scale="aspect" volume="100" loop="false"></embed></object>';
	//myVar=myVar+' </p></body></html>';

//	 
	top.movie.document.getElementById("portrait_movie").innerHTML = myVar;
}
