///////////////////////////////////////////////////////////////////////
//
// BLOG PARTS JS
//
///////////////////////////////////////////////////////////////////////

var rootPath_SUUMO = "http://suumo.jp/edit/blogparts/";

var seasonID_SUUMO = 1;

 
var suumo_blog_url = location.href;
 
var rndNum_SUUMO = Math.floor(Math.random()*100000);


var shake_timer_SUUMO;
var x_shake_SUUMO = [ 15,-12, 10,-8, 0 ];
var y_shake_SUUMO = [ -10, 9,-13, 8, 0 ];
var shake_count_SUUMO = 0;


function windowShake_SUUMO(){
	if( shake_timer_SUUMO ) clearInterval(shake_timer_SUUMO);
	shake_count_SUUMO = 0;
	shake_timer_SUUMO = setInterval( windowShakeEvent_SUUMO, 100 );
}

function windowShakeEvent_SUUMO(){
	moveBy( x_shake_SUUMO[shake_count_SUUMO], y_shake_SUUMO[shake_count_SUUMO] );
	shake_count_SUUMO++;
	if( shake_count_SUUMO == x_shake_SUUMO.length ) clearInterval(shake_timer_SUUMO);
}

function sendAnalytics_SUUMO (pName){
	_gaq.push(['_trackEvent', 'suumo', pName]);
}

//DISPLAY BLOG PARTS/////////////////////////////////////

var myStr_SUUMO = '<div style="text-align:center;"><div id="SuumoBpArea" style="width:160px;height:302px;margin:10px auto 0 auto;"><div id="SUUMOFlaArea" style="height:302px;"></div></div></div>';
myStr_SUUMO += '<scr'+'ipt type="text/javascript" src="'+rootPath_SUUMO+'js/season.js"></scr'+'ipt>';
myStr_SUUMO += '<scr'+'ipt type="text/javascript" src="'+rootPath_SUUMO+'js/swfobject.js"></scr'+'ipt>';
myStr_SUUMO += '<scr'+'ipt type="text/javascript" src="'+rootPath_SUUMO+'js/setcontent.js"></scr'+'ipt>';
myStr_SUUMO += '<scr'+'ipt type="text/javascript" src="'+rootPath_SUUMO+'js/yahoo-min.js"></scr'+'ipt>';
myStr_SUUMO += '<scr'+'ipt type="text/javascript" src="'+rootPath_SUUMO+'js/dom-min.js"></scr'+'ipt>';
myStr_SUUMO += '<scr'+'ipt type="text/javascript" src="'+rootPath_SUUMO+'js/bp_layer.js"></scr'+'ipt>';

myStr_SUUMO += '<scr'+'ipt type="text/javascript">';
myStr_SUUMO += 'var _gaq = _gaq || [];';
myStr_SUUMO += "_gaq.push(['_setAccount', 'UA-5419103-11']);";
myStr_SUUMO += "_gaq.push(['_trackPageview', '" + encodeURI(suumo_blog_url) + "']);";
myStr_SUUMO += '(function() {';
myStr_SUUMO += "var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;";
myStr_SUUMO += "ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';";
myStr_SUUMO += "var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);";
myStr_SUUMO += '})();';
myStr_SUUMO += '</scr'+'ipt>';
		
document.write(myStr_SUUMO);



