$(function() {
    $('#accordion').accordion({
        active:false,
        autoHeight: false,
        collapsible: true
    });
});

function heightAdjust()
{
	
	var contentHeight = document.getElementById('content').offsetHeight;
	var wholeHeight = document.getElementById('container').offsetHeight;
	var w = 0;
	var h = 0;

	//IE
	if(!window.innerWidth)
	{
		//strict mode
		if(!(document.documentElement.clientWidth == 0))
		{
			w = document.documentElement.clientWidth;
			h = document.documentElement.clientHeight;
		}
		//quirks mode
		else
		{
			w = document.body.clientWidth;
			h = document.body.clientHeight;
		}
	}
	//w3c
	else
	{
		w = window.innerWidth;
		h = window.innerHeight;
	}
	
	if(h > ((contentHeight) + 467)) {
		document.getElementById("content").style.height = h - 467 + "px";
		document.getElementById("shadowLeft").style.height = wholeHeight + 30 + "px";
		document.getElementById("shadowRight").style.height = wholeHeight + 30 + "px";
	}
	else {
		document.getElementById("content").style.height = contentHeight - 20 + "px";
		document.getElementById("shadowLeft").style.height = wholeHeight + 10 + "px";
		document.getElementById("shadowRight").style.height = wholeHeight + 10 + "px";
	}
	
	
		
}
