n=1;
Publication=new Array();

function Publicationclass(){
this.name = n;
}


function TheDate(d){
Publication[n]=new Publicationclass();
var dField=d.split(".");
Publication[n].pubyear = dField[1];
Publication[n].rank = dField[0];
}

function AUTHOR(x){
Publication[n].author = x;
}

function TITLE(x){
Publication[n].title = x;
}

function BOOKTITLE(x){
Publication[n].booktitle = x;
}

function SERIES(x){
Publication[n].series = x;
}

function JOURNAL(x){
Publication[n].journal = x;
}

function FJOURNAL(x){
Publication[n].fjournal = x;
}

function VOLUME(x){
Publication[n].volume = x;
}

function YEAR(x){
Publication[n].year = x;
}

function PYEAR(x){
Publication[n].pyear = x;
}


function NUMBER(x){
Publication[n].number = x;
}

function PAGES(x){
Publication[n].pages = x;
}

function PUBLISHER(x){
Publication[n].publisher = x;
}

function ADDRESS(x){
Publication[n].address = x;
}

function DOI(x){
Publication[n].doi = x;
}

function EFILE(x){
Publication[n].efile = x;
}

function ARXIV(x){
Publication[n].arxiv = x;
}


function Announce(){

if (this.author!= defaultAuthor) {this.author='<author>(with '+this.author+')</author>'};
{this.title='<titles>'+this.title+this.booktitle+'.</titles>'};
{this.journal='<journal>'+this.journal+this.series+'</journal>'};
{this.fjournal='<fjournal>'+this.fjournal+this.series+'</fjournal>'};
{this.pages='<pages>'+this.pages+'. '+this.publisher+' '+this.address+' '+this.pyear+'</pages>'};
if (this.volume!= defaultVolume && this.year!= defaultYear) {{this.volume='<volume>'+this.volume+'</volume>'}
				   {this.year='<pages> ('+this.year+'),</pages>'};
				   }
else {{this.volume='<volume>'+this.volume+this.year+'</volume>'+'<pages>'+','+'</pages>'}
      {this.year=''};
     };
if (this.number!= defaultNumber) {this.number='<pages>no. '+this.number+',</pages>'};



document.write('<table BORDER="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('<td width="12px" valign="middle">');
document.write('<a href="'+this.arxiv+'" target="win2"><img alt="" src="graphics/pdf.gif" style="border: 0px solid ; width: 12px; height: 12px;"></a>');
document.write('</td>');
document.write('<td width="0px" align="left"><p >');
if (this.doi!=defaultDoi){
document.write('<a href="http://dx.doi.org/'+this.doi+'" target="win2">');
document.write('&nbsp;&nbsp;'+this.title+'</a>');}
else if (this.efile!=defaultEfile){
document.write('<a href="'+this.efile+'" target="win2">');
document.write('&nbsp;&nbsp;'+this.title+'</a>');} 
else {
document.write('&nbsp;&nbsp;'+this.title);};
document.write('<br>'+'&nbsp;&nbsp;'+this.journal+'&nbsp;'+this.volume+this.year+'&nbsp;'+this.number+'&nbsp;'+this.pages);
if (this.author !='') {document.write('<br>'+'&nbsp;&nbsp;'+this.author);};
document.write('</p>');
document.write('</td><td width="0px">');
document.write('</td></tr></table>');
n++;}

function initialize(){
Publicationclass.prototype.journal = '';
Publicationclass.prototype.author = defaultAuthor;
Publicationclass.prototype.title = '';
Publicationclass.prototype.booktitle = '';
Publicationclass.prototype.fjournal = '';
Publicationclass.prototype.volume = defaultVolume;
Publicationclass.prototype.series = '';
Publicationclass.prototype.number = defaultNumber;
Publicationclass.prototype.year = defaultYear;
Publicationclass.prototype.publisher = ''
Publicationclass.prototype.address = '';;
Publicationclass.prototype.pyear = '';
Publicationclass.prototype.doi = defaultDoi;
Publicationclass.prototype.efile = defaultEfile;
Publicationclass.prototype.announce = Announce;
}

function topmatter(){
initialize();
window.document.write('<link rel=stylesheet href="style/pubstyle.css" type="text/css" >');
window.document.write('<br>');
window.document.write('<p10pt>' );
window.document.write('Past support: '+pastGrant+'.');
window.document.write('</p10pt>' );
window.document.write('<p10pt>' );
window.document.write(' Current support: '+defaultGrant+'.');
window.document.write('</p10pt>' );
window.document.write('<hr>');
window.document.write('<pre>');
}

function endmatter(){
window.document.write('</pre>');
window.document.write('</body></html>');
}
