// JavaScript Document
function cheight()
{
	var lbg=document.getElementById("leftbg")
	var rbg=document.getElementById("rightbg")
	var cnt=document.getElementById("cnt")
	var cntleftbg=document.getElementById("cntleftbg")
	var cntrightbg=document.getElementById("cntrightbg")
	var main=document.getElementById("main")
	var main1=document.getElementById("main1")
	//alert(cnt.offsetHeight-main.offsetHeight)
	var hi
	if(lbg==null || rbg==null || cnt==null)
		return;
	else
	{
		lbg.style.height=cnt.offsetHeight+"px"
		rbg.style.height=cnt.offsetHeight+"px"
	}
	if(cntleftbg==null || main==null || cntrightbg==null)
		if(cntleftbg==null || main1==null || cntrightbg==null)
			return;
		else
		{
			/*if(main1.offsetHeight<300) 
			{
				hi=300
				main1.style.height=hi-40+"px"
			}
			else*/
				hi=main1.offsetHeight
			//alert(hi)
			cntleftbg.style.height=hi+"px"
			cntrightbg.style.height=hi+"px"
			lbg.style.height=hi+314+"px"
			rbg.style.height=hi+314+"px"
			cnt.style.height=hi+314+"px"
		}
	else
	{
		hi=main.offsetHeight 
		cntleftbg.style.height=hi+"px"
		cntrightbg.style.height=hi+"px"
	}
	
}
function show(obj)
{
	var str=eval("document.getElementById('"+obj+"')");
	if(str.style.display=="none")
		str.style.display='block';
	else
		str.style.display='none';
	cheight();
}
function iheight()
{
	var left=document.getElementById("left")
	var main=document.getElementById("main")
	var left1=document.getElementById("leftc")
	var main1=document.getElementById("mainc")
	if(left==null || main==null) return false;
	//alert(left.offsetHeight>main.offsetHeight &left.offsetHeight)
	//alert(left.offsetHeight);
//		alert(main.offsetHeight);
	if(left.offsetHeight>main.offsetHeight)
	{
		main.style.height=left.offsetHeight-14+"px"
		/*alert(left.offsetHeight);
		alert(main.offsetHeight);*/
	}
	else
	{
		left.style.height=main.offsetHeight-27+"px"
			
	}
	if(left1!=null)
			if (left.offsetHeight<320)
			{
				left1.style.height=300+"px"
				left.style.height=320+"px"
				main.style.height=left.offsetHeight-14+"px"
			}
			else
				left1.style.height=left.offsetHeight-47+"px"
}
