// JavaScript Document
	$(document).ready(function() {
	
	$("#feed").click(function() {
		window.open('http://blog.goo.ne.jp/dattie5/', '', '');
	});
	
	$("#feed_Staff").click(function() {
		window.open('http://blog.goo.ne.jp/leo-kanabun/', '', '');
	});
	
	

	$("#feed_Staff").hover(function(){
		$(this).addClass("box_hover"); 
		$('#imgfeed_Staff').attr('src','/image/button/top/br_staff_blog_on.jpg');
		},
		function(){
		$(this).removeClass("box_hover"); 
		$('#imgfeed_Staff').attr('src','/image/button/top/br_staff_blog_off.jpg');

	});

	$("#feed").hover(function(){
		$(this).addClass("box_hover"); 
		$('#imgfeed').attr('src','/image/button/top/br_blog_on.jpg');
		},
		function(){
		$(this).removeClass("box_hover"); 
		$('#imgfeed').attr('src','/image/button/top/br_blog_off.jpg');
	});

	$("#imgfeed_Staff").hover(function(){
		$('#feed_Staff').addClass("box_hover"); 
//		$('#imgfeed_Staff').attr('src','/image/button/top/br_staff_blog_on.jpg');
		},
		function(){
		$('#feed_Staff').removeClass("box_hover"); 
//		$('#imgfeed_Staff').attr('src','/image/button/top/br_staff_blog_off.jpg');

	});

	$("#imgfeed").hover(function(){
		$("#feed").addClass("box_hover"); 
//		$('#imgfeed').attr('src','/image/button/top/br_blog_on.jpg');
		},
		function(){
		$("#feed").removeClass("box_hover"); 
//		$('#imgfeed').attr('src','/image/button/top/br_blog_off.jpg');
	});

}); 

 
 google.load("feeds", "1");
 
//    function initialize() {
//			var text ="";
//      var feed = new google.feeds.Feed("http://blog.goo.ne.jp/dattie5/index.rdf");
//      feed.load(function(result) {
//        if (!result.error) {
//          var container = document.getElementById("feed");
//          for (var i = 0; i < 3; i++) {
//				   var entry = result.feed.entries[i];
////            text += '<li><a href="http://blog.goo.ne.jp/dattie5/" target="_blank">' + entry.title + '</a></li>';
//	            text += '<li>' + entry.title + '</li>';
//
//          }
//					container.innerHTML = '<p><img src="/image/side/top/feedtitle.gif" alt="松年歯科ブログ最新エントリ" width="239" /></p><ul class="feed">' + text + '</ul>';
//        }
//      });
//		}
//    function initialize_staff() {
//
//			var text_staff ="";
//      var feed2 = new google.feeds.Feed("http://blog.goo.ne.jp/leo-kanabun/index.rdf");
//      feed2.load(function(result2) {
//        if (!result2.error) {
//          var container_staff = document.getElementById("feed_Staff");
//          for (var i = 0; i < 3; i++) {
//				   var entry = result2.feed.entries[i];
////            text_staff += '<li><a href="http://blog.goo.ne.jp/leo-kanabun/" target="_blank">' + entry.title + '</a></li>';
//	            text_staff += '<li>' + entry.title + '</li>';
//
//          }
//					container_staff.innerHTML = '<p><img src="/image/side/top/feedtitle.gif" alt="松年歯科スタッフブログ最新エントリ" width="239" /></p><ul class="feed">' + text_staff + '</ul>';
//        }
//      });
//
//	}
//    google.setOnLoadCallback(initialize);
// 	  google.setOnLoadCallback(initialize_staff);
// 
