function setHtmlHeight() 
{
	//alert($(document).height());
    $("html").css("height", $(document).height()-300);
    $("#leftColumn").css("height", $(document).height()-300);
    $("#wrapper").css("height", "100%");
}
function setSiteWitdth() {
    $("#site").css("width", $(document).width() - 2*315);	
}


function setSiteHeight()
{
	//alert($('#sitecell').height());
	//alert($('#site').height());
	//var h = $('#sitecell').height();
	
	//$('#site').css('height', h);
	
	
	window.setTimeout("setHeight()",500);
	setEmployee();
}

function setWrapHeight()
{
	$('#site').css('height',$('#wrapper').height());	
}

function setEmployee()
{
		var h_viewport = $(window).height();	
		var h_menu = $('#navi').height()+50;
		var h_employee = $('#currentEmployee').height();
		
		if ( (h_menu+h_employee) >= h_viewport)
		{
			$('#currentEmployee').css('top', h_menu);
			$('#currentEmployee').css('bottom', '');
		}
		else
		{
			$('#currentEmployee').css('bottom', '50px');
			$('#currentEmployee').css('top', '');
		}
}

function setHeight()
{
	var w_viewport = $(window).width();
	var h_site = $('#wrapper').height();
	var h_cell = $('#sitecell').height();

	if (h_site < h_cell)
	{
			$('#site').css('height',$('#sitecell').height()-1);
			//$('#wrapper').css('height',$('#sitecell').height());
			//alert(h_site + ' : ' + h_cell);
	}
}
