﻿function randomPush(json) {

	var maxURLs = json.urls.length;
	if(json.urls[maxURLs - 1] == undefined)maxURLs--; // 最後の,の解釈違いを統一

	$('#push_include').load( json.urls[ Math.floor( Math.random() * maxURLs) ] )

};

$(function(){
	$.getJSON('push/push.json', null, randomPush );
});
