// kiborio 2011// google feed// jQuery - slide showgoogle.load("feeds", "1");var divdiv="<style='clear:both;'><br><br><br>";var noHRdiv="";var div;var URL;var HR;var en;var margin;function news() {URL="http://kiborio-schedule.blogspot.com/atom.xml";HR=1;en=3;   margin="10px";feed();}function works() {URL="http://kiboriot-cray.blogspot.com/atom.xml";   HR=0;en=9999;margin="10px";feed();}function feed(){if(HR>=1)var a=divdiv;else var a=noHRdiv;div="";	var feed = new google.feeds.Feed(URL); <!-- +"?"+(new Date()).getHours() -->	feed.setNumEntries(en);google.feeds.LINK_TARGET_BLANK;	feed.load(function(result) {	if (!result.error) {div="";      for (var i = 0; i < result.feed.entries.length; i++) {      	var entry = result.feed.entries[i];	  	if (entry.title==""){div=div+entry.content;}      	else{div=div+entry.publishedDate.substr(0,16)+"<br><strong><big>"+entry.title+"</big></strong><br><br>"+entry.content+a;}    	if(i+1<result.feed.entries.length){div=div+a;}		}	  $("#box").html(div);	  $("a").attr("target","_w");	  $("img").css("marginRight",margin);	}});}/////////////////////////////////var timerID=1;var fadeT=3;$(function(){	$('.fadein img').hide();	$('.fadein :first-child').fadeIn(750*fadeT);    timerID=setTimeout(function(){timer()},8000);		$('.fadein').click(function(){		var n=Math.random();n=n*$('.fadein img').length+"";n=n.slice(0,14);		$('#z').html(n)	});		$('#z').click(function(){		$(this).html("KiborioTAKASE&nbsp;");	});		$("#inu,#kirin,#neko").hover(		function () {			$(this).css( {color:"white",backgroundColor:"black"} );		},		function(){$(this).css( {color:"black",backgroundColor:"white"} );}	);		$("#inu")  .click(function(){fadeT=1;$('.fadein :visible').hide();previous();});	$("#neko") .click(function(){fadeT=1;$('.fadein :visible').hide();    next();});	$("#kirin").click(function(){		if(timerID>0){cTimer();$(this).html("|");}		else{$(this).html("-");$('.fadein :visible').hide();next();timer();}	})		nowl();news();		$("#about").click(function(){		nowl();$("#box").load("about.htm");				$(this)   .css({color:"white",backgroundColor:"black",cursor:"default"});		$("#news").css({color:"black",backgroundColor:"white",cursor:"pointer" });		$("#works").css({color:"black",backgroundColor:"white",cursor:"pointer" });			});	$("#works").click(function(){		nowl();works();		$(this)   .css({color:"white",backgroundColor:"black",cursor:"default"});		$("#news").css({color:"black",backgroundColor:"white",cursor:"pointer" });		$("#about").css({color:"black",backgroundColor:"white",cursor:"pointer" });			});	$("#news").click(function(){		nowl();news();		$(this)   .css({color:"white",backgroundColor:"black",cursor:"default"});		$("#works").css({color:"black",backgroundColor:"white",cursor:"pointer" });		$("#about").css({color:"black",backgroundColor:"white",cursor:"pointer" });			});});function nowl(){$("#box").html("now loading...")}function timer(){cTimer();fadeT=3;timerID=setTimeout(function(){next()},12000);}function cTimer(){clearTimeout(timerID);timerID=0;}function next(){			$('.fadein :first-child').fadeOut(500*fadeT)			.next('img').fadeIn(750*fadeT)			.end().appendTo('.fadein');			if(timerID>0){timer();}		}		 function previous(){			$('.fadein :first-child').fadeOut(500*fadeT);			$('.fadein :last-child').fadeIn(750*fadeT).insertBefore('.fadein :first-child');			if(timerID>0){timer();}			}
