<!-- Hide from old browsers
var CountTime = 5;
var GoTo = "http://www.inf.ufrgs.br/~lmschnorr";
var N=(navigator.appName.indexOf('Netscape')!=-1&&parseInt(navigator.appVersion)< 5);
var S=(navigator.appName.indexOf('Netscape')!=-1&&parseInt(navigator.appVersion)> 4.9);
var M=(navigator.appName.indexOf('Microsoft')!=-1);
var foremsg = "<font face=Verdana size=2>in <B> ";
var postmsg = " </B>seconds.</FONT>";


function lastMod()
{
	var x = new Date (document.lastModified);
	Modif = new Date(x.toGMTString());
	Year = takeYear(Modif);
	Month = Modif.getMonth();
	Day = Modif.getDate();
	Mod =(Date.UTC(Year,Month,Day,0,0,0))/86400000;
	x = new Date();
	today = new Date(x.toGMTString());
	Year2 = takeYear(today);
	Month2 = today.getMonth();
	Day2 = today.getDate();
	now = (Date.UTC(Year2,Month2,Day2,0,0,0))/86400000;
	daysago = now - Mod;
	if (daysago < 0) return '';
	unit = 'dias';
	if (daysago > 730) {
		daysago = Math.floor(daysago/365);
		unit = 'anos';
	}else if (daysago > 60) {
		daysago = Math.floor(daysago/30);
		unit = 'meses';
	}else if (daysago > 14){
		daysago = Math.floor(daysago/7);
		unit = 'semanas'
	}
	var towrite = 'Modificado: ';
	if (daysago == 0) towrite += 'hoje';
	else if (daysago == 1) towrite += 'ontem';
	else towrite += daysago + ' ' + unit + ' atrás';
	return towrite;
}

function takeYear(theDate)
{
	x = theDate.getYear();
	var y = x % 100;
	y += (y < 38) ? 2000 : 1900;
	return y;
}

function fnStartInterval(){
	window.setInterval("CountDown()",1000);
}
function WinRefresh() {
  parent.location = GoTo;
}

function lyrWrt(Item,text) {
	if (N) {
		var lyr = document.layers[Item].document;
		lyr.open();
		lyr.write(text);
		lyr.close();
	}
	if(M)
		document.all[Item].innerHTML = text;
		if(S)
			document.getElementById(Item).innerHTML = text;
}

function CountDown() {
	if (CountTime > 1) {
		CountTime = CountTime - 1;
		lyrWrt("CountText", foremsg + CountTime + postmsg);
	}else {
		WinRefresh();
	}
}

function WriteDiv() {
	document.write("<DIV id='CountText'>");
	if (M){
		document.write(foremsg);document.write(CountTime);document.write(postmsg);
	}else {
		document.write("<LAYER id='CountText'>");
		document.write(foremsg);
		document.write(CountTime);
		document.write(postmsg);
		document.write("</LAYER>");
	}
	document.write("</DIV>");
}

function WriteManualMenu ()
{
	document.write (" \
<div class='manualmenu'> \
<b>Pajé User Manual</b><br> \
<a href='manualoverall.html'>Overall Operation</a><br>\
<a href='manualdiagram.html'>Space-Time Diagram</a><br>\
<a href='manualfilters.html'>Filters</a><br>\
</div>");
}

function WriteScreenshotMenu ()
{
	document.write (" \
<div class='menuscreenshots'> \
<b>Screenshots</b><br> \
<a href='screenshots_bh.html'>BH</a><br> \
<a href='screenshots_linpack.html'>Linpack</a><br> \
<a href='screenshots_pbs.html'>PBS</a><br> \
<a href='screenshots_surveillance.html'>Surveillance</a><br> \
<a href='screenshots_tumit.html'>Tumit</a><br> \
</div>");
}

function WriteHeader(file)
{
	document.write (" \
<div class='header'> \
<img src='"+file+"'> \
<h1> \
WSCAD 2005<br> \
<b>VI Workshop em Sistemas<br>Computacionais de Alto Desempenho</b> \
</h1>");
//WriteLastModification();
	document.write ("</div>");

}

function WriteMenu(selected) {
	document.write (" \
<div class='menu'> \
<a href='index.php'>Página Principal</a><br> \
<a href='topicos.html'>Tópicos de Interesse</a><br> \
<a href='datasimportantes.html'>Datas Importantes</a><br> \
<a href='chamadas.html'>Chamada de Trabalhos</a><br> \
<a href='premio.html'>Prêmio WSCAD 2005</a><br> \
<a href='comites.html'>Comitês</a><br> \
<a href='formatos.html'>Formato de Submissão</a><br> \
<a href='submissao.html'>Submissão</a><br> \
<a href='hoteis.html'>Hotéis</a><br> \
<a href='contato.html'>Contato</a><br> \
");
	document.write (" \
<br><br> \
<p> \
Página principal<br> \
<a href='http://www.sbc.org.br/wscad'>WSCAD</a><br> \
<br> \
Eventos Paralelos<br> \
<a href='http://www.sbc.org.br/sbac/2005'>SBAC-PAD 2005</a> <br>\
<a href='http://www.sbc.org.br/sbac/2005/fsad'>FSAD 2005</a> \
</p>");
	document.write ("</div>");
//<!--Palestrantes convidados<br> -->\
//<a href='programa.html'>Programação</a><br>");
//if (selected == "programa"){
//	document.write (" \
//<div class='programamenu'> \
//<a href='programadia1.html'>Dia 1</a><br> \
//<a href='programadia2.html'>Dia 2</a><br> \
//<a href='programadia3.html'>Dia 3</a><br> \
//</div> \
//	");
//}
//<!--<a href='inscricao.html'>Inscrição</a><br> \ -->
//<!--<a href='artigosaceitos.html'>Artigos Aceitos</a><br> \ -->
//<!--<a href='local.html'>Informações Locais</a><br> \ -->
//<br> \
//<!--<a href='identidade.html'><img src='../images/cartaz-wscad-menu.jpg'></a> \ -->
}

function WriteLastModification(){
	document.write ("<div class='updated'>");
	document.write (lastMod());
	document.write ("</div>");
	
}

function WritePhoto ()
{
	document.write (" \
<div class='photo'> \
<img src='images/main/lucas.jpg'> \
<h5>Torres - RS - Brazil<br> \
February 2004</h5> \
</div>");
}

// abre janela maximizada
function abreM(url){
	W = eval(screen.width)-10;
	H = eval(screen.height)-54;
	window.open(url,"Reservas","toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600,top=0,left=0");
}


-->

