//For Alan's Demo Only
function FooterHideShow( showMe )
{
  var x = document.getElementById( "nskFooter" );
  
  if ( showMe == 0 )
  {
    x.style.display = 'none';
  }
  else
  {
    x.style.display = 'block';
  }
  return 0;
}
      
//From: http://www.howtocreate.co.uk/tutorials/index.php?tut=0&part=16
function ContentSize()
{
    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;
    } else {
        //Everything else
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
    }
    
    var mySizeH = 0;
    var mySizeW = 0;
    var minSizeH = 99; //166;
    var minSizeW = 10;
    if ( (myHeight - minSizeH) <= 0 )
    {
        mySizeH = 1;
        document.getElementById('content').style.display = 'none';
    } else {
        mySizeH = ( myHeight - minSizeH );
        document.getElementById('content').style.display = 'block';
    }
    if ( (myWidth - minSizeW) <= 0 )
    {
        mySizeW = 1;
        document.getElementById('content').style.display = 'none';
    } else {
        mySizeW = ( myWidth - minSizeW );
        document.getElementById('content').style.display = 'block';
    }
    document.getElementById('content').style.height = mySizeH;
    //document.getElementById('content').style.width = mySizeW;
}

//http://www.htmldog.com/articles/suckerfish/dropdowns/example/bones3.html
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

window.onresize = ContentSize;
window.onload = ContentSize;

if (window.attachEvent) window.attachEvent("onload", sfHover);

