//Menu
function w_menu(){
	document.write('<ul>');
	document.write('<li><a href="/index.html"><img border="0" width="140" height="20" src="/common/image/menu_00-thum.gif" alt="ホーム"></a></li>');
	document.write('<li><a href="/schedule.html"><img border="0" width="140" height="20" src="/common/image/menu_01-thum.gif" alt="展覧会のごあんない"></a></li>');
	document.write('<li><a href="/archive.html"><img border="0" width="140" height="20" src="/common/image/menu_02-thum.gif" alt="過去の展覧会"></a></li>');
	document.write('<li><a href="/access.html"><img border="0" width="140" height="20" src="/common/image/menu_03-thum.gif" alt="ギャラリーアクセス"></a></li>');
	document.write('</ul>');
	document.write('<a href="/joinus.html"><img border="0" width="140" height="45" src="/image/menu_joinus-thum.gif" alt="展示作家募集中！" id="joinus"></a>');}


// Attention
function w_att_e_detail(){
	document.write('<p class="att">＊会場の都合により、お花・お菓子等はご遠慮くださいますようお願いいたします。</p>');
}

function w_att_e_all(){
	document.write('<p class="att">＊展覧会内容や作家略歴などの掲載情報は、すべて掲載時点のものです。</p>');
	document.write('<p class="att">＊掲載中の情報は予定であり、予告なく変更になる場合があります。</p>');
}


// Copyright
function w_copyright(){
	document.write('<p>Copyright (C) 2009-2011 FLEW GALLERY All Rights Reserved.</p>');
}


// Pagetop
function w_pagetop(){
	document.write('<p class="pagetop">↑ <a href="#top">ページ先頭へ</a></p>');
}


//Newmark
function NewMark(y,m,d){
	oldDay = new Date(y+"/"+m+"/"+d);
	newDay = new Date();
	n = (newDay - oldDay)/(1000*60*60*24);
	if (n <= 7) document.write('<span class="newmark"> NEW</span>');
}


// Rollover
function Rollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("-thum."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("-thum.", "-over."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("-over.", "-thum."));
				}
			}
		}
	}
}

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




