document.write("<style type=text/css>");
if(navigator.appVersion.indexOf("Mac") != -1){document.write("td {color:#555555; font-size:10px}");}
else{document.write("td{color:#555555; font-size:10pt}");}
document.write("a:link {color:#336666}");
document.write("a:visited {color:#336666}");
document.write("a:active {color:#FF9900}");
document.write("a:hover {color:#FF9900}");
document.write("</style>");

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v3.0
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function fc_winop(img){ window.open('window.htm?'+img,'Window','scrollbars=auto,width=580,height=480'); }

function win_cl(){ top.window.close(); }

function sel(form, sel){
adrs = sel.options[sel.selectedIndex].value;
if (adrs != "-" ) parent.data.location.href = adrs;
}

//if(top.location == self.location){ top.location.href = "index_j.htm"; }

my_url="http://www.g-wood.jp/";
my_name="キミドリ建設";
function book_mark(){
if(document.all){window.external.addFavorite(my_url,my_name); }
}

function fc_mail(n){
sbj = new Array();
sbj[0] = " ";
sbj[1] = "バリアに関するご相談";
sbj[2] = "新築に関するご相談";
sbj[3] = "リフォームに関するご相談";
sbj[4] = "こんな家つくれますか？";
sbj[5] = "こんな工事できますか？";
sbj[6] = "その他のご相談";
sbj[7] = "カタログ請求のご依頼";
sbj[8] = "バリアに関する質問（FAQ）";
sbj[9] = "和風の家に関するご相談";
sbj[10] = "洋風の家に関するご相談";
sbj[11] = "キュービーに関するご相談";
sbj[12] = "グレートハウスに関するご相談";
sbj[13] = "こだわり工事に関するご相談";
sbj[14] = "中古品ネット販売に関するご相談";
sbj[15] = "フリーマーケットに関するご相談";
sbj[16] = "大工教室に関するご相談";

if(navigator.appVersion.indexOf("Mac") != -1){ br = "%250D"; }
else{ br = "%0D%0A"; }
body = "以下の項目をご記入ください。";
body += br+"------------------------------------------------";
body += br+"お名前（企業名・団体名）：";
body += br+"ご住所：";
body += br+"電話番号：";
body += br+"FAX番号：";
body += br+"メールアドレス：";
body += br+"内　容：";
location.href = "mailto:webmaster@g-wood.jp?subject="+sbj[n]+"&body="+body;
}
