Best UK Non Gamstop Casinos
"); eval(mIDName+"MediaObjectBool = true"); break; default: autoplay = (mURL.indexOf("youtube.com") != -1 || mURL.indexOf("video.google.com") != -1 ) ? "&autoplay=1" : ""; $("#"+which).jmedia({mode:"write"},{src:mURL+autoplay,width:defaultMediaWidth,height:defaultMediaHeight,autoplay:"1",id:mIDName+"MediaObject",wmode:"transparent",bgcolor:defaultVideoMediaBGColor}); eval(mIDName+"MediaObjectBool = true"); } } function setLoading(which,how){ if(how == "show"){ if($("#"+which).css("background-image") == "none"){ $("#"+which).css(thumperCSS); } } else{ $("#"+which).css("background","none"); } } function mediaReadyTest(which,whichBool,i){ $("#"+which+" > img").load(function(){eval(whichBool+"MediaObjectBool = true")}); if(!(eval(whichBool+"MediaObjectBool"))){ i = (i==null) ? 0 : ++i; if(i == 1){ setLoading(which,"show"); } else if(i == 10){ eval(whichBool+"MediaObjectBool = true"); } setTimeout('mediaReadyTest("'+which+'","'+whichBool+'",'+i+')',thumperRefresh); } else{ if(questionMediaObjectBool){ setPointTicker(xml); answerButtonClicked = false; } setLoading(which,"hide"); } } function removeQuestionMediaObject(){ $("#questionMediaObject").remove(); } function killAllMedia(){ $("embed,object").hide(); } function restoreAllMedia(){ $("embed,object").show(); } pointTime = null; clearTimeBool = false; function pointTicker(pt,dr){ $("#pointsRemainingNum").html(pt.toString()); if(pt > 0 && !clearTimeBool)pointTime = setTimeout("pointTicker("+(--pt)+","+(dr)+")",dr); } function setPointTicker(xml){ clearTimeout(pointTime); clearTimeBool = false; dur = (xml == null) ? dur : $("duration",xml).text(); if(!isNaN(dur) && dur != "0"){ pointTicker(100,dur*1000/100); } } function setupNewRound(){ removeQuestionMediaObject(); if(questionMedia.mediaURL.length > 0){ questionMediaURL = questionMedia.mediaURL; if(question_image != null && question_image.src != ""){ if(question_image.src == questionMediaURL){ questionMediaURL = "question_image.src"; } } writeMedia("stagesMedia",questionMedia.mediaName,questionMedia.mediaFormatID,questionMedia.mediaURL,"question",questionMedia.width,questionMedia.height); mediaReadyTest("stagesMedia","question"); } else{ if(xml != null){ setPointTicker(xml); } answerButtonClicked = false; setLoading("stagesMedia","hide"); } } function handleSubmit(){ answerAnswerArray = new Array(); $("#answersContainer > li").each(function(index){ answerAnswerID = this.id; skipAnswer = false; thisCompute = $(this).attr("compute"); if((thisCompute == 4 || thisCompute == 6) && $(this).attr("value") == 1){ answerAnswerValue = 1; } else if(thisCompute == 5){ answerAnswerValue = $(this).children("input").val(); } else{ skipAnswer = true; } if(!skipAnswer){ answerAnswerArray[index] = new function(){ this.id = answerAnswerID; this.value = answerAnswerValue; } } }); lineUpQS = "&lid="+$("#lineUpID").val(); if(lineUpQS == "&lid=") lineUpQS = ""; submitAi(ai+'$'+$("#pointsRemainingNum").html()+"&ans="+$.toJSON(answerAnswerArray)+lineUpQS); } function setSubmitThumper(how){ if(how == "show"){ if(displaySubmitThumper){ $("#submitThumperBackground").fadeTo(10,.6).show(); $("#submitThumperContainer").show(); } } else{ displaySubmitThumper = false; $("#submitThumperBackground, #submitThumperContainer").hide(); } } function submitAi(ai){ displaySubmitThumper = true; setTimeout("setSubmitThumper(\"show\")",1000); clearTimeout(pointTime); clearTimeBool = true; $.ajax({ type: "POST", url: "activity.php", data: "ai="+ai+miniQS, dataType: "xml", cache: false, success: function(activityXML){ xml = activityXML; submitStep1(xml); setSubmitThumper("hide"); } }); } function submitStep1(xml){ if($("currentQuestion > media > mediaFormatID",xml).text() == "1"){ preload("question_image", $("currentQuestion > media > mediaURL",xml).text()); } $("#yourPointsNum").html($("activityScore",xml).text()); if($("#hiScoreNum").html() == "" || parseInt($("#hiScoreNum").html()) li").each(function(){ $this = $(this); thisID = $this.attr("id").substring(1); switch($this.attr("compute")){ case '4': thisSelected = ($("previousQuestion > answers > answer[@id='"+thisID+"']",xml).attr("selected") == "1") ? -(multiAnswerPosArray["selected"]) : 0; if($("previousQuestion > answers > answer[@id='"+thisID+"']",xml).children("answerBool").text() == "1"){ $this.css("background-position","0px "+(thisSelected-multiAnswerPosArray["correct"])+"px"); } else{ $this.css("background-position","0px "+(thisSelected-multiAnswerPosArray["incorrect"])+"px"); } break; case '5': if($("previousQuestion > questionResult",xml).text() == "correct"){ $this.css("background-position","0px -"+inputAnswerPosArray["correct"]+"px"); } else{ $this.css("background-position","0px -"+inputAnswerPosArray["incorrect"]+"px"); } break; case '6': thisSelected = ($("previousQuestion > answers > answer[@id='"+thisID+"']",xml).attr("selected") == "1") ? -(singleAnswerPosArray["selected"]) : 0; if($("previousQuestion > answers > answer[@id='"+thisID+"']",xml).children("answerBool").text() == "1"){ $this.css("background-position","0px "+(thisSelected-singleAnswerPosArray["correct"])+"px"); } else{ $this.css("background-position","0px "+(thisSelected-singleAnswerPosArray["incorrect"])+"px"); } } }); if($("previousQuestion > questionResult",xml).text() == "correct"){ $("#feedbackAnswer").css("color",feedbackAnswerColor["correct"]).html("Correct!"); $("#stagesContainer").css("background-position","0px -"+stagesContainerPosArray["correct"]+"px"); } else{ $("#feedbackAnswer").css("color",feedbackAnswerColor["incorrect"]).html("Wrong"); $("#stagesContainer").css("background-position","0px -"+stagesContainerPosArray["incorrect"]+"px"); } $("#feedbackCorrect > strong:first").text($("correctPercent",xml).text()+"%"); $("#feedbackOverlayContainer").show(); $questionMediaObject = $("#questionMediaObject"); $stagesMedia = $("#stagesMedia"); if($questionMediaObject.length == 0){ $stagesMedia.css(stagesMediaShrunkCSS); } else if($questionMediaObject.attr("name") == "text"){ $questionMediaObject.hide(); $stagesMedia.css(stagesMediaShrunkCSS); } else{ newWidth = Math.round($questionMediaObject.css("width").replace("px","")*quesMediaObjShrinkDecimal)+"px"; newHeight = Math.round($questionMediaObject.css("height").replace("px","")*quesMediaObjShrinkDecimal)+"px"; $stagesMedia.css(stagesMediaShrunkCSS); $questionMediaObject.css({"width": newWidth, "height": newHeight}); $stagesMedia.css("z-index","1000"); } $("#pointsRemainingContainer").fadeOut("slow",function(){ $("#infoDivider, #yourScoreContainer, #highScoreContainer").show(); }); timeout = setTimeout("submitStep2(xml)",step2Timeout); } function submitStep2(xml){ $(".feedbackNote").html($("previousQuestion > response > media",xml).children("mediaURL").text()); nextButtonClicked = false; incorrectUnsuitableSubmit = false; $("#feedbackNextButton, #saveMyScore").show(); } function changeInterPass(){ $('#inter_pass').remove(); newPass = document.createElement('input'); $(newPass).attr({'type':'password','class':'text','name':'inter_pass','id':'inter_pass'}); $('.interInput:last')[0].appendChild(newPass); $('#inter_pass').focus(function(){$(this).val('')}); } function sendPlaceholder(){ $.ajax({ type: "POST", url: "activity.php", data: {ai:ai+'$'+$("activityScore",xml).text(),placeholder:true,ans:null}, dataType: "xml", cache: false, success: function(rXML){ $rank = $("rank",rXML); $questions = $("questions",rXML); $("#rankNum").html($rank.attr("at")); $("#rankFrom").html($rank.attr("from")); $("#interRankFrom").html($rank.attr("from")); if($("#interRankAt").html() > 0){ $("#interRankAtPrev").html($("#interRankAt").html()); } $("#interRankAt").html($rank.attr("at")); $("#interStatCorrect").html($questions.attr("correct")); $("#interStatTotal").html($questions.attr("total")); if(parseInt($questions.attr("total")) > 0){ $("#interStatPercent").html(Math.round( parseInt($questions.attr("correct")) / parseInt($questions.attr("total")) * 100 )); } else{ $("#interStatPercent").html("0%"); } setHighScores(rXML); } }); } function setHighScores(hsXML){ highScoresStr = ""; $("highScores > score",hsXML).each(function(index){ $this = $(this); highScoresStr += ""; if(iframe == null){ highScoresStr += ""+$this.attr("index")+". "+$this.children("user").text()+""; } else{ highScoresStr += ""+$this.attr("index")+". "+$this.children("user").text()+""; } highScoresStr += ""+$this.attr("value")+""; highScoresStr += ""; }); if(highScoresStr.length > 0){ $("#topPlayers").html(highScoresStr); } } function showEmbedCode(){ $('#creditsLinkContainer').show(); killAllMedia(); } function emailValid(email){ var regex = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/; return regex.test(email); } function checkCreditsEmail(){ errorCount = 0; $("#creditsEmailErrorMessage, #creditsEmailErrorMessage1, #creditsEmailErrorMessage2").hide(); $s_email = $("#s_email"); if($s_email.attr("value") == null || $s_email.attr("value").replace(/ /g,'').length == 0 || !emailValid($s_email.attr("value"))){ errorCount++; $("#creditsEmailErrorMessage1").show(); } $s_remail = $("#s_remail"); if($s_remail.attr("value") == null || $s_remail.attr("value").replace(/ /g,'').length == 0 || !emailValid($s_remail.attr("value"))){ errorCount++; $("#creditsEmailErrorMessage2").show(); } if(errorCount == 1){ $("#creditsEmailErrorMessage > .creditsEmailErrorMessage").html("Invalid email address"); $("#creditsEmailErrorMessage").show(); return false; } if(errorCount == 2){ $("#creditsEmailErrorMessage > .creditsEmailErrorMessage").html("2 Invalid email addresses"); $("#creditsEmailErrorMessage").show(); return false; } return true; } function showCreditsEmail(){ if($("activityScore",xml).length != 0){ $("#creditsEmailScore").html($("activityScore",xml).text()); } killAllMedia(); $("#creditsEmailContainer").css({"top":$(document).scrollTop()+creditsEmailScrollTopOffset+"px"}).show(); } function handleCreditsEmailReturn(){ $("#creditsEmailThanks").show(); setTimeout('$("#creditsEmailContainer").hide();$("#creditsEmailThanks").hide();restoreAllMedia();',1500); $("#s_remail").val(""); $(".creditsEmailField, .creditsEmailFieldText").attr("value",""); creditEmailSubmit = false; } creditEmailSubmit = false; function sendCreditsEmail(){ if(!creditEmailSubmit && checkCreditsEmail()){ creditEmailSubmit = true; $.ajax({ type: "POST", url: "/_inc/email/mail_credits.php", data: {s_aid:$('#activityID').val(),s_title:$('.scoreMessageTitle').html(),s_remail:$('#s_remail').attr('value'),s_email:$('#s_email').attr('value'),s_highScore:$("activityScore",xml).text(),s_message:$('#s_message').attr('value')}, dataType: "html", cache: false, success: handleCreditsEmailReturn }); } } function checkFeedbackEmail(){ errorCount = 0; $("#feedbackEmailErrorMessage, #feedbackEmailErrorMessage1, #feedbackEmailErrorMessage2").hide(); if($("#f_email").val().replace(/ /g,'').length > 0 && !emailValid($("#f_email").val())){ errorCount++; $("#feedbackEmailErrorMessage1").show(); } if(errorCount == 1){ $("#feedbackEmailErrorMessage > .feedbackEmailErrorMessage").html("Invalid email address"); $("#feedbackEmailErrorMessage").show(); return false; } return true; } feedbackWhich = ""; function showFeedbackEmail(which){ $("#feedbackEmailContainer").css({"top":$(document).scrollTop()+feedbackEmailScrollTopOffset+"px"}).show(); $("#feedbackEmailThanks").hide(); killAllMedia(); feedbackWhich = which; } function handleFeedbackEmailReturn(){ $("#feedbackEmailThanks").show(); setTimeout('$("#feedbackEmailThanks").hide();$("#feedbackEmailContainer").hide();restoreAllMedia()',1500); $("#f_email").val(""); $(".feedbackEmailField, .feedbackEmailText").attr("value",""); feedbackEmailSubmit = false; } feedbackEmailSubmit = false; function sendFeedbackEmail(){ if(!feedbackEmailSubmit && checkFeedbackEmail()){ feedbackEmailSubmit = true; $.ajax({ type: "POST", url: ((feedbackWhich == "unsuitable") ? "/_inc/email/mail_unsuitable.php" : "/_inc/email/mail_incorrect.php"), data: {iu_aid:$("activity",xml).attr("id"),iu_qid:$("previousQuestion",xml).attr("id"),f_email:$('#f_email').attr('value'),comments:encodeURI($("#feedbackComments").attr('value'))}, dataType: "html", cache: false, success: handleFeedbackEmailReturn }); } } creditsSearchArray = new Array(); function creditsSearchResult(id,ttl,img){ this.id = id; this.title = ttl; this.imgURL = img; } csNum = 0; function displayCreditsSearch(){ if(creditsSearchArray.length != 0){ $("#creditsSearch").hide(function(){ $("#creditsSearch").html(""); for(i=0; i= creditsSearchArray.length){ csNum = 0; } csImage = (creditsSearchArray[csNum].imgURL == "") ? "" : ""; $("#creditsSearch").append("
"+csImage+creditsSearchArray[csNum].title+"
"); csNum++; } $("#creditsSearch").show(); }); setTimeout("displayCreditsSearch()",creditsSearchResultsRefreshMillis); } } function doCreditsSearch(){ $.ajax({ type: "POST", url: "search.php", data: {xml:"true"}, dataType: "xml", cache: false, success: function(creditSearchXML){ $("result",creditSearchXML).each(function(){ creditsSearchArray[creditsSearchArray.length] = new creditsSearchResult($(this).attr("activityID"),$(this).children("title").text(),$(this).children("media").text()); }); } }); } function handleIncorrectUnsuitableReturn(){ $("#creditsEmailContainer").hide(); $(".creditsEmailField, .creditsEmailFieldText").attr("value",""); $("#feedbackAction").hide(function(){ $("#feedbackActionResponse").show(); }); } incorrectUnsuitableSubmit = false; function sendIncorrectUnsuitable(which){ if(!incorrectUnsuitableSubmit){ incorrectUnsuitableSubmit = true; $.ajax({ type: "POST", url: ((which == "unsuitable") ? "/_inc/email/mail_unsuitable.php" : "/_inc/email/mail_incorrect.php"), data: {iu_aid:$("activity",xml).attr("id"),iu_qid:$("previousQuestion",xml).attr("id")}, dataType: "html", cache: false, success: handleIncorrectUnsuitableReturn }); } }
Stadium Quiz
How well can you recognize sports stadiums?
Question
1/10
Stadium Quiz
Points for Question
100
My Score
0
Hi Score
1000
Question #1
Wrong
24% answered correctly
  • Soldier Field (Chicago)

  • Lambeau Field (Green Bay)

  • Qualcomm Stadium (San Diego)

  • Bank of America Stadium (Charlotte)

