﻿/*
	설명 : 사이트 레이아웃 조절 스크립트 (사이트 전체 공통)
	파일명 : BP2.Layout.js
	수정일 : 2007.02.27.	
*/
function SetLayout() { if(PL) { PL.SetSizeIndex(); } }
BP2Layout = function()
{
	this.BPCC = $get('BPCC');
	this.BPCS = $get('BPCS');

	this.BPCSC = $get('BPCSC');
	this.BPCCC = $get('BPCCC');
}
BP2Layout.prototype=
{
	SetSizeIndex: function()	// 페이지 기본
	{
		this.H_BPCC	= this.BPCC.offsetHeight;
		this.H_BPCS	= this.BPCS.offsetHeight;

		this.BPCT = $get('BPCT');
		this.H_BPCT	= this.BPCT.offsetHeight;

		var sp = 0;
		sp=((this.H_BPCC+this.H_BPCT+7) - this.H_BPCS);
		if(this.H_BPCT==0) { sp-=15; }

		if(sp>0) { this.BPCSC.style.height = ((this.BPCSC.offsetHeight+sp)+'px'); }
		else { this.BPCCC.style.height = ((this.H_BPCC - 50 - sp)+'px'); }
	}
}