//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// 10/06/17(木) GoogleAnalys
// 07/07/22(日) winopenをhead.jsから移動、いまここを別窓に(タイトル出ない
// 06/12/02(土) winopenに、第四引数 "窓名"を追加
// 05/12/04(日)16:13:53 右肩写真出力を削除
// 05/05/31(火)18:40:06 links右端に、またまたちっちゃな写真を挿入
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17009266-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

var doc=document ;
var debug = 0 ;
var show_ads = 1 ;

// 指定された uri を別窓サイズ指定出力
function winopen( uri, w, h, winname) { /* for OpenSesame */

	if( winname == null || winname == "undefined"){ winname = "another"; }
	// hideに合わせたサイズが 670*566
	if( w == null || w == "undefined" || w == 0){	w = 670;  }
	if( h == null || h == "undefined" || h == 0){	h = 566;  }

	// ブラウザ毎に窓サイズ微調整
	// ff:16,16 IE6:36,28 NC4.5:19,16 IE5:40,40
	if( navigator.appName == "Netscape"){
		w=w+16; h=h+16;
	}else{
		w=w+36; h=h+30;
		w=w+36; h=h+28;
	}

	alert(winname);
	// なにやらいまどき、タイトル書き換えできないみたい？
	r=window.open( uri, winname, "width=" + w + ",height=" + h + ",resizable=yes,scrollbars=yes,menubar=no");
}
function ads( fads, ln){

	var wts = getCookie("WelcomeTimes");
	if( isNaN( wts) ){
		wts = 0;
		doc.write( ".");
	}
	if( show_ads == 0
	 || ( fads != "undefined" && fads == 0) 	// 非表示の指定なら広告出力なし
//	 || 0 <= doc.location.href.indexOf( "CTRL=coco", 0)
//	 || (doc.location == "http://cvlz.net/?cv" && (wts % 5) != 0)		// 伝言板では時折出力
//	 || (doc.location == "http://cvlz.net/?cv#not" && (wts % 5) != 0)	// 伝言板では時折出力
	 || ln=="en" ){
		return wts;
	}

//	if( wts % 50 > 40){
//		AdsA8( wts);
//	}else{
		AdsGoogle( wts);
//	}
//	return wts;
}