Congratulations! You have completed the quiz.
Your final score is:
0 out of 1000

  1. Question #1
    1. Soldier Field (Chicago)
    2. Lambeau Field (Green Bay)
    3. Qualcomm Stadium (San Diego)
    4. Bank of America Stadium (Charlotte)
  2. Question #2
    1. Safeco Field (Seattle)
    2. Minute Maid Park (Houston)
    3. Comerica Park (Detroit)
    4. Progressive Field (Cleveland)
  3. Question #3
    1. Orange Bowl (Miami)
    2. Husky Stadium (Washington)
    3. Torero Stadium (San Diego)
    4. Stanford Stadium (Stanford)
  4. Question #4
    1. PNC Park (Pittsburgh)
    2. Petco Park (San Diego)
    3. Great American Ball Park (Cincinnati)
    4. Citizens Bank Park (Philadelphia)
  5. Question #5
    1. Reliant Stadium (Houston)
    2. RCA Dome (Indianapolis)
    3. Georgia Dome (Atlanta)
    4. Ford Field (Detroit)
  6. Question #6
    1. Kauffman Stadium (Kansas City)
    2. Progressive Field (Cleveland)
    3. Minute Maid Park (Houston)
    4. Rangers Ballpark in Arlington
  7. Question #7
    1. Spartan Stadium (Michigan State)
    2. Williams Brice Stadium (South Carolina)
    3. Bryant Denny Stadium (Alabama)
    4. Kyle Field (Texas A&M)
  8. Question #8
    1. Lincoln Financial Field (Philadelphia)
    2. Qwest Field (Seattle)
    3. Gilette Stadium (New England)
    4. Giants Stadium (New York)
  9. Question #9
    1. Chase Field (Arizona)
    2. Shea Stadium (New York)
    3. Dolphin Stadium (Florida)
    4. Turner Field (Atlanta)
  10. Question #10
    1. Memorial Stadium (Kansas)
    2. Memorial Stadium (Nebraska)
    3. Memorial Stadium (Oklahoma)
    4. Royal Memorial Stadium (Texas)