
function getWidth()
	{
	var myWidth = 0;

	if( typeof( window.innerWidth ) == 'number' )
		{
		//Non-IE
		myWidth = window.innerWidth;
		}
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
		{
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		}
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
		{
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		}

	return myWidth;
	}

function doResize()
	{
	var sbl = document.getElementById('side_banner_left');
	var sbr = document.getElementById('side_banner_right');
	if (sbl && sbr)
		{
		var w = getWidth();
		if (w < 1013)
			{
			sbl.style.display='none';
			sbr.style.display='none';
			}
		else
			{
			sbl.style.display='block';
			sbr.style.display='block';  
			}
		}
	}

function showSub(subnav)
	{
	document.getElementById('n1').className = '';
	document.getElementById('n2').className = '';
	document.getElementById('sn1').style.display = 'none';
	document.getElementById('sn2').style.display = 'none';
	
	if (subnav=='sn1')
		{
		document.getElementById('n1').className = 's';
		document.getElementById('sn1').style.display = 'block';
		}
	else
		{
		document.getElementById('n2').className = 's';
		document.getElementById('sn2').style.display = 'block';  
		}
 	}

//window.onresize = doResize;
//window.onload=doResize;