function links( fads, ln){
	if( fads != "undefined" ){	// 呼び出し側 htmlで指定なければ広告出力
		fads = 1;
	}
//	wts = ads( fads, ln);
//	wts++ ; setCookie("WelcomeTimes", wts);

	var p = new String( document.location.pathname);
	var h = new String( document.location.href);
	var index = 1;
	if( 0 <= p.indexOf( "/cgi-bin/", 0)){
		index = 0;
	}

	var photo = 0;
// 05/12/04(日)16:13:53 右肩写真出力を削除
//	if( h == "http://cvlz.net/?cv"
//	 || h == "http://cvlz.net/?cv#not"){
//		photo = 0;
//	}
	var kansai = 0;
	if( 0 <= p.indexOf( "/-_-h", 0) ){
		kansai = 1;
		photo = 0;
	}

	doc.write( "<a name=top></a><div align=right>") ;
		if( 
			doc.lastModified != "Junuary 1, 1970 GMT" ||	// Opera 7.23 + futursim.ws で発生
			doc.lastModified != "January 1, 1970 GMT" ||	// mozilla1.1 linux + futursim.ws で発生
			doc.lastModified != "January 1, 1970 GMT" ||	// Opera 7.54 + futursim.ws で発生
			0 ){
			doc.write( "<nobr><small>");
			if( ln=="en"
			 || kansai ){	// 関西弁なら化けるの英語で
				doc.write( " LastModified:");
			}else{
				doc.write( " 最終更新:");
			}
			doc.write( doc.lastModified);
			doc.write( "</small></nobr> ");
		}

		if( ln == "en"
		 || kansai ){		// 関西弁なら化けるの英語リンクを
			doc.write( "<nobr><a href=./ target=_top>Index</a></nobr>") ;
			doc.write( "&nbsp;<nobr><a href=http://cvlz.net/warashi/mail.html >MailMe</a></nobr>") ;
			doc.write( "&nbsp;<nobr><a href=http://cvlz.net/indexe.html target=_top>HOME</a></nobr>") ;
			if( photo){
				doc.write( "<a href='http://cvlz.net/indexe.html' target=_top><img src='http://cvlz.net/photo/mostnew.jpg' width=96 height=72 align=top></a>");
			}
		}else{
/*
			doc.write( " <nobr><a href='http://j2k.naver.com/j2k.php/korean/" + 
				document.location.substring( 7, document.location.length-7) + "'>韓国語</a></nobr>");
doc.write( document.location.length);
doc.write( document.location);
doc.write( document.location.substring( 7, document.location.length-7));
*/
/* 08/02/06(水)11:59:16 del.
Forbidden by Dialectal Conversion Proxy Server
Forbidden by Dialectal Conversion Proxy Server on `www.yansite.jp:8080'.

Tried from 221.186.121.249:62208 to http://cvlz.net:80.

Warning : Forbidden to use this proxy server for anything but Dialectal Conversion (in Japan).
警告 : 方言変換以外の目的での利用を禁止します。

Proxy HTTP Server DeleGate/9.8.2-pre8 (January 21, 2008) by Yutaka Sato (National Institute of Advanced Industrial Science and Technology) @_@V 

			doc.write( " <nobr><a href='http://www.yansite.jp:8080/hakata/-_-" + document.location + "'>博多弁</a></nobr>");
			doc.write( " <nobr><a href='http://www.yansite.jp:8080/hiroshima/-_-" + document.location + "'>広島弁</a></nobr>");
			doc.write( " <nobr><a href='http://www.yansite.net:8080/-_-" + document.location + "'>関西弁</a></nobr>");
			doc.write( " <nobr><a href='http://www.yansite.jp:8080/nagoya/-_-" + document.location + "'>名古屋弁</a></nobr>");
			doc.write( " <nobr><a href='http://www.yansite.jp:8080/shisou/-_-" + document.location + "'>現代思想文</a></nobr>");
			doc.write( " <nobr><a href='http://www.yansite.jp:8080/marutani/-_-" + document.location + "'>丸谷風</a></nobr>");
*/
			if( index){
				doc.write( "&nbsp;<nobr><a href=./ target=_top>目次</a></nobr>") ;
			}
			doc.write( "&nbsp;<nobr><a href=http://cvlz.net/warashi/mail.html>親展</a></nobr>") ;
			// ▲ send_mail.cgi を_topで開く。送信完了で history(-2)に戻るのため 
			doc.write( "&nbsp;<nobr><b><a href=http://cvlz.net/indexj.html target=_top>玄関</a></b></nobr>") ;
			if( photo){ 	// 写真不要でなければ
				doc.write( "<a href='http://cvlz.net/' target=_top><img src='http://cvlz.net/photo/mostnew.jpg' width=96 height=72 align=top></a>");
			}
		}
	doc.write( "</div>") ;

}
function mailme( fads, ln){

	if( fads != "undefined" ){	// 呼び出し側 htmlで指定なければ広告出力
		fads = 1;
	}

	var loc = "-" ;
	if( doc.location != "undefined" && doc.location.length != 0 ){
		loc = doc.location ;
	}else
	if( parent.document.location != "undefined" && parent.document.location.length != 0 ){
		loc = parent.document.location;
	}else
	if( parent.location != "undefined" && parent.location.length != 0 ){
		loc = parent.location ; 
	}
	loc = escape( loc) ;
	
	var ref = "-" ;
	if( doc.referrer != "undefined" && doc.referrer.length != 0 ){
		ref = doc.referrer ;
	}else
	if( parent.referer != "undefined" /*&& parent.referer.length != 0*/ ){
		ref = parent.referer ;		// ★IE6でエラー IE6では常に undefined
	}else
	if( parent.document.referrer != null && parent.document.referrer!= "undefined" && parent.document.referrer.length != 0 ){
		ref = parent.document.referrer; // ie6 では常に null : 事前にチェックしてから扱うこと
	}
	ref = escape( ref) ;	// & とか escspeしてひとつの文字列として渡さねば
	
	// screen.width
	// screen.height
	// screen.colorDepth
		doc.write( "<a href=\"http://cvlz.net/warashi/mail.html\" target=_top") ;
		doc.write( ">cvlz<\/a>") ;
		var str = "loc=" + loc + "&ref=" + ref ; // ref を行末に
		doc.write( "<img src='http://cvlz.net/cgi-bin/welcome.cgi?" + str + "' width=1 height=1><br clear=all>") ;
/*
../../cgi-bin/welcome.cgi
*/
	wts = ads( fads, ln);
}

