if (window.addEventListener) {
window.addEventListener("load", initRollovers, false);
window.addEventListener("load", externalLinks, false);
}
if (window.attachEvent) {
window.attachEvent("onload", initRollovers);
window.attachEvent("onload", externalLinks);
}

/*
	Standards Compliant Rollover Script
	Author : Daniel Nolan
	http://www.bleedingego.co.uk/webdev.php
*/

function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'rmenu') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_o'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_o'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

function CloseWin(){
    window.close();
}
function maintenance(){
    window.open("maintenance.html","","width=450,height=495");
}
function shizen(){
    window.open("genre_shizen.html","","width=420,height=350");
}
function enter(){
    window.open("genre_enter.html","","width=420,height=350");
}
function gogaku(){
    window.open("genre_gogaku.html","","width=420,height=350");
}
function gourmet(){
    window.open("genre_gourmet.html","","width=420,height=350");
}
function manga(){
    window.open("genre_manga.html","","width=420,height=350");
}
function rekishi(){
    window.open("genre_rekishi.html","","width=420,height=350");
}
function sports(){
    window.open("genre_sports.html","","width=420,height=350");
}
function syumi(){
    window.open("genre_syumi.html","","width=420,height=350");
}

function tokyo1week(){
    window.open("pr_1week.html","","width=770,height=700");
}

function spa(){
    window.open("pr_spa.html","","width=770,height=700");
}

function hotai(){
    window.open("pr_hotai.html","","width=770,height=700");
}
function young(){
    window.open("pr_young.html","","width=770,height=700");
}
function nonno(){
    window.open("pr_nonno.html","","width=770,height=700");
}
function hmv(){
    window.open("pr_hmv.html","","width=770,height=700");
}
function pinky(){
    window.open("pr_pinky.html","","width=770,height=700");
}
function kansai(){
    window.open("pr_kansai.html","","width=770,height=700");
}



function jump(){

var url = document.lounge_link_manner.manner_log.options[document.lounge_link_manner.manner_log.selectedIndex].value;

if(url != "" ){

if(target == 'top'){
top.location.href = url;
}
else if(target == 'blank'){
window.open(url, 'window_name');
}
else if(target != ""){
eval('parent.' + target + '.location.href = url');
}
else{
location.href = url;
}

}

} 







function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") &&
anchor.getAttribute("rel") == "external")
anchor.target = "_blank";
}
}

// 設定開始
// （フレームの場合は、表示先のフレーム名を設定してください）
// （top を指定すると、フレームの分割を廃止して画面全体で表示します）
// （blank を指定すると、新規ウィンドウで表示します）

var target = "";

// 設定終了
