(function ()
{
var gmoactive = false;
var gmoactivebg = false;
var gmotarget = '';

if ( !gmoheaderwidth == '100%' ) {
	gmoheaderwidth = gmoheaderwidth + 'px';
}

document.writeln('<table id="header" style="width:' + gmoheaderwidth + ';" cellpadding="0" cellspacing="0">');
document.writeln('<tr>');
document.writeln('<td class="head"><img src="http://www.pure-b.com/img/_.gif" alt="" width="1" height="1" /></td>');
document.writeln('<td id="header_logo"><a href="http://www.pure-b.com/" target="_blank"><img src="http://www.pure-b.com/img/logo.gif" alt="salon de pure" /></a></td>');
document.writeln('<td id="pr">');
document.writeln('<table cellpadding="0" cellspacing="0">');
document.writeln('<tr>');
//	document.writeln('<td><a href="" target="_blank"><img src="http://www.pure-b.com/img/pr.gif" alt="PR" />注目のキャンペーンなど</a></td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</td>');
document.writeln('<td id="links">');
document.writeln('<table cellpadding="0" cellspacing="0">');
document.writeln('<tr>');

var services = {
	bord: {
		domain:	"www.pure-b.com",
		url:	"http://www.pure-b.com/cgi-bin/bbs/bbs.cgi",
		title:	"質問や感想などお待ちしてます＾＾",
		desc:	"掲示板"
	},
	menu: {
		domain:	"www.pure-b.com",
		url:	"http://www.pure-b.com/menu.html",
		title:	"料金一覧です！お得な情報も…",
		desc:	"メニュー"
	},
	shop:{
		domain:	"www.pure-b.com",
		url:	"http://www.pure-b.com/cgi-bin/calendar/bec.cgi",
		title:	"お店の紹介！場所や営業時間なども♪",
		desc:	"店舗案内"
	},
	service:{
		domain:	"www.pure-b.com",
		url:	"http://www.pure-b.com/service.html",
		title:	"当店オリジナルサービス☆",
		desc:	"サービス"
	},
	staff:{
		domain:	"www.pure-b.com",
		url:	"http://www.pure-b.com/staff.html",
		title:	"当店の優秀なスタッフです(´ω｀*)",
		desc:	"スタッフ"
	},
	reserve:{
		domain:	"www.pure-b.com",
		url:	"http://www.pure-b.com/cgi-bin/webmail_e/webmail_e.html",
		title:	"是非ご来店前にはご予約を",
		desc:	"予約"
	},
	link:{
		domain:	"www.pure-b.com",
		url:	"http://www.pure-b.com/link.html",
		title:	"相互リンクも募集中",
		desc:	"リンク"
	}
};

for (var service_name in services) {
	var i = services[service_name];
	var re = new RegExp('(www.)?' + i.domain + '$', 'i');
	active = ( re.exec(document.domain) ) ? ' class="gmoactive"' : '';

	if (active) {
		gmoactivebg = 'gmoactivebg';
		gmotarget = ' target="_top"';
	} else {
		gmoactivebg = 'gmobg';
		gmotarget = ' target="_top"';
	}
	document.writeln('<td' + active + '><a href="' + i.url + '" title="' + i.title + '"' + gmotarget + '><img src="http://www.pure-b.com/img/' + service_name + '.gif" alt="' + i.title + '" />' + i.desc + '</a></td><td class="' + gmoactivebg + '"><img src="http://www.pure-b.com/img/_.gif" alt="" width="5" height="1" /></td>');
}

document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</td>');
document.writeln('<td class="head"><img src="http://www.pure-b.com/img/_.gif" alt="" width="1" height="1" /></td>');
document.writeln('</tr>');
document.writeln('</table>');
})();
