////JAVASCRIPT by George
////for Out There Whats Different
<!--

clx1= 0;
clx2= 0;
clx3= 0;
clx4= 0;
clx5= 0;
clx6= 0;

countclx = 1;

xc=0;
puzn = 0;
cbx1 = 0;
cbx2 = 0;
cbx3 = 0;
cbx4 = 0;
cbx5 = 0;
cbx6 = 0;
ranc = 0;
messagex= "";
messagez= "";
messagey= "";//<img src=\"http://www.outthere-bygeorge.com/images_2/smiley.gif\">


loc1="http://www.outthere-bygeorge.com/OTwhatsDifferent.html";
loc2="http://www.outthere-bygeorge.com/wdpuzzles/OTwhatsDifferent_1.html";
loc3="http://www.outthere-bygeorge.com/wdpuzzles/OTwhatsDifferent_2.html";
loc4="http://www.outthere-bygeorge.com/wdpuzzles/OTwhatsDifferent_3.html";
loc5="http://www.outthere-bygeorge.com/wdpuzzles/OTwhatsDifferent_4.html";
loc6="http://www.outthere-bygeorge.com/wdpuzzles/OTwhatsDifferent_5.html";
loc7="http://www.outthere-bygeorge.com/wdpuzzles/OTwhatsDifferent_6.html";
loc8="http://www.outthere-bygeorge.com/wdpuzzles/OTwhatsDifferent_7.html";
loc100="http://www.outthere-bygeorge.com/wdpuzzles/OTwhatsDifferenthard.html";

locator = "";
hpuz = ">Here's the next puzzle</a>";

puzanswer1 = "letter O missing on sign";
puzanswer2 = "elfs foot missing";
puzanswer3 = "window trim colour changed";
puzanswer4 = "tree missing";
puzanswer5 = "christmas reef missing";
puzanswer6 = "bell missing";


function answers(puz){
if(puz=="puz0"){document.getElementById('answerarea').innerHTML="<strong>ANSWERS<br> 1. </strong>" + puzanswer1 + "<strong> 2. </strong> " + puzanswer2 + "<strong> 3. </strong>" + puzanswer3 + "<strong> 4. </strong>" + puzanswer4 + "<strong> 5. </strong>" + puzanswer5 + "<strong> 6. </strong>" + puzanswer6 + ""}

if(puz=="puz01"){document.getElementById('answerarea').innerHTML="<strong>ANSWERS<br> 1. </strong>" + puzanswer1 + "<strong> 2. </strong> " + puzanswer2 + "<strong> 3. </strong>" + puzanswer3 + "<strong> 4. </strong>" + puzanswer4 + "<strong> 5. </strong>" + puzanswer5 + "<strong> 6. </strong>" + puzanswer6 + ""}

if(puz=="puz1"){document.getElementById('answerarea').innerHTML="<strong>ANSWERS<br>1.</strong> painting on wall <strong>2.</strong> salt shaker <strong>3.</strong> dogs ear <strong>4.</strong> line on window <strong>5.</strong> line on glass <strong>6.</strong> fork spike"}

if(puz=="puz2"){document.getElementById('answerarea').innerHTML="<strong>ANSWERS<br>1.</strong> small butterfly missing <strong>2.</strong> steering wheel <strong>3.</strong> black line on roof <strong>4.</strong> line on mirror <strong>5.</strong> stud on headrest <strong>6.</strong> ladies earring"}

if(puz=="puz3"){document.getElementById('answerarea').innerHTML="<strong>ANSWERS<br>1.</strong> I in CRITTERS <strong>2.</strong> duck bill <strong>3.</strong> mans hair colour <strong>4.</strong> phone handle dots <strong>5.</strong> chair <strong>6.</strong> man's pocket"}

if(puz=="puz4"){document.getElementById('answerarea').innerHTML="<strong>ANSWERS<br>1.</strong> smoke puff <strong>2.</strong> wheel hub police car <strong>3.</strong> checker missing police car <strong>4.</strong> E missing police <strong>5.</strong> patch on clown arm <strong>6.</strong> arm rest"}

if(puz=="puz5"){document.getElementById('answerarea').innerHTML="<strong>ANSWERS<br>1.</strong> extra balloon <strong>2.</strong> balloon colour change <strong>3.</strong> wire on machine <strong>4.</strong> bottle on trolley <strong>5.</strong> tail on doctor's hat <strong>6.</strong> operating light colour"}

if(puz=="puz6"){document.getElementById('answerarea').innerHTML="<strong>ANSWERS<br>1.</strong> Elephant's knee missing <strong>2.</strong> TV aerial missing <strong>3.</strong> small tree missing <strong>4.</strong> man's top different colour <strong>5.</strong> dust puff missing <strong>6.</strong> extra telegraph wire"}

if(puz=="puz7"){document.getElementById('answerarea').innerHTML="<strong>ANSWERS<br>1.</strong> gutter pipe missing <strong>2.</strong> porch light colour different <strong>3.</strong> dust puff missing <strong>4.</strong> dog's tail shorter <strong>5.</strong> extra telegraph wire <strong>6.</strong> car light missing"}

if(puz=="puz100"){document.getElementById('answerarea').innerHTML="<strong>ANSWERS<br>1.</strong> knot on left tree backwards <strong>2.</strong> man's shoe colour changed <strong>3.</strong> birds are backwards <strong>4.</strong> man has extra forehead wrinkle <strong>5.</strong> middle bush changed shape <strong>6.</strong> middle tree branch is lower"}

}
	
