var MY_OFFICE = "SB 4.02.46" 
var PAR
var THIS_COURSE


var IMPORTANT_NEWS = 'The revised exam schedule follows. Only the date for Exam 2 in MAT 4213 has been changed.    \n\n' +
  'MAT 3013:\n'+
  '    Exam 1: 18 February\n' +
  '    Exam 2: 25 March\n\n' +
  'MAT 3213:\n'+
  '    Exam 1: 23 February\n' +
  '    Exam 2: 1 April\n\n' +
  'MAT 4213:\n'+
  '    Exam 1: 11 February\n' +
  '    Exam 2: 6 April\n\n' 


/*
var IMPORTANT_NEWS = 'This website will not be available for a few hours on 09/27/2009:\n\n' +
  'Server outage notification:\n\n'+
  '  SERVER: Raid (207.45.187.26)\n' +
  '  DATE: September 27th, 2009 @ 1:00am (EST)\n' +
  '  MAINTENANCE WINDOW: 09/27/2009 @ 1:00am (EST) - 09/27/2009 @ 7:00am (EST)\n' +
  '  EXPECTED DURATION: 4 - 6 hours'
*/


/*
var IMPORTANT_NEWS = 'The Spring 2009 portion of this site is under construction. ' +
  'The information will not necessarily be accurate until this notice disappears.'
*/


/*
var IMPORTANT_NEWS = 'Effective Immediately: Calculus I (MAT 1214 02F 32540) will meet in BB 3.03.24.\n' +
  'Lectures, labs, exams, final, will take place there.\n\n\n' +
  'Revised Final Exam Schedule\n\n' +
  '   MAT 3013 Foundations of Mathematics: 8 July (Tuesday) 10:30 am - 12:00 noon     \n\n' +
  '   MAT 1214 Calculus I: 8 July (Tuesday) 1:30-3:00 pm\n\n' +
  'Last class day: 3 July (Thursday)\n\n' +
  'MAT 1214 Calculus I Exams 3 and 4 will start at 4:20 pm. \n' + 'Ms. Fies will run the lab from 4:00 pm to 4:20 pm. \n\n'
*/

//var IMPORTANT_NEWS = 'MAT 3633: Exam 3 has been moved to November 26. Your semester grade will be the average of your ' +
//'best three exam grades (Exam 1, Exam 2, Exam 3 and the Final Exam).  This makes the final optional, of course.'

/*
var IMPORTANT_NEWS = 'IMPORTANT NEWS\n\nThursday, June 28, 2007: All afternoon classes and programs are canceled. ' +
  'MAT 1214 will not meet today.  If UTSA will be open tomorrow, we will do the exam review then and ' +
  'will have the exam on Monday.  Otherwise, we\'ll have the exam review on Monday and the exam on Tuesday. ' +
  'MAT 3013 has already met today.  If UTSA will be open tomorrow, we\'ll have the exam then.  Otherwise, we\'ll have ' +
  'the exam on Monday.\n\n' +
  'Friday, June 29, 2007: Everything should go as planned yesterday.\n\n' +
  'Saturday, June 30, 2007: As rescheduled earlier, we\'ll have Exam 4 in MAT 1214 on Monday, July 2, 2007.\n\n'
*/

function putGlobal(){
}


function getParString() {
  URLString = new String(parent.location)
  startIndex = URLString.indexOf('?')
  if (startIndex == -1) return ''
  return URLString.slice(startIndex + 1, URLString.length)
}

function putHeader(title, courseOutlineURL) {
  var temp = getParString()
  temp += '///'
  put('<FONT SIZE=-1 FACE="ARIAL,HELVETICA"><B><BR>UTSA<BR>Lucio Tavernini - Course Homepage<BR>')
  PAR = temp.split('/')  //  PAR[0] = term,  PAR[1] = section,  PAR[2] = year
  if (PAR[2] != '') {
    put(title + '<BR>')
    put(PAR[0].charAt(0).toUpperCase() + PAR[0].substring(1) + ' ' + PAR[2] + ' - Section ' + PAR[1].toUpperCase() + 
      '</B><BR><BR>')
    put('<P><A HREF="' + courseOutlineURL + '?' + getParString() +
      '" TARGET=_top>See the Course Outline (Syllabus)</A>. Remember to check the tablet PC class notes frequently for updates.</P>')
  }
  else {
    put(title)
    put('</B>')
    put('<P><A HREF="' + courseOutlineURL + 
      '" TARGET=_top>See the Course Outline (Syllabus)</A></P>')
  }
}

function put(s) {
  document.writeln(s)
}

if ( location.host == "65.254.34.153" 
  || location.host == "65.254.59.234" 
  || location.host == "tavernini.homedns.org" 
  || location.host == "www.tavernini.com" 
  || location.host == "tavernini.us" 
  || location.host == "www.tavernini.us")
  top.location.replace('http://tavernini.com' + parent.location.pathname + '?' + getParString())

  
function popWin(URL, width, height) {
  window.open(URL,"", "width=" + width + ",height=" + height + 
  ",screenX=50,screenY=50,resizable=0,toolbar=0,directories=0,status=0,menubar=0,scrollbars=0")
}

