//It sets the width needed for the contents to aling in one row
function adjustWidth(theThing) {
	var blocks = document.getElementById(theThing).getElementsByTagName('div');
	var totalLenght = 0;
	for (i=0;i<blocks.length;i++){
		if( blocks[i].parentNode.id == "content" ){
			totalLenght += blocks[i].offsetWidth;
		}
	}
	document.getElementById(theThing).style.width = ( totalLenght ) + "px";
	if(paged){
		scrollHorizontalTo('projects_title');
	}
}
//scroll to the thing with a little offset
function scrollHorizontalTo( theThing ) {
	var dist = document.getElementById(theThing).offsetLeft;
	jQuery('html,body').animate( {"scrollLeft": dist + "px"}, 0 );
}
//
jQuery(document).ready(function(){
});
