		var trans = "no info"
		var changed = 0;
    var x = 10;
    var y = 1;
		var z = 1;
		var r = 1;
    var now;
		var ind;
		var country;
		var countryindx;
		var int1 = new Array()
					int1[0]= 'Maui'
					int1[1]=	"Mt St Helens"
					int1[2]= 'Yosemite'
        	int1[3]= 'NYC 5th ave'
        	int1[4]= 'Cabarete'
					int1[5]=	'Rio Copa'
					int1[6]=	'Pr da Matriz'
					int1[7]=	'Porto Alegre'
					int1[8]= 'Lagos'
					int1[9]= 'Sagres'
					int1[10]= 'Viseu'
					int1[11]=	'Madrid Sky'
					int1[12]= 'Calahonda'
					int1[13]= 'Barcelona'
					int1[14]=	"London Cov Garden"
					int1[15]= 'Toulouse'
					int1[16]= 'Eiffel'
					int1[17]=	'Sonthofen'	
					int1[18]=	'Oberstdorf'
					int1[19]= 'München'
					int1[20]= 'Großglockner'
					int1[21]=	'Venedig'
					int1[22]=	'Napoli'
					int1[23]=	'Wien'
					int1[24]= 'Trnava'
					int1[25]= 'Radiosity'
					int1[26]= 'Giza'
					int1[27]= 'Mt Longonot'
					int1[28]= 'Fed Tower Mos'
					int1[29]= 'Kemerovo'
				  int1[30]= 'Himalayan Chandra'
					int1[31]= 'Kyoto Barber'
					int1[32]= 'Tokyo'
					int1[37]= "Darwin Harbor"
					int1[34]= 'Melbourne'
					int1[35]=	'Sydney Harbor'
					int1[36]=	'Syd Traffic'
					int1[33]=	"Bondi"
					int1[38]= 'Penguin Cam'
  				int1[39]= 'Mt. Jacquinot'
					
					int1[40]= 'Victoria Bay'
					int1[41]= 'Table Mt.'
					int1[42]= 'Buenos Aires'
					int1[43]= 'Mar de Plata'
					int1[44]= 'Bogota'
					int1[45]= 'Banff'
					int1[46]= 'Ottawa'
					int1[47]= 'Calgary'
					int1[48]= 'Cabo San Lucas'
					int1[49]= 'Acapulco'
					int1[50]= 'Grand Canyon'
					int1[51]= 'Hong Kong'
					int1[52]= 'Wellington'
					int1[53]= 'The Wall'
					int1[54]= 'Jerusalem'