function AdsA8( wts){
	var c = wts % 3;
	doc.write( "<center>");
		 if( c == 0){
		doc.write( "<a href='http://px.a8.net/svt/ejp?a8mat=TY5RS+FH9R02+5ZU+5YRHD' target='_blank'><img border='0' width='468' height='60' alt='Click Here!' src='http://www21.a8.net/svt/bgt?aid=050302648936&wid=001&eno=01&mid=s00000000777001002000&mc=1'></a><img border='0' width='1' height='1' src='http://www12.a8.net/0.gif?a8mat=TY5RS+FH9R02+5ZU+5YRHD' alt='LEAD G13'>");
	}
	else if( c == 1){
		doc.write( "<a href='http://px.a8.net/svt/ejp?a8mat=OB5TT+6S3QSY+8EI+61JSH' target='_blank'><img border='0' width='468' height='60' alt='Click Here!' src='http://www23.a8.net/svt/bgt?aid=040831553410&wid=001&eno=01&mid=s00000001089001015000&mc=1'></a><img border='0' width='1' height='1' src='http://www19.a8.net/0.gif?a8mat=OB5TT+6S3QSY+8EI+61JSH' alt='格安航空券'>");
	}
	else{
		doc.write( "<a href='http://px.a8.net/svt/ejp?a8mat=OAWI2+FW5L4I+B5Y+5YJRL' target='_blank'><img border='0' width='468' height='60' alt='Click Here!' src='http://www22.a8.net/svt/bgt?aid=040819466961&wid=001&eno=01&mid=s00000001447001001000&mc=1'></a><img border='0' width='1' height='1' src='http://www18.a8.net/0.gif?a8mat=OAWI2+FW5L4I+B5Y+5YJRL' alt='Y!BB'>");
	}
	doc.write( "</center>");
}


function getCookie(key, tmp1, tmp2, xx1, xx2, xx3){
	
	key += "="; 				//　=を追加して検索の手抜きをする
	theCookie__ = document.cookie+";";	//　検索時最終項目で-1になるのを防ぐ
	start__ = theCookie__.indexOf(key); //　指定された名前を検索する
	if (start__ != -1){
		end__ = theCookie__.indexOf(";",start__);
		return unescape(theCookie__.substring(start__+key.length,end__));
	}
	return false;
	if(0){
		tmp1=" " + doc.cookie + ";";
		xx1=xx2=0;
		len=tmp1.length;
		while (xx1 < len){
			xx2=tmp1.indexOf(";", xx1);
			tmp2=tmp1.substring(xx1 + 1, xx2);
			xx3=tmp2.indexOf("=");
			if (tmp2.substring(0, xx3) == key) {
				return(unescape(tmp2.substring(xx3 + 1, xx2 - xx1 - 1)));
			}
			xx1=xx2 + 1;
		}
		return( "");
	}
}
function setCookie( key, val, expire) {
	if ((key != null) && (val != null)){
		var expDay__ = "Wed, 01 Jan 2020 18:56:35 GMT"; //　指定されない場合とりあえず2020年
		if (expire != null){
			expire = eval(expire); //　文字列の場合でも数値にする（念のため）
			var setDay = new Date();
			setDay.setTime( setDay.getTime()+(expire*1000*60*60*24));
			expDay__ = setDay.toGMTString();
		}
		document.cookie = key + "="+escape(val)+";expires="+expDay__;
		return true;
	}
	return false;
	if(0){
		tmp = key + "=" + escape(val) + "; ";
		// サイト共通とする場合
		tmp += "path=/; " ;
		// path別に保存する場合
		// tmp += "path=" + location.pathname + "; ";
		tmp += "expires=Fri, 31-Dec-2030 23:59:59; ";
		doc.cookie=tmp;
	}
}
function clearCookie(key) {
	doc.cookie=key + "=" + "xx; expires=1-Jan-1997 00:00:00; ";
}
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// 04/11/02(火)17:45:00 googleの jsをコピーしてここに含めた
// http://pagead2.googlesyndication.com/pagead/show_ads.js\">");
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
google_ad_url = '';
google_date = new Date();
google_random = google_date.getTime();
google_org_error_handler = window.onerror;

