treatment "schmeidler1"{
	background{
		table globals{
		}
		table subjects{
		}
		table summary{
		}
		table contracts{
		}
		table session{
		}
		table logfile{
		}
		numsubjects = 1;
		numgroups = 1;
		numpracticeperiods = 0;
		numactualperiods = 1;
		exchangerate = 1;
		startendowment = 0;
		showupfee = 0;
		noAutoscope = FALSE;
		v2IntegerVars = TRUE;
		v2BooleanVars = TRUE;
		firstBoxesOnTop = TRUE;
		showupfeeawaytext = "Sie haben Verlust gemacht. Wollen Sie das Startgeld einsetzen, um diesen Verlust zu decken?";
		showupfeeawayyestext = "Ja";
		showupfeeawaynotext = "Nein";
		moneyawaytext = "Sie haben Verlust gemacht. Wollen Sie weiterfahren?";
		moneyawayyestext = "Ja";
		moneyawaynotext = "Nein";
		bancruptwaittext = "Bitte warten Sie, bis Ihr Computer wieder freigegeben wird.";
		program{
			table = subjects;
			do{
				x1=11; x2=21; x3=31; x4=16; x5=26; 
				wahl=50;
				list_select=1;
				listchoice_select=1;
				sitchoice_select=1;
				select=50;
				
			}
		}
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Text"{
				hasframe = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Please wait until the experiment continues.";
				}
			}
		}
	}
	stage "part1intro"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 10;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				left = 30%;
				right = 30%;
				bottom = 20%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs22 We will now start with Part 1 of the experiment. Please klick OK to continue.}";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "part1_describe"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Part 1}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 5%;
				bottom = 60%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 15%;
					help = "{\rtf \fs22 In Part 1 of the experiment you will make choices between risky prospects. You have already read the instructions on paper. Below you see what the graphical illustration of the choice situations looks on the screen.\line

					\line

					If you have read all intructions and have no more questions, you can click the OK button to continue.}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 40%;
				bottom = 20%;
				multimediabox "example"{
					hasframe = TRUE;
					left = 15%;
					right = 15%;
					URL = C:\pics\beispiel.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = " Please klick OK to continue to start with Part 1 choices! ";
				}
				item{
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "find_x1"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			multimediabox "choice11"{
				hasframe = TRUE;
				right = 55%;
				top = 1%;
				bottom = 90%;
				URL = C:\pics\choice11.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 90%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice12"{
				hasframe = TRUE;
				right = 55%;
				top = 10%;
				bottom = 81%;
				URL = C:\pics\choice12.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 81%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice13"{
				hasframe = TRUE;
				right = 55%;
				top = 19%;
				bottom = 72%;
				URL = C:\pics\choice13.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 72%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice14"{
				hasframe = TRUE;
				right = 55%;
				top = 28%;
				bottom = 63%;
				URL = C:\pics\choice14.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 63%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice15"{
				hasframe = TRUE;
				right = 55%;
				top = 37%;
				bottom = 54%;
				URL = C:\pics\choice15.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 54%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice16"{
				hasframe = TRUE;
				right = 55%;
				top = 46%;
				bottom = 45%;
				URL = C:\pics\choice16.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 45%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice17"{
				hasframe = TRUE;
				right = 55%;
				top = 55%;
				bottom = 36%;
				URL = C:\pics\choice17.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 36%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice18"{
				hasframe = TRUE;
				right = 55%;
				top = 64%;
				bottom = 27%;
				URL = C:\pics\choice18.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 27%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice19"{
				hasframe = TRUE;
				right = 55%;
				top = 73%;
				bottom = 18%;
				URL = C:\pics\choice19.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 18%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice110"{
				hasframe = TRUE;
				right = 55%;
				top = 82%;
				bottom = 9%;
				URL = C:\pics\choice110.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 9%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice111"{
				hasframe = TRUE;
				right = 55%;
				top = 91%;
				URL = C:\pics\choice111.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 1%;
				bottom = 90%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 1_01";
					variable = choice11;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 10%;
				bottom = 81%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 1_02";
					variable = choice12;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 19%;
				bottom = 72%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 1_03";
					variable = choice13;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 28%;
				bottom = 63%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 1_04";
					variable = choice14;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 37%;
				bottom = 54%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 1_05";
					variable = choice15;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 46%;
				bottom = 45%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 1_06";
					variable = choice16;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 55%;
				bottom = 36%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 1_07";
					variable = choice17;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 64%;
				bottom = 27%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 1_08";
					variable = choice18;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 73%;
				bottom = 18%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 1_09";
					variable = choice19;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 82%;
				bottom = 9%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 1_10";
					variable = choice110;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 91%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 1_11";
					variable = choice111;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = TRUE;
				left = 70%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf  \\fs24  \\b PART 1    ---     LIST 1 \\b0 } ";
				}
				item{
				}
				item{
					label = "{\\rtf  \\fs22 In list 1, prospects depend on \\b Bag 1 \\b0 with the following distribution of colored chips: \\line\r\n20% blue \\line\r\n30% black \\line\r\n30% red \\line \r\n20% green \\line } ";
				}
				item{
				}
				item{
				}
				item{
				}
				item{
				}
				item{
					label = "{\\rtf  \\fs22 For each of the 11 choice situations please decide between the left prospect and the right prospect.  } ";
				}
				item{
				}
				item{
				}
				item{
					label = "{\\rtf  \\fs22 Once you have made all 11 choices please klick the OK button  to continue with the experiment.  } ";
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
					checker{
						condition = choice11<=choice12 & choice12<=choice13 &   choice13<=choice14 & choice14<=choice15 &   choice15<=choice16 & choice16<=choice17 &   choice17<=choice18 & choice18<=choice19 & choice19<=choice110  & choice110<=choice111;
						message = "You can  only switch from choosing a LEFT hand lottery to choosing a RIGHT hand lottery when going down the list. See instructions. ";
						noButtonStr = "OK";
					}
					program{
						table = subjects;
						do{
							x1=if(0<choice11, 20,
							      if(choice11<choice12, 19,
							      if(choice12<choice13, 17,
							      if(choice13<choice14, 15,
							      if(choice14<choice15, 13,
							      if(choice15<choice16, 11,
							      if(choice16<choice17, 9,
							      if(choice17<choice18, 7,
							      if(choice18<choice19, 5,
							      if(choice19<choice110, 3,
							      if(choice110<choice111, 1,0)))))))))));
							
						}
					}
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "find_x2"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			multimediabox "choice21"{
				hasframe = TRUE;
				right = 55%;
				top = 1%;
				bottom = 90%;
				URL = C:\pics\choice21.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 90%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice22"{
				hasframe = TRUE;
				right = 55%;
				top = 10%;
				bottom = 81%;
				URL = C:\pics\choice22.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 81%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice23"{
				hasframe = TRUE;
				right = 55%;
				top = 19%;
				bottom = 72%;
				URL = C:\pics\choice23.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 72%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice24"{
				hasframe = TRUE;
				right = 55%;
				top = 28%;
				bottom = 63%;
				URL = C:\pics\choice24.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 63%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice25"{
				hasframe = TRUE;
				right = 55%;
				top = 37%;
				bottom = 54%;
				URL = C:\pics\choice25.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 54%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice26"{
				hasframe = TRUE;
				right = 55%;
				top = 46%;
				bottom = 45%;
				URL = C:\pics\choice26.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 45%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice27"{
				hasframe = TRUE;
				right = 55%;
				top = 55%;
				bottom = 36%;
				URL = C:\pics\choice27.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 36%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice28"{
				hasframe = TRUE;
				right = 55%;
				top = 64%;
				bottom = 27%;
				URL = C:\pics\choice28.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 27%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice29"{
				hasframe = TRUE;
				right = 55%;
				top = 73%;
				bottom = 18%;
				URL = C:\pics\choice29.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 18%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice210"{
				hasframe = TRUE;
				right = 55%;
				top = 82%;
				bottom = 9%;
				URL = C:\pics\choice210.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 9%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice211"{
				hasframe = TRUE;
				right = 55%;
				top = 91%;
				URL = C:\pics\choice211.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 1%;
				bottom = 90%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 2_01";
					variable = choice21;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 10%;
				bottom = 81%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 2_02";
					variable = choice22;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 19%;
				bottom = 72%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 2_03";
					variable = choice23;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 28%;
				bottom = 63%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 2_04";
					variable = choice24;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 37%;
				bottom = 54%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 2_05";
					variable = choice25;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 46%;
				bottom = 45%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 2_06";
					variable = choice26;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 55%;
				bottom = 36%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 2_07";
					variable = choice27;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 64%;
				bottom = 27%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 2_08";
					variable = choice28;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 73%;
				bottom = 18%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 2_09";
					variable = choice29;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 82%;
				bottom = 9%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 2_10";
					variable = choice210;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 91%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 2_11";
					variable = choice211;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = TRUE;
				left = 70%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf  \\fs24  \\b PART 1    ---     LIST 2 \\b0 } ";
				}
				item{
				}
				item{
					label = "{\\rtf \\fs22 In list 2, prospects depend on \\b Bag 2 \\b0 with the following distribution of colored chips: \\line\r\n20% blue \\line\r\n30% black \\line\r\n30% red \\line \r\n20% green \\line } ";
				}
				item{
				}
				item{
				}
				item{
				}
				item{
				}
				item{
					label = "{\\rtf \\fs22 For each of the 11 choice situations please decide between the left prospect and the right prospect.  } ";
				}
				item{
				}
				item{
				}
				item{
				}
				item{
					label = "{\\rtf  \\fs22 Once you have made all 11 choices please klick the OK button  to continue with the experiment. } ";
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
					checker{
						condition = choice21<=choice22 & choice22<=choice23 &   choice23<=choice24 & choice24<=choice25 &   choice25<=choice26 & choice26<=choice27 &   choice27<=choice28 & choice28<=choice29 & choice29<=choice210  & choice210<=choice211;
						message = "You can  only switch from choosing a LEFT hand lottery to choosing a RIGHT hand lottery when going down the list. See instructions. ";
						noButtonStr = "OK";
					}
					program{
						table = subjects;
						do{
							x2=if(0<choice21, 8,
							      if(choice21<choice22,12,
							      if(choice22<choice23,16,
							      if(choice23<choice24,20,
							      if(choice24<choice25,24,
							      if(choice25<choice26,28,
							      if(choice26<choice27,32,
							      if(choice27<choice28,36,
							      if(choice28<choice29,40,
							      if(choice29<choice210,44,
							      if(choice210<choice211,48,52)))))))))));
							
						}
					}
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "list3warn"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 10;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				left = 30%;
				right = 30%;
				bottom = 20%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs22 List 3 will come next. Note that the distribution of chips will be different to those in Lists 1 and 2. Please klick OK to continue.}";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "find_x3"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			multimediabox "choice31"{
				hasframe = TRUE;
				right = 55%;
				top = 1%;
				bottom = 90%;
				URL = C:\pics\choice31.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 90%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice32"{
				hasframe = TRUE;
				right = 55%;
				top = 10%;
				bottom = 81%;
				URL = C:\pics\choice32.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 81%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice33"{
				hasframe = TRUE;
				right = 55%;
				top = 19%;
				bottom = 72%;
				URL = C:\pics\choice33.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 72%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice34"{
				hasframe = TRUE;
				right = 55%;
				top = 28%;
				bottom = 63%;
				URL = C:\pics\choice34.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 63%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice35"{
				hasframe = TRUE;
				right = 55%;
				top = 37%;
				bottom = 54%;
				URL = C:\pics\choice35.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 54%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice36"{
				hasframe = TRUE;
				right = 55%;
				top = 46%;
				bottom = 45%;
				URL = C:\pics\choice36.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 45%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice37"{
				hasframe = TRUE;
				right = 55%;
				top = 55%;
				bottom = 36%;
				URL = C:\pics\choice37.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 36%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice38"{
				hasframe = TRUE;
				right = 55%;
				top = 64%;
				bottom = 27%;
				URL = C:\pics\choice38.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 27%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice39"{
				hasframe = TRUE;
				right = 55%;
				top = 73%;
				bottom = 18%;
				URL = C:\pics\choice39.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 18%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice310"{
				hasframe = TRUE;
				right = 55%;
				top = 82%;
				bottom = 9%;
				URL = C:\pics\choice310.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = TRUE;
				height = 0.5%;
				right = 30%;
				bottom = 9%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
			}
			multimediabox "choice311"{
				hasframe = TRUE;
				right = 55%;
				top = 91%;
				URL = C:\pics\choice311.bmp;
				dorepeat = FALSE;
				maintainaspectratio = FALSE;
				enlargetofit = FALSE;
				shrinktofit = TRUE;
				allowusercontrol = FALSE;
				rewind = FALSE;
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 1%;
				bottom = 90%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 3_01";
					variable = choice31;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 10%;
				bottom = 81%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 3_02";
					variable = choice32;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 19%;
				bottom = 72%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 3_03";
					variable = choice33;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 28%;
				bottom = 63%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 3_04";
					variable = choice34;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 37%;
				bottom = 54%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 3_05";
					variable = choice35;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 46%;
				bottom = 45%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 3_06";
					variable = choice36;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 55%;
				bottom = 36%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 3_07";
					variable = choice37;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 64%;
				bottom = 27%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 3_08";
					variable = choice38;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 73%;
				bottom = 18%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 3_09";
					variable = choice39;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 82%;
				bottom = 9%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 3_10";
					variable = choice310;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 45%;
				right = 40%;
				top = 91%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Choice 3_11";
					variable = choice311;
					format = "!radioline: 0 = \"=====>       L\"; 1 = \"  R\"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
			}
			standardbox "Standard"{
				hasframe = TRUE;
				left = 70%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b  PART 1    ---     LIST 3 \\b0 } ";
				}
				item{
				}
				item{
					label = "{\\rtf  \\fs22 In list 3, prospects depend on \\b Bag 3 \\b0 with the following distribution of colored chips: \\line\r\n20% blue \\line\r\n40% black \\line\r\n20% red \\line \r\n20% green \\line } ";
				}
				item{
				}
				item{
				}
				item{
				}
				item{
				}
				item{
					label = "{\\rtf  \\fs22 For each of the 11 choice situations please decide between the left prospect and the right prospect. } ";
				}
				item{
				}
				item{
				}
				item{
					label = "{\\rtf  \\fs22  Once you have made all 11 choices please klick the OK button  to continue with the experiment. } ";
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
					checker{
						condition = choice31<=choice32 & choice32<=choice33 &   choice33<=choice34 & choice34<=choice35 &   choice35<=choice36 & choice36<=choice37 &   choice37<=choice38 & choice38<=choice39 & choice39<=choice310  & choice310<=choice311;
						message = "You can only switch from choosing a LEFT hand lottery to choosing a RIGHT hand lottery when going down the list. See instructions. ";
						noButtonStr = "OK";
					}
					program{
						table = subjects;
						do{
							x3=if(0<choice31, 9,
							      if(choice31<choice32,15,
							      if(choice32<choice33,21,
							      if(choice33<choice34,27,
							      if(choice34<choice35,33,
							      if(choice35<choice36,39,
							      if(choice36<choice37,45,
							      if(choice37<choice38,51,
							      if(choice38<choice39,57,
							      if(choice39<choice310,63,
							      if(choice310<choice311,69,75)))))))))));
							
						}
					}
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "part2intro"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 60;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 You will now continue with Part 2 of the experiment.\\line\r\n\\line\r\n\\b Please raise your hand now to receive the written instructions on paper for Part 2! \\b0 \\line\r\n\\line\r\n\\line\r\n\r\n\\line\r\nPart 2 of the experiment consists of 2 groups of choices.  For each group you will also receive detailed instructions on-screen. \r\n\\line\r\nPlease read all instructions carefully and raise you hand if you need any clarification. Once you read and understood the instructions you can continue to the choice questions by klicking the OK button. }";
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "situation1_describe"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Part 2}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 5%;
				bottom = 50%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 15%;
					help = "{\rtf \fs22 \b Instructions  Group 1:\b0  \line

					\line

					There are two bags filled with black and red poker chips: \line

					\line

					\b Bag K \b0 contains 100 chips, in a known proportion of exactly 50 red and 50 black chips.  \line

					\b Bag U \b0 contains 100 chips, each chip either red or black, but in an unknown proportion of colors. \line

					\line

					You will make 4 choices between prospects that have payoffs depending on the color of a chip drawn from these bags. \line

					\line

					In all 4 choice situations in Group 1, Bag K refers to the same physical bag, as shown by the experimenter. Similarly,  Bag U refers to the same physical bag in all 4 choice situations in Group 1.  \line

					Remember that only one choice situation will be played for real.\line

					\line

					Please read the description of both prospects carefully before deciding: In some choice situations you can win money and in others you can lose money; sometimes you win (lose) if a red chip is drawn, in others you win (lose) if a black chip is drawn.\line

					\line

					Also, for each choice situation where red is the favorable color, there follows another choice situation that is the same and relates to the same bag but now black is the favorable color.}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 50%;
				bottom = 20%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 50%;
				}
				helpbox ""{
					hasframe = FALSE;
					left = 50%;
					right = 15%;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = " Please klick OK to continue to the choices! ";
				}
				item{
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "situation1_1"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Part 2}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 5%;
				bottom = 60%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 15%;
					help = "{\rtf \fs22 \b Group 1. As explained before:\b0  \line

					\line

					There are two bags filled with black and red poker chips: \line

					\line

					\b Bag K \b0 contains 100 chips, in a known proportion of exactly 50 red and 50 black chips.  \line

					\b Bag U \b0 contains 100 chips, each chip either red or black, but in an unknown proportion of colors. \line

					\line

					

					In all 4 choice situations in Group 1, Bag K refers to the same physical bag, as shown by the experimenter. Similarly,  Bag U refers to the same physical bag in all 4 choice situations in Group 1.\line

					\line

					Remember that only one choice situation will be played for real. }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 15%;
				right = 15%;
				top = 40%;
				bottom = 50%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs22 \\b Group 1  ---  Choice 1}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 50%;
				bottom = 20%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 50%;
					help = "{\rtf \fs22 \b Prospect L:\b0  \line

					\line

					A chip is randomly drawn from \b Bag K\b0. You win 10 Euro if a red chip is drawn, and you win zero if a black chip is drawn. }";
				}
				helpbox ""{
					hasframe = FALSE;
					left = 50%;
					right = 15%;
					help = "{\rtf \fs22 \b Prospect R:\b0  \line

					\line

					A chip is randomly drawn from \b Bag U\b0. You win 10 Euro if a red chip is drawn, and you win zero if a black chip is drawn. }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = " Please choose between the left Prospect L and the right Prospect R ! ";
				}
				item{
					variable = choice_s11;
					format = "!radioline: 0 = \"  L\"; 1 = \"   R      \"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "situation1_2"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Part 2}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 5%;
				bottom = 60%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 15%;
					help = "{\rtf \fs22 \b Group 1. As explained before:\b0  \line

					\line

					There are two bags filled with black and red poker chips: \line

					\line

					\b Bag K \b0 contains 100 chips, in a known proportion of exactly 50 red and 50 black chips.  \line

					\b Bag U \b0 contains 100 chips, each chip either red or black, but in an unknown proportion of colors. \line

					\line

					

					In all 4 choice situations in Group 1, Bag K refers to the same physical bag, as shown by the experimenter. Similarly,  Bag U refers to the same physical bag in all 4 choice situations in Group 1.\line

					\line

					Remember that only one choice situation will be played for real. }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 15%;
				right = 15%;
				top = 40%;
				bottom = 50%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs22 \\b Group 1  ---  Choice 2}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 50%;
				bottom = 20%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 50%;
					help = "{\rtf \fs22 \b Prospect L:\b0  \line

					\line

					A chip is randomly drawn from \b Bag K\b0. You win 10 Euro if a black chip is drawn, and you win zero if a red chip is drawn. }";
				}
				helpbox ""{
					hasframe = FALSE;
					left = 50%;
					right = 15%;
					help = "{\rtf \fs22 \b Prospect R:\b0  \line

					\line

					A chip is randomly drawn from \b Bag U\b0. You win 10 Euro if a black chip is drawn, and you win zero if a red chip is drawn. }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = " Please choose between the left Prospect L and the right Prospect R ! ";
				}
				item{
					variable = choice_s12;
					format = "!radioline: 0 = \"  L\"; 1 = \"   R      \"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "situation1_3"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Part 2}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 5%;
				bottom = 60%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 15%;
					help = "{\rtf \fs22 \b Group 1. As explained before:\b0  \line

					\line

					There are two bags filled with black and red poker chips: \line

					\line

					\b Bag K \b0 contains 100 chips, in a known proportion of exactly 50 red and 50 black chips.  \line

					\b Bag U \b0 contains 100 chips, each chip either red or black, but in an unknown proportion of colors. \line

					\line

					

					In all 4 choice situations in Group 1, Bag K refers to the same physical bag, as shown by the experimenter. Similarly,  Bag U refers to the same physical bag in all 4 choice situations in Group 1.\line

					\line

					Remember that only one choice situation will be played for real. }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 15%;
				right = 15%;
				top = 40%;
				bottom = 50%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs22 \\b Group 1  ---  Choice 3}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 50%;
				bottom = 20%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 50%;
					help = "<>{\rtf \fs22 \b Prospect L:\b0  \line

					\line

					A chip is randomly drawn from \b Bag K\b0. You lose <x1 | 1.0> Euro if a  red chip is drawn, and you lose zero if a black chip is drawn. }

					";
				}
				helpbox ""{
					hasframe = FALSE;
					left = 50%;
					right = 15%;
					help = "<>{\rtf \fs22 \b Prospect R:\b0  \line

					\line

					A chip is randomly drawn from \b Bag U\b0. You lose <x1 | 1.0> Euro if a red chip is drawn, and you lose zero if a black chip is drawn.  }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = " Please choose between the left Prospect L and the right Prospect R ! ";
				}
				item{
					variable = choice_s13;
					format = "!radioline: 0 = \"  L\"; 1 = \"   R      \"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "situation1_4"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Part 2}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 5%;
				bottom = 60%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 15%;
					help = "{\rtf \fs22 \b Group 1. As explained before:\b0  \line

					\line

					There are two bags filled with black and red poker chips: \line

					\line

					\b Bag K \b0 contains 100 chips, in a known proportion of exactly 50 red and 50 black chips.  \line

					\b Bag U \b0 contains 100 chips, each chip either red or black, but in an unknown proportion of colors. \line

					\line

					

					In all 4 choice situations in Group 1, Bag K refers to the same physical bag, as shown by the experimenter. Similarly,  Bag U refers to the same physical bag in all 4 choice situations in Group 1.\line

					\line

					Remember that only one choice situation will be played for real. }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 15%;
				right = 15%;
				top = 40%;
				bottom = 50%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs22 \\b Group 1  ---  Choice 4}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 50%;
				bottom = 20%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 50%;
					help = "<>{\rtf \fs22 \b Prospect L:\b0  \line

					\line

					A chip is randomly drawn from \b Bag K\b0. You lose <x1 | 1.0> Euro if a  black chip is drawn, and you lose zero if a red chip is drawn. }

					";
				}
				helpbox ""{
					hasframe = FALSE;
					left = 50%;
					right = 15%;
					help = "<>{\rtf \fs22 \b Prospect R:\b0  \line

					\line

					A chip is randomly drawn from \b Bag U\b0. You lose <x1 | 1.0> Euro if a black chip is drawn, and you lose zero if a red chip is drawn.  }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = " Please choose between the left Prospect L and the right Prospect R ! ";
				}
				item{
					variable = choice_s14;
					format = "!radioline: 0 = \"  L\"; 1 = \"   R      \"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "part2_sit2intro"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = ifnoinput;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "We will now continue with Group 2 of Part 2. Please klick OK to start Group 2.";
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "situation2_describe"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Part 2}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 5%;
				bottom = 50%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 15%;
					help = "{\rtf \fs22 \b Group 2:\b0  \line

					\line

					For Group 2, only Bag U is used. Remember: \line

					\line

					\b Bag U \b0 contains 100 chips, each chip either red or black, but in an unknown proportion of colors. \line

					\line

					You will make 4 choices between prospects that have payoffs depending on the color of a chip drawn from this bag. \line

					\line

					In all 4 choice situations in Group 2, Bag U refers to the same physical bag, as shown by the experimenter. 

					\line

					\line

					Please read the description of both prospects carefully before deciding: In some choice situations you can win money and in others you can lose money; sometimes you win (lose) if a red chip is drawn, in others you win (lose) if a black chip is drawn.\line

					\line

					Remember that only one choice situation will be played for real.

					\line

					Also, for each choice situation where red is the favorable color, there follows another choice situation that is the same and relates to the same bag but now black is the favorable color. }";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 50%;
				bottom = 20%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 50%;
				}
				helpbox ""{
					hasframe = FALSE;
					left = 50%;
					right = 15%;
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = " Please klick OK to continue to the choices! ";
				}
				item{
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "situation2_1"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Part 2}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 5%;
				bottom = 60%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 15%;
					help = "{\rtf \fs22 \b Group 2. As explained before:\b0  \line

					\line

					For Group 2, only Bag U is used. Remember: \line 

					\line

					\b Bag U \b0 contains 100 chips, each chip either red or black, but in an unknown proportion of colors. \line

					

					\line

					In all choice situations in Group 2, Bag U refers to the same physical bag, as shown by the experimenter. \line

					\line

					Remember that only one choice situation will be played for real.

					\line

					For each choice situation where red is the favorable color, there follows another choice situation that is the same and relates to the same bag but now black is the favorable color. }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 15%;
				right = 15%;
				top = 40%;
				bottom = 50%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs22 \\b Group 2  ---  Choice 1}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 50%;
				bottom = 20%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 50%;
					help = "{\rtf \fs22 \b Prospect L:\b0  \line

					\line

					You get 10 Euro for sure. }";
				}
				helpbox ""{
					hasframe = FALSE;
					left = 50%;
					right = 15%;
					help = "<>{\rtf \fs22 \b Prospect R:\b0  \line

					\line

					A chip is randomly drawn from \b Bag U\b0. You win <x3 | 1.0> Euro if a red chip is drawn, and win zero if a black chip is drawn.  }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = " Please choose between the left Prospect L and the right Prospect R ! ";
				}
				item{
					variable = choice_s21;
					format = "!radioline: 0 = \"  L\"; 1 = \"   R      \"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "situation2_2"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Part 2}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 5%;
				bottom = 60%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 15%;
					help = "{\rtf \fs22 \b Group 2. As explained before:\b0  \line

					\line

					For Group 2, only Bag U is used. Remember: \line 

					\line

					\b Bag U \b0 contains 100 chips, each chip either red or black, but in an unknown proportion of colors. \line

					

					\line

					In all choice situations in Group 2, Bag U refers to the same physical bag, as shown by the experimenter. \line

					\line

					Remember that only one choice situation will be played for real.

					\line

					For each choice situation where red is the favorable color, there follows another choice situation that is the same and relates to the same bag but now black is the favorable color. }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 15%;
				right = 15%;
				top = 40%;
				bottom = 50%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs22 \\b Group 2  ---  Choice 2}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 50%;
				bottom = 20%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 50%;
					help = "{\rtf \fs22 \b Prospect L:\b0  \line

					\line

					You get 10 Euro for sure. }";
				}
				helpbox ""{
					hasframe = FALSE;
					left = 50%;
					right = 15%;
					help = "<>{\rtf \fs22 \b Prospect R:\b0  \line

					\line

					A chip is randomly drawn from \b Bag U\b0. You win <x3 | 1.0> Euro if a black chip is drawn, and win zero if a red chip is drawn.  }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = " Please choose between the left Prospect L and the right Prospect R ! ";
				}
				item{
					variable = choice_s22;
					format = "!radioline: 0 = \"  L\"; 1 = \"   R      \"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "situation2_3"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Part 2}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 5%;
				bottom = 60%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 15%;
					help = "{\rtf \fs22 \b Group 2. As explained before:\b0  \line

					\line

					For Group 2, only Bag U is used. Remember: \line 

					\line

					\b Bag U \b0 contains 100 chips, each chip either red or black, but in an unknown proportion of colors. \line

					

					\line

					In all choice situations in Group 2, Bag U refers to the same physical bag, as shown by the experimenter. \line

					\line

					Remember that only one choice situation will be played for real.

					\line

					For each choice situation where red is the favorable color, there follows another choice situation that is the same and relates to the same bag but now black is the favorable color. }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 15%;
				right = 15%;
				top = 40%;
				bottom = 50%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs22 \\b Group 2  ---  Choice 3}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 50%;
				bottom = 20%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 50%;
					help = "{\rtf \fs22 \b Prospect L:\b0  \line

					\line

					You get zero for sure. }";
				}
				helpbox ""{
					hasframe = FALSE;
					left = 50%;
					right = 15%;
					help = "<>{\rtf \fs22 \b Prospect R:\b0  \line

					\line

					A chip is randomly drawn from \b Bag U\b0. You win <x2 | 1.0> Euro if a red chip is drawn, and you lose <x1 | 1.0> Euro  if a black chip is drawn.  }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = " Please choose between the left Prospect L and the right Prospect R ! ";
				}
				item{
					variable = choice_s23;
					format = "!radioline: 0 = \"  L\"; 1 = \"   R      \"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Please wait until we continue with the randomizations.";
				}
			}
		}
	}
	stage "situation2_4"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Part 2}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 5%;
				bottom = 60%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 15%;
					help = "{\rtf \fs22 \b Group 2. As explained before:\b0  \line

					\line

					For Group 2, only Bag U is used. Remember: \line 

					\line

					\b Bag U \b0 contains 100 chips, each chip either red or black, but in an unknown proportion of colors. \line

					

					\line

					In all choice situations in Group 2, Bag U refers to the same physical bag, as shown by the experimenter. \line

					\line

					Remember that only one choice situation will be played for real.

					\line

					For each choice situation where red is the favorable color, there follows another choice situation that is the same and relates to the same bag but now black is the favorable color. }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 15%;
				right = 15%;
				top = 40%;
				bottom = 50%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs22 \\b Group 2  ---  Choice 4}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 50%;
				bottom = 20%;
				helpbox ""{
					hasframe = FALSE;
					left = 15%;
					right = 50%;
					help = "{\rtf \fs22 \b Prospect L:\b0  \line

					\line

					You get zero for sure. }";
				}
				helpbox ""{
					hasframe = FALSE;
					left = 50%;
					right = 15%;
					help = "<>{\rtf \fs22 \b Prospect R:\b0  \line

					\line

					A chip is randomly drawn from \b Bag U\b0. You win <x2 | 1.0> Euro if a black chip is drawn, and you lose <x1 | 1.0> Euro  if a red chip is drawn.  }";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 80%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = " Please choose between the left Prospect L and the right Prospect R ! ";
				}
				item{
					variable = choice_s24;
					format = "!radioline: 0 = \"  L\"; 1 = \"   R      \"; 2";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Please wait until we continue with the randomizations.";
				}
			}
		}
	}
	stage "choiceselectpart1"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = always;
		timeout = 0;
		program{
			table = subjects;
			do{
				list_select=roundup(random()*6,1);
				listchoice_select=roundup(random()*11,1);
				sitchoice_select=roundup(random()*8,1);
				
				
				wahl=if(list_select==1 & listchoice_select==1, choice11, 
				          if(list_select==1 & listchoice_select==2, choice12, 
				          if(list_select==1 & listchoice_select==3, choice13, 
				          if(list_select==1 & listchoice_select==4, choice14, 
				if(list_select==1 & listchoice_select==5, choice15,
				if(list_select==1 & listchoice_select==6, choice16,
				if(list_select==1 & listchoice_select==7, choice17,
				if(list_select==1 & listchoice_select==8, choice18,
				if(list_select==1 & listchoice_select==9, choice19,
				if(list_select==1 & listchoice_select==10, choice110,
				if(list_select==1 & listchoice_select==11, choice111,
				if(list_select==2 & listchoice_select==1, choice21,
				if(list_select==2 & listchoice_select==2, choice22,
				if(list_select==2 & listchoice_select==3, choice23,
				if(list_select==2 & listchoice_select==4, choice24,
				if(list_select==2 & listchoice_select==5, choice25,
				if(list_select==2 & listchoice_select==6, choice26,
				if(list_select==2 & listchoice_select==7, choice27,
				if(list_select==2 & listchoice_select==8, choice28,
				if(list_select==2 & listchoice_select==9, choice29,
				if(list_select==2 & listchoice_select==10, choice210, 
				if(list_select==2 & listchoice_select==11, choice211, wahl))))))))))))))))))))));
				
				wahl=if(list_select==3 & listchoice_select==1, choice31,
				if(list_select==3 & listchoice_select==2, choice32,
				if(list_select==3 & listchoice_select==3, choice33,
				if(list_select==3 & listchoice_select==4, choice34,
				if(list_select==3 & listchoice_select==5, choice35,
				if(list_select==3 & listchoice_select==6, choice36,
				if(list_select==3 & listchoice_select==7, choice37,
				if(list_select==3 & listchoice_select==8, choice38,
				if(list_select==3 & listchoice_select==9, choice39,
				if(list_select==3 & listchoice_select==10, choice310,
				if(list_select==3 & listchoice_select==11, choice311,
				if(list_select>3 & sitchoice_select==1, choice_s11,
				if(list_select>3 & sitchoice_select==2, choice_s12,
				if(list_select>3 & sitchoice_select==3, choice_s13,
				if(list_select>3 & sitchoice_select==4, choice_s14,
				if(list_select>3 & sitchoice_select==5, choice_s21, 
				if(list_select>3 & sitchoice_select==6, choice_s22, 
				if(list_select>3 & sitchoice_select==7, choice_s23, 
				if(list_select>3 & sitchoice_select==8, choice_s24, 
				wahl)))))))))))))))))));
				
				select=if(list_select==1 & listchoice_select==1, 1, 
				          if(list_select==1 & listchoice_select==2, 2, 
				          if(list_select==1 & listchoice_select==3, 3, 
				          if(list_select==1 & listchoice_select==4, 4, 
				if(list_select==1 & listchoice_select==5, 5,
				if(list_select==1 & listchoice_select==6, 6,
				if(list_select==1 & listchoice_select==7, 7,
				if(list_select==1 & listchoice_select==8, 8,
				if(list_select==1 & listchoice_select==9, 9,
				if(list_select==1 & listchoice_select==10, 10,
				if(list_select==1 & listchoice_select==11, 11,
				if(list_select==2 & listchoice_select==1, 12,
				if(list_select==2 & listchoice_select==2, 13,
				if(list_select==2 & listchoice_select==3, 14,
				if(list_select==2 & listchoice_select==4, 15,
				if(list_select==2 & listchoice_select==5, 16,
				if(list_select==2 & listchoice_select==6, 17,
				if(list_select==2 & listchoice_select==7, 18,
				if(list_select==2 & listchoice_select==8, 19,
				if(list_select==2 & listchoice_select==9, 20,
				if(list_select==2 & listchoice_select==10, 21, 
				if(list_select==2 & listchoice_select==11, 22, select))))))))))))))))))))));
				
				select=if(list_select==3 & listchoice_select==1, 23,
				if(list_select==3 & listchoice_select==2, 24,
				if(list_select==3 & listchoice_select==3, 25,
				if(list_select==3 & listchoice_select==4, 26,
				if(list_select==3 & listchoice_select==5, 27,
				if(list_select==3 & listchoice_select==6, 28,
				if(list_select==3 & listchoice_select==7, 29,
				if(list_select==3 & listchoice_select==8, 30,
				if(list_select==3 & listchoice_select==9, 31,
				if(list_select==3 & listchoice_select==10, 32,
				if(list_select==3 & listchoice_select==11, 33,
				if(list_select>3 & sitchoice_select==1, 34,
				if(list_select>3 & sitchoice_select==2, 35,
				if(list_select>3 & sitchoice_select==3, 36,
				if(list_select>3 & sitchoice_select==4, 37,
				if(list_select>3 & sitchoice_select==5, 38, 
				if(list_select>3 & sitchoice_select==6, 39, 
				if(list_select>3 & sitchoice_select==7, 40, 
				if(list_select>3 & sitchoice_select==8, 41, 
				select)))))))))))))))))));
			}
		}
		program{
			table = session;
			do{
				list_select=:list_select;
				listchoice_select=:listchoice_select;
				sitchoice_select=:sitchoice_select;
				wahl=:wahl;
				select=:select;
				x1=:x1;
				x2=:x2;
				x3=:x3;
				
			}
		}
		program{
			table = subjects;
			do{
				numAAgain=2-choice_s11-choice_s12;
				numAAloss=2-choice_s13-choice_s14; 
				lossAVeffect=if(choice_s21+choice_s22-choice_s23-choice_s24>0, 1, 0);
				INVlossAVeffect=if(choice_s21+choice_s22-choice_s23-choice_s24<0, 1, 0);
			}
		}
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "agegenderstudy"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				height = 87%;
				top = 12%;
				bottom = 1%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
				}
				item{
					label = "{\\rtf \\fs22 Please answer the following background variables before we continue with the payoff calculations.}";
				}
				item{
				}
				item{
					label = "{\\rtf \\fs22 Please indicate your gender:}";
					variable = male1;
					format = "!radio: 0=\"Female\"; 1=\"Male\"";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				item{
				}
				item{
					label = "{\\rtf \\fs22 Please tell us your age:}";
					variable = age;
					format = "1";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 1;
					max = 80;
				}
				item{
				}
				item{
					label = "{\\rtf \\fs22 Please indicate your field of study:}";
					variable = study;
					format = "!radio: 1=\"Economics\"; 2=\"Business Studies\"; 3=\"Psychology\";  4=\"Law\"; 5=\"other\"";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 1;
					max = 5;
				}
				item{
				}
				item{
					label = "{\\rtf \\fs22 Are you an exchange student or a Dutch student (Dutch nationality):}";
					variable = dutch1;
					format = "!radio: 0=\"Exchange\"; 1=\"Dutch\"";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 0;
					max = 1;
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	roles{
		role "S 1"{
		}
	}
	period "1"{
		subject 1{
			group = 1;
		}
	}
}