//  Copyright 1999-2004 Gisele Glosser.  All Rights Reserved.
//
//  Our interactive math lessons are shareware.  You may use our free demo lessons
//  on mathgoodies.com only.  You may NOT download nor save them.  You can purchase
//  a license to use all 70 of our lessons off line by visiting:
//  http://www.mathgoodies.com/cd/

var msg="";var tempWindow;var newTags;function x08226313(whichSelected){var index=0;for(i=0;i<whichSelected.length;i++){if(whichSelected[i].checked){return i;}}return 0;}function x0653090547(form,whichQuestion){var optionChosen=x08226313(form.entry);if((whichQuestion==1)&&(form.entry[optionChosen].value=="choice4")||(whichQuestion==2)&&(form.entry[optionChosen].value=="choice2")||(whichQuestion==3)&&(form.entry[optionChosen].value=="choice3")||(whichQuestion==4)&&(form.entry[optionChosen].value=="choice2")||(whichQuestion==5)&&(form.entry[optionChosen].value=="choice3")){form.result.value="Correct!";}else{choice=optionChosen+1;form.result.value="Choice "+choice+" is incorrect.  Please try again.";}}function x05844(msg){window.status=msg;return true;}function x1324826050681797(){if(tempWindow&&!tempWindow.closed){tempWindow.close();tempWindow=false;return tempWindow;}}function x1155295(Def){if(Def=="equally_likely"){msg="<STRONG>Equally likely outcomes</STRONG>"+" are outcomes that have the same probability ";msg+="of occurring.";}return msg;}function x1096653463(definition){passDef=definition;x1155295(passDef);var newTags="<HTML><HEAD><TITLE>Definition Window</TITLE></HEAD>";newTags+="<BODY BGCOLOR='#FFFFFF'>";newTags+="<H3>Definition</H3>";newTags+=msg+"<P>";newTags+="<form><input TYPE='button' value='close window' name='closeup' onClick='opener.x1324826050681797()'></form>";newTags+="</BODY></HTML>";if(!tempWindow||tempWindow.closed){tempWindow=window.open("temp.html","tempWindow","toolbar=no,width=500,height=180,directories=no,status=no,scrollbars=yes,resize=yes,menubar=no");if(!tempWindow.opener){tempWindow.opener=window;}x282602267(newTags);}else{x282602267(newTags);}}function x282602267(content){getContent=content;setTimeout("x282602267",1000);tempWindow.document.write(getContent);tempWindow.document.close();tempWindow.focus();}spinner_img=new Array();for(i=0;i<12;i++){spinner_img[i]=new Image;spinner_img[i].src="images/spinner-"+i+".gif";}delay=1000;range=0;timeRand=0;spinnerRand=0;function x26574808(){document.spinner.src="images/spinner_anim.gif";}function x24988490836(){range=spinner_img.length-1;spinnerRand=Math.floor(Math.random()*spinner_img.length);document.spinner.src=spinner_img[spinnerRand].src;}function x3329217(){timeRand=Math.round(Math.random()*delay);setTimeout('x24988490836()',timeRand);}dicedelay=500;dicefinal=4000;diceRand=0;var T1,T2,T3,T4,T5;dicebase_img=new Array();for(k=0;k<3;k++){dicebase_img[k]=new Image;dicebase_img[k].src="images/dicebase-"+(k)+".gif";}dice_img=new Array();for(j=0;j<6;j++){dice_img[j]=new Image;dice_img[j].src="images/dice-"+(j+1)+".gif";}function x3169675(){diceRand=Math.floor(Math.random()*dice_img.length);document.dice.src=dice_img[diceRand].src;}function x3990044(num){document.dice.src=dicebase_img[num].src;}function x4831402(){T1=setTimeout('x3990044(0)',dicedelay-300);T2=setTimeout('x3990044(1)',dicedelay-200);T3=setTimeout('x3990044(2)',dicedelay-100);T4=setTimeout('x3169675()',dicedelay);}function x46618711(){clearTimeout('T1');clearTimeout('T2');clearTimeout('T3');clearTimeout('T4');document.dice.src="images/dice.gif";}//



