function startbox_state_change( num, state ) {
	var count = 6;
	var i = 1;
	while ( i <= 6 ) {
		document.getElementById('wh-startbox-'+i).className = 'wh-startbox';
		document.getElementById('wh-startbox-top-'+i).className = 'wh-startbox-top';
		document.getElementById('wh-startbox-bottom-'+i).className = 'wh-startbox-bottom';
		document.getElementById('wh-startbox-image-window-'+i).className = 'wh-startbox-image-window';
		i++;
	}
	
	document.getElementById('wh-startbox-'+num).className = 'wh-startbox wh-startbox-active';
	document.getElementById('wh-startbox-top-'+num).className = 'wh-startbox-top wh-startbox-top-active';
	document.getElementById('wh-startbox-bottom-'+num).className = 'wh-startbox-bottom wh-startbox-bottom-active';
	document.getElementById('wh-startbox-image-window-'+num).className = 'wh-startbox-image-window wh-startbox-image-window-active';
	//document.getElementById('header-menu-image').src='/static/i/relaunch/startmenu'+num+'-big.jpg';
}

function startbox_height_fix() {
	var i = 1;
	var maxheight = 0;
	while ( i <= 6 ) {
		if ( document.all ) {
			height = document.getElementById('wh-startbox-bottom-'+i).clientHeight;
		}
		else {
			height = ( document.getElementById('wh-startbox-bottom-'+i).offsetHeight - 37 );
		}
		if ( height > maxheight ) maxheight = height;
		
		if ( i % 3 == 0 ) {
			var j = 1+ ( i - 3 );
			while ( j <= i ) {
				document.getElementById('wh-startbox-bottom-'+j).style.height = maxheight + 'px';
				j++;
			}
			maxheight = 0;
		}
		i++;
	}
}