-->
'; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += ''; ResultForm += '
'; //Fixed and draggable card arrays FC = new Array(); DC = new Array(); function doDrag(e) { if (CurrDrag == -1) {return}; if (is.ie){var Ev = window.event}else{var Ev = e} var difX = Ev.clientX-window.lastX; var difY = Ev.clientY-window.lastY; var newX = DC[CurrDrag].GetL()+difX; var newY = DC[CurrDrag].GetT()+difY; DC[CurrDrag].SetL(newX); DC[CurrDrag].SetT(newY); window.lastX = Ev.clientX; window.lastY = Ev.clientY; return true; } function beginDrag(e, DragNum) { CurrDrag = DragNum; if (is.ie){ var Ev = window.event; document.onmousemove=doDrag; document.onmouseup=endDrag; } else{ var Ev = e; window.onmousemove=doDrag; window.onmouseup=endDrag; } DC[CurrDrag].Highlight(); topZ++; DC[CurrDrag].css.zIndex = topZ; window.lastX=Ev.clientX; window.lastY=Ev.clientY; return true; } function endDrag(e) { if (CurrDrag == -1) {return}; DC[CurrDrag].Unhighlight(); if (is.ie){document.onmousemove=null}else{window.onmousemove=null;} onEndDrag(); CurrDrag = -1; return true; } function onEndDrag(){ //Is it dropped on any of the fixed cards? var Docked = false; var DropTarget = DroppedOnFixed(CurrDrag); if (DropTarget > -1){ //If so, send home any card that is currently docked there for (var i=0; i OverlapArea){ OverlapArea = Temp; Result = i; } } return Result; } function StartUp(){ //Try to get user name UserName = prompt('Please enter your name and ID number',''); UserName += ''; if ((UserName.substring(0,4) == 'null')||(UserName.length < 1)){ UserName = prompt('Please enter your name and ID number',''); UserName += ''; if ((UserName.substring(0,4) == 'null')||(UserName.length < 1)){ window.location = PreviousPage; } } //Calculate page dimensions and positions pg = new PageDim(); DivWidth = Math.floor((pg.W*4)/5); DragWidth = Math.floor((DivWidth*3)/10); LeftColPos = Math.floor(pg.W/10); RightColPos = pg.W - (DragWidth + LeftColPos); DragTop = parseInt(document.getElementById('TitleDiv').offsetHeight) + 10; //Position the feedback div var CurrDiv = document.getElementById('FeedbackDiv'); CurrDiv.style.top = DragTop + 5 + 'px'; CurrDiv.style.left = Math.floor((pg.W)/3) + 'px'; CurrDiv.style.width = Math.floor(pg.W/3) + 'px'; CurrDiv.style.display = 'none'; //Shuffle the items on the right D = Shuffle(D); var CurrTop = DragTop; var TempInt = 0; var DropHome = 0; var Widest = 0; for (var i=0; i'; //required for Navigator rendering bug with images if (FC[i].GetW() > Widest){ Widest = FC[i].GetW(); } } if (Widest > DragWidth){Widest = DragWidth;} CurrTop = DragTop; DragWidth = Math.floor((DivWidth-Widest)/2) - 24; RightColPos = DivWidth + LeftColPos - (DragWidth + 14); var Highest = 0; var WidestRight = 0; for (i=0; i'; //required for Navigator rendering bug with images if (DC[i].GetW() > DragWidth){DC[i].SetW(DragWidth);} DC[i].css.cursor = 'move'; DC[i].css.backgroundColor = '#ffffff'; DC[i].css.color = '#000000'; TempInt = DC[i].GetH(); if (TempInt > Highest){Highest = TempInt;} TempInt = DC[i].GetW(); if (TempInt > WidestRight){WidestRight = TempInt;} } var HeightToSet = Highest; if (is.ns||is.ie5mac){HeightToSet -= 12;} var WidthToSet = WidestRight; if (is.ns||is.ie5mac){WidthToSet -= 12;} for (i=0; i 0){ DC[i].tag = D[i][1]; D[i][2] = D[i][1]; var TopChange = 0; var TargetLeft = FC[D[i][2]-1].GetR() + 5; var TargetTop = FC[D[i][1]-1].GetT(); if (TargetTop < DC[i].GetT()){ TopChange = -1; } else { if (TargetTop > DC[i].GetT()){ TopChange = 1; } } Slide(i, TargetLeft, TargetTop, TopChange); } } } function Slide(MoverNum, TargL, TargT, TopChange){ var TempInt = DC[MoverNum].GetL(); if (TempInt > TargL){ DC[MoverNum].SetL(TempInt - 5); } TempInt = DC[MoverNum].GetT(); if (TempInt != TargT){ DC[MoverNum].SetT(TempInt + TopChange); } if ((DC[MoverNum].GetL() > TargL)||(DC[MoverNum].GetT() != TargT)){ setTimeout('Slide('+MoverNum+','+TargL+','+TargT+','+TopChange+')', 1); } else{ DC[MoverNum].SetL(TargL); } } F = new Array(); F[0] = new Array() F[0][0]='You\'re too good for him.'; F[0][1] = 1; F[1] = new Array() F[1][0]='No wonder you always go home alone.'; F[1][1] = 2; F[2] = new Array() F[2][0]='Express Lane: Five beers or less'; F[2][1] = 3; F[3] = new Array() F[3][0]='If pro is opposite of con, then what is the opposite of progress?
Congress!'; F[3][1] = 4; F[4] = new Array() F[4][0]='God is dead. - Nietzsche
Nietzsche is dead. - God'; F[4][1] = 5; F[5] = new Array() F[5][0]='To do is to be. - Descartes
To be is to do. - Voltaire
Do be do be do. - Frank Sinatra'; F[5][1] = 6; D = new Array(); D[0] = new Array() D[0][0]='Sign over mirror in Women\'s restroom, Ed Debevic\'s. Beverly Hills, California'; D[0][1] = 1; D[0][2] = 0; D[1] = new Array() D[1][0]='Sign over mirror in Men\'s restroom, Ed Debevic\'s. Beverly Hills, California'; D[1][1] = 2; D[1][2] = 0; D[2] = new Array() D[2][0]='Sign over one of the urinals, Ed Debevic\'s. Phoenix, Arizona'; D[2][1] = 3; D[2][2] = 0; D[3] = new Array() D[3][0]='Men\'s restroom, House of representatives. Washington, D.C.'; D[3][1] = 4; D[3][2] = 0; D[4] = new Array() D[4][0]='The Tombs Restaurant. Washington, DC'; D[4][1] = 5; D[4][2] = 0; D[5] = new Array() D[5][0]='Men\'s restroom, Greasewood Flats. Scottsdale, Arizona.'; D[5][1] = 6; D[5][2] = 1; function Shuffle(InArray){ Temp = new Array(); var Len = InArray.length; var j = Len; for (var i=0; i 0)){ TotalCorrect++; } else{ DC[i].GoHome(); } } Score = Math.floor((100*(TotalCorrect-Penalties))/F.length); if (TotalCorrect == F.length) { Response = YourScoreIs + ' ' + Score + '%.
' + CorrectResponse; WriteFeedback(Response); setTimeout('SendResults(' + Score + ')', 50); } else { Response = IncorrectResponse + '
' + YourScoreIs + ' ' + Score + '%.'; WriteFeedback(Response); Penalties++; // Penalty for inaccurate check } } function WriteFeedback(Feedback){ var Output = Feedback + '

'; Output += '
//]]>

Graffitti 1

Matching exercise. READ ALL THE TEXTS BEFORE DECIDING...
Match the graffitti (on the left) with the locations in which they were seen (on the right).