Event.observe(window, 'load', function(){
	try {
		if (top.frames.length > 0 && top.location.href.search('http://blog_search.d1213.com/') == -1) {
			top.location = 'http://love.souzer.com/';
		}
	} catch (e) {
		top.location = 'http://love.souzer.com/';
	}
});

var HeypoAd = Class.create();
HeypoAd.prototype = {
	initialize  : function(url, callback) {
		this.callback = callback;
		this.request(url);
	},
	
	request: function(url) {
		new Ajax.Request(url, {
			transport: com.espn.io.ScriptSrcTransport,
			jsonParamName: '_callback',
			method: 'get',
			onComplete: function(r, json) {
				this.callback(json);
			}.bind(this)
		});
	}
};

/**
 * 配列をシャッフル
 */
Array.prototype.shuffle = function() {
	var i = this.length;
	while(i){
		var j = Math.floor(Math.random()*i);
		var t = this[--i];
		this[i] = this[j];
		this[j] = t;
	}
	return this;
}