var timeoutId;
var update_version = '';
var panorama_shown = false;
var adConfig = new Array();
window.pageType = 'liveblog';
window.adRobot = jQuery(document).AdRobot().data('AdRobot');
try{Typekit.load();}catch(e){}
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-142218-3']);
_gaq.push(['_setDomainName', '.gizmodo.com']);
_gaq.push (['_trackPageview']);
(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
var _sf_startpt=(new Date()).getTime()

function latest_237482364( content ) {
	
}

function liveblogsidebar( content ) {
	jQuery('#post_list').html( content );
	jQuery('#post_list a').each( function( e, o ) {
		o.target = '_blank';
	});
}

function update_sidebar() {
	if ( jQuery('#sidebar_loader').length ) {
		var src = jQuery('#sidebar_loader').attr( 'src' );
		var script = document.createElement('script');
		script.type = 'text/javascript';
		script.src = src;
		jQuery('BODY').append( script );
		setTimeout( function() { update_sidebar() }, 60000 );
	}
}

function showPanorama() {
/*
	if ( !panorama_shown && jQuery('.ad_640x360').length ) {
		if ( jQuery('#entries .entry').length > 10 ) {
			jQuery('#entries .entry').eq(9).before( jQuery('.ad_640x360').remove() );
			panorama = adConfig['640x360']
			jQuery('#ad_container_' + adConfig['640x360'].rand ).AdUnit( adConfig['640x360'].options );
			panorama_shown = true;
		}
	}
*/
}

jQuery( document ).ready( function() {
	setTimeout( function() { update_sidebar() }, 60000 );
	if ( jQuery('#entries .entry').size() > 10 ) {
			showPanorama();
	}
});

