// curvyCorners用の設定// 四隅を丸めるvar cc_settings1 = {  	tl: { radius: 5 },  	tr: { radius: 5 },  	bl: { radius: 5 },  	br: { radius: 5 },  	antiAlias: true  }  // 上隅を丸めるvar cc_settings2 = {  	tl: { radius: 5 },  	tr: { radius: 5 },  	bl: { radius: 0 },  	br: { radius: 0 },  	antiAlias: true  }// 背景イメージの設定（iepngfix対応）function set_bg_image(obj, file) {	obj.style.backgroundImage = 'url(' + file + ')';	if (typeof IEPNGFIX != 'undefined') {		IEPNGFIX.fix(this);	}}// Cookieの設定function getCookie(key,  tmp1, tmp2, xx1, xx2, xx3) {    tmp1 = " " + document.cookie + ";";    xx1 = xx2 = 0;    len = tmp1.length;    while (xx1 < len) {        xx2 = tmp1.indexOf(";", xx1);        tmp2 = tmp1.substring(xx1 + 1, xx2);        xx3 = tmp2.indexOf("=");        if (tmp2.substring(0, xx3) == key) {            return(unescape(tmp2.substring(xx3 + 1, xx2 - xx1 - 1)));        }        xx1 = xx2 + 1;    }    return("");}function setCookie(key, val, tmp) {    tmp = key + "=" + escape(val) + "; ";    //tmp += "path=" + location.pathname + "; ";    // tmp += "expires=Tue, 31-Dec-2030 23:59:59; ";    document.cookie = tmp;}function setCookiePath(key, val, dir, tmp) {	dir  = escape(dir);
	path = location.pathname.substring(0, (location.pathname.indexOf(dir)) );    tmp = key + "=" + escape(val) + "; ";    tmp += "path=" + path + "; ";    document.cookie = tmp;}function clearCookie(key) {    document.cookie = key + "=" + "xx; expires=Tue, 1-Jan-1980 00:00:00;";}function setStyleSheet() {	switch( getCookie("directory") ){
	    case "harley/":
	        tocss = "harley/style.css";
	        break;
	    case "yamaha/":
	        tocss = "yamaha/style.css";
	        break;
	    case "honda/":
	        tocss = "honda/style.css";
	        break;
	    case "suzuki/":
	        tocss = "suzuki/style.css";
	        break;
	    case "kawasaki/":
	        tocss = "kawasaki/style.css";
	        break;
	    default:
	        tocss = "";
	} 	if ( tocss != "" ) {		document.write("<link rel='stylesheet' href='"+tocss+"' type='text/css'>");	}}function changeToppage() {
	key  = "1";
	dir  = "i-satei";
	setCookiePath("index", key, dir);
	setCookiePath("directory", dir, dir);
	window.location.href = "../index.html";
}

//Open Window(maker2.phpとarea2.phpは、各ファイルにて個別指定)
function WinOpen(winname) {
	url = winname + "/index.html";
	//window.open(url,winname);
	window.open(url);
}


