// プジョー・シトロエン・ジャポン 

// CSS SELECTOR ++++++++++++++++++++++++++++++++++++++++++//
function CssSelect() {
	if ( navigator.userAgent.indexOf("Win") >= 0 ){
			document.write('<link rel="stylesheet" type="text/css" href="/dg/citroen/css/win.css">');
			document.close();
	} else {
			document.write('<link rel="stylesheet" type="text/css" href="/dg/citroen/css/mac.css">');
			document.close();
	}
}

// SWAP IMAGES +++++++++++++++++++++++++++++++++++++++++++//
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_findObj(n, d) { //v4.01
	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);
	if(!x && d.getElementById) x=d.getElementById(n); 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];}
}

// PRELOAD IMAGES ++++++++++++++++++++++++++++++++//
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];}}
}

// SUBWINDOW +++++++++++++++++++++++++++++++++++++++++++++//
function Openwin(html,name,width,height,scroll,resize) {
SubWindow=window.open(html,name,"width="+width+",height="+height+",toolbar=0,location=0,status=0,menubar=0,scrollbars="+scroll+",resizable="+resize+"");
	SubWindow.focus();
}

function OpenwinFull(html,name,width,height,scroll,resize) {
SubWindow=window.open(html,name,"width="+width+",height="+height+",toolbar=1,location=0,status=0,menubar=0,scrollbars="+scroll+",resizable="+resize+"");
	SubWindow.focus();
}

function OpenwinPRINT(html,name,width,height,scroll,resize) {
SubWindow=window.open(html,name,"width="+width+",height="+height+",toolbar=0,location=0,status=0,menubar=1,scrollbars="+scroll+",resizable="+resize+"");
	SubWindow.focus();
}