// stopped updating at ecuador
					 
					
		
		var int2 = new Array()
				int2[0]='BBC'
        int2[1]='Wash Post'
				int2[2]='CNN'
				int2[3]='ABCau'
				int2[4]='SMH'
				int2[5]='Canberra'
				int2[6]='Spiegel'
				int2[7]='Tagesschau'
				int2[8]='ANSA'
				int2[9]='Globo'
				int2[10]='WienerZeit'
				int2[11]='El Pais'
				int2[12]='El Mundo'
				int2[13]='El Caribe'
				int2[14]='Hoy'
				int2[15]='Le Monde'
				int2[16]='Le Point'
				int2[17]="Le Parisien"
				int2[18]="Japan Times"
				int2[19]="Jiji"
				int2[20]="Asahi"
				int2[21]='TASR'
				int2[22]="Slovak Spec"
				int2[23]='Cleveland'
				int2[24]='NY Times'
				int2[25]='Economist'
				int2[26]='Izvestia'
				int2[27]='South Pole'
				int2[28]='Nez Gez'
				int2[29]='Moscow Times'
				int2[30]='Daily Nation'
				int2[31]='Africa Sun'
				int2[32]='Al-Ahram'
				int2[33]='East Std'
				int2[34]='Al-Akhbar'
				int2[35]='Diario de Not'
				int2[36]="Deccan Hrld"
			  int2[37]="Hindustan Time"
			  int2[38]="Times of India"				
				int2[39]="The Mercury"
  			int2[40]="Mail & Guardian"
  			int2[41]="Cape Argus"
  			int2[42]="La Nacion"
  			int2[43]="Clarin"
  			int2[44]="La Prensa"
  			int2[45]="El Tiempo"
  			int2[46]="El Nuevo Siglo"
  			int2[47]="Globe and Mail"
  			int2[48]="La Montreal Gaz."
  			int2[49]="Vancouver Sun"
  			int2[50]="El Universal"
  			int2[51]="El Sol"
				int2[52]="China Daily"
			  int2[53]="Peoples"
			  int2[54]="The Press"
				int2[55]="NZ Herald"
			//stopped updating at ecuador	
				
				
	//	var int3 = new Array()
		var place = new Array()
			place[0]="all"
			place[1]="Australia"
			place[2]="Brasil"
			place[3]="Deutschland"
			place[4]="USA"
			place[5]="Italia"
			place[6]="United Kingdom"
			place[7]="Österreich"
			place[8]="España"
			place[9]="República Dominicana"
			place[10]="France"
			place[11]="Japan"
			place[12]="Slovenska Republika"
			place[13]="Portugal"
			place[14]="Russia"
			place[15]="Antarctica"
			place[16]="Egypt"
			place[17]="Kenya"
			place[18]="India"
			place[19]="South Africa"
			place[20]="Argentina"
			place[21]="Colombia"
			place[22]="Canada"
			place[23]="México"
			place[24]="China"
			place[25]="New Zealand"
			place[26]="Ecuador"
			place[27]="Guatemala"
			place[28]="Panama"
			place[29]="Chile"
			place[30]="Venezuela"
			place[31]="Costa Rica"
			place[32]="Honduras"
			place[33]="Paraguay"
			place[34]="Cuba"
			place[35]="El Salvador"
			place[36]="Nicaragua"
			place[37]="Peru"
			place[38]="Uruguay"
			
		var placeback = new Array()
			placeback[0]="blueback.jpg"
			placeback[1]="blueback.jpg"
			placeback[2]="greenback.jpg"
			placeback[3]="redback.jpg"
			placeback[4]="blueback.jpg"
			placeback[5]="greenback.jpg"
			placeback[6]="redback.jpg"
			placeback[7]="redback.jpg"
			placeback[8]="redback.jpg"
			placeback[9]="redback.jpg"
			placeback[10]="redback.jpg"
			placeback[11]="redback.jpg"
			placeback[12]="blueback.jpg"
			placeback[13]="greenback.jpg"
			placeback[14]="blueback.jpg"
			placeback[15]="blueback.jpg"
			placeback[16]="redback.jpg"
			placeback[17]="greenback.jpg"
			placeback[18]="greenback.jpg"
			placeback[19]="greenback.jpg"
			placeback[20]="blueback.jpg"
			placeback[21]="redback.jpg"
			placeback[22]="redback.jpg"
			placeback[23]="greenback.jpg"
			placeback[24]="redback.jpg"
			placeback[25]="blueback.jpg"
			//stopped updating at ecuador
			
		var titleback = new Array()
			titleback[0]="darkblue"
			titleback[1]="darkblue"
			titleback[2]="darkgreen"
			titleback[3]="darkred"
			titleback[4]="darkblue"
			titleback[5]="darkgreen"
			titleback[6]="darkred"
			titleback[7]="darkred"
			titleback[8]="darkred"
			titleback[9]="darkblue"
			titleback[10]="darkblue"
			titleback[11]="white"
			titleback[12]="white"
			titleback[13]="darkred"
			titleback[14]="white"
			titleback[15]="white"
			titleback[16]="white"
			titleback[17]="white"
			titleback[18]="white"
			titleback[19]="blue"
			titleback[20]="white"
			titleback[21]="darkblue"
			titleback[22]="white"
			titleback[23]="darkred"
			titleback[24]="yellow"
			titleback[25]="darkblue"
			// stopped updating at ecuador
			
		var placetxt = new Array()
			placetxt[0]="white"
			placetxt[1]="white"
			placetxt[2]="black"
			placetxt[3]="black"
			placetxt[4]="white"
			placetxt[5]="white"
			placetxt[6]="black"
			placetxt[7]="black"
			placetxt[8]="black"
			placetxt[9]="white"
			placetxt[10]="white"
			placetxt[11]="white"
			placetxt[12]="white"
			placetxt[13]="black"
			placetxt[14]="white"
			placetxt[15]="black"
			placetxt[16]="white"
			placetxt[17]="white"
			placetxt[18]="white"
			placetxt[19]="white"
			placetxt[20]="black"
			placetxt[21]="black"
			placetxt[22]="white"
			placetxt[23]="black"
			placetxt[24]="white"
			placetxt[25]="darkred"
			// stopped updating at ecuador
			
		var placebk = new Array()
			placebk[0]="white"
			placebk[1]="darkred"
			placebk[2]="yellow"
			placebk[3]="yellow"
			placebk[4]="darkred"
			placebk[5]="darkred"
			placebk[6]="white"
			placebk[7]="white"
			placebk[8]="yellow"
			placebk[9]="darkred"
			placebk[10]="darkred"
			placebk[11]="black"
			placebk[12]="darkred"
			placebk[13]="yellow"
			placebk[14]="darkred"
			placebk[15]="white"
			placebk[16]="black"
			placebk[17]="darkred"
			placebk[18]="orange"
			placebk[19]="darkred"
			placebk[20]="yellow"
			placebk[21]="yellow"	
			placebk[22]="darkred"	
			placebk[23]="white"
			placebk[24]="darkred"
			placebk[25]="white"
			// stopped updating at ecuador
					
		var cams = new Array()
  		cams[101]= "Bondi"
			cams[102]= "Sydney Harbor"
			cams[103]= "Syd Traffic"
			cams[104]= "Darwin Harbor"
			cams[105]= "Melbourne"
			cams[201]= "Pr da Matriz"
			cams[202]= "Rio Copa"
			cams[203]= "Porto Alegre"
			cams[301]= "Oberstdorf"
			cams[302]= "Sonthofen"
			cams[303]= "München"
  		cams[401]= "Mt St Helens"
			cams[402]= "NYC 5th ave"
			cams[403]= 'Maui'
			cams[404]= 'Yosemite'
			cams[405]= 'Grand Canyon'
  		cams[501]= "Venedig"
			cams[502]= "Napoli"
			cams[601]= "London Cov Garden"
			cams[701]= "Wien"
			cams[702]= "Großglockner"
			cams[801]= "Madrid Sky"
			cams[802]= "Calahonda"
			cams[803]= "Barcelona"
			cams[901]= "Cabarete"
			cams[1001]="Eiffel"
			cams[1002]= "Toulouse"
			cams[1101]= "Tokyo"
			cams[1102]= "Kyoto Barber"
			cams[1201]= "Trnava"
			cams[1202]= "Radiosity"
			cams[1303]= "Sagres"
			cams[1302]= "Lagos"
			cams[1301]= 'Viseu'
			cams[1401]= 'Kemerovo'
			cams[1402]= 'Fed Tower'
			cams[1501]= 'Penguin Cam'
			cams[1502]= 'Mt. Jacquinot'
			cams[1601]= 'Giza' 
			cams[1701]= 'Mt Longonot'
		  cams[1801]= 'Himalayan Chandra'
			cams[1901]= 'Victoria Bay'
			cams[1902]= 'Table Mt.'		
			cams[2001]= 'Buenos Aires'
			cams[2002]= 'Mar de Plata'
			cams[2101]= 'Bogota'
			cams[2201]= 'Banff'
			cams[2202]= 'Ottawa'
			cams[2203]= 'Calgary'
			cams[2301]= 'Cabo San Lucas'
			cams[2302]= 'Acapulco'
			cams[2303]= 'Ciudad de Mexico'
			cams[2401]= 'Hong Kong'
			cams[2501]= 'Wellington'
			cams[2601]= 'The Wall'
			cams[2602]= 'Jerusalem'

		var camsurl = new Array()
      camsurl[101] = "http://northbondirsl.com.au/Assets/Cam/cam_1.jpg"
			camsurl[102] = "http://www.sydney-webcam.com/Jpeg/CamImg.jpg"
			camsurl[103] = "http://www.rta.nsw.gov.au/trafficreports/cameras/camera_images/017.jpg"
			camsurl[104] = "http://www.ecocam.com.au/cameras/darwin/dwn1-5.jpg"
			camsurl[105] = "http://202.53.36.92/webmedia/smccam4.jpg"
			camsurl[201] = "http://www.wcams.com.br/fotoatual1.jpg"
			camsurl[202] = "http://transito.rio.rj.gov.br/imagens1/28.jpg"
			camsurl[203] = "http://www.wcams.com.br/fotoatual4.jpg"
			camsurl[301] = "http://www.hospiz.de/webcam/a_ChillCam_00001.jpg"
			camsurl[302] = "http://www.sonthofen.de/aktuell/img/wetterbild.jpg"
			camsurl[303] = "http://www.esg.de/webcam/current/320.jpg"
  		camsurl[401] = "http://www.fs.fed.us/gpnf/volcanocams/msh/images/mshvolcanocam.jpg"
			camsurl[402] = "http://www.riotmanhattan.com/webcam/5thave.jpg"
			camsurl[403] = "http://www.windcam.com/windcam.jpg"
			camsurl[404] = "http://www.yosemite.org/vryos/turtleback1.jpg"
			camsurl[405] = "http://www2.nature.nps.gov/air/webcams/parks/grcacam/grca.jpg"
  		camsurl[501] = "http://www2.comune.venezia.it/webCamSnf/imgsnf_00001.jpg"
			camsurl[502] = "http://www.salernometeo.it/Webcam/napoli/currentsmall.jpg"
			camsurl[601] = "http://londonwebcam.virtual-london.com/cam.jpg"
			camsurl[701] = "http://www.wien.gv.at/camera/rathausplatz.jpg"
			camsurl[702] = "http://www.panoramablick.com/webcams/glockner/links/glockner_l.jpg"
			camsurl[801] = "http://www.avendano.org/cam.jpg"
			camsurl[802] = "http://calahonda-info.net/MOBOTIX/current_view.jpg"
			camsurl[803] = "http://www.tvcatalunya.com/webcams/noves/arts2.jpg"
			camsurl[901] = "http://www.kaoba.com/cabaretestreet.jpg"
			camsurl[1001]= "http://www.parislive.net/eiffelwebcam1.jpg?"
			camsurl[1002] = "http://sensemat.free.fr/image31.jpg"
			camsurl[1101] = "http://www.fnn-news.com/pocket/odaiba_soto.jpg"
			camsurl[1102] = "http://www.salon-net.org/realtime100.jpg"
			camsurl[1201] = "http://www.heso-com.sk/kamera.jpg"
			camsurl[1202] = "http://www.radiosity.sk/sitycam.jpg"
			camsurl[1303] = "http://www.portugal-webcams.com/webcam-sagres.jpg"
			camsurl[1302] = "http://www.vivendamiranda.com/webcam/webcam-lagos.jpg"
			camsurl[1301] = "http://81.193.115.197/viseu.jpg"
			camsurl[1401] = "http://camera.kemernet.ru/cam_huge.jpg"
			camsurl[1402] = "http://www.7211000.ru/webcams/cam1.jpg"
			camsurl[1501] = "http://antarctica.martingrund.de/ohig-pingi-z.jpg"
			camsurl[1502] = "http://vlbi.leipzig.ifag.de/ohiggins/ohig3-web.jpg"
			camsurl[1601] = "http://www.pyramidcam.com/netcam.jpg"
			camsurl[1701] = "http://kijabe.org/longocam/CamImg.jpg"
			camsurl[1801] = "http://crest.ernet.in/webcam/images/latest.jpg"
			camsurl[1901] = "http://www.africam.com/cameraImage.php?ID=vicbay&.jpg"
			camsurl[1902] = "http://www.africam.com/cameraImage.php?ID=tablemountian&.jpg"		
			camsurl[2001] = "http://itaucam.itau.com.ar/fullsize.jpg"
			camsurl[2002] = "http://mardelplatawebcam.com.ar/img/webcam_plaza_colon.jpg"
			camsurl[2101] = "http://imagine.com.co/atractores/kmara/images/camara3/foto.jpg"
			camsurl[2201] = "http://www.banffgondola.com/cam/images/view.jpg"
			camsurl[2202] = "http://www.parliamenthill.gc.ca/text/newhillcam.jpg"
			camsurl[2203] = "http://webcams.shawtv.com/athome-cams/cam1.jpg"
			camsurl[2301] = "http://www.allaboutcabo.com/cabocam3.jpg"
			camsurl[2302] = "http://aca.info/camera/netcam.jpg"
			camsurl[2401] = "http://www.discoverhongkong.com/eng/interactive/webcam/images/ig_webc_petr1.jpg"
			camsurl[2501] = "http://www.wn.co.nz/cameras/cam01.jpg"
			camsurl[2601] = "http://www.aish3.com/wall/thewallbig17g.jpg"
			camsurl[2602] = "http://www.02ws.com/images/webCamera.jpg"
			
