	var strBrowser;
	var doc, sty, htm;
	var openbrace, closebrace;
	var contentDiv;
	var ctlChoices;
	var bChanged = false;
	var bChangeOnce = false;
	var nNumContents = 2;

	function writeContent(ctrl, content) {
		if( strBrowser == "Netscape" ) {
			ctrl.write(content);
			ctrl.close();
		}
		else {
			ctrl.innerHTML = content;
		}
	}

	function changeContent() {
	   var nChoice;
	   if(strBrowser == "Netscape6") {
		    var ctlTemp = eval(doc + openbrace + "'opts'" + closebrace + ".getElementsByTagName('form')");
		    ctlChoices = ctlTemp[0].firstChild;
		 }
		 else
		    ctlChoices = eval(doc + openbrace + "'opts'" + closebrace + ".document.frmChoices.selChoices");
	
		 nChoice = ctlChoices.selectedIndex;
	   if (!nChoice) return;
	   setContentFlag(nChoice);
	}
	
	function setContentFlag(nSel) {
	   if (bChangeOnce && bChanged) return;	
	   setContent(nSel);
		 bChanged = true;
	}
	
	function setContent(nSel) {	
	   for (var i=1; i<=nNumContents; i++) {
	      contentDiv = eval(doc + openbrace + "'c" + i + "'" + closebrace + htm );
	      writeContent(contentDiv, sOpt[i-1][nSel]);
	   }		 
	}
	
	//detecting the browser
	if( navigator.appName == "Netscape" ) {
		if(navigator.userAgent.indexOf("Gecko") != -1)
			strBrowser = "Netscape6";
		else
			strBrowser = "Netscape";
	}
	else
		strBrowser = "IE";

	// sets the values depending on the browser
  if( strBrowser == "Netscape" ) {
  	doc = "document";
	  sty = "";
	  htm = ".document";
	  openbrace = "[";
	  closebrace = "]";
  }
  else {
	  if(strBrowser == "Netscape6") {
		  doc = "document.getElementById";
		  sty = ".style";
		  htm = "";
		  openbrace = "(";
		  closebrace = ")";
	  }
	  else { //IE
		  doc = "document.all";
		  sty = ".style";
		  htm = "";
		  openbrace = "[";
		  closebrace = "]";
	  }
	}var sOptions = '<form name="frmChoices"><input type="radio" name="selChoices" onClick="setContentFlag(1)">I like receiving video content<br><input type="radio" name="selChoices" onClick="setContentFlag(2)">I\'d rather get my content in printed form that I can read<br></form>';
var sOpt = new Array();
sOpt[0] =  new Array(
'<p>Don\'t like wading through videos to find the answers you need? Then you\'ll appreciate my Toolkit Companion Guide, where I summarize each video, and even elaborate on them with added content.</p>  <p>That way you can skim through the guide and watch just the videos that interest you, saving you time.</p>  <p>Plus, I <i>always</i> include all the website addresses and other resources I mention in the videos in the companion guide. So you can watch the videos once and refer to the guide as a reference.</p> ',
'<p>Now I know you said you like receiving video content by your choice above, but if you\'re strapped for time and need answers fast, you\'ll appreciate my Toolkit Companion Guide, where I summarize each video, and even elaborate on them with added content.</p>  <p>That way you can skim through the guide and watch just the videos that interest you, saving you time.</p>  <p>Plus, I <i>always</i> include all the website addresses and other resources I mention in the videos in the companion guide. So you can watch the videos once and refer to the guide as a reference.</p> ',
'<p>Yes, I know you said above that you\'d rather get your content in printed form. You probably don\'t like having to wade through videos to find the answers you need. So I\'m sure, then, that you\'ll appreciate my Toolkit Companion Guide, where I summarize each video, and even elaborate on them with added content.</p>  <p>That way you can skim through the guide and watch just the videos that interest you, saving you time.</p>  <p>Plus, I <i>always</i> include all the website addresses and other resources I mention in the videos in the companion guide. So you can watch the videos once and refer to the guide as a reference.</p>');
sOpt[1] =  new Array('<p>And remember the question I asked you earlier? You know, whether you liked video or not? Well, the text you\'re reading here was dynamically altered in response to the answer you gave. In fact, you\'re now reading my "default" text here, because you didn\'t yet make a choice.</p><p>If you want to scroll back up and choose one, I\'ll wait right here...</p>','<p>And remember the question I asked you earlier? You know, whether you liked video or not? Well, the text you\'re reading here was dynamically altered in response to the answer you gave. In fact, based on your choice, I know that you like receiving video content.</p><p>Go ahead. You can scroll back up and change it if you want...</p>','<p>And remember the question I asked you earlier? You know, whether you liked video or not? Well, the text you\'re reading here was dynamically altered in response to the answer you gave. In fact, based on your choice, I know that you prefer to receive content in printed form instead of video.</p><p>Go ahead. You can scroll back up and change it if you want...</p>');

choicesDiv = eval(doc + openbrace + "'opts'" + closebrace + htm );
writeContent(choicesDiv, sOptions);
