// $Header: /var/www/www.cpcaustin.org/RCS/cpc.js,v 1.1 2007/08/15 17:33:03 whb Exp whb $

sfFocus = function() {
    var sfEls = document.getElementsByTagName("A");
    for (var i=0; i<sfEls.length; i++) {
	sfEls[i].onfocus=function() {
	    this.className+=" sffocus";
	}
	sfEls[i].onblur=function() {
	    this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
	}
    }
}
if (window.attachEvent) window.attachEvent("onload", sfFocus);
// The above script came from "Son of Suckerfish", and enhances tabbing on the expanded nav when that occurs.

wImg = new Image();
function wstat () {
 // Screen size is easy...
 var s = '?s=' + screen.width + 'x' + screen.height;
 // Window size is harder...
 // http://www.howtocreate.co.uk/tutorials/javascript/browserwindow
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  var w = ';w=' + myWidth + 'x' + myHeight;
 wImg.src = '/pix/blank.gif' + s + w;
 // alert(wImg.src);
}
