//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//	ヘッダー
//////////////////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//	フッター
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
function foot()
{
	if ( navigator.javaEnabled() ){
		document.write('<BR><IMG SRC="img/hr_00.gif" BORDER="0" ALT="" WIDTH="100%" HEIGHT="4"><BR>');
		document.write('</BODY></HTML>');
	}
	else {
		window.alert("このサイトではJavaを使用しております。");
	}
}
function foot_top()
{
	if ( navigator.javaEnabled() ){
		document.write('<BR><IMG SRC="img/hr_00.gif" BORDER="0" ALT="" WIDTH="100%" HEIGHT="4"><BR>');
		document.write('<A href="index.html"><IMG SRC="img/tri_U.gif" BORDER="0" ALT="TOPへ戻る" WIDTH="32" HEIGHT="32"><IMG SRC="img/logo_top.gif" BORDER="0" ALT="TOPへ戻る" WIDTH="96" HEIGHT="32"></A><BR>');
		document.write('</BODY></HTML>');
	}
	else {
		window.alert("このサイトではJavaを使用しております。");
	}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//	Window リサイズ
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
function window_resize()
{
	if ( navigator.javaEnabled() ){
		window.resizeTo(920,800);
		window.moveTo(50,50);
	}
	else {
		window.alert("このサイトではJavaを使用しております。");
	}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//	更新マーク自動表示
//////////////////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//	最終更新日付
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
function last_update()
{
	if ( navigator.javaEnabled() ){
		document.write("Last update:",document.lastModified);
	}
	else {
		window.alert("このサイトではJavaを使用しております。");
	}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//	ツリーメニュー
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
function exMenu(tName)
{
	tMenu = document.all[tName].style;
	if (tMenu.display == 'none') tMenu.display = "block"; else tMenu.display = "none";
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//	クリップカブルマッピングテスト
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
function head_light()
{
	document.setumei.part_name.value = 'ヘッドライト';
	document.setumei.part_tokutyo.value = '光軸調整できない・・・';
}
function spot_light()
{
	document.setumei.part_name.value = 'スポットライト';
	document.setumei.part_tokutyo.value = '対向車の目つぶし・・・';
}
function winker_L()
{
	document.setumei.part_name.value = 'ウィンカー(大）';
	document.setumei.part_tokutyo.value = 'なんかの流用';
}
function winker_S()
{
	document.setumei.part_name.value = 'ウィンカー（小）';
	document.setumei.part_tokutyo.value = 'スーパー７といっしょ';
}

function bonnet()
{
	document.setumei.part_name.value = 'ボンネット';
	document.setumei.part_tokutyo.value = 'しまり具合が悪い・・・';
}

function airslit()
{
	document.setumei.part_name.value = 'エアスリット';
	document.setumei.part_tokutyo.value = 'すぐ下にバッテリーが・・・';
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//	ピッタリ画像サイズウィンドウ
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
i=0;
imgw=0;
function imgwin(img,w,h) { 
	if(i>0 && win1.closed==false){
		win1.close();
	}
	imgw++;
	win1=window.open("","imgw","width="+w+",height="+h);
	i++;
	with(win1.document){
		writeln("<html><head><title>Y@KoPu PhotoFream</title></head>");
		writeln("<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");
		writeln("<a href='#' onClick='window.close()'><img src='"+img+"' border=0></a>");
		writeln("</body></html>");
	}
}
