 (function(){
	var blogoo_sticker = document.getElementById('blogoo-sticker');
	blogoo_sticker.style.zIndex = 99;
	blogoo_sticker.style.position = 'absolute';
	blogoo_sticker.style.top = 0;
	blogoo_sticker.style.left = 0;
	blogoo_sticker.style.display = 'block';
	blogoo_sticker.style.height = '120px';
	blogoo_sticker.style.width = '120px';
	var img = document.createElement('img');
	img.setAttribute('src', blogoo_sticker_src);
	img.setAttribute('alt', 'ブログランキング');
	img.setAttribute('title', 'ブログランキング');
	img.style.border = 'none';
	img.style.height = '120px';
	img.style.width = '120px';
	var anchor = document.createElement('a');
	anchor.setAttribute('href', 'http://blogoo.souzer.com/');
	anchor.setAttribute('target', '_blank');
	anchor.appendChild(img);
	blogoo_sticker.appendChild(anchor);
	
	if (!/MSIE/.test(navigator.userAgent)) return;
	var arVersion = navigator.appVersion.split("MSIE");
	var version = parseFloat(arVersion[1]);
	
	if (version >= 5.5 && version < 7 && document.body.filters)  {
		var imgID = (img.id) ? "id='" + img.id + "' " : "";
		var imgClass = (img.className) ? "class='" + img.className + "' " : "";
		var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
		var imgStyle = "display:inline-block;" + img.style.cssText;
		if (img.align == "left") imgStyle = "float:left;" + imgStyle;
		if (img.align == "right") imgStyle = "float:right;" + imgStyle;
		if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
		var strNewHTML = "<span " + imgID + imgTitle
		+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
		+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
		blogoo_sticker.innerHTML = strNewHTML;
	}
 })();