var text1 = new Array();
text1[0]="<a target=_blank href=http://textad.net:10001/cgi-bin/redir.cgi?uid=6561&bid=15&site=http://www.yumecanau.com/bff/>★〓　これだ！不況打開策　副業だぁ〜　〓★</a>";
text1[1]="<a target=_blank href=http://textad.net:10001/cgi-bin/redir.cgi?uid=6419&bid=3&site=http://www.burand.jp/mk2/>★〜★　月に４回の収入、、ラッキー！　★〜★</a>";
text1[2]="<a target=_blank href=http://textad.net:10001/cgi-bin/redir.cgi?uid=6932&bid=8&site=http://www.sikyou.com/main/trade/fx_waza.html?fc2>【期間限定】これでダメならＦＸやめろ！</a>";
text1[3]="<a target=_blank href=http://textad.net:10001/cgi-bin/redir.cgi?uid=6419&bid=6&site=http://www.burand.jp/mk2/>★〜★　月に４回の収入、、ラッキー！　★〜★</a>";
text1[4]="<a target=_blank href=http://textad.net:10001/cgi-bin/redir.cgi?uid=5635&bid=6&site=http://2nd-business.sakura.ne.jp/ak2/mon2/>副業禁止の私もできる、もう一つの収入源</a>";
var n1 = Math.floor(Math.random() * text1.length);
var ua1 = navigator.userAgent;
document.write('<STYLE><!--',
'.sys_font1 a{',
'font: 12px Verdana;',
'text-decoration:underline;',
'color: #0000FF;',
'}',
'.sys_font1 a:hover{',
'text-decoration:underline;',
'}',
'#sys1{',
'background-color: #F0F0F0;',
'border: #F0F0F01px solid ;',
'position:relative;',
'width: 450;',
'height: 12;',
'}',
'--></STYLE>');
  document.write('',
           '<div id="sys1" class="sys_font1">',
               'Initializing...</div>');
  fc2_textad_sys1 = document.getElementById("sys1");
  sys_bg1 = fc2_textad_sys1.style;
  rotate1();
function rotate1(){
  BgFade1(0x00,0x00,0xFF,0xFF,0xFF,0xFF,10);
  fc2_textad_sys1.innerHTML = text1[n1];
  if(n1 < text1.length - 1){n1 ++;}else{n1 = 0;}
  setTimeout("rotate1()",6000);
}
function BgFade1(red1,grn1,blu1,red2,grn2,blu2,steps){
  sred = red1;
  sgrn = grn1;
  sblu = blu1;
  ered = red2;
  egrn = grn2;
  eblu = blu2;
  inc1 = steps;
  step1 = 0;
  RunFader1();
}
function RunFader1(){
  var epct = step1 / inc1;
  var spct = 1 - epct;
  var backgroundColor = Math.floor(sred*spct+ered*epct)*256*256 + Math.floor(sgrn*spct+egrn*epct)*256 + Math.floor(sblu*spct+eblu*epct);
  sys_bg1.backgroundColor = "#" + ('000000' + backgroundColor.toString(16)).slice(-6);
  if(step1 < inc1){ setTimeout("RunFader1()",50);}else{sys_bg1.backgroundColor="#F0F0F0";}
  step1 ++;
}
if(location.hostname.lastIndexOf('fc2web.com') != -1)
//if(location.href.indexOf('http://www.fc2web.com/') != -1)
{
	var isMSIE = /*@cc_on!@*/false; 
	if(!isMSIE)
	{
			document.write('<style>',
		'#fc2_footer_menu{position:fixed;_position:absolute;bottom:0px;left:0px;}',
		'</style>');

		fc2_footer_menu = fc2_textad_sys1.parentNode.parentNode.parentNode.parentNode; // span td tr tbody table
		fc2_footer_menu.id = "fc2_footer_menu";
	}
	else
	{
		if(typeof document.documentElement.style.maxHeight != "undefined")
		{
			if(document.compatMode == "CSS1Compat")
			{
				document.write('<style>',
				'#fc2_footer_menu{position:fixed;bottom:0px;left:0px;}',
				'</style>');
				fc2_footer_menu = fc2_textad_sys1.parentNode.parentNode.parentNode.parentNode; // span td tr tbody table
				fc2_footer_menu.id = "fc2_footer_menu";
			}
			else
			{
				document.write('<style>',
				'#fc2_footer_menu{position:absolute;top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);left:0px;}',
				'</style>');
				fc2_footer_menu = fc2_textad_sys1.parentNode.parentNode.parentNode.parentNode; // span td tr tbody table
				fc2_footer_menu.id = "fc2_footer_menu";
			}
		}
		else
		{
			if(document.compatMode == 'CSS1Compat')
			{
				document.write('<style>',
				'#fc2_footer_menu{position:absolute;top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);left:0px;}',
				'</style>');
				fc2_footer_menu = fc2_textad_sys1.parentNode.parentNode.parentNode.parentNode; // span td tr tbody table
				fc2_footer_menu.id = "fc2_footer_menu";
			}
			else
			{
				document.write('<style>',
				'#fc2_footer_menu{position:absolute;top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);left:0px;}',
				'</style>');
				fc2_footer_menu = fc2_textad_sys1.parentNode.parentNode.parentNode.parentNode; // span td tr tbody table
				fc2_footer_menu.id = "fc2_footer_menu";
			}
		}
	}

if(window.addEventListener)
	window.addEventListener("load", addbr, false);
else if(window.attachEvent)
	window.attachEvent("onload", addbr);

}

