function wn_twit_followme(account, design_type, side_or_under, motion){
	wn_designs = ['left', 'right', 'bottom'];

	var twit_box_style = 'position: fixed;' + side_or_under + ':0px; top:' + motion + 'px; z-index:2147483646; cursor:pointer;';
	var twit_box_style_bottom = 'position: fixed;' + side_or_under + ':0px; left:' + motion + 'px; z-index:2147483646; cursor:pointer;';

	var twit_hatena_style = 'position: fixed;' + side_or_under + ':0px; top:' + motion + 'px; z-index:2147483647; cursor:pointer;';
	var twit_hatena_style_bottom = 'position: fixed;' + side_or_under + ':0px; left:' + motion + 'px; z-index:2147483647; cursor:pointer;';

//['left']

	wn_designs['left'] = new Array(
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:107px; height:161px; background:url(http://wn-followme.com/img/ls1.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:151px; height:229px; background:url(http://wn-followme.com/img/ll1.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:108px; height:128px; background:url(http://wn-followme.com/img/ls2.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:153px; height:180px; background:url(http://wn-followme.com/img/ll2.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:125px; height:129px; background:url(http://wn-followme.com/img/ls3.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:177px; height:181px; background:url(http://wn-followme.com/img/ll3.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:109px; height:143px; background:url(http://wn-followme.com/img/ls4.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:155px; height:201px; background:url(http://wn-followme.com/img/ll4.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:109px; height:115px; background:url(http://wn-followme.com/img/ls5.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:155px; height:162px; background:url(http://wn-followme.com/img/ll5.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:110px; height:134px; background:url(http://wn-followme.com/img/ls6.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:156px; height:189px; background:url(http://wn-followme.com/img/ll6.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:106px; height:152px; background:url(http://wn-followme.com/img/ls7.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:149px; height:214px; background:url(http://wn-followme.com/img/ll7.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:124px; height:124px; background:url(http://wn-followme.com/img/ls8.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:176px; height:175px; background:url(http://wn-followme.com/img/ll8.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:124px; height:146px; background:url(http://wn-followme.com/img/ls9.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:177px; height:206px; background:url(http://wn-followme.com/img/ll9.gif); no-repeat;" ></div>'
	);

//['right']
	wn_designs['right'] = new Array(
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:107px; height:161px; background:url(http://wn-followme.com/img/rs1.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:151px; height:229px; background:url(http://wn-followme.com/img/rl1.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:108px; height:128px; background:url(http://wn-followme.com/img/rs2.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:153px; height:180px; background:url(http://wn-followme.com/img/rl2.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:127px; height:129px; background:url(http://wn-followme.com/img/rs3.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:180px; height:181px; background:url(http://wn-followme.com/img/rl3.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:109px; height:143px; background:url(http://wn-followme.com/img/rs4.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:155px; height:201px; background:url(http://wn-followme.com/img/rl4.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:109px; height:115px; background:url(http://wn-followme.com/img/rs5.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:155px; height:162px; background:url(http://wn-followme.com/img/rl5.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:110px; height:134px; background:url(http://wn-followme.com/img/rs6.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:156px; height:189px; background:url(http://wn-followme.com/img/rl6.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:106px; height:152px; background:url(http://wn-followme.com/img/rs7.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:149px; height:214px; background:url(http://wn-followme.com/img/rl7.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:124px; height:124px; background:url(http://wn-followme.com/img/rs8.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:176px; height:175px; background:url(http://wn-followme.com/img/rl8.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:124px; height:146px; background:url(http://wn-followme.com/img/rs9.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style + ' width:177px; height:206px; background:url(http://wn-followme.com/img/rl9.gif); no-repeat;" ></div>'
	);

//['bottom']
	wn_designs['bottom'] = new Array(
		'<div id="wn_twit_box" style="' + twit_box_style_bottom + ' width:205px; height:118px; background:url(http://wn-followme.com/img/bs1.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style_bottom + ' width:290px; height:167px; background:url(http://wn-followme.com/img/bl1.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style_bottom + ' width:206px; height:93px; background:url(http://wn-followme.com/img/bs2.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style_bottom + ' width:290px; height:132px; background:url(http://wn-followme.com/img/bl2.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style_bottom + ' width:233px; height:78px; background:url(http://wn-followme.com/img/bs3.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style_bottom + ' width:330px; height:110px; background:url(http://wn-followme.com/img/bl3.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style_bottom + ' width:205px; height:121px; background:url(http://wn-followme.com/img/bs4.gif); no-repeat;" ></div>',
		'<div id="wn_twit_box" style="' + twit_box_style_bottom + ' width:290px; height:172px; background:url(http://wn-followme.com/img/bl4.gif); no-repeat;" ></div>'
	);

	var twit_hatena = '<div id="wn_twit_hatena" style="' + twit_hatena_style + ' width:20px; height:20px; background: url(http://wn-followme.com/img/hatena.gif); no-repeat;"></div>'
	var twit_hatena_bottom = '<div id="wn_twit_hatena" style="' + twit_hatena_style_bottom + ' width:20px; height:20px; background: url(http://wn-followme.com/img/hatena.gif); no-repeat;"></div>'

if (document.getElementById('wn_twit_box')){
	document.body.removeChild(document.getElementById('wn_twit_box'));
}

if (document.getElementById('wn_twit_hatena')){
	document.body.removeChild(document.getElementById('wn_twit_hatena'));
}

var new_div_box = document.createElement('div');
new_div_box.setAttribute('id', 'wn_twit_box');
document.body.appendChild(new_div_box);

var new_div_hatena = document.createElement('div');
new_div_hatena.setAttribute('id', 'wn_twit_hatena');
document.body.appendChild(new_div_hatena);

if(side_or_under == 'left' || side_or_under == 'right'){
	new_div_box.innerHTML = (wn_designs[side_or_under][design_type]);
	new_div_hatena.innerHTML = twit_hatena;
}

else{
	new_div_box.innerHTML = (wn_designs[side_or_under][design_type]);
	new_div_hatena.innerHTML = twit_hatena_bottom;

}

document.getElementById('wn_twit_hatena').style.visibility='hidden';

document.getElementById('wn_twit_box').onmouseover = function(){
	document.getElementById('wn_twit_hatena').style.visibility='';
	}

document.getElementById('wn_twit_box').onmouseout = function(){
	document.getElementById('wn_twit_hatena').style.visibility='hidden';
	}

document.getElementById('wn_twit_hatena').onmouseover = function(){
	document.getElementById('wn_twit_hatena').style.visibility='';
	}

document.getElementById('wn_twit_hatena').onmouseout = function(){
	document.getElementById('wn_twit_hatena').style.visibility='hidden';
	}

document.getElementById('wn_twit_box').onclick = function(){
	window.open('http://twitter.com/' + account);
}
	
document.getElementById('wn_twit_hatena').onclick = function(){
	window.open('http://wn-followme.com/');
	document.getElementById('wn_twit_hatena').style.visibility='hidden';
	}
}
