<!--
var subs = new Object();
subs.principles = 550;


var clipTop = 0;
var clipWidth = 427;
var clipBottom = 410;
var topper = 0;
var lyrheight = 0;
var time,amount,theTime,theHeight,DHTML;

function init()
{
	DHTML = (document.getElementById || document.all || document.layers)
	if (!DHTML) return;
	var x = new getObj('lyr1');
	if (document.layers)
	{
		lyrheight = x.style.clip.bottom;
		lyrheight += 20;
		x.style.clip.top = clipTop;
		x.style.clip.left = 0;
		x.style.clip.right = clipWidth;
		x.style.clip.bottom = clipBottom;
	}
	else if (document.getElementById || document.all)
	{
		lyrheight = x.obj.offsetHeight;
		var clipstring = 'rect('+clipTop+'px,'+clipWidth+'px,'+clipBottom+'px,0)';
		x.style.clip = clipstring;
	}
	var currentAddress = document.location.href;
	var tempIndex = currentAddress.lastIndexOf('#')+1;
	if (tempIndex > 0)
	{
		var subName = currentAddress.substr(tempIndex);
		if (subs[subName] == 'bottom')
		{
			jumpToBottom('lyr1');
		}
		else
		{
			jumpToSection('lyr1', subs[subName]);
		}
		
	}

}

function scrollayer(layername,amt,tim)
{
	if (!DHTML) {/*alert("fail");*/return;}
	thelayer = new getObj(layername);
	if (!thelayer) {/*alert("fail");*/return;}
	amount = amt;
	theTime = tim;
	realscroll();
}

function stopscroll()
{
	if (time) clearTimeout(time);
}

function realscroll()
{
	if (!DHTML) {return;}
	clipTop += amount;
	clipBottom += amount;
	topper -= amount;
	if (clipTop < 0 || clipBottom > lyrheight)
	{
		clipTop -= amount;
		clipBottom -= amount;
		topper += amount;
		return;
	}
	if (document.getElementById || document.all)
	{
		clipstring = 'rect('+clipTop+'px,'+clipWidth+'px,'+clipBottom+'px,0)'
		thelayer.style.clip = clipstring;
		thelayer.style.top = topper + 'px';
	}
	else if (document.layers)
	{
		thelayer.style.clip.top = clipTop;
		thelayer.style.clip.bottom = clipBottom;
		thelayer.style.top = topper;
	}
	time = setTimeout('realscroll()',theTime);
}

function vis(val)
{
	if (!DHTML) return;
	var f = new getObj('lyr1');
	f.style.visibility = val;
}

function getObj(name)
{
  if (document.getElementById)
  {
    this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
    this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function jumpToSection(layername, amt)
{
	if (!DHTML) {return;}
	jumpToTop(layername);
	thelayer = new getObj(layername);
	amount = amt;
	clipTop += amount;
	clipBottom += amount;
	topper -= amount;
	if (clipTop < 0 || clipBottom > lyrheight)
	{
		clipTop -= amount;
		clipBottom -= amount;
		topper += amount;
		return;
	}
	if (document.getElementById || document.all)
	{
		clipstring = 'rect('+clipTop+'px,'+clipWidth+'px,'+clipBottom+'px,0)'
		thelayer.style.clip = clipstring;
		thelayer.style.top = topper + 'px';
	}
	else if (document.layers)
	{
		thelayer.style.clip.top = clipTop;
		thelayer.style.clip.bottom = clipBottom;
		thelayer.style.top = topper;
	}
}

function jumpToBottom(layername)
{
	jumpToSection(layername, lyrheight - 410);
}

function jumpToTop(layername)
{
	if (!DHTML) {return;}
	thelayer = new getObj(layername);

	clipTop = 0;
	clipBottom = 410;
	topper = 0;
	amount = 0;
	if (clipTop < 0 || clipBottom > lyrheight)
	{
		clipTop -= amount;
		clipBottom -= amount;
		topper += amount;
		return;
	}
	if (document.getElementById || document.all)
	{
		clipstring = 'rect('+clipTop+'px,'+clipWidth+'px,'+clipBottom+'px,0)'
		thelayer.style.clip = clipstring;
		thelayer.style.top = topper + 'px';
	}
	else if (document.layers)
	{
		thelayer.style.clip.top = clipTop;
		thelayer.style.clip.bottom = clipBottom;
		thelayer.style.top = topper;
	}
}

function check() 
{
	if (document.getElementById("username").value == "" || document.getElementById("password").value == "") 
	{
		alert("Please enter a Username and Password.");
		return false;
	}
	return true;
}
// -->

