function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		var iframes = document.getElementsByTagName("iframe");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}



			if(images[i].getAttribute("src").match("rogo05.gif"))
			{
				images[i].onclick = function() {

					document.getElementById('a2').innerHTML = '<iframe src="infomation/osuwari.php" width=680 height=290 id="infomation" frameborder=no></iframe>';

				}
			}

			if(images[i].getAttribute("src").match("ibent_1_off.gif"))
			{
				images[i].onclick = function() {

					document.getElementById('a2').innerHTML = '<iframe src="infomation/osuwari.php" width=680 height=290 id="infomation" frameborder=no></iframe>';

				}
			}
			if(images[i].getAttribute("src").match("ibent_2_off.gif"))
			{
				images[i].onclick = function() {

					document.getElementById('a2').innerHTML = '<iframe src="infomation/abura.php" width=680 height=290 id="infomation" frameborder=no></iframe>';

				}
			}
			if(images[i].getAttribute("src").match("ibent_3_off.gif"))
			{
				images[i].onclick = function() {

					document.getElementById('a2').innerHTML = '<iframe src="infomation/blog.php" width=680 height=290 id="infomation" frameborder=no></iframe>';

				}
			}





			if(images[i].getAttribute("src").match("movie_head.gif"))
			{
				images[i].onclick = function() {
				//	this.setAttribute("src", this.getAttribute("src").replace("movie_head.gif", "infomation_on.gif"));

					document.getElementById('a1').innerHTML = '<object width="250" height="205"   type="video/x-ms-wmv"  id="WMPPlayer"   data="http://www.arienai.net/images/ARI MOVIE-02.wmv">  <param name="uiMode" value="full" />  <param name="AutoStart" value="1" />  <param name="filename" value="http://arienai.net/images/ARI MOVIE-02.wmv" />   <p></p></object>';

				}
			}


			if(images[i].getAttribute("src").match("tokuten_1")){
				images[i].onmouseover = function() {
					document.getElementById('in1').innerHTML = '<center>☆　ＡＲＩメール受信　☆</center>				<table><tr><td>ニックネーム</td><td><input type="text" size=20></td></tr><tr><td>メールアドレス</td><td><input type="text" size=20></td></tr><tr><td colspan=10><center><input type="submit" value="ARIﾒｰﾙを受信する！" style="width:120px;"></center></td></tr></table>';
			}	}
			if(images[i].getAttribute("src").match("tokuten_2")){
				images[i].onmouseover = function() {
					document.getElementById('in1').innerHTML = '■熊本県民の方々も、熊本県外の方々も我々ARIグループで！<br>熊本風俗をより健全に！もっと楽しいデリヘルを楽しんでください！';
			}	}
			if(images[i].getAttribute("src").match("tokuten_3")){
				images[i].onmouseover = function() {
					document.getElementById('in1').innerHTML = '■各店にコンセプトや各店でしか楽しめないサービスを設けています！<br>会員様には破格の割引も!!';
			}	}
			if(images[i].getAttribute("src").match("tokuten_4")){
				images[i].onmouseover = function() {
					document.getElementById('in1').innerHTML = '■メール会員様には、大幅な割引イベントを随時開催中！熊本の夜にムラッときたら、ARIグループで！';
			}	}



			if(images[i].getAttribute("src").match("ranktype_1")){
				images[i].onmouseover = function() {
					document.getElementById('ranking1').style.display='block';
					document.getElementById('ranking2').style.display='none';
					document.getElementById('ranking3').style.display='none';
					document.getElementById('ranking4').style.display='none';
					document.getElementById('ranking5').style.display='none';
			}	}
			if(images[i].getAttribute("src").match("ranktype_2")){
				images[i].onmouseover = function() {
					document.getElementById('ranking1').style.display='none';
					document.getElementById('ranking2').style.display='block';
					document.getElementById('ranking3').style.display='none';
					document.getElementById('ranking4').style.display='none';
					document.getElementById('ranking5').style.display='none';
			}	}
			if(images[i].getAttribute("src").match("ranktype_3")){
				images[i].onmouseover = function() {
					document.getElementById('ranking1').style.display='none';
					document.getElementById('ranking2').style.display='none';
					document.getElementById('ranking3').style.display='block';
					document.getElementById('ranking4').style.display='none';
					document.getElementById('ranking5').style.display='none';
			}	}
	//		if(images[i].getAttribute("src").match("ranktype_4")){
	//			images[i].onmouseover = function() {
	//				document.getElementById('ranking1').style.display='none';
	//				document.getElementById('ranking2').style.display='none';
	//				document.getElementById('ranking3').style.display='none';
	//				document.getElementById('ranking4').style.display='block';
	//				document.getElementById('ranking5').style.display='none';
	//		}	}
			if(images[i].getAttribute("src").match("ranktype_5")){
				images[i].onmouseover = function() {
					document.getElementById('ranking1').style.display='none';
					document.getElementById('ranking2').style.display='none';
					document.getElementById('ranking3').style.display='none';
					document.getElementById('ranking4').style.display='none';
					document.getElementById('ranking5').style.display='block';
			}	}





		}
	}
}


if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}


function win(theURL) { //v2.0
  window.open(theURL,'honten','width=420,height=610');
}

