		//--------------------------------------------------------------------------------------------------------
		// Definition
		//--------------------------------------------------------------------------------------------------------
		
		var imgPath     = "imagens";       // path to images (digits)
		var borderColor = "#D00000";      // border color
		var borderWidth = 0;              // border width (pixels); set to 0 for no border

		document.write('<table border=0 cellspacing=0 cellpadding=' + borderWidth + '><tr><td bgcolor=' + borderColor + '>');
		document.write('<table border=0 cellspacing=0 cellpadding=1 width=200 height=50 bgcolor=black><tr align=center>');
		document.write('<td nowrap valign=top>');
		document.write('<img src="' + imgPath + '/n0.png" name="d1" width=27 height=36>');
		document.write('<img src="' + imgPath + '/n0.png" name="d2" width=27 height=36>');
		document.write('<img src="' + imgPath + '/vazio.png" width=26 height=36>');
		document.write('<img src="' + imgPath + '/n0.png" name="hr1" width=27 height=36>');
		document.write('<img src="' + imgPath + '/n0.png" name="hr2" width=27 height=36>');
		document.write('<img src="' + imgPath + '/dp.png" width=15 height=36>');
		document.write('<img src="' + imgPath + '/n0.png" name="mn1" width=27 height=36>');
		document.write('<img src="' + imgPath + '/n0.png" name="mn2" width=27 height=36>');
		document.write('<img src="' + imgPath + '/dp.png" width=15 height=36>');
		document.write('<img src="' + imgPath + '/n0.png" name="se1" width=27 height=36>');
		document.write('<img src="' + imgPath + '/n0.png" name="se2" width=27 height=36>');
		document.write('</td></tr></table></td></tr></table>');
		document.write('<div id="dia" style="display:inherit; margin-left:-210px; margin-top:-13px;"></div>');
		document.write('<div id="hora" style="display:inherit; margin-left:-55px; margin-top:-9px;"></div>');
		document.write('<div id="minuto" style="display:inherit; margin-left:80px; margin-top:-9px;"></div>');
		document.write('<div id="segundo" style="display:inherit; margin-left:220px; margin-top:-9px;"></div>');
		
		
		var n0 = new Image();  n0.src = imgPath + '/n0.png';
		var n1 = new Image();  n1.src = imgPath + '/n1.png';
		var n2 = new Image();  n2.src = imgPath + '/n2.png';
		var n3 = new Image();  n3.src = imgPath + '/n3.png';
		var n4 = new Image();  n4.src = imgPath + '/n4.png';
		var n5 = new Image();  n5.src = imgPath + '/n5.png';
		var n6 = new Image();  n6.src = imgPath + '/n6.png';
		var n7 = new Image();  n7.src = imgPath + '/n7.png';
		var n8 = new Image();  n8.src = imgPath + '/n8.png';
		var n9 = new Image();  n9.src = imgPath + '/n9.png';
		var pdia = new Image(); pdia.src = imgPath + '/pdia.png';
		var pdias = new Image(); pdias.src = imgPath + '/pdias.png';
		var phora = new Image(); phora.src = imgPath + '/phora.png';
		var phoras = new Image(); phoras.src = imgPath + '/phoras.png';
		var pmin = new Image(); pmin.src = imgPath + '/pmin.png';
		var pmins = new Image(); pmins.src = imgPath + '/pmins.png';
		var pseg = new Image(); pseg.src = imgPath + '/pseg.png';
		var psegs = new Image(); psegs.src = imgPath + '/psegs.png';
		
		
		
		function setcountdown(ano,mes,dia) {
			yr=ano;mo=mes;da=dia
		}
	
		setcountdown(2009,10,31)
	
		var occasion="&ldquo;Sua História&rdquo;"
		var message_on_occasion="Está no ar o site o &ldquo;Sua História&rdquo;."
	
		var countdownwidth='430px'
		var countdownheight='160px'
		var countdownbgcolor='#000000'
		var opentags='<font face="arial" size="2" color="#33FF33">'
		var closetags='</font>'
	
		var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
		var crosscount=''
	
		function start_countdown(){
			if (document.layers)
			document.countdownnsmain.visibility="show"
			else if (document.all||document.getElementById)
			crosscount=document.getElementById&&!document.all?document.getElementById("countdownie") : countdownie
			countdown()
		}
	
		if (document.all||document.getElementById)
		document.write('<span id="countdownie" style="width:'+countdownwidth+'; background-color:'+countdownbgcolor+'"></span>')
	
		window.onload=start_countdown
	
		function countdown(){
			var today=new Date()
			var todayy=today.getYear()
			if (todayy < 1000)
			todayy+=1900
			var todaym=today.getMonth()
			var todayd=today.getDate()
			var todayh=today.getHours()
			var todaymin=today.getMinutes()
			var todaysec=today.getSeconds()
			var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
			futurestring=montharray[mo-1]+" "+da+", "+yr
			dd=Date.parse(futurestring)-Date.parse(todaystring)
			dday=Math.floor(dd/(60*60*1000*24)*1)
			dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
			dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
			dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
			//var diaTela = '' + dday; 
			//var time = '' + dday + dhour + dmin + dsec;
			if (dday <= 1)
				dtempo = '<img src="' + imgPath + '/pdia.png"/>';
			else
				dtempo = '<img src="' + imgPath + '/pdias.png"/>';
			if (dhour <= 1)
				htempo = '<img src="' + imgPath + '/phora.png"/>';
			else
				htempo = '<img src="' + imgPath + '/phoras.png"/>';
			if (dmin <= 1)
				mtempo = '<img src="' + imgPath + '/pmin.png"/>';
			else
				mtempo = '<img src="' + imgPath + '/pmins.png"/>';
			if (dsec <= 1)
				stempo = '<img src="' + imgPath + '/pseg.png"/>';
			else
				stempo = '<img src="' + imgPath + '/psegs.png"/>';
			if (dday>-1)
				mens = "<div style='width:300px;'><p align='right'>Aguardem...</p></div>";		
			//if on day of occasion
			if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=1&&todayd==da){
				if (document.layers){
					document.countdownnsmain.document.countdownnssub.document.write(opentags+message_on_occasion+closetags)
					document.countdownnsmain.document.countdownnssub.document.close()
				}
				else if (document.all||document.getElementById)
				crosscount.innerHTML=opentags+" Já está no ar o "+occasion+", Clique <a href="www.jelb.org.br/suaHistoria" class='cont' target='_blank'>aqui</a> e confira! "+closetags
				return
			}
			//if passed day of occasion
			else if (dday<=-1){
				if (document.layers){
				document.countdownnsmain.document.countdownnssub.document.write(opentags+" Já está no ar o "+occasion+", Clique <a href="www.jelb.org.br/suaHistoria" class='cont' target='_blank'>aqui</a> e confira! "+closetags)
				document.countdownnsmain.document.countdownnssub.document.close()
				}
				else if (document.all||document.getElementById)
				crosscount.innerHTML=opentags+" Já está no ar o "+occasion+", Clique <a href="http://www.jelb.org.br/suaHistoria" class='cont' target='_blank'>aqui</a> e confira! "+closetags
				return
			}
			//else, if not yet
			else{
				if (document.layers){
				document.countdownnsmain.document.countdownnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" "+occasion+closetags)
				document.countdownnsmain.document.countdownnssub.document.close()
				}
				else if (document.all||document.getElementById)
				document.d1.src = imgPath + '/n' + Math.floor(dday/10) + '.png';
				document.d2.src = imgPath + '/n' + dday%10 + '.png';
				document.hr1.src = imgPath + '/n' + Math.floor(dhour/10) + '.png';
				document.hr2.src = imgPath + '/n' + dhour%10 + '.png';
				document.mn1.src = imgPath + '/n' + Math.floor(dmin/10) + '.png';
 				document.mn2.src = imgPath + '/n' + dmin%10 + '.png';
				document.se1.src = imgPath + '/n' + Math.floor(dsec/10) + '.png';
				document.se2.src = imgPath + '/n' + dsec%10 + '.png';
				document.getElementById("dia").innerHTML = dtempo;
				document.getElementById("hora").innerHTML = htempo;
				document.getElementById("minuto").innerHTML = mtempo;
				document.getElementById("segundo").innerHTML = stempo;
				//crosscount.innerHTML=opentags+"Faltam "+dday+" "+dtempo+", "+dhour+" "+htempo+", "+dmin+" "+mtempo+" e "+dsec+" "+stempo+"."+mens+closetags
			}
			setTimeout("countdown()",1000)
		}