var camsurls = new Array()
      camsurls[101] = "http://northbondirsl.com.au/"
			camsurls[102] = "http://www.sydney-webcam.com/"
			camsurls[103] = "http://www.rta.nsw.gov.au/"
			camsurls[104] = "http://www.ecocam.com.au/"
			camsurls[105] = "http://202.53.36.92/webmedia/smccam4.jpg"
			camsurls[201] = "http://www.wcams.com.br/"
			camsurls[202] = "http://transito.rio.rj.gov.br/"
			camsurls[203] = "http://www.wcams.com.br/"
			camsurls[301] = "http://www.hospiz.de/"
			camsurls[302] = "http://www.sonthofen.de/"
			camsurls[303] = "http://www.esg.de/"
  		camsurls[401] = "http://www.fs.fed.us/"
			camsurls[402] = "http://www.riotmanhattan.com/"
			camsurls[403] = "http://www.windcam.com/"
			camsurls[404] = "http://www.yosemite.org/"
			camsurls[405] = "http://www2.nature.nps.gov/"
  		camsurls[501] = "http://www2.comune.venezia.it/"
			camsurls[502] = "http://www.salernometeo.it/"
			camsurls[601] = "http://londonwebcam.virtual-london.com/"
			camsurls[701] = "http://www.wien.gv.at/"
			camsurls[702] = "http://www.panoramablick.com/"
			camsurls[801] = "http://www.avendano.org/"
			camsurls[802] = "http://calahonda-info.net/"
			camsurls[803] = "http://www.tvcatalunya.com/"
			camsurls[901] = "http://www.kaoba.com/"
			camsurls[1001]= "http://www.parislive.net/"
			camsurls[1002] = "http://sensemat.free.fr/"
			camsurls[1101] = "http://www.fnn-news.com/"
			camsurls[1102] = "http://www.salon-net.org/"
			camsurls[1201] = "http://www.heso-com.sk/"
			camsurls[1202] = "http://www.radiosity.sk/"
			camsurls[1303] = "http://www.portugal-webcams.com/"
			camsurls[1302] = "http://www.vivendamiranda.com/"
			camsurls[1301] = "http://81.193.115.197/viseu.jpg"
			camsurls[1401] = "http://camera.kemernet.ru/"
			camsurls[1402] = "http://www.7211000.ru/"
			camsurls[1501] = "http://antarctica.martingrund.de/"
			camsurls[1502] = "http://vlbi.leipzig.ifag.de/"
			camsurls[1601] = "http://www.pyramidcam.com/"
			camsurls[1701] = "http://kijabe.org/longocam/"
			camsurls[1801] = "http://crest.ernet.in/"
			camsurls[1901] = "http://www.africam.com/"
			camsurls[1902] = "http://www.africam.com/"		
			camsurls[2001] = "http://itaucam.itau.com.ar/"
			camsurls[2002] = "http://mardelplatawebcam.com.ar/"
			camsurls[2101] = "http://imagine.com.co/"
			camsurls[2201] = "http://www.banffgondola.com/"
			camsurls[2202] = "http://www.parliamenthill.gc.ca/"
			camsurls[2203] = "http://webcams.shawtv.com/"
			camsurls[2301] = "http://www.allaboutcabo.com/"
			camsurls[2302] = "http://aca.info/"
			camsurls[2401] = "http://www.discoverhongkong.com/"
			camsurls[2501] = "http://www.wn.co.nz/"
			camsurls[2601] = "http://www.aish3.com/wall/"
			camsurls[2602] = "http://www.02ws.com/"

			
		var news = new Array()
		  news[101]= "ABCau"
			news[102]= "SMH"
			news[103]= "Canberra"
			news[201]= "Globo"
			news[301]= "Tagesschau"
			news[302]= "Spiegel"
			news[303]= "Tagesschau Eng"
			news[304]= "Spiegel Eng"
			news[401]= "CNN"
  		news[402]= "Cleveland"
			news[403]= "Wash Post"
			news[404]= "NY Times"
			news[501]= "ANSA"
			news[601]= "BBC"
			news[602]= "Economist"
			news[701]= "WienerZeit"
			news[801]= "El Pais"
			news[802]= "El Mundo"
			news[803]= "Daily Spain"
			news[901]= "El Caribe"
			news[902]= "Hoy"
			news[1003]="Le Parisien"
			news[1002]="Le Point"
			news[1001]="Le Monde"
			news[1004]="The Connexion"
			news[1101]="Japan Times"
			news[1102]="Jiji"
			news[1103]="Asahi"
			news[1201]="TASR"
			news[1202]="Slovak Spec"
			news[1301]="Diario de Not"
			news[1401]="Nez Gez"
			news[1402]="Moscow Times"
			news[1501]="South Pole"
			news[1601]="Al-Akhbar"
			news[1602]="Al-Ahram"
			news[1701]="Daily Nation"
			news[1702]="Africa Sun"
			news[1703]="East Std"
			news[1801]="Deccan Hrld"
			news[1802]="Hindustan Time"
			news[1803]="Times of India"
			news[1901]="The Mercury"
			news[1902]="Mail & Guardian"
			news[1903]="Cape Argus"
			news[2001]="La Nacion"
			news[2002]="Clarin"
			news[2003]="La Prensa"
			news[2004]="Buenos Aires Herald"
			news[2101]="El Tiempo"
			news[2102]="El Nuevo Siglo"
			news[2201]="Globe and Mail"
			news[2202]="La Montreal Gaz."
			news[2203]="Vancouver Sun"
			news[2301]="El Universal"
			news[2302]="El Sol"
			news[2401]="China Daily"
			news[2402]="Peoples"
			news[2501]="The Press"
			news[2502]="NZ Herald"
			news[2601]="El Comercio"
			news[2701]="Prensa Libre"
			news[2801]="El Siglo Panama"
			news[2901]="El Mercurio Chile"
			news[3001]="El Nacional Venezuela"
			news[3101]="El Nacion Costa Rica"
			news[3201]="El Heraldo"
			news[3301]="ABC digital"
			news[3401]="Diaro Gramma"
			news[3501]="Prensa Grafica"
			news[3601]="El Nuevo Diaro"
			news[3701]="Expreso"
			news[3801]="La Observa"
			
		var newsurl = new Array()
		  for (var count = 100; count < 3900; count++){
					newsurl[count]=""
					}
		  newsurl[101] = "http://abc.net.au/news"
			newsurl[102] = "http://www.smh.com.au"
			newsurl[103] = "http://canberra.yourguide.com.au/home.asp"
			newsurl[201] = "http://www.oglobo.globo.com"
			newsurl[301] = "http://www.tagesschau.de"
			newsurl[302] = "http://www.spiegel.de"
			newsurl[303] = "http://www.tageschau.de/newsinenglish/index.html"
			newsurl[304] = "http://www.spiegel.de/international/"
      newsurl[401] = "http://www.cnn.com"
  		newsurl[402] = "http://www.cleveland.com"
			newsurl[403] = "http://www.washingtonpost.com"
			newsurl[404] = "http://www.nytimes.com"
			newsurl[501] = "http://www.ansa.it"
			newsurl[601] = "http://news.bbc.co.uk"
			newsurl[602] = "http://www.economist.com/index.html"
			newsurl[701] = "http://www.wienerzeitung.at"
			newsurl[801] = "http://www.elpais.es"
			newsurl[802] = "http://www.elmundo.es/diario/index.html"
			newsurl[803] = "http://www.dailyspain.com/world_news.php"
			newsurl[901] = "http://www.elcaribecdn.com"
			newsurl[902] = "http://www.hoy.com.do"
			newsurl[1003] = "http://www.leparisien.com"
			newsurl[1002] = "http://www.lepoint.fr"
			newsurl[1001] = "http://www.lemonde.fr/"
			newsurl[1004] = "http://www.connexionfrance.com/"
			newsurl[1101] = "http://www.japantimes.co.jp/"
			newsurl[1102] = "http://www.jiji.co.jp/"
			newsurl[1103] = "http://www.asahi.com/"
			newsurl[1201] = "http://www.tasr.sk/"
			newsurl[1202] = "http://www.slovakspectator.sk/"
			newsurl[1301] = "http://www.dn.sapo.pt/"
			newsurl[1401] = "http://www.ng.ru/"	
			newsurl[1402] = "http://www.themoscowtimes.com/"
			newsurl[1501] = "http://www.cmdl.noaa.gov/obop/spo/"
			newsurl[1601] = "http://elakhbar.org.eg/"
			newsurl[1602] = "http://weekly.ahram.org.eg/index.htm"
			newsurl[1701] = "http://www.nationmedia.com/dailynation/nmgindex.asp"
			newsurl[1702] = "http://africasunnews.com/"
			newsurl[1703] = "http://www.eastandard.net/"
			newsurl[1801] = "http://www.deccanherald.com/"
			newsurl[1802] = "http://www.hindustantimes.com/"
			newsurl[1803] = "http://timesofindia.com/"
			newsurl[1901] = "http://www.themercury.co.za/"
			newsurl[1902] = "http://www.mg.co.za/"
			newsurl[1903] = "http://capeargus.co.za/" 
			newsurl[2001] = "http://www.lanacion.com.ar/"
			newsurl[2002] = "http://www.clarin.com/"
			newsurl[2003] = "http://www.laprensa.com.ar/"
			newsurl[2004] = "http://www.buenosairesherald.com/"
			newsurl[2101] = "http://www.eltiempo.com/"
			newsurl[2102] = "http://www.elnuevosiglo.com.co/"
			newsurl[2201] = "http://www.theglobeandmail.com/"
			newsurl[2202] = "http://www.canada.com/montrealgazette/index.html"
			newsurl[2203] = "http://www.canada.com/vancouversun/index.html"
			newsurl[2301] = "http://www.eluniversal.com.mx/noticias.html"
			newsurl[2302] = "http://www.oem.com.mx/elsoldemexico/"
			newsurl[2401] = "http://www.chinadaily.com.cn/"
			newsurl[2402] = "http://www.people.com.cn/"
			newsurl[2501] = "http://www.stuff.co.nz/thepress/?source=thepress"
			newsurl[2502] = "http://www.nzherald.co.nz/"
			newsurl[2601] = "http://www.elcomercio.com/"
			newsurl[2701] = "http://www.prensalibre.com"
			newsurl[2801] = "http://www.elsiglo.com"
			newsurl[2901] = "http://www.emol.com"
			newsurl[3001] = "http://www.el-nacional.com"
			newsurl[3101] = "http://www.nacion.com"
			newsurl[3201] = "http://www.elheraldo.hn"
			newsurl[3301] = "http://www.abc.com.py"
			newsurl[3401] = "http://www.granma.cubaweb.cu"
			newsurl[3501] = "http://www.laprensagrafica.com"
			newsurl[3601] = "http://www.elnuevodiario.com.ni"
			newsurl[3701] = "http://www.expreso.com.pe"
			newsurl[3801] = "http://www.observa.com.uy"