// LEFTMENU +++++++++++++++++++++++++++++++++++++++++++++//
function leftmenu(pagestatus){

	//model_01
	if ( pagestatus == "model" ) {

		document.write('<table border="0" cellpadding="0" cellspacing="0" width="173" style="margin-top:48px;">\n');
		document.write('<tr>\n');
		document.write('<td><img src="/dg/citroen/image/box_173_03_top.gif" width="173" height="11" border="0" alt=""></td>\n');
		document.write('</tr>\n');
		document.write('<tr>\n');
		document.write('<td bgcolor="#e0e0d6" width="173">\n');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="162">\n');
		document.write('<tr valign="top">\n');
		document.write('<td colspan="2"><a href="/dg/citroen/"><img hspace="10" src="/dg/citroen/image/ttl_m_model.gif" width="79" height="12" border="0" alt="モデルから探す"></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/cgi-bin/goojp/used/search_citroen_w.cgi?baitai=citroen&maker_cd=3510&sub_p2=1&client=2506200,9571604,9571199,2505495,2506199,2506252,9210143,2506343,0560540,9571976,0601012,2500701&car_cd=35101521&search_type=model" class="cdc002e"><font color="#666666">C6</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/cgi-bin/goojp/used/search_citroen_w.cgi?baitai=citroen&maker_cd=3510&sub_p2=1&client=2506200,9571604,9571199,2505495,2506199,2506252,9210143,2506343,0560540,9571976,0601012,2500701&car_cd=35101507&search_type=model" class="cdc002e"><font color="#666666">C5</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/cgi-bin/goojp/used/search_citroen_w.cgi?baitai=citroen&maker_cd=3510&sub_p2=1&client=2506200,9571604,9571199,2505495,2506199,2506252,9210143,2506343,0560540,9571976,0601012,2500701,2500701&car_cd=35101522&search_type=model" class="cdc002e"><font color="#666666">C4 Picasso</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/cgi-bin/goojp/used/search_citroen_w.cgi?baitai=citroen&maker_cd=3510&sub_p2=1&client=2506200,9571604,9571199,2505495,2506199,2506252,9210143,2506343,0560540,9571976,0601012,2500701&car_cd=35101520&search_type=model" class="cdc002e"><font color="#666666">C4</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/cgi-bin/goojp/used/search_citroen_w.cgi?baitai=citroen&maker_cd=3510&sub_p2=1&client=2506200,9571604,9571199,2505495,2506199,2506252,9210143,2506343,0560540,9571976,0601012,2500701&car_cd=35101523&search_type=model" class="cdc002e"><font color="#666666">DS3</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/cgi-bin/goojp/used/search_citroen_w.cgi?baitai=citroen&maker_cd=3510&sub_p2=1&client=2506200,9571604,9571199,2505495,2506199,2506252,9210143,2506343,0560540,9571976,0601012,2500701&car_cd=35101510&search_type=model" class="cdc002e"><font color="#666666">NEW C3</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/cgi-bin/goojp/used/search_citroen_w.cgi?baitai=citroen&maker_cd=3510&sub_p2=1&client=2506200,9571604,9571199,2505495,2506199,2506252,9210143,2506343,0560540,9571976,0601012,2500701&car_cd=35101519&search_type=model" class="cdc002e"><font color="#666666">C3 Pluriel</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/cgi-bin/goojp/used/search_citroen_w.cgi?baitai=citroen&maker_cd=3510&sub_p2=1&client=2506200,9571604,9571199,2505495,2506199,2506252,9210143,2506343,0560540,9571976,0601012,2500701&car_cd=35101510&nen2=2009&search_type=model" class="cdc002e"><font color="#666666">C3</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/cgi-bin/goojp/used/search_citroen_w.cgi?baitai=citroen&maker_cd=3510&sub_p2=1&client=2506200,9571604,9571199,2505495,2506199,2506252,9210143,2506343,0560540,9571976,0601012,2500701&car_cd=35101517&search_type=model" class="cdc002e"><font color="#666666">C2</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/cgi-bin/goojp/used/search_citroen_w.cgi?baitai=citroen&maker_cd=3510&sub_p2=1&client=2506200,9571604,9571199,2505495,2506199,2506252,9210143,2506343,0560540,9571976,0601012,2500701&car_cd=35101518&search_type=model" class="cdc002e"><font color="#666666">Xsara Picasso</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/cgi-bin/goojp/used/search_citroen_w.cgi?baitai=citroen&maker_cd=3510&sub_p2=1&client=2506200,9571604,9571199,2505495,2506199,2506252,9210143,2506343,0560540,9571976,0601012,2500701&car_cd=35101503&search_type=model" class="cdc002e"><font color="#666666">Xsara</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/cgi-bin/goojp/used/search_citroen_w.cgi?baitai=citroen&maker_cd=3510&sub_p2=1&client=2506200,9571604,9571199,2505495,2506199,2506252,9210143,2506343,0560540,9571976,0601012,2500701&car_cd=35101504&search_type=model" class="cdc002e"><font color="#666666">Saxo</font></a></td>\n');
	

		document.write('</tr>\n');
		document.write('</table>\n');
		document.write('</td>\n');
		document.write('</tr>\n');
		document.write('<tr>\n');
		document.write('<td><img src="/dg/citroen/image/box_173_03_btm.gif" width="173" height="11" border="0" alt=""></td>\n');
		document.write('</tr>\n');
		document.write('</table>\n');

	}

	//dealers_01
	if ( pagestatus == "dealers" ) {
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="173" style="margin-top:10px;">\n');
		document.write('<tr>\n');
		document.write('<td><img src="/dg/citroen/image/box_173_03_top.gif" width="173" height="11" border="0" alt=""></td>\n');
		document.write('</tr>\n');
		document.write('<tr>\n');
		document.write('<td bgcolor="#e0e0d6" width="173">\n');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="162">\n');
		document.write('<tr valign="top">\n');
		document.write('<td colspan="2"><a href="/dg/citroen/dealer.html"><img hspace="10" src="/dg/citroen/image/ttl_m_dealers.gif" width="96" height="12" border="0" alt="ディーラーから探す"></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/dg/citroen/dealer.html#hokkaido" class="cdc002e"><font color="#666666">北海道・東北</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/dg/citroen/dealer.html#kanto" class="cdc002e"><font color="#666666">関東</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/dg/citroen/dealer.html#cyubu" class="cdc002e"><font color="#666666">中部・北陸</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/dg/citroen/dealer.html#kinki" class="cdc002e"><font color="#666666">近畿</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/dg/citroen/dealer.html#cyugoku" class="cdc002e"><font color="#666666">中国・四国</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a href="/dg/citroen/dealer.html#kyusyu" class="cdc002e"><font color="#666666">九州・沖縄</font></a></td>\n');
		document.write('</tr>\n');
		document.write('</table>\n');
		document.write('</td>\n');
		document.write('</tr>\n');
		document.write('<tr>\n');
		document.write('<td><img src="/dg/citroen/image/box_173_03_btm.gif" width="173" height="11" border="0" alt=""></td>\n');
		document.write('</tr>\n');
		document.write('</table>\n');

	}

	//text_01
	if ( pagestatus == "text" ) {
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="173" style="margin-top:10px;">\n');
		document.write('<tr>\n');
		document.write('<td><img src="/dg/citroen/image/box_173_03_top.gif" width="173" height="11" border="0" alt=""></td>\n');
		document.write('</tr>\n');
		document.write('<tr>\n');
		document.write('<td bgcolor="#e0e0d6" width="173">\n');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="162">\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138"><a href="/dg/citroen/guide/guarantee.html" class="cdc002e"><font color="#666666">認定中古車保証内容</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a onClick="JavaScript:OpenwinPRINT(\'/dg/citroen/guide/icon.html\',\'item\',\'500\',\'550\',\'yes\',\'yes\');return false;" href="/dg/citroen/guide/icon.html" target="item" class="cdc002e"><font color="#666666">アイコンの説明</font></a></td>\n');
		document.write('</tr>\n');
		document.write('<tr valign="top">\n');
		document.write('<td width="24" style="padding-top:8px;"><img src="/dg/citroen/image/blt_13.gif" width="24" height="11" border="0" alt=""></td>\n');
		document.write('<td width="138" style="padding-top:8px;"><a onClick="JavaScript:OpenwinPRINT(\'/dg/citroen/guide/recycle.html\',\'item\',\'500\',\'550\',\'yes\',\'no\');return false;" href="/dg/citroen/guide/recycle.html" target="item" class="cdc002e"><font color="#666666">装備略号・用語解説</font></a></td>\n');
		document.write('</tr>\n');
		document.write('</table>\n');
		document.write('</td>\n');
		document.write('</tr>\n');
		document.write('<tr>\n');
		document.write('<td><img src="/dg/citroen/image/box_173_03_btm.gif" width="173" height="11" border="0" alt=""></td>\n');
		document.write('</tr>\n');
		document.write('</table>\n');
	}

}