// アクセス解析タグ
var fc2_pid;
if(location.hostname.indexOf('fc2web') != -1) {
	fc2_pid = 4331598;
}
else if(location.hostname.indexOf('easter') != -1) {
	fc2_pid = 4331606;
}
else if(location.hostname.indexOf('finito') != -1) {
	fc2_pid = 4331602;
}
else if(location.hostname.indexOf('gooside') != -1) {
	fc2_pid = 4331601;
}
else if(location.hostname.indexOf('k-server') != -1) {
	fc2_pid = 4331603;
}
else if(location.hostname.indexOf('ojiji') != -1) {
	fc2_pid = 4331610;
}
else if(location.hostname.indexOf('zero-city') != -1) {
	fc2_pid = 4331604;
}
else if(location.hostname.indexOf('zero-yen') != -1) {
	fc2_pid = 4331605;
}
else {
	fc2_pid = 4331619;
}
document.write('<div style="position:absolute;left:0;top:0;"><script language="javascript" src="http://analyzer53.fc2.com/ana/processor.php?uid=695851&pid=' + fc2_pid + '" type="text/javascript"></script>',
'<img src="http://media.fc2.com/counter_img.php?id=206" width="1" height="1"></div>');

if(location.search.lastIndexOf('textad=debug') != -1)
{
alert('b');
//	alert(fc2_pid);
//	alert(document.compatMode);

if(window.addEventListener)
	window.addEventListener("load", addbr, false);
else if(window.attachEvent)
	window.attachEvent("onload", addbr);

}

function addbr()
{
//	document.getElementsByTagName("body").item(0).insertBefore(document.createElement('br'), document.getElementById("fc2_footer_menu"));
		var div = document.createElement('div');
//		div.style.backgroundColor = 'pink';
		div.innerHTML = " ";
		div.style.height = "30px";
		document.getElementsByTagName("body").item(0).appendChild(div);
//		document.getElementsByTagName("body").item(0).appendChild(document.createElement('br'));
}

changeCSS();
function changeCSS()
{
	var css_list = document.styleSheets;
	if (css_list) for (var i = 0; i < css_list.length; i++) {

		var rule_list = (css_list[i].cssRules) ? css_list[i].cssRules : css_list[i].rules;

		for (var ii = 0; ii < rule_list.length; ii++)
		{
			if (rule_list[ii].selectorText.toLowerCase() == '.sys_font1 a')
			{
				with (rule_list[ii].style) {
					fontSize = '';
				}
			}
			if (rule_list[ii].selectorText.toLowerCase() == '#sys1')
			{
				with (rule_list[ii].style) {
					height = '';
				}
			}
		}

	}
}