var newseng = new Array()
		  for (var count = 100; count < 3900; count++){
					newseng[count]=""
					}
		  newseng[101] = "1"
			newseng[102] = "1"
			newseng[103] = "1"
			newseng[201] = "0"
			newseng[301] = "0"
			newseng[302] = "0"
			newseng[303] = "1"
			newseng[304] = "1"
      newseng[401] = "1"
  		newseng[402] = "1"
			newseng[403] = "1"
			newseng[404] = "1"
			newseng[501] = "0"
			newseng[601] = "1"
			newseng[602] = "1"
			newseng[701] = "0"
			newseng[801] = "0"
			newseng[802] = "0"
			newseng[803] = "1"
			newseng[901] = "0"
			newseng[902] = "0"
			newseng[1003] = "0"
			newseng[1002] = "0"
			newseng[1001] = "0"
			newseng[1004] = "1"
			newseng[1101] = "1"
			newseng[1102] = "0"
			newseng[1103] = "0"
			newseng[1201] = "0"
			newseng[1202] = "1"
			newseng[1301] = "0"
			newseng[1401] = "0"
			newseng[1402] = "1"
			newseng[1501] = "0"
			newseng[1601] = "0"
			newseng[1602] = "1"
			newseng[1701] = "1"
			newseng[1702] = "1"
			newseng[1703] = "1"
			newseng[1801] = "1"
			newseng[1802] = "1"
			newseng[1803] = "1"
			newseng[1901] = "1"
			newseng[1902] = "1"
			newseng[1903] = "1" 
			newseng[2001] = "0"
			newseng[2002] = "0"
			newseng[2003] = "0"
			newseng[2004] = "1"
			newseng[2101] = "0"
			newseng[2102] = "0"
			newseng[2201] = "1"
			newseng[2202] = "1"
			newseng[2203] = "1"
			newseng[2301] = "0"
			newseng[2302] = "0"
			newseng[2401] = "1"
			newseng[2402] = "0"
			newseng[2501] = "1"
			newseng[2502] = "1"
			newseng[2601] = "0"
			newseng[2701] = "0"
			newseng[2801] = "0"
			newseng[2901] = "0"
			newseng[3001] = "0"
			newseng[3101] = "0"
			newseng[3201] = "0"
			newseng[3301] = "0"
			newseng[3401] = "0"
			newseng[3501] = "0"
			newseng[3601] = "0"
			newseng[3701] = "0"
			newseng[3801] = "0"
			
			
			
		var radio = new Array()
  		radio[101]= "Triple J"
			radio[102]= "Triple R"
			radio[103]= ""
			radio[104]= ""
			radio[105]= ""
			
			radio[201]= "Radioclick"
			radio[202]= "Brasil Latin Chill"
			radio[203]= "102.9 Band Vale"
			radio[204]= "Brasil Internet L365"
			radio[205]= ""
			
  		radio[301]= "Sunshine"
			radio[302]= "Antenne Bayern"
			radio[303]= ""
			radio[304]= ""
			radio[305]= ""
			
			radio[401]= "WICB - Rock"
			radio[402]= "KNHC - Dance"
			radio[403]= "NPR - News"
			radio[404]= ""
			radio[405]= ""
			
			radio[501]= "Italianet"
			radio[502]= ""
			radio[503]= ""
			radio[504]= ""
			radio[505]= ""
			
			radio[601]= "EnergyMix"
			radio[602]= ""
			radio[603]= ""
			radio[604]= ""
			radio[605]= ""
			
			radio[701]= "FM4"
			radio[702]= ""
			radio[703]= ""
			radio[704]= ""
			radio[705]= ""
			
			radio[801]= "RadioNatEs"
			radio[802]= "RockGol"
			radio[803]= "BasqueNews"
			radio[804]= "LatinEs"
			radio[805]= ""
			
			radio[901]= "z101"
			radio[902]= "Radio Universal"
			radio[903]= ""
			radio[904]= ""
			radio[905]= ""
			
			radio[1001]= "Beur FM"
			radio[1002]= "Espace FM"
			radio[1003]= ""
			radio[1004]= ""
			radio[1005]= ""
			
			radio[1101]= "Samurai FM"
			radio[1102]= "Tokyo FM"
			radio[1103]= ""
			radio[1104]= ""
			radio[1105]= ""
			
			radio[1201]= "Radio FM"
			radio[1202]= ""
			radio[1203]= ""
			radio[1204]= ""
			radio[1205]= ""
			
			radio[1301]= "Lisboa Mix FM"
			radio[1302]= ""
			radio[1303]= ""
			radio[1304]= ""
			radio[1305]= ""
			
			radio[1401]= "Hit FM"
			radio[1402]= ""
			radio[1403]= ""
			radio[1404]= ""
			radio[1405]= ""
			
			radio[1501]= "ANET"
			radio[1502]= ""
			radio[1503]= ""
			radio[1504]= ""
			radio[1505]= ""
			
			radio[1601]= "Egypt State"
			radio[1602]= ""
			radio[1603]= ""
			radio[1604]= ""
			radio[1605]= ""
			
			radio[1701]= "Capital FM"
			radio[1702]= "Kiss FM"
			radio[1703]= ""
			radio[1704]= ""
			radio[1705]= ""
			
			radio[1801]= "Hindi"
			radio[1802]= ""
			radio[1803]= ""
			radio[1804]= ""
			radio[1805]= ""
			
			radio[1901] = "5FM-Contemporary"
			radio[1902] = "Univ of Capetown Radio"
			radio[1903] = ""
			radio[1904] = ""
			radio[1905] = ""
			
			radio[2001] = "Radio Bahia Blanca"
			radio[2002] = ""
			radio[2003] = ""
			radio[2004] = ""
			radio[2005] = ""
			
			radio[2101] = "Latina Stereo"
			radio[2102] = ""
			radio[2103] = ""
			radio[2104] = ""
			radio[2105] = ""
			
			radio[2201] = "99 Fox"
			radio[2202] = "Vancouver Cantonese"
			radio[2203] = ""
			radio[2204] = ""
			radio[2205] = ""
			
			radio[2301] = "Radio Universidad"
			radio[2302] = ""
			radio[2303] = ""
			radio[2304] = ""
			radio[2305] = ""
										
			radio[2401] = "FM 1045"
			radio[2402] = ""
			radio[2403] = ""
			radio[2404] = ""
			radio[2405] = ""
			
			radio[2501] = "95b Alternative"
			radio[2502] = ""
			radio[2503] = ""
			radio[2504] = ""
			radio[2505] = ""
			
		var radiourl = new Array()
      radiourl[101] = "http://www.abc.net.au/triplej/listen/default.htm"
			radiourl[102]= "http://www.rrr.org.au/#"
			radiourl[103]= ""
			radiourl[104]= ""
			radiourl[105]= ""
			radiourl[201] = "http://radioclick.globo.com/bhfm"
			radiourl[202]= "http://www.live365.com/stations/frere"
			radiourl[203]= "http://www.bandvalefm.com.br/v1/index.php#"
			radiourl[204]= "http://www.live365.com/stations/djneco"
			radiourl[205]= ""
			radiourl[301] = "http://www.sunshinelive.de/index.php?id=6"
			radiourl[302]= "http://www.antenne.de/#"
			radiourl[303]= ""
			radiourl[304]= ""
			radiourl[305]= ""
			radiourl[401] = "http://www.wicb.org/?page=listen"
			radiourl[402] = "http://www.radio-locator.com/cgi-bin/url?bc=y&call=KNHC&band=FM&service=FM&rd=322344"
			radiourl[403]= "http://www.npr.org"
			radiourl[404]= ""
			radiourl[405]= ""
			radiourl[501] = "http://www.italianetwork.it/home/index.php?player=yes"
			radiourl[502]= ""
			radiourl[503]= ""
			radiourl[504]= ""
			radiourl[505]= ""
			radiourl[601] = "http://www.energymix.com/listen.html"
			radiourl[602]= ""
			radiourl[603]= ""
			radiourl[604]= ""
			radiourl[605]= ""
			radiourl[701] = "http://fm4.orf.at/static/stream/index.html"
			radiourl[702]= ""
			radiourl[703]= ""
			radiourl[704]= ""
			radiourl[705]= ""
			radiourl[801] = "http://www.rtve.es/rne/web/index.php"
			radiourl[802] = "http://www.rockandgol.net/#"
			radiourl[803] = "http://www.eitb.com/castellano/programas/programa.asp?id=RE"
			radiourl[804] = "http://www.radiotentacion.com/"
			radiourl[805]= ""
			radiourl[901] = "http://www.domiradio.net/elevation/reproductor.php?id=24"
			radiourl[902] = "http://www.radiouniversalfm.com/"
			radiourl[903] = ""
			radiourl[904] = ""
			radiourl[905]= ""
			radiourl[1001] = "http://www.beurfm.net/"
			radiourl[1002] = "http://www.espacefm.com/index.php?op=edito"
			radiourl[1003] = ""
			radiourl[1004] = ""
			radiourl[1005]= ""
			radiourl[1101] = "http://www.samurai.fm/home/"
			radiourl[1102] = "http://www.tfm.co.jp/radiobar"
			radiourl[1103] = ""
			radiourl[1104] = ""
			radiourl[1105]= ""
			radiourl[1201] = "http://www.rockfmradio.sk/"
			radiourl[1202] = ""
			radiourl[1203] = ""
			radiourl[1204] = ""
			radiourl[1205]= ""
			radiourl[1301] = "http://mix.clix.pt/"
			radiourl[1302] = ""
			radiourl[1303] = ""
			radiourl[1304] = ""
			radiourl[1305]= ""
			radiourl[1401] = "http://www.hitfm.ru/"
			radiourl[1402] = ""
			radiourl[1403] = ""
			radiourl[1404] = ""
			radiourl[1405]= ""
			radiourl[1501] = "http://www.anetstation.com/"
			radiourl[1502] = ""
			radiourl[1503] = ""
			radiourl[1504] = ""
			radiourl[1505]= ""
			radiourl[1601] = "http://www.sis.gov.eg/En/Default.htm"
			radiourl[1602] = ""
			radiourl[1603] = ""
			radiourl[1604] = ""
			radiourl[1605]= ""
			radiourl[1701] = "http://www.capitalfm.co.ke/home/index.asp"
			radiourl[1702] = "http://www.kissfm.co.ke/"
			radiourl[1703] = ""
			radiourl[1704] = ""
			radiourl[1705]= ""
			radiourl[1801] = "http://hindisongs.allindiansite.com/"
			radiourl[1802] = ""
			radiourl[1803] = ""
			radiourl[1804] = ""
			radiourl[1805] = ""
			radiourl[1901] = "http://www.5fm.co.za/listenlive/ListenLive.aspx#"
			radiourl[1902] = "http://www.uctradio.co.za/"
			radiourl[1903] = ""
			radiourl[1904] = ""
			radiourl[1905] = ""
			radiourl[2001] = "http://www.lu2.com.ar/"
			radiourl[2002] = ""
			radiourl[2003] = ""
			radiourl[2004] = ""
			radiourl[2005] = ""
			radiourl[2101] = "http://www.latinastereo.com/"
			radiourl[2102] = ""
			radiourl[2103] = ""
			radiourl[2104] = ""
			radiourl[2105] = ""
			radiourl[2201] = "http://www.cfox.com/"
			radiourl[2202] = "http://www.am1470.com/fm961/english/"
			radiourl[2203] = ""
			radiourl[2204] = ""
			radiourl[2205] = ""
			radiourl[2301] = "http://www.uady.mx/sitios/radio/index.html"
			radiourl[2302] = ""
			radiourl[2303] = ""
			radiourl[2304] = ""
			radiourl[2305] = ""
			radiourl[2401] = "http://www.fm1054.com/"
			radiourl[2402] = ""
			radiourl[2403] = ""
			radiourl[2404] = ""
			radiourl[2405] = ""		
			radiourl[2501] = "http://www.95bfm.co.nz/"
			radiourl[2502] = ""
			radiourl[2503] = ""
			radiourl[2504] = ""
			radiourl[2505] = ""		
			
		//arrays for sunrise live	
		var sun1 = new Array()
					sun1[0]= 'Maui, Hawaii, USA'
					sun1[1]= 'Banff, Canada'
					sun1[2]=	"Mt St Helens, Washington State, USA"
					sun1[3]= 'Yosemite National Park, CA USA'
					sun1[4]= 'Grand Canyon, Arizona, USA'
					sun1[5]= 'Cabo San Lucas, Mexico'
        	sun1[6]= 'New York City 5th Avenue'
        	sun1[7]= 'Cabarete, República Dominicana'
					//sun1[5]=	'Rio Copa'
					//sun1[6]=	'Pr da Matriz'
					sun1[8]=	'Porto Alegre, Brasil'
					sun1[9]= 'Lagos, Portugal'
					//sun1[9]= 'Sagres'
					//sun1[10]= 'Viseu'
					sun1[10]=	'Madrid Sky, España'
					//sun1[12]= 'Calahonda'
					sun1[11]= 'Barcelona, España'
					sun1[12]=	"Covent Garden, London, England"
					sun1[13]= 'Toulouse, France'
					sun1[14]= 'Tour Eiffel, Paris, France'
					//sun1[17]=	'Sonthofen'	
					sun1[15]=	'Oberstdorf, Deutschland'
					sun1[16]= 'München, Deutschland'
					sun1[17]= 'Großglockner, Österreich'
					sun1[18]=	'Venedig, Italia'
					sun1[19]=	'Napoli, Italia'
					sun1[20]=	'Wien, Österreich'
					sun1[21]= 'Trnava, Slovenska Republika'
					//sun1[25]= 'Radiosity'
					sun1[22]= 'Giza, Egypt'
					sun1[23]= 'Mt Longonot, Kenya'
					sun1[24]= 'Federal Tower Moscow'
					sun1[25]= 'Kemerovo, Russia'
				  sun1[26]= 'Himalayan Chandra Telescope, India'
					sun1[27]= 'Barber in Kyoto, Japan'
					sun1[28]= 'Tokyo, Japan'
					//sun1[28]= "Darwin Harbor, Northern Territory, Australia"
					sun1[29]= 'Melbourne, Victoria, Australia'
					//sun1[28]=	'Sydney Harbor'
					//sun1[36]=	'Syd Traffic'
					sun1[30]=	"Bondi in Sydney, New South Wales, Australia"
					sun1[31]= 'Penguin Cam, Antartica!'
  				//sun1[39]= 'Mt. Jacquinot'
					 
		var sunurl = new Array()
					sunurl[0]= 'http://www.windcam.com/windcam.jpg'
					sunurl[1]=  "http://www.banffgondola.com/cam/images/view.jpg"
					sunurl[2]=	"http://www.fs.fed.us/gpnf/volcanocams/msh/images/mshvolcanocam.jpg"
					sunurl[3]= 'http://www.yosemite.org/vryos/turtleback1.jpg'
					sunurl[4]= "http://www2.nature.nps.gov/air/webcams/parks/grcacam/grca.jpg"
					sunurl[5]= 'http://www.allaboutcabo.com/cabocam3.jpg'
        	sunurl[6]= 'http://www.riotmanhattan.com/webcam/5thave.jpg'
        	sunurl[7]= 'http://www.kaoba.com/cabaretestreet.jpg'
					//sunurl[5]=	'Rio Copa'
					//sunurl[6]=	'Pr da Matriz'
					sunurl[8]=	'http://www.wcams.com.br/fotoatual4.jpg'
					sunurl[9]= 'http://www.vivendamiranda.com/webcam/webcam-lagos.jpg'
					//sun1[9]= 'Sagres'
					//sun1[10]= 'Viseu'
					sunurl[10]=	'http://www.avendano.org/cam.jpg'
					//sun1[12]= 'Calahonda'
					sunurl[11]= 'http://www.tvcatalunya.com/webcams/noves/arts2.jpg'
					sunurl[12]=	"http://londonwebcam.virtual-london.com/cam.jpg"
					sunurl[13]= 'http://sensemat.free.fr/image31.jpg'
					sunurl[14]= 'http://www.parislive.net/eiffelwebcam1.jpg?'
					//sunurl[17]=	'Sonthofen'	
					sunurl[15]=	'http://www.hospiz.de/webcam/a_ChillCam_00001.jpg'
					sunurl[16]= 'http://www.esg.de/webcam/current/320.jpg'
					sunurl[17]= 'http://www.panoramablick.com/webcams/glockner/links/glockner_l.jpg'
					sunurl[18]=	'http://www2.comune.venezia.it/webCamSnf/imgsnf_00001.jpg'
					sunurl[19]=	'http://www.salernometeo.it/Webcam/napoli/currentsmall.jpg'
					sunurl[20]=	'http://www.wien.gv.at/camera/rathausplatz.jpg'
					sunurl[21]= 'http://www.heso-com.sk/kamera.jpg'
					//sunurl[25]= 'Radiosity'
					sunurl[22]= 'http://www.pyramidcam.com/netcam.jpg'
					sunurl[23]= 'http://kijabe.org/longocam/CamImg.jpg'
					sunurl[24]= 'http://www.7211000.ru/webcams/cam1.jpg'
					sunurl[25]= 'http://camera.kemernet.ru/cam_huge.jpg'
				  sunurl[26]= 'http://crest.ernet.in/webcam/images/latest.jpg'
					sunurl[27]= 'http://www.salon-net.org/realtime100.jpg'
					sunurl[28]= 'http://www.fnn-news.com/pocket/odaiba_soto.jpg'
					//sunurl[28]= "http://www.ecocam.com.au/cameras/darwin/dwn1-5.jpg"
					sunurl[29]= 'http://202.53.36.92/webmedia/smccam4.jpg'
					//sunurl[28]=	'Sydney Harbor'
					//sunurl[36]=	'Syd Traffic'
					sunurl[30]=	"http://northbondirsl.com.au/Assets/Cam/cam_1.jpg"
					sunurl[31]= 'http://antarctica.martingrund.de/ohig-pingi-z.jpg'
  				//sunurl[39]= 'Mt. Jacquinot'
			
		var sunimg = new Array()
				sunimg[0]=""
				sunimg[1]=""
				sunimg[2]=""			 			
			
		var web = new Array()
				web[0]=""
				web[1]=""
				web[2]=""
		//used for camera source
				web[4]=""
		//		web[3]=""
		var named = new Array()
				named[0]=""
				named[1]=""
				named[2]=""
		//		named[3]=""
				
		
		function initialize() {
						
					//	for (var count = 0; count < document.getElementById('select1').length; count++){ 
					//			int1[count]=document.getElementById('select1').options[count].text
					//			}
					//	for (count = 0; count < document.getElementById('select2').length; count++){ 
					//			int2[count]=document.getElementById('select2').options[count].text
					//			}
						//for (count = 0; count < document.getElementById('select3').length; count++){ 
						//		int3[count]=document.getElementById('select3').options[count].text
						//		}	
						
				  //n  startClock()
						starter()			
		}							
				
		function starter()	{
						 var indx = 0
						 dx = document.getElementById("select32")
						 qx = dx.options[dx.selectedIndex].text
						 if (qx==""){
						 		qx="Australia"
						 }
						 for (indx in place)  {
								 if (qx == place[indx])
							  {
								 country = place[indx]
								 countryindx= 100*indx
						 }
						 }
					var rand = (Math.floor(Math.random()*11))
					while (newsurl[countryindx+rand]==""){
								rand = (Math.floor(Math.random()*11))
								}
					//document.getElementById('title').innerHTML=rand;
					document.getElementById('news').src = newsurl[countryindx+rand];
					//document.getElementById('newstitle').href= newsurl[countryindx+rand];
		    	document.getElementById('newstitle').innerHTML= qx;
									
		}
		
