var showYear = new Date();

var showFullYear = showYear.getFullYear();

function sizeSubFooter()
{
    var windowHeight = document.documentElement.clientHeight;
    var containerHeight = document.getElementById('container').offsetHeight;
    var subfooterHeight = document.getElementById('subfooter_holder').offsetHeight;
    //alert('containerHeight: ' + containerHeight);
    
    if(windowHeight > containerHeight)
    {
        document.getElementById('subfooter_holder').style.height = subfooterHeight + (windowHeight - containerHeight) + 'px';
    }
}

function headlinesHover(id,color)
{
    //alert('hi');
	document.getElementById('headline' + id).style.backgroundColor = '#' + color;
	
	if(id == 1)
	{
	    document.getElementById('headlines').style.backgroundColor = '#' + color;
	}
}

function gotoBlog(id)
{
    golocation = id;
    //alert(golocation);
    window.location = golocation;
}

function fitLeftCol()
{
    var leftColTop = document.getElementById('header_projects_box').offsetHeight;
    var leftColBott = document.getElementById('header_ondvd_box').offsetHeight;
    
    var leftColAll = leftColTop + leftColBott + 116;
    
    var allContentHeight = document.getElementById('midcontent_holder').offsetHeight;
    
    if(leftColAll < allContentHeight)
    {
        diffColHeight = allContentHeight - leftColAll
        document.getElementById('header_ondvd_box').style.height = (200 + diffColHeight) + "px";
    }

    //alert('projects: ' + leftColAll + ' ' + allContentHeight);
}
