function init_layout() {
/*
    // Rotate header car image every Sunday
    var today = new Date();
    var weeknum = Math.floor(
        // Get Unix time in seconds
        ((today.getTime()/1000) - 
        // Get seconds since the start of the current year 
        ((today.getFullYear()-1970)*31556926) 
        // Unix time weekday offset (Sunday)
        + 345600)
        // Number of seconds in a week
        / 604800);
    // Mod by number of cars in header_cars folder
    var carnum = weeknum % 4 + 1;
    var caraddr = "transparent url(/static/images/header_cars/car_" + carnum + ".png) no-repeat left top";
    // Set car picture
    $('#header .middle').css("background", caraddr);
*/
    // Top menu drop downs
    var header_menuitem = null;
    $('#header ul.navigation > li').hover(function() {
        $(this).addClass('active');
        header_menuitem = $('ul',this).slideDown(150);
    }, function () {
        $(this).removeClass('active');
        header_menuitem.slideUp(0);
    });
    
    // Search bar
    $("#cse-search-box input").focus(function() {
        if( this.value == this.defaultValue ) {
            this.value = "";
        }
    }).blur(function() {
        if( !this.value.length ) {
            this.value = this.defaultValue;
        }
    });
    
    // Rollovers for social networking icons
    $(".social .facebook img").hover(function() {
        this.src = this.src.replace("_bw","_color");
        }, function() {
        this.src = this.src.replace("_color","_bw");
    });
    $(".social .linkedin img").hover(function() {
        this.src = this.src.replace("_bw","_color");
        }, function() {
        this.src = this.src.replace("_color","_bw");
    });
    $(".social .twitter img").hover(function() {
        this.src = this.src.replace("_bw","_color");
        }, function() {
        this.src = this.src.replace("_color","_bw");
    });
    
    // If there is featured content or image overlap, push content down
    var text = $(".text");
    var texthtml = text.html();
    var feat = $("#featured");
    var feathtml = feat.html();
    var imghtml = $("#image-overlap").html();
    
    if ( imghtml == "" && feathtml == "" ) {
        if ( texthtml != "" ) { text.css({'padding-top':'110px'}); }
    } else if ( imghtml != "" && feathtml == "" ) {
        if ( texthtml != "" ) { text.css({'padding-top':'30px'}); }
    } else if ( imghtml == "" && feathtml != "" ) {
        feat.css({'padding-top':'110px'});
        if ( texthtml != "" ) { text.css({'padding-top':'30px'}); }
    } else if ( imghtml != "" && feathtml != "" ) {
        feat.css({'padding-top':'30px'});
        if ( texthtml != "" ) { text.css({'padding-top':'30px'}); }
    }
    
    // Adds clear to text area if button landing page
//    if ( $(".button").length ) {
//        text.css({'clear':'both'});
//    }
	
	// Vertically centers home page content
	function setHomeHeight(dh,ch) {
		var eh = Math.floor((dh-ch-367)/2)+5;
		$(".vcenter").css("padding-top", eh);
	}
	if ( $("#home").length ) {
		var dh = $(document).height()
		var ch = $(".center").height()
		setHomeHeight(dh,ch);
		$(window).resize(function () {
			var wh = $(window).height();
			if ( wh != dh && dh >= (ch+367) ) {
				dh = $(document).height();
				setHomeHeight(dh,ch);
			}
		});
	}
}

