treatment "schmeidler2_cb"{
	background{
		table globals{
		}
		table subjects{
		}
		table summary{
		}
		table contracts{
		}
		table session{
			uses = "wahl, select, list_select, listchoice_select,\r\nsitchoice_select, x1, x2, x3, ";
		}
		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{
				list_select=session.find(same(Subject), list_select);
				sitchoice_select=session.find(same(Subject), sitchoice_select);
				listchoice_select=session.find(same(Subject), listchoice_select);
				select=session.find(same(Subject), select);
				wahl=session.find(same(Subject), wahl);
				x1=session.find(same(Subject), x1);
				x2=session.find(same(Subject), x2);
				x3=session.find(same(Subject), x3);
			}
		}
		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 "eingabesubject"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 0;
		program{
			table = subjects;
			do{
				RndNumG = random();
				
				:NumSubjects=Subject;
			}
		}
		program{
			table = session;
			do{
				RndNumG=:RndNumG;
			}
		}
		program{
			table = subjects;
			do{
				Rank= count(RndNumG<:RndNumG)+1;
				type=0;
				type=if (:NumSubjects==Subject,0,1); 
			}
		}
		screen action{
			usesbg = FALSE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf One participant will now be selected by the computer to assist the experimenter with the randomizations for the prospects used in the experiment. Please klick the OK button to continue!}";
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "randomizierung_hand"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		program{
			table = subjects;
			do{
				Participate = if (type ==0,1,0);  
			}
		}
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			helpbox "Help"{
				hasframe = FALSE;
				left = 20%;
				right = 20%;
				bottom = 70%;
				help = "{\rtf \fs26 You have been selected to assist the experimenter in the randomizations. \b Please raise your hand! \b0 \line

				\line

				Please wait for the experimeter to come to your desk and conduct the randomizations. \b Do not fill in any numbers or push any button without the experimenter being present!\b0}";
			}
			standardbox "Standard"{
				hasframe = FALSE;
				left = 20%;
				right = 20%;
				top = 30%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Color from Bag 1 (blue=1, black=2, red=3, green=4)";
					variable = bag1_;
					format = "1";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 1;
					max = 4;
				}
				item{
					label = "Color from Bag 2 (blue=1, black=2, red=3, green=4)";
					variable = bag2_;
					format = "1";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 1;
					max = 4;
				}
				item{
					label = "Color from Bag 3 (blue=1, black=2, red=3, green=4)";
					variable = bag3_;
					format = "1";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 1;
					max = 4;
				}
				item{
					label = "Color from Bag K (red=1, black=2)";
					variable = bagK_;
					format = "1";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 1;
					max = 2;
				}
				item{
					label = "Color from Bag U (red=1, black=2)";
					variable = bagU_;
					format = "1";
					input = TRUE;
					showdefault = FALSE;
					emptyallowed = FALSE;
					min = 1;
					max = 2;
				}
				button "OK"{
					clearinputafterok = FALSE;
					norecordmadeorselected = FALSE;
					terminatestage = FALSE;
					donotterminatestage = FALSE;
					specialbuttoncolor = FALSE;
					buttoncolor = 0;
				}
			}
		}
		screen wait{
			usesbg = FALSE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Text"{
				hasframe = TRUE;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "Please wait while  the experimenter and a randomly selected particpant conduct the randomization for the bags in Part 1 and Part 2 by hand. ";
				}
			}
		}
	}
	stage "writeglobals"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = always;
		timeout = 0;
		program{
			table = subjects;
			do{
				:bag1=bag1_;
				:bag2=bag2_;
				:bag3=bag3_;
				:bagK=bagK_;
				:bagU=bagU_;
			}
		}
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
		screen wait{
			usesbg = FALSE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "profitcalc"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = always;
		timeout = 0;
		program{
			table = subjects;
			do{
				Profit=0;
				Profit=if(list_select==1 & bag1==1, -20,
				if(list_select==1 & bag1==4, 10, 
				if(list_select==1 & wahl==0 & bag1==2, 0,
				if(list_select==1 & wahl==0 & bag1==3, 0,
				if(list_select==1 & wahl==1 & bag1==3, 10,
				if(list_select==1 & wahl==1 & bag1==2 & listchoice_select==1, -20,
				if(list_select==1 & wahl==1 & bag1==2 & listchoice_select==2, -18,
				if(list_select==1 & wahl==1 & bag1==2 & listchoice_select==3, -16,
				if(list_select==1 & wahl==1 & bag1==2 & listchoice_select==4, -14,
				if(list_select==1 & wahl==1 & bag1==2 & listchoice_select==5, -12,
				if(list_select==1 & wahl==1 & bag1==2 & listchoice_select==6, -10,
				if(list_select==1 & wahl==1 & bag1==2 & listchoice_select==7, -8,
				if(list_select==1 & wahl==1 & bag1==2 & listchoice_select==8, -6,
				if(list_select==1 & wahl==1 & bag1==2 & listchoice_select==9, -4,
				if(list_select==1 & wahl==1 & bag1==2 & listchoice_select==10, -2, 
				if(list_select==1 & wahl==1 & bag1==2 & listchoice_select==11, 0, Profit))))))))))))))));
				
				Profit=if(list_select==2 & bag2==1, 0,
				if(list_select==2 & bag2==4, 50, 
				if(list_select==2 & wahl==0 & bag2==2, 10,
				if(list_select==2 & wahl==0 & bag2==3, 10,
				if(list_select==2 & wahl==1 & bag2==2, 0,
				if(list_select==2 & wahl==1 & bag2==3 & listchoice_select==1, 10,
				if(list_select==2 & wahl==1 & bag2==3 & listchoice_select==2, 14,
				if(list_select==2 & wahl==1 & bag2==3 & listchoice_select==3, 18,
				if(list_select==2 & wahl==1 & bag2==3 & listchoice_select==4, 22,
				if(list_select==2 & wahl==1 & bag2==3 & listchoice_select==5, 26,
				if(list_select==2 & wahl==1 & bag2==3 & listchoice_select==6, 30,
				if(list_select==2 & wahl==1 & bag2==3 & listchoice_select==7, 34,
				if(list_select==2 & wahl==1 & bag2==3 & listchoice_select==8, 38,
				if(list_select==2 & wahl==1 & bag2==3 & listchoice_select==9, 42,
				if(list_select==1 & wahl==1 & bag1==3 & listchoice_select==10, 46, 
				if(list_select==1 & wahl==1 & bag1==3 & listchoice_select==11, 50, Profit))))))))))))))));
				
				Profit=if(list_select==3 & bag3==1, 0,
				if(list_select==3 & bag3==4, 72, 
				if(list_select==3 & wahl==0 & bag3==2, 10,
				if(list_select==3 & wahl==0 & bag3==3, 10,
				if(list_select==3 & wahl==1 & bag3==2, 0,
				if(list_select==3 & wahl==1 & bag3==3 & listchoice_select==1, 12,
				if(list_select==3 & wahl==1 & bag3==3 & listchoice_select==2, 18,
				if(list_select==3 & wahl==1 & bag3==3 & listchoice_select==3, 24,
				if(list_select==3 & wahl==1 & bag3==3 & listchoice_select==4, 30,
				if(list_select==3 & wahl==1 & bag3==3 & listchoice_select==5, 36,
				if(list_select==3 & wahl==1 & bag3==3 & listchoice_select==6, 42,
				if(list_select==3 & wahl==1 & bag3==3 & listchoice_select==7, 48,
				if(list_select==3 & wahl==1 & bag3==3 & listchoice_select==8, 54,
				if(list_select==3 & wahl==1 & bag3==3 & listchoice_select==9, 60,
				if(list_select==3 & wahl==1 & bag3==3 & listchoice_select==10, 66, 
				if(list_select==3 & wahl==1 & bag3==3 & listchoice_select==11, 72, Profit))))))))))))))));
				
				Profit=if(list_select>3 & sitchoice_select==1 & wahl==0 & bagK==1, 10,
				if(list_select>3 & sitchoice_select==1 & wahl==0 & bagK==2, 0,
				if(list_select>3 & sitchoice_select==1 & wahl==1 & bagU==1, 10,
				if(list_select>3 & sitchoice_select==1 & wahl==1 & bagU==2, 0,
				if(list_select>3 & sitchoice_select==2 & wahl==0 & bagK==1, 0,
				if(list_select>3 & sitchoice_select==2 & wahl==0 & bagK==2, 10,
				if(list_select>3 & sitchoice_select==2 & wahl==1 & bagU==1, 0,
				if(list_select>3 & sitchoice_select==2 & wahl==1 & bagU==2, 10, 
				if(list_select>3 & sitchoice_select==3 & wahl==0 & bagK==1, -x1, 
				if(list_select>3 & sitchoice_select==3 & wahl==0 & bagK==2, 0, 
				if(list_select>3 & sitchoice_select==3 & wahl==1 & bagU==1, -x1, 
				if(list_select>3 & sitchoice_select==3 & wahl==1 & bagU==1, 0, 
				if(list_select>3 & sitchoice_select==4 & wahl==0 & bagK==1, 0, 
				if(list_select>3 & sitchoice_select==4 & wahl==0 & bagK==2, -x1, 
				if(list_select>3 & sitchoice_select==4 & wahl==1 & bagU==2, 0, 
				if(list_select>3 & sitchoice_select==4 & wahl==1 & bagU==2, -x1, Profit))))))))))))))));
				
				
				Profit=if(list_select>3 & sitchoice_select==5 & wahl==0, 10, 
				if(list_select>3 & sitchoice_select==5 & wahl==1 & bagU==1, x3, 
				if(list_select>3 & sitchoice_select==5 & wahl==1 & bagU==2, 0, 
				if(list_select>3 & sitchoice_select==6 & wahl==0, 10, 
				if(list_select>3 & sitchoice_select==6 & wahl==1 & bagU==2, x3, 
				if(list_select>3 & sitchoice_select==6 & wahl==1 & bagU==1, 0, 
				if(list_select>3 & sitchoice_select==7 & wahl==0, 0, 
				if(list_select>3 & sitchoice_select==7 & wahl==1 & bagU==1, x2, 
				if(list_select>3 & sitchoice_select==7 & wahl==1 & bagU==2, -x1, 
				if(list_select>3 & sitchoice_select==8 & wahl==0, 0, 
				if(list_select>3 & sitchoice_select==8 & wahl==1 & bagU==2, x2, 
				if(list_select>3 & sitchoice_select==8 & wahl==1 & bagU==1, -x1,
				 Profit))))))))))));
				
				
			}
		}
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "resultsA"{
		startwaitforall = TRUE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		program{
			table = subjects;
			do{
				Participate = if (select <=33,1,0);  
			}
		}
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				left = 40%;
				right = 40%;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Results}";
				}
			}
			containerbox "Container"{
				hasframe = TRUE;
				top = 5%;
				bottom = 40%;
				standardbox "Standard"{
					hasframe = FALSE;
					bottom = 90%;
					buttonposition = BOTTOMRIGHT;
					buttonsequence = HORIZONTAL;
					item{
						label = "<>{\\rtf \\fs22 The following choice situation has been randomly selected for you: <select | !text: 1=\"1_1\"; 2=\"1_2\"; 3=\"1_3\"; 4=\"1_4\" ; 5=\"1_5\"; 6= \"1_6\"; 7=\"1_7\"; 8=\"1_8\"; 9=\"1_9\"; 10=\"1_10\"; 11=\"1_11\"; 12=\"2_1\"; 13=\"2_2\"; 14=\"2_3\"; 15=\"2_4\"; 16=\"2_5\"; 17=\"2_6\"; 18=\"2_7\"; 19=\"2_8\"; 20=\"2_9\"; 21=\"2_10\"; 22=\"2_11\"; 23=\"3_1\"; 24=\"3_2\"; 25=\"3_3\"; 26=\"3_4\"; 27=\"3_5\"; 28=\"3_6\"; 29=\"3_7\"; 30=\"3_8\"; 31=\"3_9\"; 32=\"3_10\"; 33=\"3_11\"; > \\line\r\n(Remember that Bag 1 is relevant for list 1, Bag 2 is relevant for list 2, Bag 3 is relevant for list 3.)}";
					}
				}
				multimediabox "choice11"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==1;
					URL = C:\pics\choice11.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice12"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==2;
					URL = C:\pics\choice12.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice13"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==3;
					URL = C:\pics\choice13.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice14"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==4;
					URL = C:\pics\choice14.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice15"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==5;
					URL = C:\pics\choice15.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice16"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==6;
					URL = C:\pics\choice16.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice17"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==7;
					URL = C:\pics\choice17.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice18"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==8;
					URL = C:\pics\choice18.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice19"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==9;
					URL = C:\pics\choice19.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice110"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==10;
					URL = C:\pics\choice110.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice111"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==11;
					URL = C:\pics\choice111.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice21"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==12;
					URL = C:\pics\choice21.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice22"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==13;
					URL = C:\pics\choice22.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice23"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==14;
					URL = C:\pics\choice23.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice24"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==15;
					URL = C:\pics\choice24.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice25"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==16;
					URL = C:\pics\choice25.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice26"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==17;
					URL = C:\pics\choice26.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice27"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==18;
					URL = C:\pics\choice27.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice28"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==19;
					URL = C:\pics\choice28.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice29"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==20;
					URL = C:\pics\choice29.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice210"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==21;
					URL = C:\pics\choice210.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice211"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==22;
					URL = C:\pics\choice211.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice31"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==23;
					URL = C:\pics\choice31.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice32"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==24;
					URL = C:\pics\choice32.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice33"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==25;
					URL = C:\pics\choice33.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice34"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==26;
					URL = C:\pics\choice34.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice35"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==27;
					URL = C:\pics\choice35.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice36"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==28;
					URL = C:\pics\choice36.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice37"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==29;
					URL = C:\pics\choice37.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice38"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==30;
					URL = C:\pics\choice38.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice39"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==31;
					URL = C:\pics\choice39.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice310"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==32;
					URL = C:\pics\choice310.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
				multimediabox "choice311"{
					hasframe = FALSE;
					top = 10%;
					displaycondition = select==33;
					URL = C:\pics\choice311.bmp;
					dorepeat = FALSE;
					maintainaspectratio = FALSE;
					enlargetofit = FALSE;
					shrinktofit = TRUE;
					allowusercontrol = FALSE;
					rewind = FALSE;
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 60%;
				standardbox "Standard"{
					hasframe = TRUE;
					right = 50%;
					buttonposition = BOTTOMRIGHT;
					buttonsequence = HORIZONTAL;
					item{
						label = "<>{\\rtf \\fs22 Results for the random drawing of chips: \\line \r\n\\line \r\nBag 1: < bag1 | !text: 1 = \"blue\"; 2 = \"black\"; 3= \"red\"; 4=\"green\";>\\line \r\n\\line \r\nBag 2: < bag2 | !text: 1 = \"blue\"; 2 = \"black\"; 3= \"red\"; 4=\"green\";>\\line\r\n\\line \r\nBag 3: < bag3 | !text: 1 = \"blue\"; 2 = \"black\"; 3= \"red\"; 4=\"green\";>\\line \r\n\\line \r\nBag K: < bagK | !text: 1 = \"red\"; 2 = \"black\";>\\line \r\n\\line \r\nBag U: < bagU | !text: 1 = \"red\"; 2 = \"black\";>}";
					}
					item{
					}
				}
				standardbox "Standard"{
					hasframe = TRUE;
					left = 50%;
					buttonposition = BOTTOMRIGHT;
					buttonsequence = HORIZONTAL;
					item{
						label = "<>{\\rtf \\fs22 Your choice was: \\line \r\n<wahl | !text: 0=\"Left prospect\"; 1=\"Right prospect\";>. \\line \r\n\r\n\\line \r\nYour potential payoff from the experiment is therefore: \\line \r\n< Profit | 1.00> Euro \\line\r\n\\line \r\nIf you are among the participants selected for real payment you will receive the flat payment of 20 Euros increased by your potential payoff (or decreased if negative payoff), as described in the instructions.}";
					}
					item{
					}
					button "OK"{
						clearinputafterok = FALSE;
						norecordmadeorselected = FALSE;
						terminatestage = FALSE;
						donotterminatestage = FALSE;
						specialbuttoncolor = FALSE;
						buttoncolor = 0;
					}
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "resultsB"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = never;
		timeout = 30;
		program{
			table = subjects;
			do{
				Participate = if (select >33,1,0);  
			}
		}
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
			standardbox "Standard"{
				hasframe = FALSE;
				left = 40%;
				right = 40%;
				bottom = 95%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "{\\rtf \\fs24 \\b Results}";
				}
			}
			standardbox "Standard"{
				hasframe = FALSE;
				top = 5%;
				bottom = 85%;
				buttonposition = BOTTOMRIGHT;
				buttonsequence = HORIZONTAL;
				item{
					label = "<>{\\rtf \\fs22 The following choice situation has been randomly selected for you: <select | !text: 34=\"Group 1  Choice 3\"; 35=\"Group 1  Choice 4\"; 36=\"Group 1  Choice 1\"; 37=\"Group 1  Choice 2\"; 38=\"Group 2  Choice 3\"; 39=\"Group 2  Choice 4\"; 40=\"Group 2 Choice 1\"; 41=\"Group 2 Choice 2\";> \\line\r\n(Remember that Bags K and U are relevant for groups 1 and 2 in Part 2.)}";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 15%;
				bottom = 60%;
				displaycondition = select==34;
				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. }";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 15%;
				bottom = 60%;
				displaycondition = select==35;
				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. }";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 15%;
				bottom = 60%;
				displaycondition = select==36;
				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.  }";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 15%;
				bottom = 60%;
				displaycondition = select==37;
				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.  }";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 15%;
				bottom = 60%;
				displaycondition = select==38;
				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.  }";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 15%;
				bottom = 60%;
				displaycondition = select==39;
				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.  }";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 15%;
				bottom = 60%;
				displaycondition = select==40;
				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.  }";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 15%;
				bottom = 60%;
				displaycondition = select==41;
				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.  }";
				}
			}
			containerbox "Container"{
				hasframe = FALSE;
				top = 60%;
				standardbox "Standard"{
					hasframe = TRUE;
					right = 50%;
					buttonposition = BOTTOMRIGHT;
					buttonsequence = HORIZONTAL;
					item{
						label = "<>{\\rtf \\fs22 Results for the random drawing of chips: \\line \r\n\\line \r\nBag 1: < bag1 | !text: 1 = \"blue\"; 2 = \"black\"; 3= \"red\"; 4=\"green\";>\\line \r\n\\line \r\nBag 2: < bag2 | !text: 1 = \"blue\"; 2 = \"black\"; 3= \"red\"; 4=\"green\";>\\line\r\n\\line \r\nBag 3: < bag3 | !text: 1 = \"blue\"; 2 = \"black\"; 3= \"red\"; 4=\"green\";>\\line \r\n\\line \r\nBag K: < bagK | !text: 1 = \"red\"; 2 = \"black\";>\\line \r\n\\line \r\nBag U: < bagU | !text: 1 = \"red\"; 2 = \"black\";>}";
					}
					item{
					}
				}
				standardbox "Standard"{
					hasframe = TRUE;
					left = 50%;
					buttonposition = BOTTOMRIGHT;
					buttonsequence = HORIZONTAL;
					item{
						label = "<>{\\rtf \\fs22 Your choice was: \\line \r\n<wahl | !text: 0=\"Left prospect\"; 1=\"Right prospect\";>. \\line \r\n\r\n\\line \r\nYour potential payoff from the experiment is therefore: \\line \r\n< Profit | 1.00> Euro \\line\r\n\\line \r\nIf you are among the participants selected for real payment you will receive the flat payment of 20 Euros increased by your potential payoff (or decreased if negative payoff), as described in the instructions.}";
					}
					item{
					}
					button "OK"{
						clearinputafterok = FALSE;
						norecordmadeorselected = FALSE;
						terminatestage = FALSE;
						donotterminatestage = FALSE;
						specialbuttoncolor = FALSE;
						buttoncolor = 0;
					}
				}
			}
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	stage "calc"{
		startwaitforall = FALSE;
		singleentry = FALSE;
		singleentrycontinuation = FALSE;
		timeouttype = always;
		timeout = 0;
		program{
			table = subjects;
			do{
				memoprofitpure=Profit;
				Profit=Profit+20;
			}
		}
		screen action{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
		screen wait{
			usesbg = TRUE;
			withalertscreen = FALSE;
			noalertscreen = FALSE;
		}
	}
	roles{
		role "S 1"{
		}
	}
	period "1"{
		subject 1{
			group = 1;
		}
	}
}