//2008-5-7

var allabout_redirect_path = '//sos.allabout.co.jp/1/Cgi/r.cgi?';
var allabout_impgif_path = '//imp.allabout.co.jp/1/Cgi/img/imp_cnt.gif?';
var allabout_textcol = 15;
var zSr = '';//for overture
var AA_overture_top_array = new Array();
var AA_ad_top_order = '';
var AA_ad_top_order_array = new Array();

// kodaman east chumoku
// allabout 58
// lastmodified 2006/08/28 rodrigo
// 
function allabout_view58(dirname,str,imgadd){

	// init variables
	var ac = '58';
	var text01,text02,text03,text04,text05,text06,text07,text08,text09,text10;
	var pckh,pckd,tmplid;
	var i,j,k,l,m,n,o
	var header,footer,title,linkurl,desc,imgpath
	var query1,query2,query3,query4,query5;
	var kdmTXTheader,kdmTXTfooter
	var objkdmTXTup = document.getElementById("kodamanTXTup");
	var objkdmTXTdn = document.getElementById("kodamanTXTdown");
	var strkdmTXTup = '';
	var strkdmTXTdn = '';

	// get ary length
	var order = Math.floor( allabout_ary58.length / allabout_textcol );

	// random sort
	o = order -1;
	var aaary = new Array(o);
	for (n=0;n<o;n++) aaary[n] = n+1
	for (n=0;n<500;n++){
		k = Math.floor( Math.random() * o );
		l = Math.floor( Math.random() * o );
		m = aaary[k];
		aaary[k] = aaary[l];
		aaary[l] = m;
	}

	// exist list
	if ( order > 1 ){

		tmplid = '580';

		if(str == 'rnavi'){
			header = '<div class="contentsBox"><div id="prWire"><img src="//img.allabout.co.jp/aa/mansion/common/east/headline_rn_pr.gif" alt="PR"><br><ul class="vari21 arwAsh">';
			footer = '</ul></div></div>';
		}else if(str == 'unavi'){
			header = '<div class="contentsBox"><div id="prWire"><img src="//img.allabout.co.jp/aa/mansion/common/east/headline_un_pr.gif" alt="PR"><br><ul class="vari21 arwAsh">';
			footer = '</ul></div></div>';
		}else if(str == 'rnavi2'){
			header = '<div class="contentsBox"><div id="prWire"><img alt="PR" src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_rn_pr.gif"><br><table width="100%" cellspacing="0" cellpadding="0" border="0">';
			footer = '</table></div></div>';
		}else if(str == 'unavi2'){
			header = '<div class="contentsBox"><div id="prWire"><img alt="PR" src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_un_pr.gif"><br><table width="100%" cellspacing="0" cellpadding="0" border="0">';
			footer = '</table></div></div>';
		}else if(str == 'tnavi1'){
			header = '<div class="contentsBox"><div id="prWire"><img alt="PR" src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_un_pr.gif"><br><table width="100%" cellspacing="0" cellpadding="0" border="0">';
			footer = '</table></div></div>';
		}else if(str == 'rnavi2_wo_img'){
			header = '<div class="contentsBox"><div id="prWire"><img alt="PR" src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_rn_pr.gif"><br><ul class="vari21" style="margin: 15px 5px 0 15px; ">';
			footer = '</ul></div></div>';
		}else if(str == 'unavi2_wo_img'){
			header = '<div class="contentsBox"><div id="prWire"><img alt="PR" src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_un_pr.gif"><br><ul class="vari21" style="margin: 15px 5px 0 15px; ">';
			footer = '</ul></div></div>';
		}else if(str == 'tnavi1_wo_img'){
			header = '<div class="contentsBox"><div id="prWire"><img alt="PR" src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_un_pr.gif"><br><ul class="vari21" style="margin: 15px 5px 0 15px; ">';
			footer = '</ul></div></div>';
		}else if(str == 'kodamanTXT'){
			kdmTXTheader = '<div class="KDMTextWireOut"><div class="KDMTextWire"><div class="vari22 bo1 KDMTextTitle">おすすめ<br>物件情報</div><div class="KDMTextTitleWire"><ul class="vari21 arwAsh">';
			kdmTXTfooter = '</ul></div><br class="clear"></div></div>';
			header = '';
			footer = '';
		}else{
			header = '';
			footer = '';
		}



		// write header
		document.write(header);

		//
		for(j=1;j<order;j++){

			i = aaary[j-1]*allabout_textcol;

			// get data
			text01 = allabout_ary58[i++];	// title
			text02 = allabout_ary58[i++];	// url
			text03 = allabout_ary58[i++];	// desc
			text04 = allabout_ary58[i++];	// imgpath
			text05 = allabout_ary58[i++];
			text06 = allabout_ary58[i++];
			text07 = allabout_ary58[i++];
			text08 = allabout_ary58[i++];
			text09 = allabout_ary58[i++];
			text10 = allabout_ary58[i++];
			query1 = allabout_ary58[i++];	// pckh
			query2 = allabout_ary58[i++];	// pckd
			query3 = allabout_ary58[i++];	// ac
			query4 = allabout_ary58[i++];	// p
			query5 = allabout_ary58[i++];	// dummy

			// view item
			title   = text01;
			//linkurl  = allabout_redirect_path + 'pckh=' + query1 + '&ac=' + ac + '&tmplid=' + tmplid + '&p=' + dirname + '&url=' + text02;
			linkurl = text02
			desc    = text03;
			imgpath = text04;

			// write html
			if(str == 'rnavi'){
				document.write('<li><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=580&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></li>');
			}else if(str == 'unavi'){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=580","\&tmplid\=581");
				document.write('<li><span class="revise"><a href="' + linkurl + '">' + title + '</a></span><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=581&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></li>');
			}else if(str == 'rnavi2'){
				document.write('<tr><td style="padding:5px;"><a href="' + linkurl + '"><img width="45" height="45" alt="" src="'+imgadd+imgpath+'"></a>');
				document.write('</td><td class="vari21"><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + query1 + '&ac=' + ac + '&p=' + dirname + '&tmplid=580&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></td></tr>');

				//document.write('<tr><td class="vari21" style="padding:8px 5px 0px 15px;"><a href="' + linkurl + '">' + title + '</a><br><img src="' + allabout_impgif_path + 'pckh=' + query1 + '&ac=' + ac + '&p=' + dirname + '&tmplid=580&serial=' + allabout_dateserial + '" border="0" width="1" height="5" alt=""><br>'+desc+'</td></tr>');

			}else if(str == 'unavi2'){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=580","\&tmplid\=581");
				document.write('<tr><td style="padding:5px;"><a href="' + linkurl + '"><img width="45" height="45" alt="" src="'+imgadd+imgpath+'"></a>');
				document.write('</td><td class="vari21"><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + query1 + '&ac=' + ac + '&p=' + dirname + '&tmplid=581&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></td></tr>');

				//linkurl =linkurl.replace("\&tmplid\=580","\&tmplid\=581");
				//document.write('<tr><td class="vari21" style="padding:8px 10px 0px 15px;"><a href="' + linkurl + '">' + title + '</a><br><img src="' + allabout_impgif_path + 'pckh=' + query1 + '&ac=' + ac + '&p=' + dirname + '&tmplid=581&serial=' + allabout_dateserial + '" border="0" width="1" height="5" alt=""><br>'+desc+'</td></tr>');

			}else if(str == 'tnavi1'){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=580","\&tmplid\=583");
				document.write('<tr><td style="padding:0px 5px 0px 0px;"><a href="' + linkurl + '"><img width="45" height="45" alt="" src="'+imgadd+imgpath+'"></a>');
				document.write('</td><td class="vari21"><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + query1 + '&ac=' + ac + '&p=' + dirname + '&tmplid=583&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></td></tr>');


				//linkurl =linkurl.replace("\&tmplid\=580","\&tmplid\=583");
				//document.write('<tr><td class="vari21" style="padding:8px 5px 0px 15px;"><a href="' + linkurl + '">' + title + '</a><br><img src="' + allabout_impgif_path + 'pckh=' + query1 + '&ac=' + ac + '&p=' + dirname + '&tmplid=583&serial=' + allabout_dateserial + '" border="0" width="1" height="5" alt=""><br>'+desc+'</td></tr>');


			}else if(str == 'rnavi2_wo_img'){
				document.write('<li><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=580&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></li>');
			}else if(str == 'unavi2_wo_img'){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=580","\&tmplid\=581");
				document.write('<li><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=581&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></li>');
			}else if(str == 'tnavi1_wo_img'){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=580","\&tmplid\=583");
				document.write('<li><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=583&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></li>');
			}else if(str == 'kodamanTXT'){
				linkurl =linkurl.replace("\&tmplid\=580","\&tmplid\=584");
				if(j>2 && objkdmTXTdn){
					strkdmTXTdn = strkdmTXTdn + '<li><a href="' + linkurl + '">' + title + '</a></li>'
				}else if(objkdmTXTup){
					strkdmTXTup = strkdmTXTup + '<li><a href="' + linkurl + '">' + title + '</a></li>'
				}
			}

			// pckh check
			if(desc == ''){
				document.write('error! col3');
			}

		}

		// write footer
		document.write(footer);

		//
		if(strkdmTXTup && objkdmTXTup){objkdmTXTup.innerHTML = kdmTXTheader + strkdmTXTup + kdmTXTfooter;}
		if(strkdmTXTdn && objkdmTXTdn){objkdmTXTdn.innerHTML = kdmTXTheader + strkdmTXTdn + kdmTXTfooter;}

	}
}

// kodaman west chumoku
// allabout 95
// lastmodified 2006/09/22 rodrigo
// 

function allabout_view95(dirname,str,imgadd){

	// init variables
	var ac = '95';
	var text01,text02,text03,text04,text05,text06,text07,text08,text09,text10;
	var pckh,pckd,tmplid;
	var i,j,k,l,m,n,o
	var header,footer,title,linkurl,desc,imgpath
	var query1,query2,query3,query4,query5;
	var kdmTXTheader,kdmTXTfooter
	var objkdmTXTup = document.getElementById("kodamanTXTup");
	var objkdmTXTdn = document.getElementById("kodamanTXTdown");
	var strkdmTXTup = '';
	var strkdmTXTdn = '';

	// get ary length
	var order = Math.floor( allabout_ary95.length / allabout_textcol );

	// random sort
	o = order -1;
	var aaary = new Array(o);
	for (n=0;n<o;n++) aaary[n] = n+1
	for (n=0;n<500;n++){
		k = Math.floor( Math.random() * o );
		l = Math.floor( Math.random() * o );
		m = aaary[k];
		aaary[k] = aaary[l];
		aaary[l] = m;
	}

	// exist list
	if ( order > 1 ){

		tmplid = '950';

		if(str == 'rnavi'){
			header = '<div class="contentsBox"><div id="prWireWest"><img src="//img.allabout.co.jp/aa/mansion/common/west/headline_rn_pr.gif" alt="PR"><br><ul class="vari21 arwAsh">';
			footer = '</ul></div></div>';
		}else if(str == 'unavi'){
			header = '<div class="contentsBox"><div id="prWireWest"><img src="//img.allabout.co.jp/aa/mansion/common/west/headline_un_pr.gif" alt="PR"><br><ul class="vari21 arwAsh">';
			footer = '</ul></div></div>';
		}else if(str == 'rnavi2'){
			header = '<div class="contentsBox"><div id="prWire"><img alt="PR" src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_rn_pr.gif"><br><table width="100%" cellspacing="0" cellpadding="0" border="0">';
			footer = '</table></div></div>';
		}else if(str == 'unavi2'){
			header = '<div class="contentsBox"><div id="prWire"><img alt="PR" src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_un_pr.gif"><br><table width="100%" cellspacing="0" cellpadding="0" border="0">';
			footer = '</table></div></div>';
		}else if(str == 'tnavi1' || str=='tnavi2'){
			header = '<div class="contentsBox"><div id="prWire"><img alt="PR" src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_un_pr.gif"><br><table width="100%" cellspacing="0" cellpadding="0" border="0">';
			footer = '</table></div></div>';
		}else if(str == 'rnavi2_wo_img'){
			header = '<div class="contentsBox"><div id="prWire"><img alt="PR" src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_rn_pr.gif"><br><ul class="vari21" style="margin: 15px 5px 0 15px; ">';
			footer = '</ul></div></div>';
		}else if(str == 'unavi2_wo_img'){
			header = '<div class="contentsBox"><div id="prWire"><img alt="PR" src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_un_pr.gif"><br><ul class="vari21" style="margin: 15px 5px 0 15px; ">';
			footer = '</ul></div></div>';
		}else if(str == 'tnavi1_wo_img'){
			header = '<div class="contentsBox"><div id="prWire"><img alt="PR" src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_un_pr.gif"><br><ul class="vari21" style="margin: 15px 5px 0 15px; ">';
			footer = '</ul></div></div>';
		}else if(str == 'kodamanTXT'){
			kdmTXTheader = '<div class="KDMTextWireOut"><div class="KDMTextWire"><div class="vari22 bo1 KDMTextTitle">おすすめ<br>物件情報</div><div class="KDMTextTitleWire"><ul class="vari21 arwAsh">';
			kdmTXTfooter = '</ul></div><br class="clear"></div></div>';
			header = '';
			footer = '';
		}else{
			header = '';
			footer = '';
		}

		// write header
		document.write(header);

		//
		for(j=1;j<order;j++){

			i = aaary[j-1]*allabout_textcol;

			// get data
			text01 = allabout_ary95[i++];	// title
			text02 = allabout_ary95[i++];	// url
			text03 = allabout_ary95[i++];	// desc
			text04 = allabout_ary95[i++];	// imgpath
			text05 = allabout_ary95[i++];
			text06 = allabout_ary95[i++];
			text07 = allabout_ary95[i++];
			text08 = allabout_ary95[i++];
			text09 = allabout_ary95[i++];
			text10 = allabout_ary95[i++];
			query1 = allabout_ary95[i++];	// pckh
			query2 = allabout_ary95[i++];	// pckd
			query3 = allabout_ary95[i++];	// ac
			query4 = allabout_ary95[i++];	// p
			query5 = allabout_ary95[i++];	// dummy

			// view item
			title   = text01;
			//linkurl  = allabout_redirect_path + 'pckh=' + query1 + '&ac=' + ac + '&tmplid=' + tmplid + '&p=' + dirname + '&url=' + text02;
			linkurl = text02
			desc    = text03;
			imgpath = text04;

			// write html
			if(str == 'rnavi'){
				document.write('<li><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=950&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></li>');
			}else if(str == 'unavi'){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=950","\&tmplid\=951");
				document.write('<li><span class="revise"><a href="' + linkurl + '">' + title + '</a></span><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=951&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></li>');

			}else if(str == 'rnavi2'){

				//通常用
				document.write('<tr><td style="padding:5px;"><a href="' + linkurl + '"><img width="45" height="45" alt="" src="'+imgadd+imgpath+'"></a>');
				document.write('</td><td class="vari21"><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=950&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></td></tr>');

				//テスト用
				//document.write('<tr><td class="vari21" style="padding:8px 5px 0px 15px;"><a href="' + linkurl + '">' + title + '</a><br><img src="' + allabout_impgif_path + 'pckh=' + query1 + '&ac=' + ac + '&p=' + dirname + '&tmplid=950&serial=' + allabout_dateserial + '" border="0" width="1" height="5" alt=""><br>'+desc+'</td></tr>');


			}else if(str == 'unavi2'){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=950","\&tmplid\=951");

				//通常用
				document.write('<tr><td style="padding:5px;"><a href="' + linkurl + '"><img width="45" height="45" alt="" src="'+imgadd+imgpath+'"></a>');
				document.write('</td><td class="vari21"><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=951&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></td></tr>');

				//テスト用
				//document.write('<tr><td class="vari21" style="padding:8px 10px 0px 15px;"><a href="' + linkurl + '">' + title + '</a><br><img src="' + allabout_impgif_path + 'pckh=' + query1 + '&ac=' + ac + '&p=' + dirname + '&tmplid=951&serial=' + allabout_dateserial + '" border="0" width="1" height="5" alt=""><br>'+desc+'</td></tr>');


			}else if(str == 'tnavi1'){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=950","\&tmplid\=953");

				//通常用
				document.write('<tr><td style="padding:0px 5px 0px 0px;"><a href="' + linkurl + '"><img width="45" height="45" alt="" src="'+imgadd+imgpath+'"></a>');
				document.write('</td><td class="vari21"><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=953&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></td></tr>');

				//テスト用
				//document.write('<tr><td class="vari21" style="padding:8px 5px 0px 15px;"><a href="' + linkurl + '">' + title + '</a><br><img src="' + allabout_impgif_path + 'pckh=' + query1 + '&ac=' + ac + '&p=' + dirname + '&tmplid=953&serial=' + allabout_dateserial + '" border="0" width="1" height="5" alt=""><br>'+desc+'</td></tr>');

			}else if(str == 'rnavi2_wo_img'){
				document.write('<li><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=950&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></li>');
			}else if(str == 'unavi2_wo_img'){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=950","\&tmplid\=951");
				document.write('<li><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=951&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></li>');
			}else if(str == 'tnavi1_wo_img'){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=950","\&tmplid\=953");
				document.write('<li><a href="' + linkurl + '">' + title + '</a><img src="' + allabout_impgif_path + 'pckh=' + desc + '&ac=' + ac + '&p=' + dirname + '&tmplid=953&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"></li>');
			}else if(str == 'kodamanTXT'){
				linkurl =linkurl.replace("\&tmplid\=580","\&tmplid\=584");
				if(j>2 && objkdmTXTdn){
					strkdmTXTdn = strkdmTXTdn + '<li><a href="' + linkurl + '">' + title + '</a></li>'
				}else if(objkdmTXTup){
					strkdmTXTup = strkdmTXTup + '<li><a href="' + linkurl + '">' + title + '</a></li>'
				}

			}

			// pckh check
			if(desc == ''){
				document.write('error! col3');
			}

		}

		// write footer
		document.write(footer);

		//
		if(strkdmTXTup && objkdmTXTup){objkdmTXTup.innerHTML = kdmTXTheader + strkdmTXTup + kdmTXTfooter;}
		if(strkdmTXTdn && objkdmTXTdn){objkdmTXTdn.innerHTML = kdmTXTheader + strkdmTXTdn + kdmTXTfooter;}

	}
}

// kodaman button banner
// allabout 112
// lastmodified 2006/08/28 rodrigo
// 

function allabout_view112(dirname,str){

	// init variables
	var ac = '112';
	var text01,text02,text03,text04,text05,text06,text07,text08,text09,text10;
	var pckh,pckd,tmplid;
	var i,j,k,l,m,n,o
	var header,footer,title,linkurl,desc,imgpath
	var query1,query2,query3,query4,query5;

	// get ary length
	var order = Math.floor( allabout_ary112.length / allabout_textcol );

	// random sort
	o = order -1;
	var aaary = new Array(o);
	for (n=0;n<o;n++) aaary[n] = n+1
	for (n=0;n<500;n++){
		k = Math.floor( Math.random() * o );
		l = Math.floor( Math.random() * o );
		m = aaary[k];
		aaary[k] = aaary[l];
		aaary[l] = m;
	}

	// exist list
	if ( order > 1 ){

		tmplid = '1120';
		header = '<div id="logo-rBanner">';
		footer = '</div>';

		// write header
		document.write(header);

		//
		for(j=1;j<order;j++){

			i = aaary[j-1]*allabout_textcol;

			// get data
			text01 = allabout_ary112[i++];	// title
			text02 = allabout_ary112[i++];	// url
			text03 = allabout_ary112[i++];	// desc
			text04 = allabout_ary112[i++];	// imgpath
			text05 = allabout_ary112[i++];
			text06 = allabout_ary112[i++];
			text07 = allabout_ary112[i++];
			text08 = allabout_ary112[i++];
			text09 = allabout_ary112[i++];
			text10 = allabout_ary112[i++];
			query1 = allabout_ary112[i++];	// pckh
			query2 = allabout_ary112[i++];	// pckd
			query3 = allabout_ary112[i++];	// ac
			query4 = allabout_ary112[i++];	// p
			query5 = allabout_ary112[i++];	// dummy

			// view item
			title   = text01;
			//linkurl  = allabout_redirect_path + 'pckh=' + query1 + '&ac=' + ac + '&tmplid=' + tmplid + '&p=' + dirname + '&url=' + text02;
			linkurl = text02
			desc    = text03;
			imgpath = text04;

			// replace place
			linkurl =linkurl.replace("\&p\=kodawarimansion","\&p\="+dirname);

			// write html
			document.write('<a href="' + linkurl + '"><img src="' + str + imgpath + '" alt="' + title + '" width="88" height="31"></a><img src="' + allabout_impgif_path + 'pckh=' + text05 + '&ac=' + ac + '&p=' + dirname + '&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none">');

			// pckh check
			if(text05 == ''){
				document.write('<b>error! col5</b>');
			}
		}

		// write footer
		document.write(footer);

	}
}


// kodaman special east
// allabout 96
// lastmodified 2006/09/22 rodrigo
// 

function allabout_view96(dirname,str,imgadd){

	// init variables
	var ac = '96';
	var text01,text02,text03,text04,text05,text06,text07,text08,text09,text10;
	var pckh,pckd,tmplid;
	var i,j,k,l,m,n,o
	var header,footer,title,linkurl,desc,imgpath
	var query1,query2,query3,query4,query5;

	// get ary length
	var order = Math.floor( allabout_ary96.length / allabout_textcol );

	// exist list
	if ( order > 1 ){

		if( str == 'rnavi' ){
			//navigation template
			tmplid = '961';
			header = '<img src="//img.allabout.co.jp/aa/mansion/common/2nd/east/headline_rn_feature.gif" alt="今月の特集"><br><div id="feature">';
			footer = '</div>';
		}else{
			//main template
			tmplid = '960';
			header = '<img width="485" height="28" alt="今月の特集" src="//img.allabout.co.jp/aa/mansion/common/east/headline_feature.gif"><br><div id="feature">';
			footer = '</div>';
		}

		// write header
		document.write(header);

		// no sort
		o = order -1;
		var aaary = new Array(o);
		for (n=0;n<o;n++) aaary[n] = n+1

		// 96 loop
		for(j=1;j<order;j++){

			i = aaary[j-1]*allabout_textcol;

			// get data
			text01 = allabout_ary96[i++];	// title
			text02 = allabout_ary96[i++];	// url
			text03 = allabout_ary96[i++];	// img_path
			text04 = allabout_ary96[i++];	// img_path2
			text05 = allabout_ary96[i++];	// pkid
			text06 = allabout_ary96[i++];
			text07 = allabout_ary96[i++];
			text08 = allabout_ary96[i++];
			text09 = allabout_ary96[i++];
			text10 = allabout_ary96[i++];
			query1 = allabout_ary96[i++];	// pckh
			query2 = allabout_ary96[i++];	// pckd
			query3 = allabout_ary96[i++];	// ac
			query4 = allabout_ary96[i++];	// p
			query5 = allabout_ary96[i++];	// dummy

			// view item
			title   = text01;
			//linkurl  = allabout_redirect_path + 'pckh=' + query1 + '&ac=' + ac + '&tmplid=' + tmplid + '&p=' + dirname + '&url=' + text02;
			linkurl = text02
			imgpath  = text03;
			imgpath2 = text04;

			if( str == 'rnavi' ){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=960","\&tmplid\=961");
				//rnavi template
				document.write('<a href="' + linkurl + '"><img border="0" alt="今月の特集" src="' + imgadd + imgpath2 + '"></a><img src="' + allabout_impgif_path + 'pckh=' + text05 + '&ac=' + ac + '&p=' + dirname + '&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"><br>');
			}else{
				//main template
				document.write('<a href="' + linkurl + '"><img width="475" height="91" border="0" alt="" src="' + imgadd + imgpath + '"></a><br>');
			}
		}

		// write footer
		document.write(footer);

	}else{
		if( str != 'rnavi' ){
//			document.write('<img width="485" height="170" border="0" alt="今月の特集" src="//img.allabout.co.jp/aa/mansion/common/kodaman_none_photo.jpg"><br>');
		}
	}
}

// kodaman spesial under
// allabout 118
// lastmodified 2006/09/22 rodrigo
// 

function allabout_view118(dirname,str,imgadd){

	// init variables
	var ac = '118';
	var text01,text02,text03,text04,text05,text06,text07,text08,text09,text10;
	var pckh,pckd,tmplid;
	var i,j,k,l,m,n,o
	var header,footer,title,linkurl,desc,imgpath
	var query1,query2,query3,query4,query5;

	// get ary length
	var order = Math.floor( allabout_ary118.length / allabout_textcol );

	// exist list
	if ( order > 1 ){

		if( str == 'rnavi' ){
			//navigation template
			tmplid = '1181';
			header = '<div id="featureTouDen">';
			footer = '</div>';
		}else{
			//main template
			tmplid = '1180';
			header = '<div id="feature03">';
			footer = '</div>';
		}

		// write header
		document.write(header);

		// no sort
		o = order -1;
		var aaary = new Array(o);
		for (n=0;n<o;n++) aaary[n] = n+1

		// 118 loop
		for(j=1;j<order;j++){

			i = aaary[j-1]*allabout_textcol;

			// get data
			text01 = allabout_ary118[i++];	// title
			text02 = allabout_ary118[i++];	// url
			text03 = allabout_ary118[i++];	// img_path
			text04 = allabout_ary118[i++];	// img_path2
			text05 = allabout_ary118[i++];	// pkid
			text06 = allabout_ary118[i++];
			text07 = allabout_ary118[i++];
			text08 = allabout_ary118[i++];
			text09 = allabout_ary118[i++];
			text10 = allabout_ary118[i++];
			query1 = allabout_ary118[i++];	// pckh
			query2 = allabout_ary118[i++];	// pckd
			query3 = allabout_ary118[i++];	// ac
			query4 = allabout_ary118[i++];	// p
			query5 = allabout_ary118[i++];	// dummy

			// view item
			title   = text01;
			//linkurl  = allabout_redirect_path + 'pckh=' + query1 + '&ac=' + ac + '&tmplid=' + tmplid + '&p=' + dirname + '&url=' + text02;
			linkurl = text02
			imgpath  = text03;
			imgpath2 = text04;

			// replace place
			linkurl =linkurl.replace("\&p\=kodawarimansion","\&p\="+dirname);

			if( str == 'rnavi' ){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=1180","\&tmplid\=1181");
				//rnavi template
				document.write('<a href="' + linkurl + '"><img border="0" alt="' + title + '" src="' + imgadd + imgpath2 + '"></a><img src="' + allabout_impgif_path + 'pckh=' + text05 + '&ac=' + ac + '&p=' + dirname + '&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"><br>');
			}else{
				//main template
				document.write('<a href="' + linkurl + '"><img width="475" height="50" border="0" alt="' + title + '" src="' + imgadd + imgpath + '"></a><br>');
			}
		}

		// write footer
		document.write(footer);

	}
}

// kodaman special west
// allabout 97
// lastmodified 2006/09/22 rodrigo
// 

function allabout_view97(dirname,str,imgadd){

	// init variables
	var ac = '97';
	var text01,text02,text03,text04,text05,text06,text07,text08,text09,text10;
	var pckh,pckd,tmplid;
	var i,j,k,l,m,n,o
	var header,footer,title,linkurl,desc,imgpath
	var query1,query2,query3,query4,query5;

	// get ary length
	var order = Math.floor( allabout_ary97.length / allabout_textcol );

	// exist list
	if ( order > 1 ){

		if( str == 'rnavi' ){
			//navigation template
			tmplid = '971';
			header = '<img src="//img.allabout.co.jp/aa/mansion/common/2nd/west/headline_rn_feature.gif" alt="今月の特集"><br><div id="feature">';
			footer = '</div>';
		}else{
			//main template
			tmplid = '970';
			header = '<img width="485" height="28" alt="今月の特集" src="//img.allabout.co.jp/aa/mansion/common/west/headline_feature.gif"><br><div id="feature">';
			footer = '</div>';
		}

		// write header
		document.write(header);

		// no sort
		o = order -1;
		var aaary = new Array(o);
		for (n=0;n<o;n++) aaary[n] = n+1

		// 97 loop
		for(j=1;j<order;j++){

			i = aaary[j-1]*allabout_textcol;

			// get data
			text01 = allabout_ary97[i++];	// title
			text02 = allabout_ary97[i++];	// url
			text03 = allabout_ary97[i++];	// img_path
			text04 = allabout_ary97[i++];	// img_path2
			text05 = allabout_ary97[i++];	// pkid
			text06 = allabout_ary97[i++];
			text07 = allabout_ary97[i++];
			text08 = allabout_ary97[i++];
			text09 = allabout_ary97[i++];
			text10 = allabout_ary97[i++];
			query1 = allabout_ary97[i++];	// pckh
			query2 = allabout_ary97[i++];	// pckd
			query3 = allabout_ary97[i++];	// ac
			query4 = allabout_ary97[i++];	// p
			query5 = allabout_ary97[i++];	// dummy

			// view item
			title   = text01;
			//linkurl  = allabout_redirect_path + 'pckh=' + query1 + '&ac=' + ac + '&tmplid=' + tmplid + '&p=' + dirname + '&url=' + text02;
			linkurl = text02
			imgpath  = text03;
			imgpath2 = text04;

			if( str == 'rnavi' ){
				// replace tmplid
				linkurl =linkurl.replace("\&tmplid\=970","\&tmplid\=971");
				//rnavi template
				document.write('<a href="' + linkurl + '"><img border="0" alt="今月の特集" src="' + imgadd + imgpath2 + '"></a><img src="' + allabout_impgif_path + 'pckh=' + text05 + '&ac=' + ac + '&p=' + dirname + '&serial=' + allabout_dateserial + '" border="0" width="1" height="1" alt="" style="display:none"><br>');
			}else{
				//main template
				document.write('<a href="' + linkurl + '"><img width="475" height="91" border="0" alt="" src="' + imgadd + imgpath + '"></a><br>');
			}
		}

		// write footer
		document.write(footer);

	}else{
		if( str != 'rnavi' ){
//			document.write('<img width="485" height="170" border="0" alt="今月の特集" src="//img.allabout.co.jp/aa/mansion/common/kodaman_none_photo.jpg"><br>');
		}
	}
}


