Domain Name - englishtag.com Updates every 10s

Id Host Class Type Status Target
1 englishtag.com IN SOA 1 javierfmillet.yahoo.com ns.englishtag.com
2 englishtag.com IN NS 1 ns8.ukhostsupport.com
3 englishtag.com IN NS 1 ns.englishtag.com
4 englishtag.com IN NS 1 ns7.ukhostsupport.com
1 Adsense Id 1 7720647611401514
2 Analytics Id 1 'UA-42569757-1'
3 Author 1 1 F X Ferrer-Bonsoms
4 Language 1 1 en
5 Description 1 1 Interactive Free English Level Test. 50 multiple choice questions to find your result and level. Links to other level tests
6 Keywords 1 1 first certificate, cambridge proficiency, fce, cae, toefl, tesol, ket, english language exams, university of cambridge local examinations syndicate, sample tests, cambridge exam preparation, level test
7 Robots 1 1 all
8 Viewport 1 1 width=device-width, initial-scale=1.0
9 Twitter:Card 1 1 summary
10 Twitter:Site 1 1 @Englishtag
11 Og:Url 1 1 http://www.englishtag.com/tests/level_test.asp
12 Og:Title 1 1 Free English Level Test
13 Og:Description 1 1 Interactive Free English Level Test. 50 multiple choice questions to find your result and level. Links to other level tests
14 Og:Image 1 1 http://www.englishtag.com/online_english/englishtag_logo.png
15 Title 1 1 Free English Level Test
16 Author 2 1 F X Ferrer-Bonsoms
17 Language 2 1 en
18 Description 2 1 See the corrections to your 56 answers of our Level Test Elementary A1.
19 Keywords 2 1 Level Test, Level Test Elementary A1, Level Test Pre Intermediate A2, Level Test Intermediate B1, Level Test Upper Intermediate B2, Level Test Lower Advanced C1, Level Test Upper Advanced C2, More Advanced, Money Crossword
20 Robots 2 1 all
21 Viewport 2 1 width=device-width, initial-scale=1.0
22 Twitter:Card 2 1 summary
23 Twitter:Site 2 1 @Englishtag
24 Og:Url 2 1 http://www.englishtag.com/tests/level_test_elementary_A1_answers.asp
25 Og:Title 2 1 Level Test Elementary A1 Answers - Free English Level Test
26 Og:Description 2 1 Free English Level test, Find your level by doing our Level Test Elementary A1 and then check your answers
27 Og:Image 2 1 http://www.englishtag.com/online_english/englishtag_logo.png
28 Title 2 1 Level Test Elementary A1 Answers - Free English Level Test
29 Author 3 1 F X Ferrer-Bonsoms
30 Language 3 1 en
31 Description 3 1 Find your level by doing our 56 questions of Level Test Elementary A1. Five sections: Choose the correct option, Put Negatives, Add the words to the correct group, Add correct Verbs and Fill the correct preposition.
32 Keywords 3 1 Level Test, Level Test Elementary A1, Level Test Pre Intermediate A2, Level Test Intermediate B1, Level Test Upper Intermediate B2, Level Test Lower Advanced C1, Level Test Upper Advanced C2, More Advanced, Money Crossword
33 Robots 3 1 all
34 Viewport 3 1 width=device-width, initial-scale=1.0
35 Twitter:Card 3 1 summary
36 Twitter:Site 3 1 @Englishtag
37 Og:Url 3 1 http://www.englishtag.com/tests/level_test_elementary_A1.asp
38 Og:Title 3 1 Level Test Elementary A1 - Free English Level Test
39 Og:Description 3 1 Free English Level test, Find your level by doing our Level Test Elementary A1
40 Og:Image 3 1 http://www.englishtag.com/online_english/englishtag_logo.png
41 Title 3 1 Level Test Elementary A1 - Free English Level Test

HTML header Tag