//starter2 selects a random country and a random news source

	function starter2()	{
						 var indx = (Math.floor(Math.random()*39))
						 while (indx == 0) {
						 			var indx = (Math.floor(Math.random()*39))
									}	 
							country = place[indx]
							countryindx= 100*indx
				
					var rand = (Math.floor(Math.random()*11))
					while (newsurl[countryindx+rand]==""){
								rand = (Math.floor(Math.random()*11))
								}
					//document.getElementById('title').innerHTML=rand;
				document.getElementById('news').src = newsurl[countryindx+rand];
					//document.getElementById('newstitle').href= newsurl[countryindx+rand];
		    document.getElementById('newstitle').innerHTML= place[indx];
				
				
									
		}		
		
	function starter3()	{
					countryindx=200
					rand = 1
					while (newseng[countryindx+rand]!="1"){
					 
						 var indx = (Math.floor(Math.random()*39))
						 while (indx == 0) {
						 			var indx = (Math.floor(Math.random()*39))
									}	 
							country = place[indx]
							countryindx= 100*indx
				
							var rand = (Math.floor(Math.random()*11))
							while (newsurl[countryindx+rand]==""){
								rand = (Math.floor(Math.random()*11))
								}
												
					}
					//document.getElementById('title').innerHTML=rand;
					document.getElementById('news').src = newsurl[countryindx+rand];
					//document.getElementById('newstitle').href= newsurl[countryindx+rand];
		    document.getElementById('newstitle').innerHTML= place[indx];
									
		}				
		
		function addoption(list,a,initial)
          {
					  var indx3 = 0 
						var path = document.getElementById('select'+a);
						while (indx3 < initial.length) {
									//allows for max of 100 options per country
									for (var count = countryindx; count < countryindx+100; count++){
											if (initial[indx3] == list[count] ){											
    											var elOptNew = document.createElement('option');
                      		elOptNew.text = list[count];                  		
                          try {
                            path.add(elOptNew, null); // standards compliant; doesn't work in IE
                          }
                          catch(ex) {
                            path.add(elOptNew); // IE only
                          }
									    }
									}
							indx3++				
							}		
          }
					
					
	//builds up lists before taking items away	
			function resetlists(a) {
						var indx4 = 0 
						var path=document.getElementById("select"+a)
  				var endindx = path.length
						while (indx4 < endindx) {
								path.selectedIndex=0
						    path.remove(path.selectedIndex)
								indx4++ 								
						}						
				}
	
								 
		function run()  {
						 x=1
						// win(cams,camsurl,1,0)
						 win(news,newsurl,2,0)
						// radiostart()
						 }
						 
		function win(namer,location,h,country) {
					var ind = country
					var d=document.getElementById("select"+h)
				  var q = d.options[d.selectedIndex].text
					for (ind in namer)  {
							if (q == namer[ind])
							  {
								 web[h] = location[ind]
								 named[h] = namer[ind]
								 //added to give source to camera
								 if (h=1)
  					       {
  								 	web[4] = camsurls[ind]
  								 }
								}
					}
  				document.getElementById('news').src = web[2];
					document.getElementById('newslink').href= web[2]; 
		//			document.getElementById('viewlink').href= web[4]; 
	//			  document.getElementById('radio').innerHTML=named[3];
	//				document.getElementById('radio').href=web[3];
					
		}
		
		function radiostart() {
				for (var count = 1; count < 5; count++){
  					document.getElementById('radio'+count).innerHTML=radio[countryindx+count];
  					document.getElementById('radio'+count).href=radiourl[countryindx+count];	
  			} 
		}
		
		function radiopage() {
				var next =1;
				var countrynum = 100;
				document.getElementById('radio1').innerHTML=place[countrynum/100];
				document.getElementById('radio1').style.fontWeight="bolder";
				document.getElementById('radio1').style.fontFamily="Bradley Hand ITC";
				document.getElementById('radio1').style.fontSize="28";
				document.getElementById('radio1').style.color="darkred";
				document.getElementById('radio1').style.underline="none";
				for (var count = 2; count < 67; count++){
						if (radiourl[countrynum+next]==""){
							 countrynum = countrynum + 100;
							 next = 1;
							 document.getElementById('radio'+count).innerHTML=place[countrynum/100];
							 document.getElementById('radio'+count).style.fontWeight="bolder";
							 document.getElementById('radio'+count).style.fontFamily="Bradley Hand ITC";
							 document.getElementById('radio'+count).style.fontSize="28";
							 document.getElementById('radio'+count).style.color="darkred";
							 document.getElementById('radio'+count).style.underline="none";
							 
							 next = next =1;
						} 
						else	{
							 
      				document.getElementById('radio'+count).innerHTML=radio[countrynum+next];
      				document.getElementById('radio'+count).href=radiourl[countrynum+next];
    					next = next +1;
						}
  			} 
		}
		
    function startClock() {
     x = x-y;
     if (x <= 1) reload1();
     timerID = setTimeout("startClock()", 1000);
    }
  
    function reload1() {
		if (r > 2){
       now = new Date();
       var camImg = web[1] + "?" + now.getTime();
       document.campicture.src = camImg;
			 r=1;
			 }
		 
		 //rotates through world images for ad.
  	 //z = z + 1;
     //var worldImg = "http://www.zesez.com/language/pic" + z + ".jpg";
     //document.worldpic.src = worldImg;
		 //if (navigator.appName=="Microsoft Internet Explorer"){
		 // 	}
		 //else{
		 // 		document.getElementById('adtext').innerHTML=message[z];
		 //			}
		 r=r+1;
		 x = 10;
		 //if (z>=10) z = 0;  
    }
		function sunshinestart(b){
						 sunshine(b);
						 for (var count = 0; count < 32; count++){
						 		 document.getElementById('imenu'+count).src=sunurl[count];
						 }
						 startClock2();
						// var d = new Date()
					//	 var gmtHours = d.getTimezoneOffset()/60
						// startTime(b);
						 
		}
		function sunshine(a){

						if (a == 0){
							 document.image0.src = sunurl[31];
					  	 document.getElementById('name0').innerHTML = sun1[31];
							 sunimg[0]=sunurl[31]
						}
						else{
								 document.image0.src = sunurl[a-1];
						  	 document.getElementById('name0').innerHTML = sun1[a-1];
								 sunimg[0]=sunurl[a-1]
						}
						document.image1.src = sunurl[a];
						document.getElementById('name1').innerHTML = sun1[a];
						sunimg[1]=sunurl[a]
						if (a == 31){
							   document.image2.src = sunurl[0];
						  	 document.getElementById('name2').innerHTML = sun1[0];
								 sunimg[2]=sunurl[0]
						}
						else {
							   document.image2.src = sunurl[a+1];
					  		 document.getElementById('name2').innerHTML = sun1[a+1];
								 sunimg[2]=sunurl[a+1]
						}
		}			

		function startClock2() {
     x = x-y;
     if (x <= 1) reload2();
     timerID = setTimeout("startClock2()", 1000);
    }
  
    function reload2() {
		if (r > 2){
       now = new Date();
       var Img0 = sunimg[0] + "?" + now.getTime();
       document.image0.src = Img0;
			 var Img1 = sunimg[1] + "?" + now.getTime();
       document.image1.src = Img1;
			 var Img2 = sunimg[2] + "?" + now.getTime();
       document.image2.src = Img2;
			 r=1;
			 }
		 r=r+1;
		 x = 10;
    }
	
	
	//unfinished to change times for timezones.
		
		function startTime(a){
        var today=new Date();
				var gmtHours = today.getTimezoneOffset()/60;
				
				
				var h =today.getHours()+ gmtHours + gmt[a]
				if (h >= 24){
					 h = h-24;
					 }
				if (h <= 0){
					 h = h+24;
					 }	 
        var m=today.getMinutes()
        var s=today.getSeconds()
        // add a zero in front of numbers<10
        m=checkTime(m)
        s=checkTime(s)
        document.getElementById('time0').innerHTML=h+":"+m+":"+s
        t=setTimeout('startTime()',500)
    }

    function checkTime(i)
    {
      if (i<10) 
        {i="0" + i}
        return i
    }

