function add_to_fav()
	{
	if (window.sidebar)
		{
		window.sidebar.addPanel (window.document.title, window.document.location, ' ' );
		}
	else
		{
		window.external.AddFavorite (window.document.location, window.document.title);
		}
	}

function getClientWidth()
	{
  	return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
	}

function getClientHeight()
	{
  	return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
	}
	
	
function on_resize_win()
	{
	var clw = getClientWidth();
	if (clw > 1300)
		{
		document.getElementById('right_col').style.paddingTop = 50 +'px';
		}
	else
		{
		document.getElementById('right_col').style.paddingTop = 390 +'px';
		}
	}

function on_resize_win_tree()
	{
	var clw = getClientWidth();
	var wdh = clw - 435;
	document.getElementById('content').style.width = wdh+'px';
	
	
	if (!document.getElementById('infolinks')) return;
	
	if (ie6) 
		{
		document.getElementById('infolinks').style.marginLeft = '0px';
		return;
		}
	
	
	
	if (clw > 1400)
		{
		document.getElementById('bigimg').style.styleFloat = 'left';
		document.getElementById('bigimg').style.cssFloat = 'left';
		document.getElementById('infolinks').style.marginLeft = '540px';
		}
	else
		{
		document.getElementById('bigimg').style.styleFloat = 'none';
		document.getElementById('bigimg').style.cssFloat = 'none';
		document.getElementById('infolinks').style.marginLeft = '0px';
		}
	}