// This file contains functions for various
// defaults in the conference document files
// Author: Keith Price

function writeStyleInfo()
 {
  document.writeln('<LINK REL="SHORTCUT ICON" HREF="../favicon.ico">');
  document.writeln('<link href="../conference.css" rel="StyleSheet" type="text/css">');
 }

function writeModDate()
 {
var dateMod = ""  ;
dateMod = document.lastModified  ;
document.write(" File Last Updated:  ");  
document.write(dateMod);  
document.write('<br>'); 
 }

function writeVersionInfo()
 {
document.write('<P>This is the version from IRIS.USC.edu For the mirror see');
document.write('<a href="http://conferences.visionbib.com"> The Conferences.VisionBib.Com Version</a></p>');
 }

function writeHeaderInfo()
 {
document.write('This information was provided by the conference organizers');
document.write(' who are responsible for the content.');
document.write(' <h2>Conference Information</h2>');
writeModDate();
}

function writeFooterInfo()
 {
document.write('<ADDRESS>Maintained by <a href="http://iris.usc.edu/~price">Keith Price</a>, ');
document.write('<a href="mailto:price@usc.edu">price@usc.edu</a>.</ADDRESS> ');
document.write('<a href="http://www.adbrite.com/mb/commerce/purchase_form.php?other_product_id=729234">Promote your Conference</a>.<br>');
document.write('Send plain text versions of at least the summary information ');
document.write('and optionally the call for papers for inclusion of ');
document.write('your conference in this listing.<br>');
document.write('<a href="http://conferences.visionbib.com/conference_search.html">Search the complete conference listings</a>.<br>');
writeVersionInfo();
document.write('<a href="http://iris.usc.edu/Information/Iris-Conferences.html">Home Page</a>.');
 }

function wrDate(deadline)
 {
var today=new Date()
var todayplus=new Date()
var date=new Date()
todayplus.setDate(todayplus.getDate()+15)
date.setTime(Date.parse(deadline))
if ((date>todayplus) || (deadline.length < 5))
  document.write(deadline)
else if (date>today)
  document.write('<font color="green"><b>Soon: '+deadline+'</b></font> ')
else
  document.write('<font color="red">Past: '+deadline+'</font> ')
 }

function fbLink(conf,date)
 {
document.write('<a href="http://apps.facebook.com/computervisionconf/index.php?conf='+conf+'&year='+date+'"><img src="facebook.jpg">Facebook Conference Interest</a>')
 }

