if (self != top) {
	top.location.href = self.location.href;
}
if (location.hostname != "trombone-index.jp") {
	this.location.hostname ="trombone-index.jp";
}

function banner(string, year, mon, day) {
	var start = new Date(year, mon-1, day);
	var now   = new Date();
	if (start.getTime()  + (7 * 24*60*60 * 1000) > now.getTime()) {
		document.write('&nbsp;<span style="background-color:yellow"> '+string+' </span>&nbsp;');
	}
}
function menubanner(string, year, mon, day) {
	var start = new Date(year, mon-1, day);
	var now   = new Date();
	if (start.getTime()  + (7 * 24*60*60 * 1000) > now.getTime()) {
		document.write('<br>?c <span style="background-color:yellow">'+year+'/'+mon+'/'+day+' '+string+'</span>');
	}
}

/* http://pukiwiki.org/index.php?自作プラグイン/exlink.inc.php */
function external_link(){
   var host_Name = location.host;
   var host_Check;
   var link_Href;

   for(var i=0; i < document.links.length; ++i)
   {
       link_Href = document.links[i].host;
       host_Check = link_Href.indexOf(host_Name,0);

       if(host_Check == -1){
           document.links[i].innerHTML
              = document.links[i].innerHTML 
                + "<img src=\"image/external_link.gif\" height=\"11px\" width=\"11px\" "
                + " alt=\"[外部リンク]\" class=\"external_link\">";
           document.links[i].target = "trombone-index";
       }

   }
}
window.onload = external_link;