window.onload = function() {
	var url = location.pathname;
	//alert(url);
	//メニューの色
	if (url.search(/hikaku/i) != -1) {
		document.getElementById('menu1').style.background = 'url("http://www.cscnewact.com/img/bg_menu2.gif")';
    } else if (url.search(/ranking/i) != -1) {
		document.getElementById('menu2').style.background = 'url("http://www.cscnewact.com/img/bg_menu2.gif")';
    } else if (url.search(/douga/i) != -1) {
		document.getElementById('menu3').style.background = 'url("http://www.cscnewact.com/img/bg_menu2.gif")';
    } else if (url.search(/kouza/i) != -1) {
		document.getElementById('menu4').style.background = 'url("http://www.cscnewact.com/img/bg_menu2.gif")';
    } else if (url.search(/livechat/i) != -1) {
		document.getElementById('menu5').style.background = 'url("http://www.cscnewact.com/img/bg_menu2.gif")';
		//alert("aaa");
	} else {
		document.getElementById('menu1').style.background = 'url("http://www.cscnewact.com/img/bg_menu2.gif")';
		//alert("aaa");
	}

	var url = location.pathname;
	//サイドメニューの色
	if (url.search(/sougou/i) != -1) {
        document.getElementById('sub1').style.backgroundColor = '#E4F7E0';
    } else if (url.search(/shiroto/i) != -1) {
		document.getElementById('sub2').style.backgroundColor = '#E4F7E0';
    } else if (url.search(/jyukujyo/i) != -1) {
		document.getElementById('sub3').style.backgroundColor = '#E4F7E0';
    } else if (url.search(/tosatsu/i) != -1) {
		document.getElementById('sub4').style.backgroundColor = '#E4F7E0';
    } else if (url.search(/anime/i) != -1) {
		document.getElementById('sub5').style.backgroundColor = '#E4F7E0';
    } else if (url.search(/mania/i) != -1) {
		document.getElementById('sub6').style.backgroundColor = '#E4F7E0';
    } else if (url.search(/yomono/i) != -1) {
		document.getElementById('sub7').style.backgroundColor = '#E4F7E0';
    } else if (url.search(/reipu/i) != -1) {
		document.getElementById('sub8').style.backgroundColor = '#E4F7E0';
    } else if (url.search(/sm/i) != -1) {
		document.getElementById('sub9').style.backgroundColor = '#E4F7E0';
    } else if (url.search(/gay/i) != -1) {
		document.getElementById('sub10').style.backgroundColor = '#E4F7E0';
    } else if (url.search(/newhalf/i) != -1) {
		document.getElementById('sub11').style.backgroundColor = '#E4F7E0';
    } else if (url.search(/ppv/i) != -1) {
		document.getElementById('sub12').style.backgroundColor = '#E4F7E0';
	} else {
		document.getElementById('sub0').style.backgroundColor = '#E4F7E0';
	}

}