//Stuff for demo game

var eng= new Array()
		eng[0]="Hello."
		eng[1]="Good-bye."
		eng[2]="Thank you."
		eng[3]="Please."
		eng[4]="How are you?"
		eng[5]="Another beer, please."
		eng[6]="Would you like to dance?"
		eng[7]="The weather is great!"
		eng[8]="I like the beach."
		eng[9]="Cheers!"
						 
var ger= new Array()
		ger[0]="Hallo."
		ger[1]="Tschuess."
		ger[2]="Danke."
		ger[3]="Bitte."
		ger[4]="Wie geht es Ihnen?"
		ger[5]="Noch ein Bier, bitte."
		ger[6]="Moechten Sie tanzen?"
		ger[7]="Das Wetter ist wunderbar!"
		ger[8]="Der Strand gefaellt mir."
		ger[9]="Prost!"
								 
var spa= new Array()
		spa[0]="Hola."
		spa[1]="Adiós."
		spa[2]="Gracias."
		spa[3]="Por favor."
		spa[4]="¿Comó estás?"
		spa[5]="Una cerveza más, por favor."
		spa[6]="¿Quieres bailar?"
		spa[7]="¡La clima está muy bueno!"
		spa[8]="Me gusta la playa."
		spa[9]="¡Salud!"
		
