function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}


//フッター
function html_footer()
{
	var html = "<div id='foot'><address>";
	html += "Copyright &copy; -2011 &quot;Mina Iiboshi&quot; All Rights Reserved.";
	html += "</address></div>";

	return html;
}


//メニュー
function html_menu(item)
{
	var html = "<div id='menu'><p>";

	if ("Home" == item) {
		html += "<img src='images/menubts_home.jpg' width='89' height='31' alt='Home'>";
	}
	else {
		html += "<a href='./'><img src='images/menubt_home.jpg' width='89' height='31' alt='Home' class='Hover'></a>";
	}

	html += "</p><p>";

	if ("Profile" == item) {
		html += "<img src='images/menubts_profile.jpg' width='89' height='31' alt='Profile'>";
	}
	else {
		html += "<a href='profile.html'><img src='images/menubt_profile.jpg' width='89' height='31' alt='Profile' class='Hover'></a>";
	}

	html += "</p><p>";

	if ("Schedule" == item) {
		html += "<img src='images/menubts_schedule.jpg' width='89' height='31' alt='Schedule'>";
	}
	else {
		html += "<a href='schedule.html'><img src='images/menubt_schedule.jpg' width='89' height='31' alt='Schedule' class='Hover'></a>";
	}

	html += "</p><p>";

	if ("History" == item) {
		html += "<img src='images/menubts_history.jpg' width='89' height='31' alt='History'>";
	}
	else {
		html += "<a href='history.html'><img src='images/menubt_history.jpg' width='89' height='31' alt='History' class='Hover'></a>";
	}

	html += "</p><p>";

	if ("Lesson" == item) {
		html += "<img src='images/menubts_lesson.jpg' width='89' height='31' alt='Lesson'>";
	}
	else {
		html += "<a href='lesson.html'><img src='images/menubt_lesson.jpg' width='89' height='31' alt='Lesson' class='Hover'></a>";
	}

	html += "</p><p>";

	if ("Gallery" == item) {
		html += "<img src='images/menubts_gallery.jpg' width='89' height='31' alt='Gallery'>";
	}
	else {
		html += "<a href='gallery.html'><img src='images/menubt_gallery.jpg' width='89' height='31' alt='Gallery' class='Hover'></a>";
	}

	html += "</p><p>";

	html += "<a href='http://ameblo.jp/ensemblerose/'><img src='images/menubt_blog.jpg' width='89' height='31' alt='Blog' class='Hover'></a>";

	html += "</p><p>";

	if ("Company" == item) {
		html += "<img src='images/menubts_company.jpg' width='89' height='31' alt='Company'>";
	}
	else {
		html += "<a href='company.html'><img src='images/menubt_company.jpg' width='89' height='31' alt='Company' class='Hover'></a>";
	}

	html += "</p><p>";

	html += "<a href='mailto:info@ensemblerose.com'><img src='images/menubt_mail.jpg' width='89' height='31' alt='Mail' class='Hover'></a>";

	html += "</p><p>";

	if ("Link" == item) {
		html += "<img src='images/menubts_link.jpg' width='89' height='31' alt='Link'>";
	}
	else {
		html += "<a href='link.html'><img src='images/menubt_link.jpg' width='89' height='31' alt='Link' class='Hover'></a>";
	}

	html += "</p><p>";

	if ("Sitemap" == item) {
		html += "<img src='images/menubts_sitemap.jpg' width='89' height='31' alt='Sitemap'>";
	}
	else {
		html += "<a href='sitemap.html'><img src='images/menubt_sitemap.jpg' width='89' height='31' alt='Sitemap' class='Hover'></a>";
	}

	html += "</p></div>";

	return html;
}

