
//for PULLDOWN

var openedMenu = null;
var submenuTimer;

//画像メニューにポインタがきた時
function menuOvr(id){

	// 開いているメニューと違うメニューであれば隠す。
	if (openedMenu && openedMenu != id){
		CloseMenu(id);
	}

	// サブウィンドウの表示
	OpenMenu(id);
}

//レイヤメニューの表示
function OpenMenu(id){ 

	if ( document.getElementById ){
		document.getElementById( id ).style.visibility = 'visible';
	}else if ( document.all ){
		document.all( id ).style.visibility = 'visible';
	}else if ( document.layers ){
		document.layers[ id ].visibility = 'show';
	}

	clearTimeout(submenuTimer);

	openedMenu = id;

}

//レイヤメニューの削除
function CloseMenu(){ 

	if ( document.getElementById ){
		document.getElementById( openedMenu ).style.visibility = 'hidden';
	}else if ( document.all ){
		document.all( openedMenu ).style.visibility = 'hidden';
	}else if ( document.layers ){
		document.layers[ openedMenu ].visibility = 'hide';
	}

	openedMenu = null;

}

//for PULLDOWN


function backToTop() {
	var x1 = x2 = x3 = 0;
	var y1 = y2 = y3 = 0;
	if (document.documentElement) {
		x1 = document.documentElement.scrollLeft || 0;
		y1 = document.documentElement.scrollTop || 0;
	}
	if (document.body) {
		x2 = document.body.scrollLeft || 0;
		y2 = document.body.scrollTop || 0;
	}
	x3 = window.scrollX || 0;
	y3 = window.scrollY || 0;
	var x = Math.max(x1, Math.max(x2, x3));
	var y = Math.max(y1, Math.max(y2, y3));
	window.scrollTo(Math.floor(x / 1.4), Math.floor(y / 1.4));
	if (x > 0 || y > 0) {
		window.setTimeout("backToTop()", 20);
	}
}


//NewsTicker

function NewsTicker(){
	document.write('<embed src="http:\/\/www.and-nbsp.com\/WP\/newsTicker.swf" quality="high" bgcolor="#333333" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" width="100%" height="28"><\/embed>')}
	
	
function swf(){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,19,0" width="864" height="204"><param name="movie" value="index.swf" \/><param name="quality" value="high" \/><param name="wmode" value="transparent" \/><embed src="index.swf" quality="high" wmode="transparent" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" width="864" height="204"><\/embed><\/object>')}
	
	
	
	
	
	
	
	
	
	
	
	