function locatorz(){if(puzn==1){locator=loc1+hpuz}
if(puzn==2){locator=loc2+hpuz}
if(puzn==3){locator=loc3+hpuz}
if(puzn==4){locator=loc4+hpuz}
if(puzn==5){locator=loc5+hpuz}
if(puzn==6){locator=loc6+hpuz}
if(puzn==7){locator=loc7+hpuz}
if(puzn==8){locator=loc8+hpuz}
if(puzn==9){locator=""}
if(puzn==100){locator=loc100+hpuz}
}

function puzx( puzn ) //****This strips out the cartoon number
{
 puzn = puzn.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
 var regexS = "[\\?&]"+puzn+"=([^&#]*)";
 var regex = new RegExp( regexS );
 var results = regex.exec( window.location.href );
 if( results == null )
  return "";
 else
    return results[1];
}

function puzsubmitted() {
//puzx_param = puzx( 'puzn' );
//imageParsed = parseInt(puzx_param);
//alert(puzx_param);

if(window.location.href==loc1 || window.location.href==loc1+"#"){puzn=2}
if(window.location.href==loc2 || window.location.href==loc2+"#"){puzn=3}
if(window.location.href==loc3 || window.location.href==loc3+"#"){puzn=4}
if(window.location.href==loc4 || window.location.href==loc4+"#"){puzn=5}
if(window.location.href==loc5 || window.location.href==loc5+"#"){puzn=6}
if(window.location.href==loc6 || window.location.href==loc6+"#"){puzn=7}
if(window.location.href==loc7 || window.location.href==loc7+"#"){puzn=8}
if(window.location.href==loc8 || window.location.href==loc8+"#"){puzn=9}
if(window.location.href==loc100 || window.location.href==loc100+"#"){puzn=100}
locatorz();
//if(parseInt(puzx_param) == 2){puzn=2;document.location.href=loc1}
//if(parseInt(puzx_param) == 3){puzn=3;document.location.href=loc2}
//if(parseInt(puzx_param) == 4){puzn=4;document.location.href=loc3}
//if(parseInt(puzx_param) == 5){puzn=5;document.location.href=loc4}
//if(parseInt(puzx_param) == 6){puzn=6;document.location.href=loc5}
//if(isNaN (imageParsed)){puzn=1}//welcomeCartoons()
}

function moreseqinfo(){messagex="This competition is only valid for the latest puzzle. The Winning sequence is the order in which the 6 differences were created. If you think you have picked them in the correct order then you could WIN $25. Winners will receive payment by mail or paypal deposit. All correct answers will receive $25. The winning sequence for the previous puzzle is published each Monday and Thursday";messagex=""}//document.getElementById('sequence').innerHTML=messagex;

function paypalipick(){descriptz="This is my sequence "+clx1+"-"+clx2+"-"+clx3+"-"+clx4+"-"+clx5+"-"+clx6;}

function ipicked(){messagez="Here is the order you have spotted the differences<br><strong>"+clx1+"-"+clx2+"-"+clx3+"-"+clx4+"-"+clx5+"-"+clx6+"</strong>"}//;document.getElementById('sequence').innerHTML=messagez