var por= new Array()
		por[0]="Bom dia."
		por[1]="Adeus."
		por[2]="Obrigado."
		por[3]="Por favor."
		por[4]="Como são?"
		por[5]="Outra cerveja, por favor."
		por[6]="Você gostaria de dançar?"
		por[7]="O tempo é grande!"
		por[8]="Que eu gosto da praia."
		por[9]="Salud!"
		
var score = new Array()
		
		
var qarray = new Array()

var aarray = new Array()
var b = 0
var questlang=""
var totalcor=0;
var total=0;
var t;
var m=2;
var s=0;
var i=":0";

function ad() {
				 var t1=setTimeout("document.getElementById('question').innerHTML='¡Aprende 10 palabras en 2 minutos!'",4000)
				 var t2=setTimeout("document.getElementById('question').innerHTML='Lerne 10 Wörter in 2 Minuten!'",8000)		
}
	
function game(){
	//reading in question and answer vocab lists
				 	score[0]=4
      		score[1]=4
      		score[2]=4
      		score[3]=4
      		score[4]=4
      		score[5]=4
      		score[6]=4
      		score[7]=4
      		score[8]=4
      		score[9]=4	
				// window.open("http://www.zesez.com/standard/muffp.mp3","","scrollbars=no,width=250,height=50")		 
				 var q = document.getElementById('quest');
				 var a = document.getElementById('ans');
				 var quest = q.options[q.selectedIndex].text;
				 var ans = a.options[a.selectedIndex].text;
				 		 
				 if (quest == "English"){
				 		for (var count = 0; count < 10; count++){
								qarray[count]=eng[count];
								}
				 }
				 if (quest == "Deutsch"){
				 		for (var count = 0; count < 10; count++){
								qarray[count]=ger[count];
								}
				 }
				 if (quest == "Español"){
				 		for (var count = 0; count < 10; count++){
								qarray[count]=spa[count];
								}
				 }
				 if (quest == "Português"){
				 		for (var count = 0; count < 10; count++){
								qarray[count]=por[count];
								}
				 }	
				
				 if (ans == "English"){
				 		for (var count = 0; count < 10; count++){
								aarray[count]=eng[count];
								}
				 }
				 if (ans == "Deutsch"){
				 		for (var count = 0; count < 10; count++){
								aarray[count]=ger[count];
								}
				 }
				 if (ans == "Español"){
				 		for (var count = 0; count < 10; count++){
								aarray[count]=spa[count];
								}
				 }
				 if (ans == "Português"){
				 		for (var count = 0; count < 10; count++){
								aarray[count]=por[count];
								}
				 }	
				 guess();
				 document.getElementById('question').innerHTML=quest+": "+ qarray[b];
				 document.getElementById('anslang').innerHTML=ans+": ";
				 questlang=quest+": ";
				 clearTimeout(t);
				 totalcor=0;
				 total=0;
				 m=2;
				 s=0;
				 timer();
}

