// auxjslib is based on docjslib3.1 (February 25, 2001).// DOCJSLIB v3.1 by Yehuda Shiran <tomer@internet.com>// Copyright (c) 2001 internet.com. All Rights Reserved.// Modified for Auxiliary Services by Noel Moreno, July 2001.// VERSION HISTORY// This file is auxjslib version 1.04// ---------------------------------------------// Version 1.04 01/31/02// Removied BuzzCardNET specific javascript functions// These functions were moved to buzzcard.gatech.edu/jsfiles/buzzcard.js// ---------------------------------------------// Version 1.03 01/18/02// Added BuzzCardNET specific javascript functions// ---------------------------------------------// Version 1.02 12/05/01// Added the auxFrameFix(frameNum) function// ---------------------------------------------// Version 1.01 11/13/01// Modified aux_setTargetName() to support Framesets that are already named.  Enables the footer to work without disrupting existing frame targets.// ---------------------------------------------// Version 1.00 9/15/01// First production release// browserSniffer from docjslib3.1function browserSniffer() {    this.ie4 = document.all && !document.getElementById;    this.ns4 = document.layers;    this.ie5 = document.all && document.getElementById;    this.ns6 = document.getElementById && !document.all;}// originally this statement was in the below if/else statement.  For some reason, NS4 would not recognize the line  when loading content into a completely new window (it does see it on "reload" or if the window previously existed.  Pulling it out forces this script to be recognized in new windows, and shouldn't conflict with other browsers.  This is, however, a "hack" by Noeldocument.write('<SCRIPT LANGUAGE="JavaScript" SRC="http://www.importantstuff.gatech.edu/jslibs/docjslibNS4SubClass.js"><\/SCRIPT>');var browserType = new browserSniffer();if (browserType.ie4) {    document.write('<SCRIPT LANGUAGE="JavaScript" SRC="http://www.importantstuff.gatech.edu/jslibs/docjslibIE4SubClass.js"><\/SCRIPT>');}else if (browserType.ie5) {    document.write('<SCRIPT LANGUAGE="JavaScript" SRC="http://www.importantstuff.gatech.edu/jslibs/docjslibIE5SubClass.js"><\/SCRIPT>');}//else if (browserType.ns4) {    //document.write('<SCRIPT LANGUAGE="JavaScript" SRC="http://www.importantstuff.gatech.edu/jslibs/docjslibNS4SubClass.js"><\/SCRIPT>');}else if (browserType.ns6) {    document.write('<SCRIPT LANGUAGE="JavaScript" SRC="http://www.importantstuff.gatech.edu/jslibs/docjslibNS6SubClass.js"><\/SCRIPT>');}// docjslibSuperClass from docjslib3.1// not currently used in the Aux Footer (July 2001).  Included for future support.function docjslibSuperClass() {  this.makeImage = makeImageMethod;  function makeImageMethod(imgID,          // given id                   imgURL,         // image URL                   imgHeight,      // image height                   imgWidth,       // image width                   imgAlt,         // alternative image                   posFromLeft,    // absolute position from left of window                   posFromTop,     // absolute position from top of window                   clickParam1,    // parameter passed to "onclick" handler                   clickParam2)    // parameter passed to "onclick" handler  {    document.write(    '<STYLE TYPE="text/css">',    '#', imgID, ' {',      'position: absolute;',      'left: ', posFromLeft, ';',      'top: ', posFromTop, ';',      'width: ', imgWidth, ';',      'z-index: 1',    '}',    '</STYLE>',    '<DIV ID="', imgID, '">',    '<A HREF="javascript:', "handleImageClick('", imgID, "'", ',', clickParam1, ',',     clickParam2, ')">',    '<IMG NAME="', imgID, 'img" ID="', imgID, 'img" SRC="', imgURL, '" ALT="', imgAlt,     '" BORDER="0" ', 'HEIGHT="', imgHeight, '" WIDTH="', imgWidth, '">',    '</A></DIV>'    );  }}// createTheProperSubClass from docjslib3.1function createTheProperSubClass() {  var browserType = new browserSniffer();  if (browserType.ie4) {    this.className = "docjslibIE4SubClass";  }  else if (browserType.ie5) {    this.className = "docjslibIE5SubClass";  }  else if (browserType.ns4) {    this.className = "docjslibNS4SubClass";  }  else if (browserType.ns6) {    this.className = "docjslibNS6SubClass";  }    this.getTheProperSubClass = getTheProperSubClassMethod;    function getTheProperSubClassMethod() {    // example: return new docjslibIE5SubClass();	return eval('new ' + this.className + '()');   }}	// Dreamweaver generated functions belowfunction MM_reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {      document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) parent.location.reload();}MM_reloadPage(true);function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i>a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}function MM_showHideLayers() { //v3.0  var i,p,v,obj,args=MM_showHideLayers.arguments;  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }    obj.visibility=v; }}function MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);}function aux_loadFromWin(url)  {    //loads a url from a spawned window into the window holding the footer    window.location.href=url;	window.focus();}function aux_setTargetName() {  //sets the name of a window or frameset and returns the name    var windowElement = window;	var elementName = "auxpage";	if (top != self)  { // checks to see if current page is enclosed in a frameset        //alert("NOEL TEST MESSAGE: I'm in a window named " + top.name + "and a frame named " + self.name);		windowElement = top;		elementName = "auxframeset";    }    if (windowElement.name != "") {	    //alert("NOEL TEST MESSAGE: I'm in a Window named " + self.name);        return windowElement.name;    } else {		windowElement.name = elementName;        //alert("NOEL TEST MESSAGE: My window is not named -- so I've named it " + windowElement.name);        return windowElement.name;    }}function aux_resizeWindow(width, height) { // resizes the current window  window.resizeTo(width, height);}function aux_setStatus(textString) { // sets the status bar text to (textString)  window.status=textString;  return true;}var spawnedWindow = nullfunction aux_makeNewWindow(url, name, features) {	// check if window already exists	if (!spawnedWindow || spawnedWindow.closed) {		// store new window object in global variable		spawnedWindow = window.open(url, name , features);	} else {	// window already exists, so bring it forward	if (spawnedWindow.location.href != url) {	    spawnedWindow.location.href = url;	}	spawnedWindow.focus();	}}function aux_FrameFix(frameNum) { // Reloads Netscape 4 Frame to fix footerlayer layout issues in frames  var myBrowser = new browserSniffer();  if (myBrowser.ns4) {    frames[frameNum].location.reload();   }}
