function setGenCookie (name, value) { var expdate = new Date (); expdate.setTime (expdate.getTime() + (60*60*1000*24*365) ); document.cookie = name + "=" + escape (value) + "; expires=" + expdate.toGMTString() + ";path=/"; if ( document.cookie.length > 4000 ) confirm( "Warning cookie getting too big, size is :" + document.cookie.length ); } function getGenCookie(Name) { var search = Name + "=" if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset) if (end == -1) end = document.cookie.length return unescape(document.cookie.substring(offset, end)) } } return ""; } function setTempCookie () { document.cookie = "80ClkTemp=" + escape( "1" ) + ";path=/"; if (document.cookie.length == 0) { return false; } return true; } function testTempCookie () { if ( !getTempCookie() ) { document.cookie = "80ClkTemp=" + escape( "0" ) + ";path=/"; if (document.cookie.length == 0) { return false; } } return true; } function clearTempCookie () { document.cookie = "80ClkTemp=" + escape( "0" ) + ";path=/"; if (document.cookie.length == 0) { return false; } return true; } function getTempCookie() { var search = "80ClkTemp=" if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset) if (end == -1) end = document.cookie.length tester = unescape(document.cookie.substring(offset, end)); if ( tester == 1 ) { return true; } else { return false; } } } return false; } function BringItOnHome( ) { if ( clearTempCookie() ) { parent.location.href = "http://www.aroundin80clicks.com/index.htm"; } else { parent.location.href = "http://www.aroundin80clicks.com/index.htm?ho"; } } function SaveTourSpot( num ) { parent.userClicks[ 0 ].lastVisit = num; SaveClickList(); } function SaveClickList() { var newCookie = ""; for ( var sdsd = 0; sdsd <= 80; sdsd++) { aClick = parent.userClicks[sdsd].lastVisit + "¥" + parent.userClicks[sdsd].visitCount + "¥" + parent.userClicks[sdsd].firstVisit + "¥" + parent.userClicks[sdsd].unUsedString + "¥"; if ( sdsd < 80 ) { newCookie = newCookie + aClick + "©"; } else { newCookie = newCookie + aClick; } } setGenCookie ( "_80ClcksTNG_", newCookie); } function RetrieveTourSpot() { aStop = parent.userClicks[ 0 ].lastVisit; if ( ( aStop > 1 ) && ( aStop < 81 ) ) { } else { aStop = 1; } aStop++; aStop--; return aStop; } function MakeUClickList() { for (var i = 0; i <= 80; i++) { this[i] = new UserClick(); } uCookie = getGenCookie( "_80ClcksTNG_" ); if ( uCookie != "" ) { listOfm = uCookie.toString().split( "©" ); for ( var blo = 0; blo < listOfm.length; blo++) { birdData = listOfm[ blo ].split( "¥" ); this[ blo ].lastVisit = birdData[0]; this[ blo ].visitCount = birdData[1]; this[ blo ].firstVisit = birdData[2]; this[ blo ].unUsedString = birdData[3]; } } else { } } function ToggleCamShow() { if ( showingCams ) { showingCams = false; parent.frames[0].location.href = "http://www.aroundin80clicks.com/controls/map.php?ctn=" + curStop; parent.frames[1].location.href = "NNCONTROLS.php?ctn=" + curStop; } else { showingCams = true; parent.frames[0].location.href = tourStops[curStop].url; parent.frames[1].location.href = "NNCONTROLS.php?ctn=" + curStop; } } function moveTour( direction, fromPar) { if ( curStop == "" ) { curStop = RetrieveTourSpot(); } curStop = direction + curStop; keepChecking = true; enterLoungeNow = false; for ( x = 1; x <= 80 && keepChecking; x++ ) { if ( parent.userClicks[ x ].visitCount == 0 ) { keepChecking = false; } } if ( keepChecking && ( parent.userClicks[ 0 ].visitCount == 0 ) ) { parent.location.href = "http://www.aroundin80clicks.com/index.htm?lo"; } else if ( ( curStop < 81 ) && ( curStop > 0 ) ) { beenStarted = true; thisStopStr = parent.tourStops[curStop].mDes; if ( curStop > 1 ) { pastStopStr = parent.tourStops[curStop - 1].mDes; } else { pastStopStr = ""; } if ( curStop < 81 ) { nextStopStr = parent.tourStops[curStop + 1].mDes; } else { nextStopStr = ""; } showingCams = true; var RBnow = new Date(); parent.userClicks[ curStop ].visitCount = parent.userClicks[ curStop ].visitCount + 1; parent.userClicks[ curStop ].lastVisit = ( RBnow.getMonth() + 1 ) + '/' + RBnow.getDate() + '/' + RBnow.getFullYear(); if ( parent.userClicks[ curStop ].firstVisit == "" ) { parent.userClicks[ curStop ].firstVisit = parent.userClicks[ curStop ].lastVisit; } parent.userClicks[ 0 ].lastVisit = curStop; SaveClickList(); if ( fromPar ) window.frames["botttt"].location.href = "controls/vblack.html"; else window.frames["botttt"].location.href = "vblack.html"; } else if ( curStop == 81 ) { parent.location.href = parent.tourStops[curStop].url; } } function delayTopStOn(){ if ( beenStarted ) { parent.frames[0].location.href = "black.html"; } } function delayURLOn(){ if ( beenStarted ) { parent.frames[1].location.href = "NNCONTROLS.php?ctn=" + curStop; } } function delayFrameOn(){ if ( beenStarted ) { if ( !showingCams ) { parent.frames[0].location = "map.html"; } else { parent.frames[0].location.href = parent.tourStops[curStop].url; } } } function UserClick() { this.lastVisit = ""; this.visitCount = 0; this.firstVisit = ""; this.unUsedString = ""; } function makeTourStop( url, desc, creation, locs, locs2) { this.url = url; this.mDes = desc; this.crDate = creation; this.eViewLat = locs; this.eViewLong = locs2; } function makeTour() { this[ 1 ] = new makeTourStop( 'http://webcambiglook.com/newyork.html' , 'New York, New York', 998022619455, 40.75, -73.99 ); this[ 2 ] = new makeTourStop( 'http://www.hyannisholiday.com/harbor.htm' , 'Hyannis, Massachusetts', 1131391525100, 41.6506612999865, -70.2805709838867 ); this[ 3 ] = new makeTourStop( 'http://www.thebostonchannel.com/entertainment/955119/detail.html' , 'Boston, Massachusetts', 998022619455, 42.35, -71.05 ); this[ 4 ] = new makeTourStop( 'http://www.fallsview.com/Stream/PanRefresh.shtml' , 'Ontario, Canada', 1129427086784, 44.06, -78.57 ); this[ 5 ] = new makeTourStop( 'http://www.ozfm.com/skycam.htm' , 'St. Johns, Nfld, Canada', 918969232505, 49.19, -55.09 ); this[ 6 ] = new makeTourStop( 'http://www.gov.pe.ca/islandcam/' , 'Prince Edward Island, Canada', 876000000000, 46.43, -62.85 ); this[ 7 ] = new makeTourStop( 'http://www.montrealcam.com/en-sommaire.html' , 'Montreal, Canada', 879018146402, 45.5, -73.6 ); this[ 8 ] = new makeTourStop( 'http://www2.wlu.edu/web/page/normal/276.html' , 'Lexington, Virginia', 1129427086784, 38.9, -77.01 ); this[ 9 ] = new makeTourStop( 'http://www.bucuticam.com/tarabeach.html' , 'Eagle Beach, Aruba', 1129427086784, 12.32, -70.03 ); this[ 10 ] = new makeTourStop( 'http://www.spiceisle.com/main/webcams/' , 'Saint Georges, Grenada', 1130942692512, 12.1682256773901, -61.67724609375 ); this[ 11 ] = new makeTourStop( 'http://www.snerpa.is/vedur/' , 'Isafjordur, Iceland', 923938087079, 64.08, -21.54 ); this[ 12 ] = new makeTourStop( 'http://www.canaria-spanien.biz/kanaren/maspalomas/webcam.html' , 'Maspalomas, Gran Canaria', 1129427086784, 27.45, -15.34 ); this[ 13 ] = new makeTourStop( 'http://www.nci.ie/ispy/cam2/' , 'Dublin, Ireland', 938658226737, 53.2, -6.1 ); this[ 14 ] = new makeTourStop( 'http://www.camvista.com/scotland/edinburgh/capcity.php3' , 'Edinburgh, Scotland', 998022619455, 78.28, -3.12 ); this[ 15 ] = new makeTourStop( 'http://andorra.sytes.net/webcam.htm' , 'Andorra', 876000000000, 42.5904996105477, 1.4556884765625 ); this[ 16 ] = new makeTourStop( 'http://www.camvista.com/england/london/trafsq.php3' , 'London, UK', 1131156296227, 51.5, 0.07 ); this[ 17 ] = new makeTourStop( 'http://www.cdtinternet.net/modules/tinycontent/index.php?id=23' , 'Madrid, Spain', 876000000000, 43.375, -5.8 ); this[ 18 ] = new makeTourStop( 'http://www.wanadoo.fr/bin/frame.cgi?service=ma_ville&u=http%3A//paris.tourismeville.wanadoo.fr/index.php%3Ftheme%3Daffwebcam%26i' , 'Paris, France', 876000000000, 48.84, 2.34 ); this[ 19 ] = new makeTourStop( 'http://www.overtoom.tv/' , 'Amsterdam, Netherlands', 898020715477, 52.21, 4.55 ); this[ 20 ] = new makeTourStop( 'http://www.montecarloresort.com/en/hints/default.asp' , 'Monte Carlo, Monaco', 1131391113156, 43.7851614278675, 7.63227939605713 ); this[ 21 ] = new makeTourStop( 'http://www.cliff-hotel.de/21_livecams/panorama.php' , 'Rugen, Germany', 998022619455, 54.25, -13.24 ); this[ 22 ] = new makeTourStop( 'http://cam0.firstlink.li/' , 'Schaan, Liechtenstein', 882411494082, 47.1, 9.3 ); this[ 23 ] = new makeTourStop( 'http://www.vardebib.dk/webcam/' , 'Varde, Denmark', 1131390927793, 55.4739890490551, 8.43616962432861 ); this[ 24 ] = new makeTourStop( 'http://lamiawebcam.atspace.com/' , 'Lamia, Greece', 1131156305791, 38.8910328264885, 22.4285888671875 ); this[ 25 ] = new makeTourStop( 'http://info.cyf-kr.edu.pl/kamera/duzy.html' , 'Krakow, Poland', 892828979824, 50, 20 ); this[ 26 ] = new makeTourStop( 'http://www.media-wolf.com/webcam.htm' , 'Lapua, Finland', 1131163486046, 62.9691910424075, 23.0048561096191 ); this[ 27 ] = new makeTourStop( 'http://www.jerseyinsight.co.uk/std1b_1.asp?category=3' , 'Isle of Man', 1131425306383, 54.3167235023346, -4.38105583190918 ); this[ 28 ] = new makeTourStop( 'http://www.robin.no/kielland/naabilde.html' , 'Stavanger City, Norway', 964458193404, 58.58, 5.45 ); this[ 29 ] = new makeTourStop( 'http://www.gellivare.se/webcam/' , 'Tromso, Norway', 876000000000, 59.37, 16.35 ); this[ 30 ] = new makeTourStop( 'http://www.beaird.se/webcam.asp' , 'Goteburg, Sweden', 1131419144509, 57.7135011761148, 11.9805908203125 ); this[ 31 ] = new makeTourStop( 'http://www.heso-com.sk/' , 'Trnava, Slovakia', 998022619455, 48.3772333060431, 17.5884246826172 ); this[ 32 ] = new makeTourStop( 'http://www.fsc.gi/fsc/home.htm' , 'Gibraltar', 1131990850785, 36.125673998536, -5.35137176513672 ); this[ 33 ] = new makeTourStop( 'http://cam1.cnlab-switch.ch/' , 'Zurich, Switzerland', 887000000000, 47.22, 8.33 ); this[ 34 ] = new makeTourStop( 'http://www.webcamera.lv/' , 'Riga, Latvia', 1131421894148, 56.9426333146961, 24.1160202026367 ); this[ 35 ] = new makeTourStop( 'http://www.magwien.gv.at/english/webcam/' , 'Vienna, Austria', 887000000000, 48.15, 16.25 ); this[ 36 ] = new makeTourStop( 'http://www.protask.at/live/live.htm' , 'Dornbirner, Austria', 887000000000, 47.3, 9.4 ); this[ 37 ] = new makeTourStop( 'http://www.4711.com/en/webcam.html' , 'Cologne, Germany', 998022619455, 50.56, 6.57 ); this[ 38 ] = new makeTourStop( 'http://www.esg.de/en/webcam/' , 'Munich, Germany', 1131164645308, 48.136995797267, 11.5755558013916 ); this[ 39 ] = new makeTourStop( 'http://www.standard.cz/Prague/webcam.html' , 'Prague, Czech Republic', 1131255666780, 50.0827008252294, 14.4166374206543 ); this[ 40 ] = new makeTourStop( 'http://www.bit.si/ldvn' , 'Ljubljana, Slovenia', 930579829795, 46.03, 14.34 ); this[ 41 ] = new makeTourStop( 'http://www.irisz.hu/cam/' , 'Budapest, Hungary', 964458193404, 47.3, 19.05 ); this[ 42 ] = new makeTourStop( 'http://webcam.tiszanet.hu' , 'Szeged, Hungary', 898020715477, 46.15, 20.1 ); this[ 43 ] = new makeTourStop( 'http://www.maltavista.net/en/webcam' , 'Msida, Malta', 1131256272426, 35.9005226961458, 14.4869327545166 ); this[ 44 ] = new makeTourStop( 'http://www.comune.torino.it/telecamera/duomo.htm' , 'Torino, Italy', 998289133903, 45.03, 7.4 ); this[ 45 ] = new makeTourStop( 'http://www.africam.com/' , 'Djuma, South Africa', 906138777268, -4.11, 18.21 ); this[ 46 ] = new makeTourStop( 'http://www.dubaitourism.ae/Webcam/default.asp' , 'Dubai, UAE', 1131384121273, 25.2709332055375, 55.3000259399414 ); this[ 47 ] = new makeTourStop( 'http://www.jware.hr/kamera/slika.html' , 'Osijek, Croatia', 964547137144, 45.33, 18.41 ); this[ 48 ] = new makeTourStop( 'http://www.libertas.sm/smora.htm' , 'San Marino', 1131426636051, 44.0587256906061, 12.5679731369019 ); this[ 49 ] = new makeTourStop( 'http://www.inet.co.yu/kamera/' , 'Belgrade, Yugoslavia', 911413608129, 44.5, 20.3 ); this[ 50 ] = new makeTourStop( 'http://www.sukhum.ru/' , 'Sukhum, Georgia', 1131426293295, 43, 41 ); this[ 51 ] = new makeTourStop( 'http://www.arminco.am/livewebcam.html' , 'Yerevan, Armenia', 930579829795, 40.07, 44.27 ); this[ 52 ] = new makeTourStop( 'http://www.starimost.telecom.ba/indexe.php?link=1' , 'Mostar, Bosnia Herzegovina', 1131248833804, 43.3484006826474, 17.8011131286621 ); this[ 53 ] = new makeTourStop( 'http://www.nbdbank.ru/camera.html' , 'Moscow, Russia', 1131081312152, 55.75, 37.59 ); this[ 54 ] = new makeTourStop( 'http://www.wismaonline.com/aboutlivecam.asp' , 'Singapore', 1131424602240, 1.32270506740827, 103.69119644165 ); this[ 55 ] = new makeTourStop( 'http://www.thewall.org/' , 'Jerusalem, Israel', 898020715477, 31.35, 35 ); this[ 56 ] = new makeTourStop( 'http://www.samuicam.com/' , 'Koh Samui, Thailand', 1131257835879, 11.63609606062, 102.568359375 ); this[ 57 ] = new makeTourStop( 'http://www.ds-shanghai.org.cn/webcam/webcam.html' , 'Shanghai, China', 1131077829004, 31.4, 121.5 ); this[ 58 ] = new makeTourStop( 'http://www.us-tec.com/live/index.html' , 'Tokyo, Japan', 1131118799845, 35.6758157402419, 139.819334369575 ); this[ 59 ] = new makeTourStop( 'http://www.sydney-webcam.com/webcam.php' , 'Sydney, Australia', 1131078747605, -33.8645716016701, 151.217193603516 ); this[ 60 ] = new makeTourStop( 'http://www.citynews.co.nz/webcams/' , 'Tauranga, New Zealand', 1131078634497, -37.6755328820508, 176.191692352295 ); this[ 61 ] = new makeTourStop( 'http://www.kilicam.com/' , 'Mt Kilimanjaro,Tanzania', 1131987011740, -7.81984742619256, 36.683349609375 ); this[ 62 ] = new makeTourStop( 'http://www.aad.gov.au/asset/webcams/mawson/default.asp' , 'Mawson, Antarctica', 876000000000, -67.6, 62.8 ); this[ 63 ] = new makeTourStop( 'http://www.wcams.com.br/' , 'Porto Alegre, Brazil', 983326691562, -20.47, -55.22 ); this[ 64 ] = new makeTourStop( 'http://www.casasanblas.com/cuzco-cusco/webcams01.php' , 'Cusco, Peru', 1131423291882, -13.5259324723478, -71.9659423828125 ); this[ 65 ] = new makeTourStop( 'http://www.cybercenter.cl/noticias/livecam.htm' , 'Santiago, Chile', 964547137144, -33.27, -70.4 ); this[ 66 ] = new makeTourStop( 'http://encamara.imagine.com.co/' , 'Bogota, Colombia', 1132032056209, 10.24, -75.17 ); this[ 67 ] = new makeTourStop( 'http://www.pancanal.com/eng/photo/camera-java.html' , 'Miraflores, Panama', 919874688501, 8.19, -78.07 ); this[ 68 ] = new makeTourStop( 'http://integra.terra.com.sv/integra/corporativo/camaraonline.htm' , 'San Salvador, El Salvador', 1131424140632, 13.7022803938331, -89.1949939727783 ); this[ 69 ] = new makeTourStop( 'http://www.puertovallarta.net/interactive/webcam/index.php' , 'Puerto Vallarta, Mexico', 1131164672838, 20.37, -105.15 ); this[ 70 ] = new makeTourStop( 'http://www.mapwest.com/bridgecam_main.html' , 'San Francisco', 1131082611300, 37.7860464413923, -122.427520751953 ); this[ 71 ] = new makeTourStop( 'http://www.rbcm.gov.bc.ca/visit-museum/webcam.html' , 'Victoria, BC, Canada', 923938087079, 48.26, -123.21 ); this[ 72 ] = new makeTourStop( 'http://www.banffgondola.com/cam/' , 'Banff, Alberta', 876000000000, 51.16, -115.6 ); this[ 73 ] = new makeTourStop( 'http://www.numinous.ca/Webcam%20Page.htm' , 'Vancouver, Canada', 1131083918910, 49.2691486909844, -123.190383911133 ); this[ 74 ] = new makeTourStop( 'http://camera.touchngo.com/' , 'Anchorage, Alaska', 876000000000, 61.1667, -149.983 ); this[ 75 ] = new makeTourStop( 'http://www.washington.edu/cambots/' , 'Seattle, Washington', 1131081644506, 47.655935633853, -122.306842803955 ); this[ 76 ] = new makeTourStop( 'http://www.klas-tv.com/Global/link.asp?L=85315' , 'Las Vegas, Nevada', 1131082037113, 36.26, -115.222 ); this[ 77 ] = new makeTourStop( 'http://www.tempe.gov/millcam/' , 'Tempe, Arizona', 892828979824, 33.388, -111.9306 ); this[ 78 ] = new makeTourStop( 'http://www.adlerplanetarium.org/skyeye/' , 'Chicago, Illinois', 876000000000, 41.8744, -87.6394 ); this[ 79 ] = new makeTourStop( 'http://www.nolalive.com/bourbocam/' , 'New Orleans', 884020822643, 29.948, -90.0694 ); this[ 80 ] = new makeTourStop( 'http://www.mte.com/webcam/' , 'New York, New York', 943990301982, 40.7517, -73.9942 ); this[ 81 ] = new makeTourStop( 'http://www.aroundin80clicks.com/controls/TourEnd.html' , 'Tour is Over, Hope You Enjoyed It', 876000000000, 0, 0 ); }