<!--//--><![CDATA[//><!--
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"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);






//SteveE 01/23/2011

//Stolen from jQuery source code, to bind a document.ready() event
function bindReady(){
	// Mozilla, Opera and webkit nightlies currently support this event
	if ( document.addEventListener ) {
		// Use the handy event callback
		document.addEventListener( "DOMContentLoaded", function(){
			document.removeEventListener( "DOMContentLoaded", arguments.callee, false );
			hleDomReady();
		}, false );

	// If IE event model is used
	} else if ( document.attachEvent ) {
		// ensure firing before onload,
		// maybe late but safe also for iframes
		document.attachEvent("onreadystatechange", function(){
			if ( document.readyState === "complete" ) {
				document.detachEvent( "onreadystatechange", arguments.callee );
				hleDomReady();
			}
		});

		// If IE and not an iframe
		// continually check to see if the document is ready
		if ( document.documentElement.doScroll && window == window.top ) (function(){
			try {
				// If IE is used, use the trick by Diego Perini
				// http://javascript.nwbox.com/IEContentLoaded/
				document.documentElement.doScroll("left");
			} catch( error ) {
				setTimeout( arguments.callee, 0 );
				return;
			}
		
			// and execute any waiting functions
			hleDomReady();
		})();
	}

	// A fallback to window.onload, that will always work
	window.onload = function() { hleDomReady(); };
}

//Bind the DOM ready event
bindReady();

//Run a timer just to be more sure
var hleTimer1 = setInterval(hleDomReady, 250);

//Fired when the DOM is ready
//var hleDomIsReady = false;
function hleDomReady()
{
	//if (!hleDomIsReady)
	//{
		var heightC1 = document.getElementById('c1').offsetHeight;
		var heightS1 = document.getElementById('s1').offsetHeight;
		var heightC2 = document.getElementById('c2').offsetHeight;
		var heightS2 = document.getElementById('s2').offsetHeight;

		if (heightC1 > heightS1)
		{
			for (var i = 0; i < 2000 && heightC1 > heightS1; i++)
			{
				document.getElementById('s2').style.height = (heightS2 - 50 + i) + 'px';
				heightS1 = document.getElementById('s1').offsetHeight;
			}
			//hleDomIsReady = true;
		}
		else if (heightS1 > heightC1)
		{
			for (var i = 0; i < 2000 && heightS1 > heightC1; i++)
			{
				document.getElementById('c2').style.height = (heightC2 - 50 + i) + 'px';
				heightC1 = document.getElementById('c1').offsetHeight;
			}
			//hleDomIsReady = true;
		}
		else if (heightS1 == heightC1)
		{
			clearInterval(hleTimer1);
			hleTimer1 = null;
		}
	//}
}

//--><!]]>