function guess(){
				 for (var count = 0; count < 10; count++){
				 		 
						 for (var count2 = 0; count2 < 10; count2++){
						 	 if (score[count2] < 0){
						 		score[count2]=0;
  						 }
  						 if (score[count2] > 9){
  						 		score[count2]=9;
  						 }
  						 if (score[count2]==count && count2 != b){
  						    b = count2;
									count=10;
						 	 }
						 }
				 }
				 
}

function checkanswer() {
			document.getElementById('question').innerHTML=b;
			if (document.getElementById('answer').value == aarray[b]){
				 document.getElementById('question').innerHTML="Correct!";
				 score[b]=score[b]+1;
				 totalcor=totalcor+1;
			}
			else {
				 document.getElementById('question').innerHTML="Incorrect!  Answer is '"+aarray[b]+"'";
				 score[b]=score[b]-1;
			}
			total=total+1;
			var t1=setTimeout("guessprint()",2000);
					
}

function guessprint(){
			guess();
			document.getElementById('answer').value="";
			document.getElementById('question').innerHTML=questlang+qarray[b];
			document.getElementById('answer').focus();
			
}	



function timer(){
			
      t=setTimeout('timer()',1000);
      s=s-1;
      if (s <= 0){
      	 s = 59;
      	 m = m-1;
      }
      if (s < 10){
				 i=":0";
			}
      if (s >= 10){
			i=":" ; 
      }
			document.getElementById('timer').innerHTML=m+i+s	
			if (m < 0){
				 		clearTimeout(t);
				 		document.getElementById('question').innerHTML="Gameover!  Score: "+totalcor+"/"+total;
						document.getElementById('advert').innerHTML="Click below to learn Hundreds of words and phrases with Audio!";
						document.getElementById('timer').innerHTML="0:00"	 
			}
      
}

function words() {
				 var d=document.getElementById("quest")
				 var q = d.options[d.selectedIndex].text
				 var d2=document.getElementById("ans")
				 var a = d2.options[d2.selectedIndex].text
				 window.open("http://www.zesez.com/language/words"+q+a+".htm","","scrollbars=no,toolbar=no,menubar=no,width=380,height=280")
}

function fillwords(langans,langquest) {
				 document.getElementById('questtitle').innerHTML=langquest;
				 document.getElementById('anstitle').innerHTML=langans;
				 if (langquest == "English"){
				 		for (var count = 0; count < 10; count++){
								
								document.getElementById('lang'+count).innerHTML=eng[count];
								}
				 }
				 if (langquest == "Deutsch"){
				 		for (var count = 0; count < 10; count++){
								document.getElementById('lang'+count).innerHTML=ger[count];
								}
				 }
				 if (langquest == "Español"){
				 		for (var count = 0; count < 10; count++){
								document.getElementById('lang'+count).innerHTML=spa[count];
								}
				 }
				 if (langquest == "Português"){
				 		for (var count = 0; count < 10; count++){
								document.getElementById('lang'+count).innerHTML=por[count];
								}
				 }
				 if (langans == "English"){
				 		for (var count = 0; count < 10; count++){
								
								document.getElementById('alang'+count).innerHTML=eng[count];
								}
				 }
				 if (langans == "Deutsch"){
				 		for (var count = 0; count < 10; count++){
								document.getElementById('alang'+count).innerHTML=ger[count];
								}
				 }
				 if (langans == "Español"){
				 		for (var count = 0; count < 10; count++){
								document.getElementById('alang'+count).innerHTML=spa[count];
								}
				 }
				 if (langans == "Português"){
				 		for (var count = 0; count < 10; count++){
								document.getElementById('alang'+count).innerHTML=por[count];
								}
				 }
}

function fillwords_old() {
				 window.resizeTo(500,300)
				 window.scrollbars="no"
				 var one = document.getElementById("quest")
				 var langquest = one.options[one.selectedIndex].text 
				 if (langquest == "English"){
				 		for (var count = 0; count < 10; count++){
								
								document.getElementById('lang'+count).innerHTML=eng[count];
								}
				 }
				 if (langquest == "Deutsch"){
				 		for (var count = 0; count < 10; count++){
								document.getElementById('lang'+count).innerHTML=ger[count];
								}
				 }
				 if (langquest == "Español"){
				 		for (var count = 0; count < 10; count++){
								document.getElementById('lang'+count).innerHTML=spa[count];
								}
				 }
				 if (langquest == "Português"){
				 		for (var count = 0; count < 10; count++){
								document.getElementById('lang'+count).innerHTML=por[count];
								}
				 }
				 var two = document.getElementById("ans");
				 var langans = two.options[two.selectedIndex].text;
				 if (langans == "English"){
				 		for (var count = 0; count < 10; count++){
								
								document.getElementById('alang'+count).innerHTML=eng[count];
								}
				 }
				 if (langans == "Deutsch"){
				 		for (var count = 0; count < 10; count++){
								document.getElementById('alang'+count).innerHTML=ger[count];
								}
				 }
				 if (langans == "Español"){
				 		for (var count = 0; count < 10; count++){
								document.getElementById('alang'+count).innerHTML=spa[count];
								}
				 }
				 if (langans == "Português"){
				 		for (var count = 0; count < 10; count++){
								document.getElementById('alang'+count).innerHTML=por[count];
								}
				 }
}
			
//function detectBrowser()
//{
//var browser=navigator.appName
//var b_version=navigator.appVersion
//var version=parseFloat(b_version)

//  if (browser=="Microsoft Internet Explorer")
 // 	 {
  	 //alert("It's time to upgrade your browser!"+browser);
  	 //window.location="http://www.zesez.com/ie/ieindex.htm"
 // 	 changed=1;
	//	 alert(changed)
 // 	 }
//
//}

				 
		
		
		
						