<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><script src="../jquerylast.js"></script><script src="../main.js"></script><script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-42569757-1', 'auto'); ga('send', 'pageview'); </script><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><script type="text/javascript"> if (localStorage.controlcookie>0) { document.getElementById('cookie1').style.bottom = '-50px'; } </script><script type="text/javascript"> function controlcookies() { // si variable no existe se crea (al clicar en Aceptar) localStorage.controlcookie = (localStorage.controlcookie || 0); localStorage.controlcookie++; // incrementamos cuenta de la cookie cookie1.style.display='none'; // Esconde la política de cookies } </script><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><script src="../jquerylast.js"></script><script src="../main.js"></script><script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-42569757-1', 'auto'); ga('send', 'pageview'); </script><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><script type="text/javascript"> if (localStorage.controlcookie>0) { document.getElementById('cookie1').style.bottom = '-50px'; } </script><script type="text/javascript"> function controlcookies() { // si variable no existe se crea (al clicar en Aceptar) localStorage.controlcookie = (localStorage.controlcookie || 0); localStorage.controlcookie++; // incrementamos cuenta de la cookie cookie1.style.display='none'; // Esconde la política de cookies } </script><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><script src="../jquerylast.js"></script><script src="../main.js"></script><script type="text/javascript" src="../eventutil.js"></script><script type="text/javascript"> var xleft; var ytop; var iDiffX = 0; var iDiffY = 0; var iDiffX2 = 0; var iDiffY2 = 0; var tocados = 0; var posintro01; var posintro02; var posintro03; var posintro04; var posintro05; var posintro06; var posintro07; var posintro08; var posintro09; var posintro10; var posintro11; var posintro12; var posintro13; var posintro14; var posintro15; var posintro16; var posintro17; var posintro18; var posintro19; var posintro20; var posintro21; var posintro22; var posintro23; var posintro24; var posverb01; var posverb02; var posverb03; var posverb04; var posverb05; var posverb06; var posverb07; var posverb08; function getAbsoluteElementPosition(posinicial) { posinicial = document.getElementById(posinicial) xleft = posinicial.offsetLeft; ytop = posinicial.offsetTop; document.getElementById('divfrase01').style.left = xleft; document.getElementById('divfrase01').style.top = ytop + 110; document.getElementById('divfrase02').style.left = xleft + 84; document.getElementById('divfrase02').style.top = ytop + 110; document.getElementById('divfrase03').style.left = xleft + 168; document.getElementById('divfrase03').style.top = ytop + 110; document.getElementById('divfrase04').style.left = xleft + 252; document.getElementById('divfrase04').style.top = ytop + 110; document.getElementById('divfrase05').style.left = xleft + 336; document.getElementById('divfrase05').style.top = ytop + 110; document.getElementById('divfrase06').style.left = xleft + 420; document.getElementById('divfrase06').style.top = ytop + 110; document.getElementById('divfrase07').style.left = xleft + 504; document.getElementById('divfrase07').style.top = ytop + 110; document.getElementById('divbox01').style.left = xleft; document.getElementById('divbox01').style.top = ytop + 132; document.getElementById('divbox02').style.left = xleft; document.getElementById('divbox02').style.top = ytop + 153; document.getElementById('divbox03').style.left = xleft; document.getElementById('divbox03').style.top = ytop + 174; document.getElementById('divbox04').style.left = xleft; document.getElementById('divbox04').style.top = ytop + 195; document.getElementById('divbox05').style.left = xleft; document.getElementById('divbox05').style.top = ytop + 216; document.getElementById('divbox06').style.left = xleft; document.getElementById('divbox06').style.top = ytop + 237; document.getElementById('divbox07').style.left = xleft + 84; document.getElementById('divbox07').style.top = ytop + 132; document.getElementById('divbox08').style.left = xleft + 84; document.getElementById('divbox08').style.top = ytop + 153; document.getElementById('divbox09').style.left = xleft + 84; document.getElementById('divbox09').style.top = ytop + 174; document.getElementById('divbox10').style.left = xleft + 84; document.getElementById('divbox10').style.top = ytop + 195; document.getElementById('divbox11').style.left = xleft + 84; document.getElementById('divbox11').style.top = ytop + 216; document.getElementById('divbox12').style.left = xleft + 84; document.getElementById('divbox12').style.top = ytop + 237; document.getElementById('divbox13').style.left = xleft + 168; document.getElementById('divbox13').style.top = ytop + 132; document.getElementById('divbox14').style.left = xleft + 168; document.getElementById('divbox14').style.top = ytop + 153; document.getElementById('divbox15').style.left = xleft + 168; document.getElementById('divbox15').style.top = ytop + 174; document.getElementById('divbox16').style.left = xleft + 168; document.getElementById('divbox16').style.top = ytop + 195; document.getElementById('divbox17').style.left = xleft + 168; document.getElementById('divbox17').style.top = ytop + 216; document.getElementById('divbox18').style.left = xleft + 168; document.getElementById('divbox18').style.top = ytop + 237; document.getElementById('divbox19').style.left = xleft + 252; document.getElementById('divbox19').style.top = ytop + 132; document.getElementById('divbox20').style.left = xleft + 252; document.getElementById('divbox20').style.top = ytop + 153; document.getElementById('divbox21').style.left = xleft + 252; document.getElementById('divbox21').style.top = ytop + 174; document.getElementById('divbox22').style.left = xleft + 252; document.getElementById('divbox22').style.top = ytop + 195; document.getElementById('divbox23').style.left = xleft + 252; document.getElementById('divbox23').style.top = ytop + 216; document.getElementById('divbox24').style.left = xleft + 252; document.getElementById('divbox24').style.top = ytop + 237; document.getElementById('divbox25').style.left = xleft + 336; document.getElementById('divbox25').style.top = ytop + 132; document.getElementById('divbox26').style.left = xleft + 336; document.getElementById('divbox26').style.top = ytop + 153; document.getElementById('divbox27').style.left = xleft + 336; document.getElementById('divbox27').style.top = ytop + 174; document.getElementById('divbox28').style.left = xleft + 336; document.getElementById('divbox28').style.top = ytop + 195; document.getElementById('divbox29').style.left = xleft + 336; document.getElementById('divbox29').style.top = ytop + 216; document.getElementById('divbox30').style.left = xleft + 336; document.getElementById('divbox30').style.top = ytop + 237; document.getElementById('divbox31').style.left = xleft + 420; document.getElementById('divbox31').style.top = ytop + 132; document.getElementById('divbox32').style.left = xleft + 420; document.getElementById('divbox32').style.top = ytop + 153; document.getElementById('divbox33').style.left = xleft + 420; document.getElementById('divbox33').style.top = ytop + 174; document.getElementById('divbox34').style.left = xleft + 420; document.getElementById('divbox34').style.top = ytop + 195; document.getElementById('divbox35').style.left = xleft + 420; document.getElementById('divbox35').style.top = ytop + 216; document.getElementById('divbox36').style.left = xleft + 420; document.getElementById('divbox36').style.top = ytop + 237; document.getElementById('divbox37').style.left = xleft + 504; document.getElementById('divbox37').style.top = ytop + 132; document.getElementById('divbox38').style.left = xleft + 504; document.getElementById('divbox38').style.top = ytop + 153; document.getElementById('divbox39').style.left = xleft + 504; document.getElementById('divbox39').style.top = ytop + 174; document.getElementById('divbox40').style.left = xleft + 504; document.getElementById('divbox40').style.top = ytop + 195; document.getElementById('divbox41').style.left = xleft + 504; document.getElementById('divbox41').style.top = ytop + 216; document.getElementById('divbox42').style.left = xleft + 504; document.getElementById('divbox42').style.top = ytop + 237; document.getElementById('divintro01').style.left = xleft + 20; document.getElementById('divintro01').style.top = ytop; document.getElementById('divintro02').style.left = xleft + 105; document.getElementById('divintro02').style.top = ytop; document.getElementById('divintro03').style.left = xleft + 190; document.getElementById('divintro03').style.top = ytop; document.getElementById('divintro04').style.left = xleft + 275; document.getElementById('divintro04').style.top = ytop; document.getElementById('divintro05').style.left = xleft + 360; document.getElementById('divintro05').style.top = ytop; document.getElementById('divintro06').style.left = xleft + 445; document.getElementById('divintro06').style.top = ytop; document.getElementById('divintro07').style.left = xleft + 530; document.getElementById('divintro07').style.top = ytop; document.getElementById('divintro08').style.left = xleft; document.getElementById('divintro08').style.top = ytop + 24; document.getElementById('divintro09').style.left = xleft + 85; document.getElementById('divintro09').style.top = ytop + 24; document.getElementById('divintro10').style.left = xleft + 170; document.getElementById('divintro10').style.top = ytop + 24; document.getElementById('divintro11').style.left = xleft + 255; document.getElementById('divintro11').style.top = ytop + 24; document.getElementById('divintro12').style.left = xleft + 340; document.getElementById('divintro12').style.top = ytop + 24; document.getElementById('divintro13').style.left = xleft + 425; document.getElementById('divintro13').style.top = ytop + 24; document.getElementById('divintro14').style.left = xleft + 510; document.getElementById('divintro14').style.top = ytop + 24; document.getElementById('divintro15').style.left = xleft + 20; document.getElementById('divintro15').style.top = ytop + 48; document.getElementById('divintro16').style.left = xleft + 105; document.getElementById('divintro16').style.top = ytop + 48; document.getElementById('divintro17').style.left = xleft + 190; document.getElementById('divintro17').style.top = ytop + 48; document.getElementById('divintro18').style.left = xleft + 275; document.getElementById('divintro18').style.top = ytop + 48; document.getElementById('divintro19').style.left = xleft + 360; document.getElementById('divintro19').style.top = ytop + 48; document.getElementById('divintro20').style.left = xleft + 445; document.getElementById('divintro20').style.top = ytop + 48; document.getElementById('divintro21').style.left = xleft + 530; document.getElementById('divintro21').style.top = ytop + 48; document.getElementById('divintro22').style.left = xleft; document.getElementById('divintro22').style.top = ytop + 72; document.getElementById('divintro23').style.left = xleft + 85; document.getElementById('divintro23').style.top = ytop + 72; document.getElementById('divintro24').style.left = xleft + 170; document.getElementById('divintro24').style.top = ytop + 72; document.getElementById('divnumero01').style.left = xleft; document.getElementById('divnumero01').style.top = ytop + 350; document.getElementById('divnumero02').style.left = xleft; document.getElementById('divnumero02').style.top = ytop + 374; document.getElementById('divnumero03').style.left = xleft; document.getElementById('divnumero03').style.top = ytop + 396; document.getElementById('divnumero04').style.left = xleft; document.getElementById('divnumero04').style.top = ytop + 420; document.getElementById('divnumero05').style.left = xleft; document.getElementById('divnumero05').style.top = ytop + 444; document.getElementById('divnumero06').style.left = xleft; document.getElementById('divnumero06').style.top = ytop + 468; document.getElementById('divnumero07').style.left = xleft; document.getElementById('divnumero07').style.top = ytop + 492; document.getElementById('divnumero08').style.left = xleft; document.getElementById('divnumero08').style.top = ytop + 516; document.getElementById('divbox43').style.left = xleft + 23; document.getElementById('divbox43').style.top = ytop + 350; document.getElementById('divbox44').style.left = xleft + 23; document.getElementById('divbox44').style.top = ytop + 374; document.getElementById('divbox45').style.left = xleft + 23; document.getElementById('divbox45').style.top = ytop + 396; document.getElementById('divbox46').style.left = xleft + 23; document.getElementById('divbox46').style.top = ytop + 420; document.getElementById('divbox47').style.left = xleft + 23; document.getElementById('divbox47').style.top = ytop + 444; document.getElementById('divbox48').style.left = xleft + 23; document.getElementById('divbox48').style.top = ytop + 468; document.getElementById('divbox49').style.left = xleft + 23; document.getElementById('divbox49').style.top = ytop + 492; document.getElementById('divbox50').style.left = xleft + 23; document.getElementById('divbox50').style.top = ytop + 516; document.getElementById('divfrase08').style.left = xleft + 76; document.getElementById('divfrase08').style.top = ytop + 350; document.getElementById('divfrase09').style.left = xleft + 76; document.getElementById('divfrase09').style.top = ytop + 374; document.getElementById('divfrase10').style.left = xleft + 76; document.getElementById('divfrase10').style.top = ytop + 396; document.getElementById('divfrase11').style.left = xleft + 76; document.getElementById('divfrase11').style.top = ytop + 420; document.getElementById('divfrase12').style.left = xleft + 76; document.getElementById('divfrase12').style.top = ytop + 444; document.getElementById('divfrase13').style.left = xleft + 76; document.getElementById('divfrase13').style.top = ytop + 468; document.getElementById('divfrase14').style.left = xleft + 76; document.getElementById('divfrase14').style.top = ytop + 492; document.getElementById('divfrase15').style.left = xleft + 76; document.getElementById('divfrase15').style.top = ytop + 516; document.getElementById('divletra01').style.left = xleft + 240; document.getElementById('divletra01').style.top = ytop + 350; document.getElementById('divletra02').style.left = xleft + 240; document.getElementById('divletra02').style.top = ytop + 374; document.getElementById('divletra03').style.left = xleft + 240; document.getElementById('divletra03').style.top = ytop + 396; document.getElementById('divletra04').style.left = xleft + 240; document.getElementById('divletra04').style.top = ytop + 420; document.getElementById('divletra05').style.left = xleft + 240; document.getElementById('divletra05').style.top = ytop + 444; document.getElementById('divletra06').style.left = xleft + 240; document.getElementById('divletra06').style.top = ytop + 468; document.getElementById('divletra07').style.left = xleft + 240; document.getElementById('divletra07').style.top = ytop + 492; document.getElementById('divletra08').style.left = xleft + 240; document.getElementById('divletra08').style.top = ytop + 516; document.getElementById('divverb01').style.left = xleft + 264; document.getElementById('divverb01').style.top = ytop + 350; document.getElementById('divverb02').style.left = xleft + 264; document.getElementById('divverb02').style.top = ytop + 374; document.getElementById('divverb03').style.left = xleft + 264; document.getElementById('divverb03').style.top = ytop + 396; document.getElementById('divverb04').style.left = xleft + 264; document.getElementById('divverb04').style.top = ytop + 420; document.getElementById('divverb05').style.left = xleft + 264; document.getElementById('divverb05').style.top = ytop + 444; document.getElementById('divverb06').style.left = xleft + 264; document.getElementById('divverb06').style.top = ytop + 468; document.getElementById('divverb07').style.left = xleft + 264; document.getElementById('divverb07').style.top = ytop + 492; document.getElementById('divverb08').style.left = xleft + 264; document.getElementById('divverb08').style.top = ytop + 516; document.getElementById('divform').style.left = xleft + 180; document.getElementById('divform').style.top = ytop + 750; oTargetarray = new Array(); oTargetarray[0] = document.getElementById("divbox01"); oTargetarray[1] = document.getElementById("divbox02"); oTargetarray[2] = document.getElementById("divbox03"); oTargetarray[3] = document.getElementById("divbox04"); oTargetarray[4] = document.getElementById("divbox05"); oTargetarray[5] = document.getElementById("divbox06"); oTargetarray[6] = document.getElementById("divbox07"); oTargetarray[7] = document.getElementById("divbox08"); oTargetarray[8] = document.getElementById("divbox09"); oTargetarray[9] = document.getElementById("divbox10"); oTargetarray[10] = document.getElementById("divbox11"); oTargetarray[11] = document.getElementById("divbox12"); oTargetarray[12] = document.getElementById("divbox13"); oTargetarray[13] = document.getElementById("divbox14"); oTargetarray[14] = document.getElementById("divbox15"); oTargetarray[15] = document.getElementById("divbox16"); oTargetarray[16] = document.getElementById("divbox17"); oTargetarray[17] = document.getElementById("divbox18"); oTargetarray[18] = document.getElementById("divbox19"); oTargetarray[19] = document.getElementById("divbox20"); oTargetarray[20] = document.getElementById("divbox21"); oTargetarray[21] = document.getElementById("divbox22"); oTargetarray[22] = document.getElementById("divbox23"); oTargetarray[23] = document.getElementById("divbox24"); oTargetarray[24] = document.getElementById("divbox25"); oTargetarray[25] = document.getElementById("divbox26"); oTargetarray[26] = document.getElementById("divbox27"); oTargetarray[27] = document.getElementById("divbox28"); oTargetarray[28] = document.getElementById("divbox29"); oTargetarray[29] = document.getElementById("divbox30"); oTargetarray[30] = document.getElementById("divbox31"); oTargetarray[31] = document.getElementById("divbox32"); oTargetarray[32] = document.getElementById("divbox33"); oTargetarray[33] = document.getElementById("divbox34"); oTargetarray[34] = document.getElementById("divbox35"); oTargetarray[35] = document.getElementById("divbox36"); oTargetarray[36] = document.getElementById("divbox37"); oTargetarray[37] = document.getElementById("divbox38"); oTargetarray[38] = document.getElementById("divbox39"); oTargetarray[39] = document.getElementById("divbox40"); oTargetarray[40] = document.getElementById("divbox41"); oTargetarray[41] = document.getElementById("divbox42"); iX01array = new Array(); iX02array = new Array(); iY01array = new Array(); iY02array = new Array(); for(i=0; i<42; i++) { iX01array[i] = oTargetarray[i].offsetLeft; iX02array[i] = iX01array[i] + oTargetarray[i].offsetWidth; iY01array[i] = oTargetarray[i].offsetTop; iY02array[i] = iY01array[i] + oTargetarray[i].offsetHeight; } arraynumber = new Array(); arrayyaesta = new Array(); for (i=0; i<42; i++) { arraynumber[i] = i; arrayyaesta[i] = 0; } oTargetarray2 = new Array(); oTargetarray2[0] = document.getElementById("divbox43"); oTargetarray2[1] = document.getElementById("divbox44"); oTargetarray2[2] = document.getElementById("divbox45"); oTargetarray2[3] = document.getElementById("divbox46"); oTargetarray2[4] = document.getElementById("divbox47"); oTargetarray2[5] = document.getElementById("divbox48"); oTargetarray2[6] = document.getElementById("divbox49"); oTargetarray2[7] = document.getElementById("divbox50"); iX01array2 = new Array(); iX02array2 = new Array(); iY01array2 = new Array(); iY02array2 = new Array(); for(i=0; i<8; i++) { iX01array2[i] = oTargetarray2[i].offsetLeft; iX02array2[i] = iX01array2[i] + oTargetarray2[i].offsetWidth; iY01array2[i] = oTargetarray2[i].offsetTop; iY02array2[i] = iY01array2[i] + oTargetarray2[i].offsetHeight; } arraynumber2 = new Array(); arrayyaesta2 = new Array(); for (i=0; i<8; i++) { arraynumber2[i] = i; arrayyaesta2[i] = 0; } } /* intro01 */ function handleMouseMove01() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro01"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro01 == arraynumber[i]) { arrayyaesta[i] = 0; posintro01 = "undefined"; } } } function handleMouseDown01() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro01"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove01); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp01); } function handleMouseUp01() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove01); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp01); if (isOverDropTarget01(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro01"); for (i=0; i<42; i++) { if (posintro01 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget01(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro01"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro01 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 20; oDiv.style.top = ytop; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro01 */ /* intro02 */ function handleMouseMove02() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro02"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro02 == arraynumber[i]) { arrayyaesta[i] = 0; posintro02 = "undefined"; } } } function handleMouseDown02() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro02"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove02); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp02); } function handleMouseUp02() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove02); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp02); if (isOverDropTarget02(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro02"); for (i=0; i<42; i++) { if (posintro02 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget02(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro02"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro02 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 105; oDiv.style.top = ytop; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro02 */ /* intro03 */ function handleMouseMove03() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro03"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro03 == arraynumber[i]) { arrayyaesta[i] = 0; posintro03 = "undefined"; } } } function handleMouseDown03() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro03"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove03); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp03); } function handleMouseUp03() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove03); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp03); if (isOverDropTarget03(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro03"); for (i=0; i<42; i++) { if (posintro03 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget03(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro03"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro03 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 190; oDiv.style.top = ytop; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro03 */ /* intro04 */ function handleMouseMove04() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro04"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro04 == arraynumber[i]) { arrayyaesta[i] = 0; posintro04 = "undefined"; } } } function handleMouseDown04() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro04"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove04); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp04); } function handleMouseUp04() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove04); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp04); if (isOverDropTarget04(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro04"); for (i=0; i<42; i++) { if (posintro04 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget04(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro04"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro04 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 275; oDiv.style.top = ytop; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro04 */ /* intro05 */ function handleMouseMove05() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro05"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro05 == arraynumber[i]) { arrayyaesta[i] = 0; posintro05 = "undefined"; } } } function handleMouseDown05() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro05"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove05); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp05); } function handleMouseUp05() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove05); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp05); if (isOverDropTarget05(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro05"); for (i=0; i<42; i++) { if (posintro05 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget05(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro05"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro05 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 360; oDiv.style.top = ytop; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro05 */ /* intro06 */ function handleMouseMove06() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro06"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro06 == arraynumber[i]) { arrayyaesta[i] = 0; posintro06 = "undefined"; } } } function handleMouseDown06() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro06"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove06); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp06); } function handleMouseUp06() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove06); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp06); if (isOverDropTarget06(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro06"); for (i=0; i<42; i++) { if (posintro06 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget06(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro06"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro06 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 445; oDiv.style.top = ytop; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro06 */ /* intro07 */ function handleMouseMove07() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro07"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro07 == arraynumber[i]) { arrayyaesta[i] = 0; posintro07 = "undefined"; } } } function handleMouseDown07() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro07"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove07); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp07); } function handleMouseUp07() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove07); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp07); if (isOverDropTarget07(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro07"); for (i=0; i<42; i++) { if (posintro07 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget07(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro07"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro07 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 530; oDiv.style.top = ytop; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro07 */ /* intro08 */ function handleMouseMove08() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro08"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro08 == arraynumber[i]) { arrayyaesta[i] = 0; posintro08 = "undefined"; } } } function handleMouseDown08() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro08"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove08); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp08); } function handleMouseUp08() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove08); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp08); if (isOverDropTarget08(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro08"); for (i=0; i<42; i++) { if (posintro08 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget08(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro08"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro08 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft; oDiv.style.top = ytop + 24; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro08 */ /* intro09 */ function handleMouseMove09() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro09"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro09 == arraynumber[i]) { arrayyaesta[i] = 0; posintro09 = "undefined"; } } } function handleMouseDown09() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro09"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove09); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp09); } function handleMouseUp09() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove09); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp09); if (isOverDropTarget09(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro09"); for (i=0; i<42; i++) { if (posintro09 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget09(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro09"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro09 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 85; oDiv.style.top = ytop + 24; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro09 */ /* intro10 */ function handleMouseMove10() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro10"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro10 == arraynumber[i]) { arrayyaesta[i] = 0; posintro10 = "undefined"; } } } function handleMouseDown10() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro10"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove10); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp10); } function handleMouseUp10() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove10); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp10); if (isOverDropTarget10(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro10"); for (i=0; i<42; i++) { if (posintro10 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget10(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro10"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro10 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 170; oDiv.style.top = ytop + 24; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro10 */ /* intro11 */ function handleMouseMove11() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro11"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro11 == arraynumber[i]) { arrayyaesta[i] = 0; posintro11 = "undefined"; } } } function handleMouseDown11() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro11"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove11); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp11); } function handleMouseUp11() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove11); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp11); if (isOverDropTarget11(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro11"); for (i=0; i<42; i++) { if (posintro11 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget11(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro11"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro11 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 255; oDiv.style.top = ytop + 24; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro11 */ /* intro12 */ function handleMouseMove12() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro12"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro12 == arraynumber[i]) { arrayyaesta[i] = 0; posintro12 = "undefined"; } } } function handleMouseDown12() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro12"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove12); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp12); } function handleMouseUp12() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove12); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp12); if (isOverDropTarget12(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro12"); for (i=0; i<42; i++) { if (posintro12 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget12(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro12"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro12 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 340; oDiv.style.top = ytop + 24; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro12 */ /* intro13 */ function handleMouseMove13() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro13"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro13 == arraynumber[i]) { arrayyaesta[i] = 0; posintro13 = "undefined"; } } } function handleMouseDown13() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro13"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove13); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp13); } function handleMouseUp13() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove13); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp13); if (isOverDropTarget13(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro13"); for (i=0; i<42; i++) { if (posintro13 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget13(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro13"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro13 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 425; oDiv.style.top = ytop + 24; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro13 */ /* intro14 */ function handleMouseMove14() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro14"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro14 == arraynumber[i]) { arrayyaesta[i] = 0; posintro14 = "undefined"; } } } function handleMouseDown14() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro14"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove14); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp14); } function handleMouseUp14() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove14); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp14); if (isOverDropTarget14(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro14"); for (i=0; i<42; i++) { if (posintro14 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget14(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro14"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro14 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 510; oDiv.style.top = ytop + 24; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro14 */ /* intro15 */ function handleMouseMove15() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro15"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro15 == arraynumber[i]) { arrayyaesta[i] = 0; posintro15 = "undefined"; } } } function handleMouseDown15() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro15"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove15); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp15); } function handleMouseUp15() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove15); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp15); if (isOverDropTarget15(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro15"); for (i=0; i<42; i++) { if (posintro15 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget15(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro15"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro15 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 20; oDiv.style.top = ytop + 48; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro15 */ /* intro16 */ function handleMouseMove16() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro16"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro16 == arraynumber[i]) { arrayyaesta[i] = 0; posintro16 = "undefined"; } } } function handleMouseDown16() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro16"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove16); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp16); } function handleMouseUp16() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove16); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp16); if (isOverDropTarget16(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro16"); for (i=0; i<42; i++) { if (posintro16 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget16(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro16"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro16 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 105; oDiv.style.top = ytop + 48; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro16 */ /* intro17 */ function handleMouseMove17() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro17"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro17 == arraynumber[i]) { arrayyaesta[i] = 0; posintro17 = "undefined"; } } } function handleMouseDown17() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro17"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove17); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp17); } function handleMouseUp17() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove17); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp17); if (isOverDropTarget17(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro17"); for (i=0; i<42; i++) { if (posintro17 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget17(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro17"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro17 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 190; oDiv.style.top = ytop + 48; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro17 */ /* intro18 */ function handleMouseMove18() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro18"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro18 == arraynumber[i]) { arrayyaesta[i] = 0; posintro18 = "undefined"; } } } function handleMouseDown18() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro18"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove18); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp18); } function handleMouseUp18() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove18); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp18); if (isOverDropTarget18(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro18"); for (i=0; i<42; i++) { if (posintro18 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget18(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro18"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro18 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 275; oDiv.style.top = ytop + 48; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro18 */ /* intro19 */ function handleMouseMove19() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro19"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro19 == arraynumber[i]) { arrayyaesta[i] = 0; posintro19 = "undefined"; } } } function handleMouseDown19() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro19"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove19); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp19); } function handleMouseUp19() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove19); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp19); if (isOverDropTarget19(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro19"); for (i=0; i<42; i++) { if (posintro19 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget19(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro19"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro19 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 360; oDiv.style.top = ytop + 48; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro19 */ /* intro20 */ function handleMouseMove20() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro20"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro20 == arraynumber[i]) { arrayyaesta[i] = 0; posintro20 = "undefined"; } } } function handleMouseDown20() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro20"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove20); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp20); } function handleMouseUp20() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove20); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp20); if (isOverDropTarget20(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro20"); for (i=0; i<42; i++) { if (posintro20 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget20(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro20"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro20 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 445; oDiv.style.top = ytop + 48; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro20 */ /* intro21 */ function handleMouseMove21() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro21"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro21 == arraynumber[i]) { arrayyaesta[i] = 0; posintro21 = "undefined"; } } } function handleMouseDown21() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro21"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove21); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp21); } function handleMouseUp21() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove21); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp21); if (isOverDropTarget21(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro21"); for (i=0; i<42; i++) { if (posintro21 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget21(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro21"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro21 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 530; oDiv.style.top = ytop + 48; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro21 */ /* intro22 */ function handleMouseMove22() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro22"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro22 == arraynumber[i]) { arrayyaesta[i] = 0; posintro22 = "undefined"; } } } function handleMouseDown22() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro22"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove22); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp22); } function handleMouseUp22() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove22); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp22); if (isOverDropTarget22(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro22"); for (i=0; i<42; i++) { if (posintro22 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget22(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro22"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro22 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft; oDiv.style.top = ytop + 72; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro22 */ /* intro23 */ function handleMouseMove23() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro23"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro23 == arraynumber[i]) { arrayyaesta[i] = 0; posintro23 = "undefined"; } } } function handleMouseDown23() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro23"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove23); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp23); } function handleMouseUp23() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove23); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp23); if (isOverDropTarget23(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro23"); for (i=0; i<42; i++) { if (posintro23 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget23(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro23"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro23 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 85; oDiv.style.top = ytop + 72; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro23 */ /* intro24 */ function handleMouseMove24() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro24"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<42; i++) { if (posintro24 == arraynumber[i]) { arrayyaesta[i] = 0; posintro24 = "undefined"; } } } function handleMouseDown24() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divintro24"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove24); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp24); } function handleMouseUp24() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove24); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp24); if (isOverDropTarget24(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divintro24"); for (i=0; i<42; i++) { if (posintro24 == arraynumber[i]) { arrayyaesta[i] = 1; oDiv.style.left = oTargetarray[i].offsetLeft; oDiv.style.top = oTargetarray[i].offsetTop; } } } } function isOverDropTarget24(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divintro24"); var elegido = 0; for (i=0; i<42; i++) { if (iX >= iX01array[i] && iX <= iX02array[i] && iY >= iY01array[i] && iY <= iY02array[i] && arrayyaesta[i] == 0) { tocados = tocados + 1; posintro24 = arraynumber[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 170; oDiv.style.top = ytop + 72; } return ( (iX >= iX01array[0] && iX <= iX02array[0] && iY >= iY01array[0] && iY <= iY02array[0] && arrayyaesta[0] == 0) || (iX >= iX01array[1] && iX <= iX02array[1] && iY >= iY01array[1] && iY <= iY02array[1] && arrayyaesta[1] == 0) || (iX >= iX01array[2] && iX <= iX02array[2] && iY >= iY01array[2] && iY <= iY02array[2] && arrayyaesta[2] == 0) || (iX >= iX01array[3] && iX <= iX02array[3] && iY >= iY01array[3] && iY <= iY02array[3] && arrayyaesta[3] == 0) || (iX >= iX01array[4] && iX <= iX02array[4] && iY >= iY01array[4] && iY <= iY02array[4] && arrayyaesta[4] == 0) || (iX >= iX01array[5] && iX <= iX02array[5] && iY >= iY01array[5] && iY <= iY02array[5] && arrayyaesta[5] == 0) || (iX >= iX01array[6] && iX <= iX02array[6] && iY >= iY01array[6] && iY <= iY02array[6] && arrayyaesta[6] == 0) || (iX >= iX01array[7] && iX <= iX02array[7] && iY >= iY01array[7] && iY <= iY02array[7] && arrayyaesta[7] == 0) || (iX >= iX01array[8] && iX <= iX02array[8] && iY >= iY01array[8] && iY <= iY02array[8] && arrayyaesta[8] == 0) || (iX >= iX01array[9] && iX <= iX02array[9] && iY >= iY01array[9] && iY <= iY02array[9] && arrayyaesta[9] == 0) || (iX >= iX01array[10] && iX <= iX02array[10] && iY >= iY01array[10] && iY <= iY02array[10] && arrayyaesta[10] == 0) || (iX >= iX01array[11] && iX <= iX02array[11] && iY >= iY01array[11] && iY <= iY02array[11] && arrayyaesta[11] == 0) || (iX >= iX01array[12] && iX <= iX02array[12] && iY >= iY01array[12] && iY <= iY02array[12] && arrayyaesta[12] == 0) || (iX >= iX01array[13] && iX <= iX02array[13] && iY >= iY01array[13] && iY <= iY02array[13] && arrayyaesta[13] == 0) || (iX >= iX01array[14] && iX <= iX02array[14] && iY >= iY01array[14] && iY <= iY02array[14] && arrayyaesta[14] == 0) || (iX >= iX01array[15] && iX <= iX02array[15] && iY >= iY01array[15] && iY <= iY02array[15] && arrayyaesta[15] == 0) || (iX >= iX01array[16] && iX <= iX02array[16] && iY >= iY01array[16] && iY <= iY02array[16] && arrayyaesta[16] == 0) || (iX >= iX01array[17] && iX <= iX02array[17] && iY >= iY01array[17] && iY <= iY02array[17] && arrayyaesta[17] == 0) || (iX >= iX01array[18] && iX <= iX02array[18] && iY >= iY01array[18] && iY <= iY02array[18] && arrayyaesta[18] == 0) || (iX >= iX01array[19] && iX <= iX02array[19] && iY >= iY01array[19] && iY <= iY02array[19] && arrayyaesta[19] == 0) || (iX >= iX01array[20] && iX <= iX02array[20] && iY >= iY01array[20] && iY <= iY02array[20] && arrayyaesta[20] == 0) || (iX >= iX01array[21] && iX <= iX02array[21] && iY >= iY01array[21] && iY <= iY02array[21] && arrayyaesta[21] == 0) || (iX >= iX01array[22] && iX <= iX02array[22] && iY >= iY01array[22] && iY <= iY02array[22] && arrayyaesta[22] == 0) || (iX >= iX01array[23] && iX <= iX02array[23] && iY >= iY01array[23] && iY <= iY02array[23] && arrayyaesta[23] == 0) || (iX >= iX01array[24] && iX <= iX02array[24] && iY >= iY01array[24] && iY <= iY02array[24] && arrayyaesta[24] == 0) || (iX >= iX01array[25] && iX <= iX02array[25] && iY >= iY01array[25] && iY <= iY02array[25] && arrayyaesta[25] == 0) || (iX >= iX01array[26] && iX <= iX02array[26] && iY >= iY01array[26] && iY <= iY02array[26] && arrayyaesta[26] == 0) || (iX >= iX01array[27] && iX <= iX02array[27] && iY >= iY01array[27] && iY <= iY02array[27] && arrayyaesta[27] == 0) || (iX >= iX01array[28] && iX <= iX02array[28] && iY >= iY01array[28] && iY <= iY02array[28] && arrayyaesta[28] == 0) || (iX >= iX01array[29] && iX <= iX02array[29] && iY >= iY01array[29] && iY <= iY02array[29] && arrayyaesta[29] == 0) || (iX >= iX01array[30] && iX <= iX02array[30] && iY >= iY01array[30] && iY <= iY02array[30] && arrayyaesta[30] == 0) || (iX >= iX01array[31] && iX <= iX02array[31] && iY >= iY01array[31] && iY <= iY02array[31] && arrayyaesta[31] == 0) || (iX >= iX01array[32] && iX <= iX02array[32] && iY >= iY01array[32] && iY <= iY02array[32] && arrayyaesta[32] == 0) || (iX >= iX01array[33] && iX <= iX02array[33] && iY >= iY01array[33] && iY <= iY02array[33] && arrayyaesta[33] == 0) || (iX >= iX01array[34] && iX <= iX02array[34] && iY >= iY01array[34] && iY <= iY02array[34] && arrayyaesta[34] == 0) || (iX >= iX01array[35] && iX <= iX02array[35] && iY >= iY01array[35] && iY <= iY02array[35] && arrayyaesta[35] == 0) || (iX >= iX01array[36] && iX <= iX02array[36] && iY >= iY01array[36] && iY <= iY02array[36] && arrayyaesta[36] == 0) || (iX >= iX01array[37] && iX <= iX02array[37] && iY >= iY01array[37] && iY <= iY02array[37] && arrayyaesta[37] == 0) || (iX >= iX01array[38] && iX <= iX02array[38] && iY >= iY01array[38] && iY <= iY02array[38] && arrayyaesta[38] == 0) || (iX >= iX01array[39] && iX <= iX02array[39] && iY >= iY01array[39] && iY <= iY02array[39] && arrayyaesta[39] == 0) || (iX >= iX01array[40] && iX <= iX02array[40] && iY >= iY01array[40] && iY <= iY02array[40] && arrayyaesta[40] == 0) || (iX >= iX01array[41] && iX <= iX02array[41] && iY >= iY01array[41] && iY <= iY02array[41] && arrayyaesta[41] == 0) ); } /* fin intro24 */ /* verb01 */ function handleMouseMove25() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb01"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<8; i++) { if (posverb01 == arraynumber2[i]) { arrayyaesta2[i] = 0; posverb01 = "undefined"; } } } function handleMouseDown25() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb01"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove25); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp25); } function handleMouseUp25() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove25); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp25); if (isOverDropTarget25(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divverb01"); for (i=0; i<8; i++) { if (posverb01 == arraynumber2[i]) { arrayyaesta2[i] = 1; oDiv.style.left = oTargetarray2[i].offsetLeft; oDiv.style.top = oTargetarray2[i].offsetTop; } } } } function isOverDropTarget25(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divverb01"); var elegido = 0; for (i=0; i<8; i++) { if (iX >= iX01array2[i] && iX <= iX02array2[i] && iY >= iY01array2[i] && iY <= iY02array2[i] && arrayyaesta2[i] == 0) { tocados = tocados + 1; posverb01 = arraynumber2[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 264; oDiv.style.top = ytop + 350; } return ( (iX >= iX01array2[0] && iX <= iX02array2[0] && iY >= iY01array2[0] && iY <= iY02array2[0] && arrayyaesta2[0] == 0) || (iX >= iX01array2[1] && iX <= iX02array2[1] && iY >= iY01array2[1] && iY <= iY02array2[1] && arrayyaesta2[1] == 0) || (iX >= iX01array2[2] && iX <= iX02array2[2] && iY >= iY01array2[2] && iY <= iY02array2[2] && arrayyaesta2[2] == 0) || (iX >= iX01array2[3] && iX <= iX02array2[3] && iY >= iY01array2[3] && iY <= iY02array2[3] && arrayyaesta2[3] == 0) || (iX >= iX01array2[4] && iX <= iX02array2[4] && iY >= iY01array2[4] && iY <= iY02array2[4] && arrayyaesta2[4] == 0) || (iX >= iX01array2[5] && iX <= iX02array2[5] && iY >= iY01array2[5] && iY <= iY02array2[5] && arrayyaesta2[5] == 0) || (iX >= iX01array2[6] && iX <= iX02array2[6] && iY >= iY01array2[6] && iY <= iY02array2[6] && arrayyaesta2[6] == 0) || (iX >= iX01array2[7] && iX <= iX02array2[7] && iY >= iY01array2[7] && iY <= iY02array2[7] && arrayyaesta2[7] == 0) ); } /* fin verb01 */ /* verb02 */ function handleMouseMove26() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb02"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<8; i++) { if (posverb02 == arraynumber2[i]) { arrayyaesta2[i] = 0; posverb02 = "undefined"; } } } function handleMouseDown26() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb02"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove26); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp26); } function handleMouseUp26() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove26); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp26); if (isOverDropTarget26(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divverb02"); for (i=0; i<8; i++) { if (posverb02 == arraynumber2[i]) { arrayyaesta2[i] = 1; oDiv.style.left = oTargetarray2[i].offsetLeft; oDiv.style.top = oTargetarray2[i].offsetTop; } } } } function isOverDropTarget26(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divverb02"); var elegido = 0; for (i=0; i<8; i++) { if (iX >= iX01array2[i] && iX <= iX02array2[i] && iY >= iY01array2[i] && iY <= iY02array2[i] && arrayyaesta2[i] == 0) { tocados = tocados + 1; posverb02 = arraynumber2[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 264; oDiv.style.top = ytop + 374; } return ( (iX >= iX01array2[0] && iX <= iX02array2[0] && iY >= iY01array2[0] && iY <= iY02array2[0] && arrayyaesta2[0] == 0) || (iX >= iX01array2[1] && iX <= iX02array2[1] && iY >= iY01array2[1] && iY <= iY02array2[1] && arrayyaesta2[1] == 0) || (iX >= iX01array2[2] && iX <= iX02array2[2] && iY >= iY01array2[2] && iY <= iY02array2[2] && arrayyaesta2[2] == 0) || (iX >= iX01array2[3] && iX <= iX02array2[3] && iY >= iY01array2[3] && iY <= iY02array2[3] && arrayyaesta2[3] == 0) || (iX >= iX01array2[4] && iX <= iX02array2[4] && iY >= iY01array2[4] && iY <= iY02array2[4] && arrayyaesta2[4] == 0) || (iX >= iX01array2[5] && iX <= iX02array2[5] && iY >= iY01array2[5] && iY <= iY02array2[5] && arrayyaesta2[5] == 0) || (iX >= iX01array2[6] && iX <= iX02array2[6] && iY >= iY01array2[6] && iY <= iY02array2[6] && arrayyaesta2[6] == 0) || (iX >= iX01array2[7] && iX <= iX02array2[7] && iY >= iY01array2[7] && iY <= iY02array2[7] && arrayyaesta2[7] == 0) ); } /* fin verb02 */ /* verb03 */ function handleMouseMove27() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb03"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<8; i++) { if (posverb03 == arraynumber2[i]) { arrayyaesta2[i] = 0; posverb03 = "undefined"; } } } function handleMouseDown27() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb03"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove27); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp27); } function handleMouseUp27() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove27); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp27); if (isOverDropTarget27(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divverb03"); for (i=0; i<8; i++) { if (posverb03 == arraynumber2[i]) { arrayyaesta2[i] = 1; oDiv.style.left = oTargetarray2[i].offsetLeft; oDiv.style.top = oTargetarray2[i].offsetTop; } } } } function isOverDropTarget27(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divverb03"); var elegido = 0; for (i=0; i<8; i++) { if (iX >= iX01array2[i] && iX <= iX02array2[i] && iY >= iY01array2[i] && iY <= iY02array2[i] && arrayyaesta2[i] == 0) { tocados = tocados + 1; posverb03 = arraynumber2[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 264; oDiv.style.top = ytop + 396; } return ( (iX >= iX01array2[0] && iX <= iX02array2[0] && iY >= iY01array2[0] && iY <= iY02array2[0] && arrayyaesta2[0] == 0) || (iX >= iX01array2[1] && iX <= iX02array2[1] && iY >= iY01array2[1] && iY <= iY02array2[1] && arrayyaesta2[1] == 0) || (iX >= iX01array2[2] && iX <= iX02array2[2] && iY >= iY01array2[2] && iY <= iY02array2[2] && arrayyaesta2[2] == 0) || (iX >= iX01array2[3] && iX <= iX02array2[3] && iY >= iY01array2[3] && iY <= iY02array2[3] && arrayyaesta2[3] == 0) || (iX >= iX01array2[4] && iX <= iX02array2[4] && iY >= iY01array2[4] && iY <= iY02array2[4] && arrayyaesta2[4] == 0) || (iX >= iX01array2[5] && iX <= iX02array2[5] && iY >= iY01array2[5] && iY <= iY02array2[5] && arrayyaesta2[5] == 0) || (iX >= iX01array2[6] && iX <= iX02array2[6] && iY >= iY01array2[6] && iY <= iY02array2[6] && arrayyaesta2[6] == 0) || (iX >= iX01array2[7] && iX <= iX02array2[7] && iY >= iY01array2[7] && iY <= iY02array2[7] && arrayyaesta2[7] == 0) ); } /* fin verb03 */ /* verb04 */ function handleMouseMove28() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb04"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<8; i++) { if (posverb04 == arraynumber2[i]) { arrayyaesta2[i] = 0; posverb04 = "undefined"; } } } function handleMouseDown28() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb04"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove28); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp28); } function handleMouseUp28() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove28); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp28); if (isOverDropTarget28(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divverb04"); for (i=0; i<8; i++) { if (posverb04 == arraynumber2[i]) { arrayyaesta2[i] = 1; oDiv.style.left = oTargetarray2[i].offsetLeft; oDiv.style.top = oTargetarray2[i].offsetTop; } } } } function isOverDropTarget28(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divverb04"); var elegido = 0; for (i=0; i<8; i++) { if (iX >= iX01array2[i] && iX <= iX02array2[i] && iY >= iY01array2[i] && iY <= iY02array2[i] && arrayyaesta2[i] == 0) { tocados = tocados + 1; posverb04 = arraynumber2[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 264; oDiv.style.top = ytop + 420; } return ( (iX >= iX01array2[0] && iX <= iX02array2[0] && iY >= iY01array2[0] && iY <= iY02array2[0] && arrayyaesta2[0] == 0) || (iX >= iX01array2[1] && iX <= iX02array2[1] && iY >= iY01array2[1] && iY <= iY02array2[1] && arrayyaesta2[1] == 0) || (iX >= iX01array2[2] && iX <= iX02array2[2] && iY >= iY01array2[2] && iY <= iY02array2[2] && arrayyaesta2[2] == 0) || (iX >= iX01array2[3] && iX <= iX02array2[3] && iY >= iY01array2[3] && iY <= iY02array2[3] && arrayyaesta2[3] == 0) || (iX >= iX01array2[4] && iX <= iX02array2[4] && iY >= iY01array2[4] && iY <= iY02array2[4] && arrayyaesta2[4] == 0) || (iX >= iX01array2[5] && iX <= iX02array2[5] && iY >= iY01array2[5] && iY <= iY02array2[5] && arrayyaesta2[5] == 0) || (iX >= iX01array2[6] && iX <= iX02array2[6] && iY >= iY01array2[6] && iY <= iY02array2[6] && arrayyaesta2[6] == 0) || (iX >= iX01array2[7] && iX <= iX02array2[7] && iY >= iY01array2[7] && iY <= iY02array2[7] && arrayyaesta2[7] == 0) ); } /* fin verb04 */ /* verb05 */ function handleMouseMove29() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb05"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<8; i++) { if (posverb05 == arraynumber2[i]) { arrayyaesta2[i] = 0; posverb05 = "undefined"; } } } function handleMouseDown29() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb05"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove29); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp29); } function handleMouseUp29() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove29); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp29); if (isOverDropTarget29(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divverb05"); for (i=0; i<8; i++) { if (posverb05 == arraynumber2[i]) { arrayyaesta2[i] = 1; oDiv.style.left = oTargetarray2[i].offsetLeft; oDiv.style.top = oTargetarray2[i].offsetTop; } } } } function isOverDropTarget29(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divverb05"); var elegido = 0; for (i=0; i<8; i++) { if (iX >= iX01array2[i] && iX <= iX02array2[i] && iY >= iY01array2[i] && iY <= iY02array2[i] && arrayyaesta2[i] == 0) { tocados = tocados + 1; posverb05 = arraynumber2[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 264; oDiv.style.top = ytop + 444; } return ( (iX >= iX01array2[0] && iX <= iX02array2[0] && iY >= iY01array2[0] && iY <= iY02array2[0] && arrayyaesta2[0] == 0) || (iX >= iX01array2[1] && iX <= iX02array2[1] && iY >= iY01array2[1] && iY <= iY02array2[1] && arrayyaesta2[1] == 0) || (iX >= iX01array2[2] && iX <= iX02array2[2] && iY >= iY01array2[2] && iY <= iY02array2[2] && arrayyaesta2[2] == 0) || (iX >= iX01array2[3] && iX <= iX02array2[3] && iY >= iY01array2[3] && iY <= iY02array2[3] && arrayyaesta2[3] == 0) || (iX >= iX01array2[4] && iX <= iX02array2[4] && iY >= iY01array2[4] && iY <= iY02array2[4] && arrayyaesta2[4] == 0) || (iX >= iX01array2[5] && iX <= iX02array2[5] && iY >= iY01array2[5] && iY <= iY02array2[5] && arrayyaesta2[5] == 0) || (iX >= iX01array2[6] && iX <= iX02array2[6] && iY >= iY01array2[6] && iY <= iY02array2[6] && arrayyaesta2[6] == 0) || (iX >= iX01array2[7] && iX <= iX02array2[7] && iY >= iY01array2[7] && iY <= iY02array2[7] && arrayyaesta2[7] == 0) ); } /* fin verb05 */ /* verb06 */ function handleMouseMove30() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb06"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<8; i++) { if (posverb06 == arraynumber2[i]) { arrayyaesta2[i] = 0; posverb06 = "undefined"; } } } function handleMouseDown30() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb06"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove30); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp30); } function handleMouseUp30() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove30); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp30); if (isOverDropTarget30(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divverb06"); for (i=0; i<8; i++) { if (posverb06 == arraynumber2[i]) { arrayyaesta2[i] = 1; oDiv.style.left = oTargetarray2[i].offsetLeft; oDiv.style.top = oTargetarray2[i].offsetTop; } } } } function isOverDropTarget30(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divverb06"); var elegido = 0; for (i=0; i<8; i++) { if (iX >= iX01array2[i] && iX <= iX02array2[i] && iY >= iY01array2[i] && iY <= iY02array2[i] && arrayyaesta2[i] == 0) { tocados = tocados + 1; posverb06 = arraynumber2[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 264; oDiv.style.top = ytop + 468; } return ( (iX >= iX01array2[0] && iX <= iX02array2[0] && iY >= iY01array2[0] && iY <= iY02array2[0] && arrayyaesta2[0] == 0) || (iX >= iX01array2[1] && iX <= iX02array2[1] && iY >= iY01array2[1] && iY <= iY02array2[1] && arrayyaesta2[1] == 0) || (iX >= iX01array2[2] && iX <= iX02array2[2] && iY >= iY01array2[2] && iY <= iY02array2[2] && arrayyaesta2[2] == 0) || (iX >= iX01array2[3] && iX <= iX02array2[3] && iY >= iY01array2[3] && iY <= iY02array2[3] && arrayyaesta2[3] == 0) || (iX >= iX01array2[4] && iX <= iX02array2[4] && iY >= iY01array2[4] && iY <= iY02array2[4] && arrayyaesta2[4] == 0) || (iX >= iX01array2[5] && iX <= iX02array2[5] && iY >= iY01array2[5] && iY <= iY02array2[5] && arrayyaesta2[5] == 0) || (iX >= iX01array2[6] && iX <= iX02array2[6] && iY >= iY01array2[6] && iY <= iY02array2[6] && arrayyaesta2[6] == 0) || (iX >= iX01array2[7] && iX <= iX02array2[7] && iY >= iY01array2[7] && iY <= iY02array2[7] && arrayyaesta2[7] == 0) ); } /* fin verb06 */ /* verb07 */ function handleMouseMove31() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb07"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<8; i++) { if (posverb07 == arraynumber2[i]) { arrayyaesta2[i] = 0; posverb07 = "undefined"; } } } function handleMouseDown31() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb07"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove31); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp31); } function handleMouseUp31() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove31); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp31); if (isOverDropTarget31(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divverb07"); for (i=0; i<8; i++) { if (posverb07 == arraynumber2[i]) { arrayyaesta2[i] = 1; oDiv.style.left = oTargetarray2[i].offsetLeft; oDiv.style.top = oTargetarray2[i].offsetTop; } } } } function isOverDropTarget31(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divverb07"); var elegido = 0; for (i=0; i<8; i++) { if (iX >= iX01array2[i] && iX <= iX02array2[i] && iY >= iY01array2[i] && iY <= iY02array2[i] && arrayyaesta2[i] == 0) { tocados = tocados + 1; posverb07 = arraynumber2[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 264; oDiv.style.top = ytop + 492; } return ( (iX >= iX01array2[0] && iX <= iX02array2[0] && iY >= iY01array2[0] && iY <= iY02array2[0] && arrayyaesta2[0] == 0) || (iX >= iX01array2[1] && iX <= iX02array2[1] && iY >= iY01array2[1] && iY <= iY02array2[1] && arrayyaesta2[1] == 0) || (iX >= iX01array2[2] && iX <= iX02array2[2] && iY >= iY01array2[2] && iY <= iY02array2[2] && arrayyaesta2[2] == 0) || (iX >= iX01array2[3] && iX <= iX02array2[3] && iY >= iY01array2[3] && iY <= iY02array2[3] && arrayyaesta2[3] == 0) || (iX >= iX01array2[4] && iX <= iX02array2[4] && iY >= iY01array2[4] && iY <= iY02array2[4] && arrayyaesta2[4] == 0) || (iX >= iX01array2[5] && iX <= iX02array2[5] && iY >= iY01array2[5] && iY <= iY02array2[5] && arrayyaesta2[5] == 0) || (iX >= iX01array2[6] && iX <= iX02array2[6] && iY >= iY01array2[6] && iY <= iY02array2[6] && arrayyaesta2[6] == 0) || (iX >= iX01array2[7] && iX <= iX02array2[7] && iY >= iY01array2[7] && iY <= iY02array2[7] && arrayyaesta2[7] == 0) ); } /* fin verb07 */ /* verb08 */ function handleMouseMove32() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb08"); oDiv.style.left = oEvent.clientX - iDiffX; oDiv.style.top = oEvent.clientY - iDiffY; tocados = 0; for (i=0; i<8; i++) { if (posverb08 == arraynumber2[i]) { arrayyaesta2[i] = 0; posverb08 = "undefined"; } } } function handleMouseDown32() { var oEvent = EventUtil.getEvent(); var oDiv = document.getElementById("divverb08"); iDiffX = oEvent.clientX - oDiv.offsetLeft; iDiffY = oEvent.clientY - oDiv.offsetTop; EventUtil.addEventHandler(document.body, "mousemove", handleMouseMove32); EventUtil.addEventHandler(document.body, "mouseup", handleMouseUp32); } function handleMouseUp32() { var oEvent = EventUtil.getEvent(); EventUtil.removeEventHandler(document.body, "mousemove", handleMouseMove32); EventUtil.removeEventHandler(document.body, "mouseup", handleMouseUp32); if (isOverDropTarget32(oEvent.clientX,oEvent.clientY)) { var oDiv = document.getElementById("divverb08"); for (i=0; i<8; i++) { if (posverb08 == arraynumber2[i]) { arrayyaesta2[i] = 1; oDiv.style.left = oTargetarray2[i].offsetLeft; oDiv.style.top = oTargetarray2[i].offsetTop; } } } } function isOverDropTarget32(iX, iY) { iX = iX + document.body.scrollLeft; iY = iY + document.body.scrollTop; /* si no se pone en ningún cuadrado */ var oDiv = document.getElementById("divverb08"); var elegido = 0; for (i=0; i<8; i++) { if (iX >= iX01array2[i] && iX <= iX02array2[i] && iY >= iY01array2[i] && iY <= iY02array2[i] && arrayyaesta2[i] == 0) { tocados = tocados + 1; posverb08 = arraynumber2[i]; elegido = i; } } if (tocados == 0) { oDiv.style.left = xleft + 264; oDiv.style.top = ytop + 516; } return ( (iX >= iX01array2[0] && iX <= iX02array2[0] && iY >= iY01array2[0] && iY <= iY02array2[0] && arrayyaesta2[0] == 0) || (iX >= iX01array2[1] && iX <= iX02array2[1] && iY >= iY01array2[1] && iY <= iY02array2[1] && arrayyaesta2[1] == 0) || (iX >= iX01array2[2] && iX <= iX02array2[2] && iY >= iY01array2[2] && iY <= iY02array2[2] && arrayyaesta2[2] == 0) || (iX >= iX01array2[3] && iX <= iX02array2[3] && iY >= iY01array2[3] && iY <= iY02array2[3] && arrayyaesta2[3] == 0) || (iX >= iX01array2[4] && iX <= iX02array2[4] && iY >= iY01array2[4] && iY <= iY02array2[4] && arrayyaesta2[4] == 0) || (iX >= iX01array2[5] && iX <= iX02array2[5] && iY >= iY01array2[5] && iY <= iY02array2[5] && arrayyaesta2[5] == 0) || (iX >= iX01array2[6] && iX <= iX02array2[6] && iY >= iY01array2[6] && iY <= iY02array2[6] && arrayyaesta2[6] == 0) || (iX >= iX01array2[7] && iX <= iX02array2[7] && iY >= iY01array2[7] && iY <= iY02array2[7] && arrayyaesta2[7] == 0) ); } /* fin verb08 */ function testIt() { document.f1.posintro01.value = posintro01; document.f1.posintro02.value = posintro02; document.f1.posintro03.value = posintro03; document.f1.posintro04.value = posintro04; document.f1.posintro05.value = posintro05; document.f1.posintro06.value = posintro06; document.f1.posintro07.value = posintro07; document.f1.posintro08.value = posintro08; document.f1.posintro09.value = posintro09; document.f1.posintro10.value = posintro10; document.f1.posintro11.value = posintro11; document.f1.posintro12.value = posintro12; document.f1.posintro13.value = posintro13; document.f1.posintro14.value = posintro14; document.f1.posintro15.value = posintro15; document.f1.posintro16.value = posintro16; document.f1.posintro17.value = posintro17; document.f1.posintro18.value = posintro18; document.f1.posintro19.value = posintro19; document.f1.posintro20.value = posintro20; document.f1.posintro21.value = posintro21; document.f1.posintro22.value = posintro22; document.f1.posintro23.value = posintro23; document.f1.posintro24.value = posintro24; document.f1.posverb01.value = posverb01; document.f1.posverb02.value = posverb02; document.f1.posverb03.value = posverb03; document.f1.posverb04.value = posverb04; document.f1.posverb05.value = posverb05; document.f1.posverb06.value = posverb06; document.f1.posverb07.value = posverb07; document.f1.posverb08.value = posverb08; } </script><script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-42569757-1', 'auto'); ga('send', 'pageview'); </script><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><script type="text/javascript"> if (localStorage.controlcookie>0) { document.getElementById('cookie1').style.bottom = '-50px'; } </script><script type="text/javascript"> function controlcookies() { // si variable no existe se crea (al clicar en Aceptar) localStorage.controlcookie = (localStorage.controlcookie || 0); localStorage.controlcookie++; // incrementamos cuenta de la cookie cookie1.style.display='none'; // Esconde la política de cookies } </script>