function writeMenu( arg ){

var str_common="";
url_path = "/"

str_common += "";
str_common += "<!--■■■■■ヘッダー部分　ここから■■■■■-->";
str_common += "<div id=\"header\">";
str_common += "<div id=\"logo_box\" class=\"clearfix\">";

str_common += "<div id=\"logo\"><a href=\"http://www.autobacs.com/\"><img src=\"" + url_path + "pimages/common/logo.gif\" alt=\"オートバックスドットコム、AUTOBACS.COM\" width=\"245\" height=\"44\"></a></div>";
str_common += "<div id=\"hnavi_area\">";
str_common += "<ul id=\"hnavi\" class=\"clearfix\">";
str_common += "<li id=\"hnavi_searchstore\"><a href=\"" + url_path + "store/search/search.aspx?pre_url=http://www.autobacs.com/store/top/top.aspx%3f\"><img src=\"" + url_path + "pimages/common/hnavi_searchstore.gif\" alt=\"店舗検索\" width=\"79\" height=\"16\"></a></li>";
str_common += "<li id=\"hnavi_inqury\"><a href=\"http://www.autobacs.com/info/inquiry.html\"><img src=\"" + url_path + "pimages/common/hnavi_inqury.gif\" alt=\"Q&amp;A お問い合わせ\" width=\"139\" height=\"16\"></a></li>";
str_common += "<li id=\"hnavi_mail\"><a href=\"" + url_path + "static_html/srv/mail.html\"><img src=\"" + url_path + "pimages/common/hnavi_mail.gif\" alt=\"メルマガ登録\" width=\"116\" height=\"16\"></a></li>";
str_common += "<li id=\"hnavi_guide\"><a href=\"http://www.autobacs.com/static_html/guide/index.html\"><img src=\"" + url_path + "pimages/common/hnavi_guide.gif\" alt=\"ご利用ガイド\" width=\"97\" height=\"16\"></a></li>";
str_common += "</ul>";
str_common += "<form name=\"gs\" method=\"GET\" action=\"http://search.autobacs.com/search\">";
str_common += "<div id=\"search_area\">";
str_common += "<p id=\"txt_Keywords\"><input type=\"text\" name=\"q\" value=\"\" class=\"original search_text\"></p>";
str_common += "<div id=\"ddl_collection\">";
str_common += "<select class=\"original select_item width200\" name=\"site\">";
str_common += "<option value=\"collection\" selected>サイト全体から</option>";
str_common += "<option value=\"store_collection\">オートバックス店舗のご案内</option>";
str_common += "<option value=\"knw_collection\">商品情報</option>";
str_common += "<option value=\"shop_collection\">ネットショップ</option>";
str_common += "</select>";
str_common += "</div>";
str_common += "<p id=\"btn_search\"><input type=\"image\" name=\"btnG\" alt=\"検索\" class=\"search_icon\" src=\"" + url_path + "pimages/common/btn_search.gif\"></p>";
str_common += "</div>";
str_common += "	<input value=\"xml_no_dtd\" name=\"output\" type=\"hidden\">";
str_common += "	<input value=\"date:D:L:d1\" name=\"sort\" type=\"hidden\">";
str_common += "	<input value=\"autobacs_search\" name=\"client\" type=\"hidden\">";
str_common += "	<input value=\"shift-jis\" name=\"ie\" type=\"hidden\">";
str_common += "	<input value=\"shift-jis\" name=\"oe\" type=\"hidden\">";
str_common += "	<input value=\"autobacs_search\" name=\"proxystylesheet\" type=\"hidden\">";
str_common += "</form>";
str_common += "</div>";
str_common += "</div>";
str_common += "<ul id=\"gnavi\" class=\"clearfix\">";
if(arg == '1'){
str_common += "<li id=\"gnavi_index\"><a href=\"" + url_path + "index.html\" class=\"select\">ホーム</a></li>";
}else{
str_common += "<li id=\"gnavi_index\"><a href=\"" + url_path + "index.html\">ホーム</a></li>";
}
if(arg == '2'){
str_common += "<li id=\"gnavi_sale\"><a href=\"http://www.autobacs.com/static_html/sale_camp/index.html\" class=\"select\">セールキャンペーン情報</a></li>";
}else{
str_common += "<li id=\"gnavi_sale\"><a href=\"http://www.autobacs.com/static_html/sale_camp/index.html\">セールキャンペーン情報</a></li>";
}
if(arg == '3'){
str_common += "<li id=\"gnavi_shop\"><a href=\"" + url_path + "n/store/c/index.html\" class=\"select\">オートバックス店舗のご案内</a></li>";
}else{
str_common += "<li id=\"gnavi_shop\"><a href=\"" + url_path + "n/store/c/index.html\">オートバックス店舗のご案内</a></li>";
}
if(arg == '4'){
str_common += "<li id=\"gnavi_goods\"><a href=\"http://www.autobacs.com/static_html/goods/index.html\" class=\"select\">商品情報</a></li>";
}else{
str_common += "<li id=\"gnavi_goods\"><a href=\"http://www.autobacs.com/static_html/goods/index.html\">商品情報</a></li>";
}
if(arg == '5'){
str_common += "<li id=\"gnavi_webstore\"><a href=\"" + url_path + "shop/c/c/\" class=\"select\">ネットショップ</a></li>";
}else{
str_common += "<li id=\"gnavi_webstore\"><a href=\"" + url_path + "shop/c/c/\">ネットショップ</a></li>";
}
if(arg == '6'){
str_common += "<li id=\"gnavi_member\"><a href=\"" + url_path + "shop/customer/menu.aspx\" class=\"select\">マイページ</a></li>";
}else{
str_common += "<li id=\"gnavi_member\"><a href=\"" + url_path + "shop/customer/menu.aspx\">マイページ</a></li>";
}
str_common += "</ul>";
str_common += "</div>";

str_common += "	<!--ヘッダー　ここから-->";

str_common += "<!--■■■■■ヘッダーメニュー　ここまで■■■■■-->";
document.write(str_common);
}

function writeCategory( para ){
var str_common="";
str_common += "";

}
