var popupLinkConfig = new Array;
// ポップアップウィンドウ設定↓
popupLinkConfig["gwin"]    = new Array ( "gwin", "width=700,height=600,scrollbars=yes,resizable=yes,status=yes,toolbar=no,location=no,menubar=no");

var rootdomain="http://"+window.location.hostname
// 日替わりインクルード設定↓
var includesaps=["sap/x1.html", "sap/x2.html", "sap/x3.html", "sap/x4.html", "sap/x5.html", "sap/x6.html", "sap/x7.html", "sap/x8.html", "sap/x9.html", "sap/x10.html", "sap/x11.html", "sap/x12.html", "sap/x13.html", "sap/x14.html", "sap/x15.html", "sap/x16.html", "sap/x17.html", "sap/x18.html", "sap/x19.html", "sap/x20.html", "sap/x21.html", "sap/x22.html", "sap/x23.html", "sap/x24.html", "sap/x25.html", "sap/x26.html", "sap/x27.html", "sap/x28.html", "sap/x29.html", "sap/x30.html", "sap/x31.html"]

window.onload=function() {
	TargetLink();
	initPopupLinks();
	if(!NiftyCheck())
    return;
Rounded("div.mbox","#ffffff","#F7CB52","small");
Rounded("div.mbox2","#ffffff","#F7CB52","small");
Rounded("dl.shops","#ffffff","#EFEFEF","small");
Rounded("div.frameouter2","#ffffff","#F7CB52","small");
}

// ランダムバナー
var randimage = new Array(
	'<li><a href="http://chibakado.kadoebi.co.jp/" title="千葉角海老"><img src="http://www.kadoebi.co.jp/sofron/banner/0801.gif" srcover="http://www.kadoebi.co.jp/sofron/banner/0801_2.gif" width="180" border = "0" height="45" alt=""></a></li>',
	'<li><a href="http://chibasan.kadoebi.co.jp/" title="千葉三浦屋"><img src="http://www.kadoebi.co.jp/sofron/banner/0802.gif" srcover="http://www.kadoebi.co.jp/sofron/banner/0802_2.gif" width="180" border = "0" height="45" alt=""></a></li>',
	'<li><a href="http://bekkan.kadoebi.co.jp/" title="三浦屋別館"><img src="http://www.kadoebi.co.jp/sofron/banner/0803.gif" srcover="http://www.kadoebi.co.jp/sofron/banner/0803_2.gif" border = "0" width="180" height="45" alt=""></a></li>',
	'<li><a href="http://goten.kadoebi.co.jp/" title="角海老御殿"><img src="http://www.kadoebi.co.jp/sofron/banner/0804.gif" srcover="http://www.kadoebi.co.jp/sofron/banner/0804_2.gif" width="180" border = "0" height="45" alt=""></a></li>'
	);

var shops = randimage.length;
for (i=0; i<10; i++)
{
	banner1 = Math.floor(Math.random() * shops);
	banner2 = Math.floor(Math.random() * shops);
	n = randimage[banner1];
	randimage[banner1] = randimage[banner2];
	randimage[banner2] = n;
}

function openimage(filename,width,height){
var html = new Array();
html[0] = "<html><head>\n";
html[1] = "<style type=\"text/css\"><!--\n";
html[2] = "body{margin:0}\n";
html[3] = "--></style></head>\n";
html[4] = "<body marginwidth=\"0\" marginheight=\"0\">\n"
html[5] = "<div><img src=\"";
html[6] = filename;
html[7] = "\"></div></body></html>\n"

var windowsize;
windowsize = "width="+width+",height="+height;

newWindow = window.open('','',windowsize+",scrollbars=no");
newWindow.document.open();
newWindow.document.write(html.join(""));
newWindow.document.close();

return false;
}
