google_ad_client = "pub-4918484552856932";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "336699";
google_color_text = "333333";

var str;
str = "";
try{ str = parent.location.href; } catch(e){  }
strtxt = "pub-4918484552856932";

	if (str.indexOf(strtxt,0) < 0){
	hfurl1 = document.getElementById('td1').style;
	hfurl2 = document.getElementById('td2').style;
	hfurl1.display = 'block';
	hfurl2.display = 'none';

	yuukoukigen = 1;
	tt = new Date();
	tt.setTime(tt.getTime()+(yuukoukigen * 1000 * 86400));
	ttw = tt.toGMTString();
	document.cookie = "REURL" + "=" + str + ";expires=" + ttw;

	}else{
	hfurl1 = document.getElementById('td1').style;
	hfurl2 = document.getElementById('td2').style;
	hfurl1.display = 'none';
	hfurl2.display = 'block';

	}

function tdctrl(hfname){
	hfurl1 = document.getElementById('td1').style;
	hfurl2 = document.getElementById('td2').style;
	hfurl3 = document.getElementById('td3').style;
	if (hfurl1.display == 'none'){
	hfurl1.display = 'block';
	hfurl2.display = 'none';
	hfurl3.display = 'block';
	reurl = "";
	ckname = "REURL" + "=";
	ckw = document.cookie+";";
	ckre = ckw.indexOf(ckname);
	if (ckre != -1){
	last = ckw.indexOf(";",ckre);
	reurl = unescape(ckw.substring(ckre + ckname.length,last));
	}
	parent.location.href = reurl;
	}else{
	hfurl1.display = 'none';
	hfurl2.display = 'block';
	hfurl3.display = 'none';
	}
}
