
// last modified 2008-09-01
// 9/2 delete imp6 func fujii
// 090727 [A] func overture_im
// 090727 [A] func overture_ss
// [A] => ADD

if(typeof aa=="undefined")var aa={};
if(typeof aa.v=="undefined")aa.v={};
if(typeof aa.f=="undefined")aa.f={};
if(typeof aa.l=="undefined")aa.l={};
aa.v.sr=(new Date()).getTime();
aa.v.url=location.href;
aa.v.ref=document.referrer;
aa.v.loadcontents=new Array();
aa.v.loadlist=new Array();
aa.v.ad=new Array();
aa.v.consoleLog="off";
aa.v.dir=location.pathname.split("/");
aa.v.dir[0]=location.host;
aa.v.imp_cnt = new Array();
aa.v.domain=location.host;
aa.v.subdomain=(aa.v.domain.search(/allabout\.co\.jp/) != -1) ? aa.v.domain.match(/(.*?)\.?allabout\.co\.jp/)[1] : '';
aa.v.ylp_flg=0;

//
// prototype extentions
//
String.prototype.Trim=function(){
	return this.replace(/^\s+|\s+$/g,'');
}
String.prototype.splitTrim=function(t){
	return this.Trim().split(new RegExp('\\s*'+t+'\\s*'));
}
String.prototype.escapeHTML=function(){
	var i,e={'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;'},t=this;
	for(i in e)t=t.replace(new RegExp(i,'g'),e[i]);
	return t;
}
String.prototype.unescapeHTML=function(){
	var i,e={'&lt;':'<','&gt;':'>','&amp;':'&','&quot;':'"'},t=this;
	for(i in e)t=t.replace(new RegExp(i,'g'),e[i]);
	return t;
}
String.prototype.isEmail=function(){
	var rx=new RegExp("\\w+([-+.\']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*");
	var matches=rx.exec(this);
	return(matches != null && this == matches[0]);
}
String.prototype.isURL=function(){
	var rx=new RegExp("http(s)?://([\\w-]+\\.)+[\\w-]+(/[\\w-\\+ ./?%:&=#\\[\\]]*)?");
	var matches=rx.exec(this);
	return(matches != null && this == matches[0]);
}
String.prototype.contains=function(t){
	return this.indexOf(t) >= 0 ? true : false;
}

//
// common functions
//

//aa.f.aryShuffle=function(a){
//	var len = a.length;
//	var ary = a.concat();
//	var res = [];
//	while(len){
//		res.push(ary.splice(Math.floor(Math.random()*len--),1));
//	}
//	return res
//}

aa.f.aryShuffle=function(ary){
	if(ary.length<2)return ary;
	var i=ary.length;
	while(--i){
		var j=Math.floor(Math.random()*(i+1));
		if(i==j)continue;
		var k=ary[i];
		ary[i]=ary[j];
		ary[j]=k;
	}
	return ary;
}