function quoted(str) {
  return (str != null) ? '"' + str + '"' : '""';
}

function google_encodeURIComponent(str) {
  if (typeof(encodeURIComponent) == 'function') {
	return encodeURIComponent(str);
  } else {
	return escape(str);
  }
}

function google_write_tracker(tracker_event) {
  var img_url = window.google_ad_url.replace(/pagead\/ads/, 'pagead/imp.gif');
  var img_src = img_url + '&event=' + tracker_event;
  var img_tag = '<img height="1" width="1" border="0" ' +
				'src=' + quoted(img_src) +
				'align=top hspace=6' +	// 独自拡張
				' />';
  document.write(img_tag);
}

function google_append_url(param, value) {
  if (value) {
	window.google_ad_url += '&' + param + '=' + value;
  }
}

function google_append_url_esc(param, value) {
  if (value) {
	google_append_url(param, google_encodeURIComponent(value));
  }
}

function google_append_color(param, value) {
  if (value && typeof(value) == 'object') {
	value = value[window.google_random % value.length];
  }
  google_append_url('color_' + param, value);
}

function google_get_user_data() {
  var javaEnabled = navigator.javaEnabled();
  var tz = -google_date.getTimezoneOffset();

  if (window.screen) {
	google_append_url("u_h", window.screen.height);
	google_append_url("u_w", window.screen.width);
	google_append_url("u_ah", window.screen.availHeight);
	google_append_url("u_aw", window.screen.availWidth);
	google_append_url("u_cd", window.screen.colorDepth);
  }

  google_append_url("u_tz", tz);
  google_append_url("u_his", history.length);
  google_append_url("u_java", javaEnabled);

  if (navigator.plugins) {
	google_append_url("u_nplug", navigator.plugins.length);
  }
  if (navigator.mimeTypes) {
	google_append_url("u_nmime", navigator.mimeTypes.length);
  }
}

function google_show_ad() {
  var w = window;
  w.onerror = w.google_org_error_handler;

   if (w.google_num_ad_slots) {
	w.google_num_ad_slots = w.google_num_ad_slots + 1;
  } else {
	w.google_num_ad_slots = 1;
  }

  if (w.google_num_ad_slots > 3) {
	return;
  }

  w.google_ad_url = 'http://pagead2.googlesyndication.com/pagead/ads?';
  w.google_ad_client = w.google_ad_client.toLowerCase();
  if (w.google_ad_client.substring(0,3) != 'ca-') {
	 w.google_ad_client = 'ca-' + w.google_ad_client;
  }
  w.google_ad_url += 'client=' + escape(w.google_ad_client) +
					 '&dt=' + w.google_date.getTime();

  google_append_url('hl', w.google_language);
  if (w.google_country) {
	google_append_url('gl', w.google_country);
  } else {
	google_append_url('gl', w.google_gl);
  }
  google_append_url('gr', w.google_region);
  google_append_url_esc('gcs', w.google_city);
  google_append_url_esc('hints', w.google_hints);
  google_append_url('adsafe', w.google_safe);
  google_append_url('oe', w.google_encoding);
  google_append_url('lmt', w.google_last_modified_time);
  google_append_url_esc('alternate_ad_url', w.google_alternate_ad_url);
  google_append_url('alt_color', w.google_alternate_color);

  if (w.google_skip) {
	google_append_url("skip", w.google_skip);
  } else if (w.google_prev_ad_formats) {
	google_append_url_esc('prev_fmts', w.google_prev_ad_formats.toLowerCase());
  }

  if (w.google_ad_format) {
	google_append_url_esc('format', w.google_ad_format.toLowerCase());
	if (w.google_prev_ad_formats) {
	  w.google_prev_ad_formats = w.google_prev_ad_formats + ',' + w.google_ad_format;
	} else {
	  w.google_prev_ad_formats = w.google_ad_format;
	}
  }

  google_append_url('num_ads', w.google_max_num_ads);
  google_append_url('output', w.google_ad_output);
  google_append_url('adtest', w.google_adtest);
  if (w.google_ad_channel) {
	google_append_url_esc('channel', w.google_ad_channel.toLowerCase());
  }
  google_append_url_esc('url', w.google_page_url);
  google_append_color('bg', w.google_color_bg);
  google_append_color('text', w.google_color_text);
  google_append_color('link', w.google_color_link);
  google_append_color('url', w.google_color_url);
  google_append_color('border', w.google_color_border);
  google_append_color('line', w.google_color_line);
  google_append_url('kw_type', w.google_kw_type);
  google_append_url_esc('kw', w.google_kw);
  google_append_url_esc('contents', w.google_contents);
  google_append_url('num_radlinks', w.google_num_radlinks);
  google_append_url('max_radlink_len', w.google_max_radlink_len);
  google_append_url('rl_filtering', w.google_rl_filtering);
  google_append_url('rl_mode', w.google_rl_mode);
  google_append_url('ad_type', w.google_ad_type);
  google_append_url('image_size', w.google_image_size);
  google_append_url('feedback_link', w.google_feedback);
  google_append_url_esc('ref', w.google_referrer_url);
  google_append_url_esc('loc', w.google_page_location);
  google_get_user_data();

  w.google_ad_url = w.google_ad_url.substring(0, 1000);
  w.google_ad_url = w.google_ad_url.replace(/%\w?$/, '');

  if (google_ad_output == 'js' && w.google_ad_request_done) {
	document.write('<scr' + 'ipt language="JavaScript1.1"' +
				   ' src=' + quoted(google_ad_url) +
				   '></scr' + 'ipt>');
  } else if (google_ad_output == 'html') {
	if (w.name == 'google_ads_frame') {
	  google_write_tracker('reboundredirect');
	} else {
	  document.write('<iframe' +
					 ' name="google_ads_frame"' +
					 ' width=' + quoted(w.google_ad_width) +
					 ' height=' + quoted(w.google_ad_height) +
					 ' frameborder=' + quoted(w.google_ad_frameborder) +
					 ' src=' + quoted(w.google_ad_url) +
					 ' marginwidth="0"' +
					 ' marginheight="0"' +
					 ' vspace="0"' +
					 ' hspace="0"' +
					 ' allowtransparency="true"' +
					 ' scrolling="no" align=top>');
	  google_write_tracker('noiframe');
	  document.write('</iframe>');
	}
  }
}

