
function SwitchImg()
{ //start
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
    	store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
   	   switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
} //end

function RestoreImg()
{ //start
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
} //end

function PrologN(quote, dude, face, num)
{
var AnimID = face + num + 1 ;
var ImgID = face + num + 'a' ;
var Img = '/img/' + face + 'c.gif' ;
var ImgCol = '/img/' + face + '.gif' ;

document.write('<table class="uu" width="70%">'
 + ' <tr class="uu" onmouseover="this.bgColor = \'#ffeeee\'" '
 + ' onmouseout="this.bgColor = \'#eeeeee\'">'
 + ' <td class="uu" width="80%" onmouseout="RestoreImg()"'
 + ' onmouseover="SwitchImg(\'document.'+ ImgID + '\',\'document.'
 + ImgID + '\',\'' + ImgCol + '\')">'
 + ' <table class="uu"><tr class="uu"><td ID="' + AnimID + '"> '
 + ' <i>"' + quote +'"</i></td></tr>'
 + ' <tr class="uu"><td class="uu" align="right">&#8212; ' + dude + '</td></tr>'
 + ' </table></td><td align="center"'
 + ' onmouseout="RestoreImg()"'
 + ' onmouseover="SwitchImg(\'document.' + ImgID + '\','
 + ' \'document.' + ImgID +'\',\'' + ImgCol + '\')">'
 + ' <img class="alignleft" src="' + Img + '" name='+ ImgID + '></td></tr></table>') ;
}

function Prolog(quote, dude, face)
{
 PrologN(quote, dude, face, '0') ;
}

function footnote(fn)
{
 document.write('<a title="' + fn + '"><sup>Note</sup></a> ') ;
}

function popUp(URL, width, height) {
    id = 600;
    if (typeof(width == 'undefined')) width = 600 ;
    else id = width ;
    if (typeof(height == 'undefined')) height = 500 ;
    eval("pageUp = window.open(URL, '" + id + 
	 "','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" + width + 
	 ",height=" + height + ",left = 10,top = 10');");
    if (pageUp == null) {
	alert('Error while launching new window! Your browser maybe blocking popups.'
	      + '\nPlease allow popups from this web site to see this content.'
	      + '\nOr, use <Control><Alt> click on the link to temporarily allow the popup.') ;
    }
    else {
	pageUp.focus() ;
    }
}

function popUpWide(URL) {
    popUp(URL, 800, 600) ;
}

function popUpFat(URL) {
    popUp(URL, 1000, 780) ;
}

