$(function(){
	var getHost = (("https:" == document.location.protocol) ? "https://" : "http://");
	var getDomain = location.hostname;
	$('a[href^="'+getHost+'"]:not([href*="'+getDomain+'"])', document.body).each(function() {
	  var outurl = $(this).attr('href');
	  $(this).attr('href', "?out=" + encodeURIComponent(outurl)).attr('target', '_blank');
	});
});
/*
外部リンクを別窓クッションページで開く
$(function(){
	$('a[href^="http://"]:not([href^="http://www.asahiryoko.com/"]), a[href^="https://"]:not([href^="https://www.asahiryoko.com/"])', document.body).each(function() {
	  var outurl = $(this).attr('href');
	  $(this).attr('href', "?out=" + encodeURIComponent(outurl)).attr('target', '_blank');
	});
});
*/
