<!--
$(document).ready(function(){
	//ブランド&アイテム名取得
	var brand = $("#brand").html();
	brand = brand.replace(/&amp;/gm,"＆");
	brand = brand.replace(/&gt;/gm,"＞");
	brand = brand.replace(/&lt;/gm,"＜");
	brand = brand.replace(/\n|\t/gm,"");
	brand = brand.replace(/.*<p>|<\/p>.*/gmi,"");
	brand = encodeURI(brand);
	var item = $("#item").html();
	item = item.replace(/&amp;/gm,"＆");
	item = item.replace(/&gt;/gm,"＞");
	item = item.replace(/&lt;/gm,"＜");
	item = item.replace(/\n|\t/gm,"");
	item = item.replace(/.*<p>|<\/p>.*/gmi,"");
	item = encodeURI(item);
	
	var endURL = "?brand="+brand+"&item="+item;
	
	
	//フォームボタン表示
	$("#order").html('<p><a href="http://www.stilly.co.jp/mailform3/order.html'+endURL+'" target="_blank" rel="form"><img src="http://www.stilly.co.jp/mailform/img/btn_order.gif" alt="ご注文" width="137" height="26" /></a></p>');
	$("#inquiry").html('<p><a href="http://www.stilly.co.jp/mailform3/inquiry.html'+endURL+'" target="_blank" rel="form"><img src="http://www.stilly.co.jp/mailform/img/btn_inquiry.gif" alt="お問合せ" width="137" height="26" /></a></p>');
	
	//ポップアップ設定
	$('a[rel="form"]').click(function(){
		var win;
		win=window.open(this.href, "form","width=940,height=680,menubar=no, toolbar=no, scrollbars=yes,resizable=yes");
		win.focus();
		return false;
	});
});
//-->