//ユーザーエージェント
strUA = navigator.userAgent.toLowerCase();

function setFBcomments(_href, _numposts, _width){
	//<![CDATA[
	document.write('<div id="fb_comments"></div>');
	document.write('\x3Cscript src="http://connect.facebook.net/ja_JP/all.js#xfbml=1">\x3C/script>');
	document.write('<fb:comments href="' + _href + '" num_posts="' + _numposts + '" width="' + _width + '"></fb:comments>');	
	//]]>
}

function setGbannerSideImg(){
	//<![CDATA[
	 if("https:" != document.location.protocol){
	document.write('\x3Cscript src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\x3C/script>');
	 }
	//]]>
}

/*
function setGbannerSideImg(){
	document.write("test");
}
*/

$(function(){
	$('a img').each(function(){
		var imgSrc = $(this).attr('src');
		if(imgSrc.match(/(.*)_off(\..*)/)){
			var repSrc = RegExp.$1+'_on'+RegExp.$2;
			$('<img />').attr('src',repSrc);
			$(this).hover(function(){
				$(this).attr('src',repSrc);
				$(this).css({opacity: '1',filter: 'alpha(opacity=100)'});
			},function(){
				$(this).attr('src',imgSrc);
			});
		}
	});
});









function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function LinkSelect(){
	sel=document.pulldown_monthlyarchives.menu;
	adrs = sel.options[sel.selectedIndex].value;
	if (adrs != "-" ) location.href=adrs;
}