function matched(m1){if(window.location.href==loc1){messagey ="  <strong>PASSWORD REQUIRED:-</strong> If you would like to access more What's Different puzzles - join the free email list and receive your password to the members directory";}
if(m1 == "mt01" && cbx1 == 0){document.cbox1.src="http://www.outthere-bygeorge.com/WhatsDifferent2009/pgImages/ctbox1.png";xc=xc+1;cbx1=1;ranc = 0}//;clx1=countclx;countclx=countclx+1;ipicked();paypalipick()
if(m1 == "mt02" && cbx2 == 0){document.cbox2.src="http://www.outthere-bygeorge.com/WhatsDifferent2009/pgImages/ctbox2.png";xc=xc+1;cbx2=1;ranc = 1}//;clx2=countclx;countclx=countclx+1;ipicked();paypalipick()
if(m1 == "mt03" && cbx3 == 0){document.cbox3.src="http://www.outthere-bygeorge.com/WhatsDifferent2009/pgImages/ctbox3.png";xc=xc+1;cbx3=1;ranc = 2}//;clx3=countclx;countclx=countclx+1;ipicked();paypalipick()
if(m1 == "mt04" && cbx4 == 0){document.cbox4.src="http://www.outthere-bygeorge.com/WhatsDifferent2009/pgImages/ctbox4.png";xc=xc+1;cbx4=1;ranc = 3}//;clx4=countclx;countclx=countclx+1;ipicked();paypalipick()
if(m1 == "mt05" && cbx5 == 0){document.cbox5.src="http://www.outthere-bygeorge.com/WhatsDifferent2009/pgImages/ctbox5.png";xc=xc+1;cbx5=1;ranc = 4}//;clx5=countclx;countclx=countclx+1;ipicked();paypalipick()
if(m1 == "mt06" && cbx6 == 0){document.cbox6.src="http://www.outthere-bygeorge.com/WhatsDifferent2009/pgImages/ctbox6.png";xc=xc+1;cbx6=1;ranc = 5}//;clx6=countclx;countclx=countclx+1;ipicked();paypalipick()




if(xc==6 && ranc == 0){messagex="<strong>Congratulations</strong> - you have a good eye for detail - try another puzzle ";document.getElementById('answerarea').innerHTML=messagey+messagex+messagez+"<a href="+locator}//<img src=\"../images_2/smiley.gif\">

if(xc==6 && ranc == 1){messagex="<strong>Good One</strong> - You have a knack for spotting differences ";document.getElementById('answerarea').innerHTML=messagey+messagex+messagez+"<a href="+locator}//<img src=\"../images_2/smiley.gif\">

if(xc==6 && ranc == 2){messagex="<strong>Brilliant</strong> - Your sharp eye got them all ";document.getElementById('answerarea').innerHTML=messagey+messagex+messagez+"<a href="+locator}//<img src=\"../images_2/smiley.gif\">

if(xc==6 && ranc == 3){messagex="<strong>Legend</strong> - Did someone help you? ";document.getElementById('answerarea').innerHTML=messagey+messagex+messagez+"<a href="+locator}//<img src=\"../images_2/smiley.gif\">

if(xc==6 && ranc == 4){messagex="<strong>You got them all</strong> - Try a new what's different every week ";document.getElementById('answerarea').innerHTML=messagey+messagex+messagez+"<a href="+locator}//<img src=\"../images_2/smiley.gif\">

if(xc==6 && ranc == 5){messagex="<strong>WINNER</strong> - You spotted all the differences ";document.getElementById('answerarea').innerHTML=messagey+messagex+messagez+"<a href="+locator}//<img src=\"../images_2/smiley.gif\">

if(xc==6 && puzn == 100){messagex="<strong>Just to good</strong> - You have a laser sharp eye ";document.getElementById('answerarea').innerHTML=messagey+messagex+messagez}//<img src=\"../images_2/smiley.gif\">
}

function resettick(){document.cbox1.src="http://www.outthere-bygeorge.com/WhatsDifferent2009/pgImages/cbox1.png";document.cbox2.src="http://www.outthere-bygeorge.com/WhatsDifferent2009/pgImages/cbox2.png";document.cbox3.src="http://www.outthere-bygeorge.com/WhatsDifferent2009/pgImages/cbox3.png";document.cbox4.src="http://www.outthere-bygeorge.com/WhatsDifferent2009/pgImages/cbox4.png";document.cbox5.src="http://www.outthere-bygeorge.com/WhatsDifferent2009/pgImages/cbox5.png";cbx1=0;cbx2=0;cbx3=0;cbx4=0;cbx5=0;cbx6=0;ranc=0;countclx=1;clx1=0;clx2=0;clx3=0;clx4=0;clx5=0;clx6=0;messagex="";messagez="";document.cbox6.src="http://www.outthere-bygeorge.com/WhatsDifferent2009/pgImages/cbox6.png";xc=0;document.getElementById('answerarea').innerHTML="<strong>HINT</strong> Look for Colour variations - added or missing elements and changes to elements...Enjoy<br />SUBSCRIBE for a FREE cartoon every Monday and get reminded of the NEW weekly WHAT'S DIFFERENT<br /><strong>IMPORTANT:</strong> YOUR EMAIL ADDRESS will never be shared"}//document.getElementById('sequence').innerHTML="";

function emailInfoII(){var new_text = "<span class=\"arial12answercontent2009\">If you'd like to receive Monday's cartoon hot off the drawing board? subscribe by sending your email address to mail@outthere-bygeorge.com <br>(use the form for convenience) - You are guaranteed your email address will never be shared<br><small>TROUBLESHOOTING - If you do not receive an email confirming your subscription within 24 hours just resubscribe-Some browsers do not post form requests 100% of the time</small></span>"; document.getElementById('answerarea').innerHTML = new_text}
//end of Shop script
//-->