function google_error_handler(message, url, line) {
  google_show_ad();
  return true;
}

function AdsGoogle( wts) {

	var who = getCookie("cpw");
	if( who == "cvlz"){
		return;
	}

	google_ad_client = "pub-2258624525634859";
// 横４件
//		google_ad_width = 728;
//		google_ad_height = 90;
//		google_ad_format = "728x90_as";
// 横２件
	google_ad_width = 468;
	google_ad_height = 60;
	google_ad_format = "468x60_as";
	google_ad_channel ="3983321269";
	google_ad_type = "text_image";
	google_page_url = document.location;

	{
		google_color_border = "9f9f9f";
		google_color_border = "fff8f8";
		google_color_bg = "fff8f8";
		google_color_link = "0000ff";
		google_color_url = "8f00ff";
		google_color_text = "000000";
	}

	doc.write( "<blockquote>") ;
/*
	google_ad_frameborder = 0;
	google_ad_frameborder = 0;
	window.onerror = google_error_handler;
	if (window.google_ad_output == null) {
	  google_ad_output = 'html';
	}
	if (window.google_ad_format == null && window.google_ad_output == 'html') {
	  google_ad_format = google_ad_width + 'x' + google_ad_height;
	}
	if (window.google_page_url == null) {
	  google_page_url = document.referrer;
	  if (window.top.location == document.location) {
		google_page_url = document.location;
		google_last_modified_time = Date.parse(document.lastModified) / 1000;
		google_referrer_url = document.referrer;
	  }
	} else {
	  google_page_location = document.referrer;
	  if (window.top.location == document.location) {
		google_page_location = document.location;
	  }
	}
	google_show_ad();
↓に置き換え
	http://pagead2.googlesyndication.com/pagead/show_ads.js
*/	
(function(){
function m(b){return b!=null?'"'+b+'"':'""'}
function B(b){if(typeof encodeURIComponent=="function"){return encodeURIComponent(b)}else{return escape(b)}}
function c(b,a){if(a){window.google_ad_url+="&"+b+"="+a}}
function f(b,a){if(a){c(b,B(a))}}
function l(b,a,d){if(a&&typeof a=="object"){a=a[d%a.length]}c("color_"+b,a)}
function D(b,a){var d=b.screen;var g=navigator.javaEnabled();var e=-a.getTimezoneOffset();if(d){c("u_h",d.height);c("u_w",d.width);c("u_ah",d.availHeight);c("u_aw",d.availWidth);c("u_cd",d.colorDepth)}c("u_tz",e);c("u_his",history.length);c("u_java",g);if(navigator.plugins){c("u_nplug",navigator.plugins.length)}if(navigator.mimeTypes){c("u_nmime",navigator.mimeTypes.length)}}
function y(b){b=b.toLowerCase();if(b.substring(0,3)!="ca-"){b="ca-"+b}return b}
function G(b,a,d){d=d.substring(0,1000);d=d.replace(/%\w?$/,"");if(b.google_ad_output=="js"&&(b.google_ad_request_done||b.google_radlink_request_done)){a.write('<script language="JavaScript1.1" src='+m(d)+"><\/script>")}else if(b.google_ad_output=="html"){if(b.name!="google_ads_frame"){a.write('<iframe name="google_ads_frame" width='+m(b.google_ad_width)+" height="+m(b.google_ad_height)+" frameborder="+m(b.google_ad_frameborder)+" src="+m(d)+' marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no">'
);a.write("</iframe>")}}else if(b.google_ad_output=="textlink"){a.write('<script language="JavaScript1.1" src='+m(d)+"><\/script>")}}
function F(b){var a=null;b.google_ad_frameborder=a;b.google_ad_format=a;b.google_page_url=a;b.google_language=a;b.google_gl=a;b.google_country=a;b.google_region=a;b.google_city=a;b.google_hints=a;b.google_safe=a;b.google_encoding=a;b.google_ad_output=a;b.google_max_num_ads=a;b.google_ad_channel=a;b.google_contents=a;b.google_alternate_ad_url=a;b.google_alternate_color=a;b.google_color_bg=a;b.google_color_text=a;b.google_color_link=a;b.google_color_url=a;b.google_color_border=a;b.google_color_line=
a;b.google_adtest=a;b.google_kw_type=a;b.google_kw=a;b.google_num_radlinks=a;b.google_max_radlink_len=a;b.google_rl_filtering=a;b.google_rl_mode=a;b.google_rt=a;b.google_ad_type=a;b.google_image_size=a;b.google_feedback=a;b.google_skip=a;b.google_page_location=a;b.google_referrer_url=a;b.google_ad_region=a;b.google_ad_section=a;b.google_bid=a;b.google_cpa_choice=a;b.google_cust_age=a;b.google_cust_gender=a;b.google_cust_interests=a;b.google_cust_id=a;b.google_cust_job=a}
function A(){var b=null;var a=window;var d=document;var g=new Date;var e=g.getTime();var j=a.google_ad_format;if(a.google_cpa_choice){a.google_ad_url="http://pagead2.googlesyndication.com/cpa/ads?";a.google_ad_url+="client="+escape(y(a.google_ad_client));a.google_ad_region="_google_cpa_region_";c("cpa_choice",a.google_cpa_choice);if(typeof d.characterSet!="undefined"){f("oe",d.characterSet)}else if(typeof d.charset!="undefined"){f("oe",d.charset)}}else{a.google_ad_url="http://pagead2.googlesyndication.com/pagead/ads?"
;a.google_ad_url+="client="+escape(y(a.google_ad_client))}var k=a.google_num_slots_by_client;var w=a.google_num_slots_by_channel;var i=a.google_prev_ad_formats_by_region;a.onerror=a.google_org_error_handler;if(a.google_ad_region==b&&a.google_ad_section!=b){a.google_ad_region=a.google_ad_section}var h=a.google_ad_region==b?"":a.google_ad_region;var q=false;if(j){q=j.indexOf("_0ads")>0}if(q){if(a.google_num_0ad_slots){a.google_num_0ad_slots=a.google_num_0ad_slots+1}else{a.google_num_0ad_slots=1}if(
a.google_num_0ad_slots>1){return}}else if(!a.google_cpa_choice){if(a.google_num_ad_slots){a.google_num_ad_slots=a.google_num_ad_slots+1}else{a.google_num_ad_slots=1}if(a.google_num_slots_to_rotate){i[h]=b;if(a.google_num_slot_to_show==b){a.google_num_slot_to_show=e%a.google_num_slots_to_rotate+1}if(a.google_num_slot_to_show!=a.google_num_ad_slots){return}}else if(a.google_num_ad_slots>3&&h==""){return}}c("dt",g.getTime());c("hl",a.google_language);if(a.google_country){c("gl",a.google_country)}else{
c("gl",a.google_gl)}c("gr",a.google_region);f("gcs",a.google_city);f("hints",a.google_hints);c("adsafe",a.google_safe);c("oe",a.google_encoding);c("lmt",a.google_last_modified_time);f("alternate_ad_url",a.google_alternate_ad_url);c("alt_color",a.google_alternate_color);c("skip",a.google_skip);var n=a.google_ad_client;if(!k[n]){k[n]=1;k.length+=1}else{k[n]+=1}if(i[h]){f("prev_fmts",i[h].toLowerCase());if(k.length>1){c("slot",k[n])}}if(j){f("format",j.toLowerCase());if(i[h]){i[h]=i[h]+","+j}else{i[
h]=j}}c("num_ads",a.google_max_num_ads);c("output",a.google_ad_output);c("adtest",a.google_adtest);if(a.google_ad_channel){var r=a.google_ad_channel.toLowerCase();f("channel",r);var s="";var t=r.split("+");for(var o=0;o<t.length;o++){var p=t[o];if(!w[p]){w[p]=1}else{s+=p+"+"}}f("pv_ch",s)}f("url",a.google_page_url);l("bg",a.google_color_bg,e);l("text",a.google_color_text,e);l("link",a.google_color_link,e);l("url",a.google_color_url,e);l("border",a.google_color_border,e);l("line",a.google_color_line,
e);c("kw_type",a.google_kw_type);f("kw",a.google_kw);f("contents",a.google_contents);c("num_radlinks",a.google_num_radlinks);c("max_radlink_len",a.google_max_radlink_len);c("rl_filtering",a.google_rl_filtering);c("rl_mode",a.google_rl_mode);c("rt",a.google_rt);c("ad_type",a.google_ad_type);c("image_size",a.google_image_size);c("region",a.google_ad_region);c("feedback_link",a.google_feedback);f("ref",a.google_referrer_url);f("loc",a.google_page_location);c("bid",a.google_bid);c("cust_age",a.google_cust_age)
;c("cust_gender",a.google_cust_gender);c("cust_interests",a.google_cust_interests);c("cust_id",a.google_cust_id);c("cust_job",a.google_cust_job);if(z(a,d)&&d.body){var u=d.body.scrollHeight;var v=d.body.clientHeight;if(v&&u){f("cc",Math.round(v*100/u))}}D(a,g);G(a,d,a.google_ad_url);F(a)}
function C(b,a,d){A();return true}
function z(b,a){return b.top.location==a.location}
function x(b,a){var d=a.documentElement;if(z(b,a))return false;if(b.google_ad_width&&b.google_ad_height){var g=1;var e=1;if(b.innerHeight){g=b.innerWidth;e=b.innerHeight}else if(d&&d.clientHeight){g=d.clientWidth;e=d.clientHeight}else if(a.body){g=a.body.clientWidth;e=a.body.clientHeight}if(e>2*b.google_ad_height||g>2*b.google_ad_width){return false}}return true}
function E(){var b=window;var a=document;var d=a.location;var g=a.referrer;var e=null;b.google_org_error_handler=b.onerror;b.onerror=C;if(b.google_ad_frameborder==e){b.google_ad_frameborder=0}if(b.google_ad_output==e){b.google_ad_output="html"}if(b.google_ad_format==e&&b.google_ad_output=="html"){b.google_ad_format=b.google_ad_width+"x"+b.google_ad_height}if(b.google_page_url==e){b.google_page_url=g;if(!x(b,a)){b.google_page_url=d;b.google_last_modified_time=Date.parse(a.lastModified)/1000;b.google_referrer_url=
g}}else{b.google_page_location=g;if(!x(b,a)){b.google_page_location=d}}if(b.google_num_slots_by_channel==e){b.google_num_slots_by_channel=new Array}if(b.google_num_slots_by_client==e){b.google_num_slots_by_client=new Array}if(b.google_prev_ad_formats_by_region==e){b.google_prev_ad_formats_by_region=new Array}}
E();A();

})()



	doc.write( "</blockquote>") ;
}