aa.f.detectFlashVer=function(ver){
	var flg=false;
	var isIE=(navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
	var isWin=(navigator.appVersion.indexOf("Windows") != -1) ? true : false;
	if(isIE && isWin)flg=true;
	var plg = navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
//	if(plg && parseInt(plg.description.substring(plg.description.indexOf(".")-1)) >= ver)flg=true;
	if(plg && parseInt(plg.description.match(/\d+\.\d+/)) >= ver)flg=true;
	return flg;
}

aa.f.WtFlashFile=function(swf,gif,param,link,minVer,w,h,bg){
	var html="";escLink=escape(link);
	if(aa.f.detectFlashVer(minVer)){
		html+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0" id=FLASH_AD width="'+w+'" height="'+h+'">';
		html+='<param name=movie value="'+swf+'?'+param+'clickTag='+escLink+'">';
		html+='<param name=quality value=autohigh><param name=bgcolor value="'+bg+'">';
		html+='<param name="allowScriptAccess" value="always"><param name=wmode value=window>';
		html+='<embed src="'+swf+'?'+param+'clickTag='+escLink+'" quality=autohigh swLiveConnect=true width="'+w+'" height="'+h+'" bgcolor="'+bg+'" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>';
		html+='</object>';
	}else{
		html+='<a href="'+link+'"><img src="'+gif+'" border="0" alt=""></a>';
	}
	document.write(html);
}

aa.f.WtScriptTag=function(u,c,i,t){
	var s,h,k,v;
	k=navigator.userAgent.indexOf("Safari");
	v=parseInt(navigator.userAgent.slice(k+7));
	if(k>=0&&v<300)t=1;
	c=c?c:'Shift-JIS';i?i:"";
	if(t)document.write('<scr'+'ipt charset="'+c+'" id="'+i+'" src="'+u+'"></scr'+'ipt>');
	else{
		h = document.getElementsByTagName("head")[0];
		s = document.createElement('script');
		s.type = 'text/javascript';
		s.charset = c;
		s.id = i;
		s.src = u;
		h.appendChild(s);
	}
}

aa.f.ReadAllQS=function(str){
	var ls=location.search;
	if(str)ls=str.slice(str.indexOf("?"));
	var Params = new Object();
	if(ls.length>1){
		var aryQSItem = ls.substr(1).split("&");
		for(var idx in aryQSItem){
			var aryItem = aryQSItem[idx].split("=");
			if(!aryItem[1])aryItem[1]="";
			Params[aryItem[0].Trim()]=aryItem[1].Trim();
		}
		return Params;
	}else{
		return false;
	}
}

aa.f.ReadQS=function(str){
	return aa.f.ReadAllQS()[str];
}

aa.f.WtADImpTag=function(pk,ac,p,tmpl){
	var body = document.getElementsByTagName("body")[0];
	var img = document.createElement('img');
	img.src = "http://imp.allabout.co.jp/1/Cgi/img/imp_cnt.gif?pckh="+pk+"&ac="+ac+"&p="+p+"&tmplid="+tmpl+"&serial="+aa.v.sr;
	$(function(){body.appendChild(img);});
}

aa.f.WtMediaImpTag=function(param){
	if(aa.v.subdomain=='prev'){return;}
	if(aa.v.imp_cnt['categoryID']=='guidesite' && !(aa.v.imp_cnt['groupS']=='recommend' && aa.v.imp_cnt['id1']=='index.htm') ){return;}

	if(typeof(aa.v.ylp_flg)!="undefined"){aa.v.ylp_flg=0}

	if(aa.v.ylp_flg==0){
		// not Y LP
		var cndid = ['domain','groupL','groupM','groupS','id1','id2','id3','sumID','categoryID','property','url','ref','query'];
		var qs = ''
		for(var i = 0, item; item = cndid[i] ; i++){
			if (!param[item]) param[item] = '';
			qs += item + '=' + param[item] + '&';
		}
		qs += 'serial='+aa.v.sr;
		var img = document.createElement('img');
		img.src = "http://cnt.allabout.co.jp/2/Cgi/img/imp5_cnt.gif?"+qs;
		$("body").append(img);
//		var ih='<img src="http://cnt.allabout.co.jp/2/Cgi/img/imp6_cnt.gif?'+qs+'" style="display:none;">'
//		$("body").append(ih);
	}
}

aa.f.ConvRelUrl2AbsUrl=function(path){
	var img=new Image();
	img.src=path;
	path=img.src;
	img.src='#';
	return path;
}

aa.f.loadHtml=function(ar){
	if(ar.length>0){
		for(var i=0,j;j=ar[i];i++){
			$(j.id).load(j.url);
		}
	}
}

aa.f.myClipPath=function(){
	wg=window.getSelection,dg=document.getSelection,ds=document.selection,sl=(wg?wg():(dg)?dg():(ds?ds.createRange().text:0)),e=encodeURIComponent;
	up='http://i.allabout.co.jp/clips/bookmarklet?clip_url='+e(location.href)+'&selection='+e(sl);
	window.open(up,'t','toolbar=0,resizable=1,status=1,width=594,height=574,scrollbars=yes');
	void(0);
}

aa.f.setParameter=function(p){
	var s='',a='';
	if(!p)return'';
	for(var i in p){
		s=s+a+i+"="+encodeURIComponent(p[i]);
		a='&'
	}
	return s;
}

aa.f.loadList=function(ar){

	for (var i in ar) {
		var config = ar[i];

		// create function(jsonp)
		aa.f[config.func] = function (func, json) {
			if (json.length==1) return;
			var config = ar[func];
			var header = config.header ? config.header : '';
			var footer = config.footer ? config.footer : '';
			var start  = config.start  ? config.start  : 1;
			var repeat = config.repeat ? config.repeat : 100;
			var list_odd  = config.list_odd ? config.list_odd : '';
			var list_even = config.list_even ? config.list_even : '';
			var list_last = config.list_last ? config.list_last : '';
			var list = '', tmpl;

			// shuffle
			if (config.shuffle) {
				json.shift();
				json = aa.f.aryShuffle(json);
				json.unshift('');
			}

			for(var i=start;line=json[i];i++){
				if(i >= start + repeat) break;

				// header footer replace
				if(i == start){
					for (var key in line) {
						header = header.replace(new RegExp('<##'+key+'##>', 'g'), line[key]);
						footer = footer.replace(new RegExp('<##'+key+'##>', 'g'), line[key]);
					}
				}

				// list replace
				if (config['list'+i]) {
					tmpl = config['list'+i];
				} else {
					tmpl = config.list;
				}
				for (var key in line) {
					tmpl = tmpl.replace(new RegExp('<##'+key+'##>', 'g'), line[key]);
					tmpl = tmpl.replace(new RegExp('<##list_count##>', 'g'), i);
				}

				// odd even last
				if (list_odd || list_even || list_last) {
					if (i % 2 == 1) tmpl = tmpl.replace(new RegExp('<##list_odd##>', 'g'), list_odd);
					if (i % 2 == 0) tmpl = tmpl.replace(new RegExp('<##list_even##>', 'g'), list_even);
					if (i == start + repeat -1) tmpl = tmpl.replace(new RegExp('<##list_last##>', 'g'), list_last);
					tmpl = tmpl.replace(new RegExp('<##list_odd##>', 'g'), '').replace(new RegExp('<##list_even##>', 'g'), '').replace(new RegExp('<##list_last##>', 'g'), '');
				}

				list += tmpl;
			}

			// innerhtml
			$('#'+config.id).html(header+list+footer);

		}

		// jsonp load
		aa.f.WtScriptTag(config.url+'?'+config.id,"Shift-JIS","");

	}

}

//
// pre execute functions
//
$(function(){
	aa.f.WtMediaImpTag(aa.v.imp_cnt);
	aa.f.loadHtml(aa.v.loadcontents);
	aa.f.loadList(aa.v.loadlist);
	$(".shufflebody").each(function(){
		var classitems = $(this).attr("class");
		var indexcount = classitems.indexOf("shufflecount");
		var viewitemcount = 0;
		if(indexcount>0){
			viewitemcount = parseInt(classitems.slice(indexcount+12));
		}
		var a=new Array();
		$(this).find(".shuffleitem").each(function(){
			a.push($(this).clone());
			$(this).remove();
		});
		if(a.length>1){
			a=aa.f.aryShuffle(a);
		}
		if( (viewitemcount == 0) || (viewitemcount > a.length) ){
			viewitemcount=a.length;
		}
		for(var i=0;i<viewitemcount;i++){
			$(this).append(a[i]);
		}
		$(this).css("display","block");
	});
});


//
// site catalyst default params
//
if (aa.v.subdomain.search(/^(sos|cnt|kw|imp|se|cosme|ps)$/) != -1) {
	aa.v.sc_domain = 'http://allabout.co.jp';
} else {
	aa.v.sc_domain = 'http://' + aa.v.dir[0];
}
aa.v.imp_cnt['ref'] = aa.v.ref;
aa.v.imp_cnt['srchwrd'] = '';
aa.v.imp_cnt['query'] = location.search;
aa.v.imp_cnt['url'] = aa.v.sc_domain + location.pathname + location.search;
aa.v.imp_cnt['pageName'] = aa.v.sc_domain + location.pathname.replace(/\/$/,'');
aa.v.imp_cnt['serial'] = aa.v.sr;
delete aa.v.sc_domain;

aa.v.sc_date = new Date();
aa.v.sc_weekday = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'];
aa.v.imp_cnt.rq_date = aa.v.sc_date.getFullYear() +'/'+ ('0'+(aa.v.sc_date.getMonth()+1)).slice(-2) +'/'+ ('0'+aa.v.sc_date.getDate()).slice(-2)
aa.v.imp_cnt.rq_weekday = aa.v.sc_weekday[aa.v.sc_date.getDay()];
if (aa.v.sc_date.getDay() == 0 || aa.v.sc_date.getDay() == 6) {
	aa.v.imp_cnt.rq_weekdayoff = 'WeekEnd';
} else {
	aa.v.imp_cnt.rq_weekdayoff = 'WeekDay';
}
aa.v.imp_cnt.rq_hour = aa.v.sc_date.getHours();
delete aa.v.sc_date;
delete aa.v.sc_weekday;


//
// by cookie.js
//
aa.v.orig_cookie = document.cookie;

aa.f.ReadAllCookie=function(str){
	var c=new Object();
	var aryCookie = str=="fresh" ? document.cookie.toString().split(";") : aa.v.orig_cookie.toString().split(";");
	for(var idx in aryCookie){
		var aryCookieItem = aryCookie[idx].split("=");
		if(!aryCookieItem[1])aryCookieItem[1]="";
		c[aryCookieItem[0].Trim()]=aryCookieItem[1].Trim();
	}
	return c;
}

aa.f.ReadOldCookie=function(str){
	return aa.f.ReadAllCookie()[str];
}
aa.f.ReadCookie=function(str)
{
	return aa.f.ReadAllCookie("fresh")[str];
}

aa.f.SetCookie=function(name,value,expdays,domain,path,seccon){
	var str = "";
	if(name) str += name.Trim() + "=" + value.Trim();
	if(expdays){
		var d=new Date();
		d.setTime(d.getTime()+1000*60*60*24*expdays);
		str+="; expires="+d.toGMTString();
	}
	if(domain)str+="; domain=" + domain;
	if(path)str+="; path="   + path;
	if(seccon && location.protocol == "https:")str+="; secure";
	if(name)document.cookie = str;
}
aa.f.ClearAllCookie=function(domain,path){
	var cookies = aa.f.ReadAllCookie();
	for(var c in cookies){
		aa.f.CookieClear(c, domain, path);
	}
}
aa.f.CookieClear=function(name,domain,path){
	aa.f.SetCookie(name, "", -10000, domain, path);
}

///////////////
// Ad Common
///////////////
aa.f.DrivePMTAGwriter=function(){
	var FunctionBody = {
		"categories":{
			'autos':          'auto',
			'r_beauty':       'beauty',
			'r_business':     'business',
			'r_children':     'children',
			'r_entertainment':'entertainment',
			'moneylife':      'finance',
			'r_finance':      'finance',
			'r_gourmet':      'gourmet',
			'r_health':       'health',
			'r_house':        'house',
			'r_itdigital':    'itdigital',
			'r_kurashi':      'kurashi',
			'r_travel':       'travel'
		},
		/*
		"adcom":function(){
			document.write('<SCR'+'IPT TYPE="text/javascript">var ACE_AR = {Site: "734905", Size: "728090", Region: "3"};</SCR'+'IPT><SCR'+'IPT TYPE="text/javascript" SRC="http://uac.advertising.com/wrapper/aceUAC.js"></SCR'+'IPT>');
		},
		*/
		"microad":function(){
			var category_id = (typeof(this.categories[arguments[0]])!="undefined")?this.categories[arguments[0]]:"entertainment";
			document.write(
				"<sc","ript type=\"text/javasc","ript\">",
				"in_uid = '680'; ",
				"in_templateid = '70032'; ",
				"in_charset = 'UTF-8'; ",
				"in_group = '728x90_"+category_id+"'; ",
				"in_matchurl = ''; ",
				"in_HBgColor = 'FFFFFF'; ",
				"in_HBorderColor = 'CCCCCC'; ",
				"in_HTitleColor = '0000CC'; ",
				"in_HTextColor = '000000'; ",
				"in_HUrlColor = '0000CC'; ",
				"frame_width = '728'; ",
				"frame_height = '90'; ",
				"</sc","ript>",
				"<sc","ript type=\"text/javasc","ript\" src=\"http://cache.microad.jp/send_680.js\">",
				"</sc","ript>"
			);
		}
	};
	
	/** constructor method */
	FunctionBody.microad( aa.v.ryoiki_eng );
}

/* ***** ***** *****
 * Date: 2009/08/20
 * Rev: 
 * Memo: [M] aa.f.overture_im
 */

aa.f.overture_im=function(o){
//	if(aa.v.ad_dir1!="fashion" && aa.v.site_category!="1" && aa.v.site_category!="3" && aa.v.caution!="1"){
	if(aa.v.site_category!="1" && aa.v.site_category!="3" && aa.v.caution!="1"){ // add fashion ch 20090820
		var url=['/proxy/0/0/http://im.about.ov.yahoo.co.jp/xml/?'];
		var qs=[];

		qs['source']=o._os;
		//qs['mkt']='jp';
		qs['ctxtId']=o._id;
		qs['type']=o._ot;
		qs['keywordCharEnc']='utf8';
		qs['outputCharEnc']='utf8';
		qs['maxCount']=o._m;
//		qs['ref']='';
//		qs['gen']='';
//		qs['age']='';
//		qs['ctxtCat']='';
		qs['ctxtUrl']=encodeURIComponent(aa.v.url,"utf-8");

		for(var key in qs){
			url.push(key+'='+qs[key]);
		}

		$.ajax({
			 url:url.join('&').replace(/\?&/g,'?')
			,type:'GET'
			,dataType:'xml'
			,timeout:5000
			,error:function(){}
			,success:function(xml){
				//var h='';
				var n=(o._n)?o._n:1;
				var x;
				var selector,list,header,footer,sponser,method,from,to;
				var source=[];
				$(xml).find('Listing').each(function(){
					source.push(this);
				});
				for(var ic=1;ic<=n;ic++){
					var h=[];
					x=(ic==1)?'':ic;
					selector = o['_s'+x];
					list     = o['_l'+x];
					header   = o['_h'+x];
					footer   = o['_f'+x];
					sponser  = o['_sp'+x];
					method   = o['_ev'+x];
					from     = o['_fr'+x]?o['_fr'+x]:1;
					to       = o['_to'+x]?o['_to'+x]:o['_m'+x];

					for(var i=from-1;i<to;i++){
//alert('from:'+from+' to:'+to+'i :'+i);
						if(typeof source[i]=='undefined')break;

						var cu=$('ClickUrl',source[i]).text();	//ClickUrl
						var t=$(source[i]).attr("title");	//@title
						var d=$(source[i]).attr("description");	//@description
						var sh=$(source[i]).attr("siteHost");	//@siteHost

						h.push(list.replace(/\[url\]/g, cu).replace(/\[title\]/g, t).replace(/\[text\]/g, d).replace(/\[site\]/g, sh));
					}

					if(h.length==0)continue;

					switch(sponser){
						case 0: break;
						case 1: h.push('<p class="ovtrIMservice">インタレストマッチ&nbsp;-&nbsp;<a href="http://ov.yahoo.co.jp/service/int/index.html?o=IM0018" target="_blank" rel="nofollow">広告掲載について</a></p>'); break;
						case 2: h.push('</ul><p class="ovtrIMservice">インタレストマッチ&nbsp;-&nbsp;<a href="http://ov.yahoo.co.jp/service/int/index.html?o=IM0018" target="_blank" rel="nofollow">広告掲載について</a></p></div>'); break;
						case 3: h.push('<p class="ssService">インタレストマッチ&nbsp;-&nbsp;<a href="http://ov.yahoo.co.jp/service/int/index.html?o=IM0018" target="_blank" rel="nofollow">広告掲載について</a></p>'); break;
					}

					if(h.length!=0)$(selector)[method](header+h.join('')+footer);
				}
			}
		});
	}
};


/* ***** ***** *****
 * Date: 2009/07/27
 * Rev: 
 * Memo: [A] aa.f.overture_ss
 */

// overture ss
// selector header footer listtype max kw source type event sponsor
aa.f.overture_ss = function(o){
	if(aa.v.site_category!="1" && aa.v.site_category!="3"){

		var skw=o._kw.replace(/・/g, ' ');
		var url=['/proxy/0/0/http://xml.jp.overture.com/d/search/p/standard/xml/jp/rlb/?'];
		var qs=[];

		aa.v.ipaddr='192.168.1.23';
		aa.v.xf='(none)'=='(none)'?'':'(none)';

		qs['Partner']=o._os;
		qs['Keywords']=encodeURIComponent(o._kw, 'utf-8');
		qs['accountFilters']='about_jp';
		qs['urlFilters']='about_jp';
		qs['termFilters']='about_jp';
		qs['mkt']='jp';
		qs['type']=o._ot;
		qs['maxCount']=o._m;
		qs['bolding']='true';
		qs['serveUrl']=encodeURIComponent(location.href);
		qs['affilData']=encodeURIComponent('ip=__ipaddr__&xfip=__xfipaddr__&ua='+navigator.userAgent,"utf-8");

		qs['keywordCharEnc']='UTF-8';
		qs['outputCharEnc']='UTF-8';

		for(var key in qs){
			url.push(key+'='+qs[key]);
			//url+='&'+key+'='+qs[key];
		}

		$.ajax({
			//url:url
			 url:url.join('&').replace(/\?&/g,'?')
			,type:'GET'
			,dataType:'xml'
			,timeout:5000
			,error:function(){}
			,success:function(xml){
				//var h='';
				var n=(o._n)?o._n:1;
				var x;
				var selector,list,header,footer,sponser,method,from,to;
				var source=[];
				$(xml).find('Listing').each(function(){
					source.push(this);
				});
				for(var ic=1;ic<=n;ic++){
					var h=[];
					//var h='';
					x=(ic==1)?'':ic;
					selector = o['_s'+x];
					list     = o['_l'+x];
					header   = o['_h'+x];
					footer   = o['_f'+x];
					sponser  = o['_sp'+x];
					method   = o['_ev'+x];
					from     = o['_fr'+x]?o['_fr'+x]:1;
					to       = o['_to'+x]?o['_to'+x]:o['_m'+x];

					for(var i=from-1;i<to;i++){
//alert('from:'+from+' to:'+to+'i :'+i);
						if(typeof source[i]=='undefined')break;
						var cu=$('ClickUrl',source[i]).text();	//ClickUrl
						var t=$(source[i]).attr("title");	//@title
						var d=$(source[i]).attr("description");	//@description
						var sh=$(source[i]).attr("siteHost");	//@siteHost

						h.push(list.replace(/\[url\]/g, cu).replace(/\[title\]/g, t).replace(/\[text\]/g, d).replace(/\[site\]/g, sh));
					}

					if(h.length==0)continue;

					switch(sponser){
						case 0: break;
						case 1: h.push('<p class="ovtrSSservice">スポンサードサーチ&nbsp;-&nbsp;<a href="http://ov.yahoo.co.jp/service/srch/index.html?o=JP0374" target="_blank" rel="nofollow">広告掲載について</a></p>'); break;
						case 2: h.push('</ul><p class="ovtrSSservice">スポンサードサーチ<br />&nbsp;-&nbsp;<a href="http://ov.yahoo.co.jp/service/srch/index.html?o=JP0374" target="_blank" rel="nofollow">広告掲載について</a></p></div>'); break;
						case 3: h.push('<p class="ssService">スポンサードサーチ-<a href="http://ov.yahoo.co.jp/service/srch/index.html?o=JP0374" target="_blank" rel="nofollow">広告掲載について</a></p>'); break;
					}

					if(h.length!=0)$(selector)[method](header+h.join('')+footer);

				}
			}
		});
	}
}

aa.f.RectangleAdNetworkTAGwriter=function(){
	if(aa.v.site_category!="1" && aa.v.site_category!="3" && aa.v.caution!="1"){

		// impact
		if (aa.v.rec_impact_flg == '1') {
			aa.f.impactTAGwriter(aa.v.ad_dir2,'REC',aa.v.adult_flg,'0',aa.v.site_category,'300X250','normal');

		// adcom
		} else if (aa.v.rec_adcom_flg == '1') {
			document.write('<script type="text/javascript">var ACE_AR = {site: "774980", size: "300250", Region: "3"};</script><script type="text/javascript" SRC="http://uac.advertising.com/wrapper/aceUAC.js"></script>');

		// y!rec
		} else {
			var sid,sig,loc="APREC";
			sid="784201066";
			sig="340e27f2ff36844ecac1a5db0ed0a7d0a8a525f2";
			document.write('<scr'+'ipt src="http://yeas.yahoo.co.jp/n?f='+sid+'&p=jp_adn_ala&l='+loc+'&c=r&domain=allabout.co.jp&sig='+sig+'&st=&jcode=s&rnd='+aa.v.sr+'"></scr'+'ipt>');
		}
	}
}

aa.f.BannerAdNetworkTAGwriter=function(){
	if(aa.v.site_category!="1" && aa.v.site_category!="3"){ // without ss bs
		aa.f.DrivePMTAGwriter();
	}
}
