
jQuery.noConflict();function smartRollover(){if(document.getElementsByTagName){var images=document.getElementsByTagName("img");var preImages=new Array();for(var i=0;i<images.length;i++){if(images[i].getAttribute("src").match("_off.")){var preImage=new Image();preImage.src=images[i].getAttribute("src").replace("_off.","_on.");preImages.push(preImage);images[i].onmouseover=function(){this.setAttribute("src",this.getAttribute("src").replace("_off.","_on."));}
images[i].onmouseout=function(){this.setAttribute("src",this.getAttribute("src").replace("_on.","_off."));}}}}}
var colorful=new ColorfulInput;var inputColorInit=function(){colorful.set();}
function ColorfulInput(){this.skip=['button','checkbox','radio','search','submit'];this.skip_id=['s'];this.color={'blur':'','focus':'#fffbcc'};this.set=function(){var i;for(i=0;i<document.forms.length;i++){for(var f=0;f<document.forms[i].length;f++){var elm=document.forms[i][f];if(!this._checkSkip(elm))continue;this._setColor(elm,'focus');this._setColor(elm,'blur');}}};this._checkSkip=function(elm){var i;for(i in this.skip){if(elm.type==this.skip[i])return false;}
for(i in this.skip_id){if(elm.id==this.skip_id[i])return false;}
return true;};this._setColor=function(elm,type){var i;var color=this.color[type];var event=function(){elm.style.backgroundColor=color;};if(elm.addEventListener){elm.addEventListener(type,event,false);}else if(elm.attachEvent){elm.attachEvent('on'+type,event);}else{elm['on'+type]=event;}};}
function init(){stripeAllTables();}
function stripeTable(t){var i,odd=true;for(i=0;i<t.rows.length;i++){t.rows[i].className+=odd?' odd':' even';odd=!odd;}}
function stripeTableById(id){var t=document.getElementById(id);if(t)stripeTable(t);}
function stripeAllTables(){var t=document.getElementsByTagName('TABLE');for(var i=0;i<t.length;i++)stripeTable(t[i])}
var ss={fixAllLinks:function(){var allLinks=document.getElementsByTagName('a');for(var i=0;i<allLinks.length;i++){var lnk=allLinks[i];if((lnk.href&&lnk.href.indexOf('#')!=-1)&&((lnk.pathname==location.pathname)||('/'+lnk.pathname==location.pathname))&&(lnk.search==location.search)){ss.addEvent(lnk,'click',ss.smoothScroll);}}},smoothScroll:function(e){if(window.event){target=window.event.srcElement;}else if(e){target=e.target;}else return;if(target.nodeName.toLowerCase()!='a'){target=target.parentNode;}
if(target.nodeName.toLowerCase()!='a')return;anchor=target.hash.substr(1);var allLinks=document.getElementsByTagName('a');var destinationLink=null;for(var i=0;i<allLinks.length;i++){var lnk=allLinks[i];if(lnk.name&&(lnk.name==anchor)){destinationLink=lnk;break;}}
if(!destinationLink)destinationLink=document.getElementById(anchor);if(!destinationLink)return true;var destx=destinationLink.offsetLeft;var desty=destinationLink.offsetTop;var thisNode=destinationLink;while(thisNode.offsetParent&&(thisNode.offsetParent!=document.body)){thisNode=thisNode.offsetParent;destx+=thisNode.offsetLeft;desty+=thisNode.offsetTop;}
clearInterval(ss.INTERVAL);cypos=ss.getCurrentYPos();ss_stepsize=parseInt((desty-cypos)/ss.STEPS);ss.INTERVAL=setInterval('ss.scrollWindow('+ss_stepsize+','+desty+',"'+anchor+'")',10);if(window.event){window.event.cancelBubble=true;window.event.returnValue=false;}
if(e&&e.preventDefault&&e.stopPropagation){e.preventDefault();e.stopPropagation();}},scrollWindow:function(scramount,dest,anchor){wascypos=ss.getCurrentYPos();isAbove=(wascypos<dest);window.scrollTo(0,wascypos+scramount);iscypos=ss.getCurrentYPos();isAboveNow=(iscypos<dest);if((isAbove!=isAboveNow)||(wascypos==iscypos)){window.scrollTo(0,dest);clearInterval(ss.INTERVAL);location.hash=anchor;}},getCurrentYPos:function(){if(document.body&&document.body.scrollTop)
return document.body.scrollTop;if(document.documentElement&&document.documentElement.scrollTop)
return document.documentElement.scrollTop;if(window.pageYOffset)
return window.pageYOffset;return 0;},addEvent:function(elm,evType,fn,useCapture){if(elm.addEventListener){elm.addEventListener(evType,fn,useCapture);return true;}else if(elm.attachEvent){var r=elm.attachEvent("on"+evType,fn);return r;}else{alert("Handler could not be removed");}}}
ss.STEPS=25;function loadAJAX(){setTimeout(function(){jQuery("#lastfm_stub").load("/ajax/lastfm.html");},1000);writeMail();writeFollowMe();beginLightbox();}
function writeMail(){coded="duak@8JpPmkJq.oP"
key="hkVEswCrM09D1BvgNxU4cliQynfSb3jmZAR6GJdHXuae8t7oLIKWY5qOTpFPz2"
shift=coded.length
link=""
for(i=0;i<coded.length;i++){if(key.indexOf(coded.charAt(i))==-1){ltr=coded.charAt(i)
link+=(ltr)}
else{ltr=(key.indexOf(coded.charAt(i))-shift+key.length)%key.length
link+=(key.charAt(ltr))}}
jQuery("#mail").html("<a href='mailto:"+link+"'>"+link+"</a>");}
function writeFollowMe(){tfb.account='bluegoldme';tfb.label='follow-me';tfb.color='#0054a5';tfb.side='r';tfb.top=246;tfb.showbadge();}
function beginLightbox(){jQuery('#gallery a').lightBox({imageLoading:'/images/lightbox-ico-loading.gif',imageBtnPrev:'/images/lightbox-btn-prev.gif',imageBtnNext:'/images/lightbox-btn-next.gif',imageBtnClose:'/images/lightbox-btn-close.gif',imageBlank:'/images/lightbox-blank.gif',fixedNavigation:true});}
var tfb={};tfb.allowedLabels=["follow-me","follow-us","follow","my-twitter"];tfb.defaultTop=78;tfb.defaultColor="#35ccff";tfb.isInArray=function(str,ar){if(ar.length<1)return;for(var i=0;i<ar.length;i++){if(ar[i]==str){return true;break;}}
return false;}
tfb.showbadge=function(){if(!window.XMLHttpRequest){return;}
if(document.getElementById('twitterFollowBadge')){document.body.removeChild(document.getElementById('twitterFollowBadge'));}
if(tfb.top<0||tfb.top>1000||isNaN(tfb.top)){tfb.top=tfb.defaultTop;}
if(!tfb.isInArray(tfb.label,tfb.allowedLabels)){tfb.label=tfb.allowedLabels[0];}
var validColorPattern=/^#([a-f]|[A-F]|[0-9]){3}(([a-f]|[A-F]|[0-9]){3})?$/;if(!validColorPattern.test(tfb.color)||(tfb.color.length!=4&&tfb.color.length!=7)){tfb.color=tfb.defaultColor;};if(tfb.side!='l'){tfb.side='r';}
tfb.tabStyleCode='position:fixed;'+'top:'+tfb.top+'px;'+'width:30px;'+'height:119px;'+'z-index:8765;'+'cursor:pointer;'+'background:'+tfb.color+' url(http://www.go2web20.net/twitterfollowbadge/1.0/bg-badge/'+tfb.label+'.png);'+'background-repeat:no-repeat;';tfb.aboutStyleCode='position:absolute;'+'top:'+(parseInt(tfb.top)+107)+'px;'+'width:10px;'+'height:11px;'+'z-index:9876;'+'cursor:pointer;'+'background:url(http://www.go2web20.net/twitterfollowbadge/1.0/icon-about.png);'+'background-repeat:no-repeat;';if(tfb.side=='l'){tfb.tabStyleCode+='left:0; background-position:right top;';tfb.aboutStyleCode+='left:0;';}else{tfb.tabStyleCode+='right:0; background-position:left top;';tfb.aboutStyleCode+='right:0;';}
tfbMainDiv=document.createElement('div');tfbMainDiv.setAttribute('id','twitterFollowBadge');document.body.appendChild(tfbMainDiv);tfbMainDiv.innerHTML='<div id="tfbTab" style="'+tfb.tabStyleCode+'"></div><div id="tfbAbout" style="'+tfb.aboutStyleCode+'"></div>'+'<style>#tfbAbout{visibility:hidden;} #twitterFollowBadge:hover #tfbAbout{visibility:visible;}</style>';document.getElementById('tfbTab').onclick=function(){window.open('http://www.go2web20.net/twitterfollowbadge/redir.htm?'+tfb.account);}
document.getElementById('tfbAbout').onclick=function(){window.open('http://www.go2web20.net/twitterFollowBadge/');}}
jQuery(document).ready(function(){getTwitter();getBooklog();jQuery.getJSON("http://feeds.delicious.com/v1/json/bluegold.me?count=4&callback=?",function(data){jQuery("#delicious").html("");var ul=document.createElement('ul');jQuery("#delicious").append(ul);for(var i=0,post;post=data[i];i++){var li=document.createElement('li');var a=document.createElement('a');var d=document.createTextNode(post.d);ul.appendChild(li);li.appendChild(a);a.appendChild(d);a.setAttribute('href',post.u);a.setAttribute('rel','nofollow');a.setAttribute('title',post.d);a.setAttribute('target','_blank');}
jQuery("#delicious p").remove();jQuery("#delicious ul").show();});});var getTwitter=function(){jQuery.getJSON("http://twitter.com/statuses/user_timeline/bluegoldme.json?count=8&callback=?",function(data){jQuery("#twitter p").remove();var html="<div id='twitter_content'><a id='twitter_title' href='http://twitter.com/bluegoldme'><img src='"+data[0].user.profile_image_url+"' width='32' height='32' /><span>bluegold のタイムライン</span></a><ul>";jQuery.each(data,function(i,item){var t=new Date(item.created_at);var tstr;if(t.getYear().toString()=="NaN"){tstr=item.created_at;}else{tstr=''+t.getFullYear()+'/'+("0"+(t.getMonth()+1)).slice(-2)+'/'+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+':'+("0"+t.getMinutes()).slice(-2)+':'+("0"+t.getSeconds()).slice(-2);}
var text=item.text.replace(/\@(\w+)/,'<a href="http://twitter.com/$1" target="_blank">@$1</a>');html+="<li>"+text+'<div><span class="twitter_time">'+tstr+'</span>'+'<span class="twitter_by">'+item.source+" から</span></div>"+"</li>";if(i==3)return false;});html+="</ul></div>";jQuery("#twitter").append(html);});};var getBooklog=function(){jQuery.getJSON("http://api.booklog.jp/json/bluegoldme?status=3&sort=sort_desc&callback=?",function(data){jQuery("#booklog").html('<div id="booklog_title"><a href="http://booklog.jp/users/'+data.tana.account+'" target="_blank">最近読んだ本</a></div>');jQuery.each(data.books,function(i,item){var div='<div class="booklog_item">';div+='<a href="'+item.url+'"><img src="'+item.image+'" alt="'+item.title+'" title="'+item.title+'" style="margin-right: '+(56-item.width)+'px;" /></a>';div+='<div class="book_title"><a href="'+item.url+'">'+item.title+'</a></div>';div+='<div class="book_author">'+item.author+'</div>';div+='<div style="clear: both;"></div>';jQuery("#booklog").append(div);});});}
function addOnLoadEvent(func){if(window.attachEvent){window.attachEvent('onload',func);}
else{window.addEventListener('load',func,false);}}
addOnLoadEvent(smartRollover);addOnLoadEvent(inputColorInit);addOnLoadEvent(stripeAllTables);addOnLoadEvent(ss.fixAllLinks);addOnLoadEvent(loadAJAX);var offspring={firstChildClass:"first-child",lastChildClass:"last-child",oddChildClass:"nth-child-odd",evenChildClass:"nth-child-even",onlyChildClass:"only-child",nthChildClassPrefix:"nth-child-",classNamesArray:[],classNameSubstringsArray:[],cacheLevel:0,nthChildren:[],regularHashTable:[],regularHashTableArray:[],lastChildHashTable:[],lastChildHashTableArray:[],configuration:{runningMode:'full',autoStart:true,shouldRemoveOldOffspringClassesFirst:false},init:function(){if(typeof offspringConfiguration!="undefined")
{for(var configParameter in offspringConfiguration)
{this.configuration[configParameter]=offspringConfiguration[configParameter];}
this.configuration.runningMode=this.configuration.runningMode.toLowerCase();}
switch(this.configuration.runningMode)
{case'full':this.classNamesArray=[this.firstChildClass,this.lastChildClass,this.oddChildClass,this.evenChildClass,this.onlyChildClass];this.classNameSubstringsArray=[this.nthChildClassPrefix];break;case'light':this.classNamesArray=[this.firstChildClass,this.lastChildClass,this.onlyChildClass];this.classNameSubstringsArray=[];break;}
this.defineTraverseChildrenFunction();this.defineFillCacheToFunction();this.fillCacheTo();if(this.configuration.autoStart)
{var _this=this;this.ContentLoaded(window,function(){_this.start();});}},start:function(){var startTime=new Date();this.traverseChildren(document.getElementsByTagName("body")[0]);var endTime=new Date();},defineTraverseChildrenFunction:function(){switch(this.configuration.shouldRemoveOldOffspringClassesFirst)
{case true:switch(this.configuration.runningMode)
{case'full':this.traverseChildren=function(parent)
{if(!parent.childNodes.length)return;var childElementNodes=[];var testNode=parent.childNodes[0];while(testNode)
{if(testNode.nodeType==1)
{childElementNodes.push(testNode);}
testNode=testNode.nextSibling;}
testNode=null;var childElementNodesLength=childElementNodes.length;if(!childElementNodesLength)return;if(childElementNodesLength>this.cacheLevel)
{this.fillCacheTo(childElementNodesLength);}
var lastIndex=childElementNodesLength-1;for(var i=0;i<lastIndex;i++)
{var currentElement=childElementNodes[i];this.removeMultipleClassNames(currentElement,this.classNamesArray,this.classNameSubstringsArray);this._addOffspringClassNames(currentElement,i,false);this.traverseChildren(currentElement);}
currentElement=null;var lastElement=childElementNodes[lastIndex];this.removeMultipleClassNames(lastElement,this.classNamesArray,this.classNameSubstringsArray);this._addOffspringClassNames(lastElement,lastIndex,true);this.traverseChildren(lastElement);lastElement=null;lastElement=null;parent=null;};break;case'light':this.traverseChildren=function(parent)
{if(!parent.childNodes.length)return;var childElementNodes=[];var testNode=parent.childNodes[0];while(testNode)
{if(testNode.nodeType==1)
{childElementNodes.push(testNode);}
testNode=testNode.nextSibling;}
testNode=null;var childElementNodesLength=childElementNodes.length;if(!childElementNodesLength)return;if(childElementNodesLength>this.cacheLevel)
{this.fillCacheTo(childElementNodesLength);}
var lastIndex=childElementNodesLength-1;switch(childElementNodesLength)
{case 0:return;break;case 1:var onlyElement=childElementNodes[0];this.removeMultipleClassNames(onlyElement,this.classNamesArray,this.classNameSubstringsArray);this._addOffspringClassNames(onlyElement,lastIndex,true);onlyElement=null;break;default:var firstElement=childElementNodes[0];this.removeMultipleClassNames(firstElement,this.classNamesArray,this.classNameSubstringsArray);this._addOffspringClassNames(firstElement,0,false);firstElement=null;var lastElement=childElementNodes[lastIndex];this.removeMultipleClassNames(lastElement,this.classNamesArray,this.classNameSubstringsArray);this._addOffspringClassNames(lastElement,lastIndex,true);lastElement=null;break;}
for(var i=0;i<childElementNodesLength;i++)
{this.traverseChildren(childElementNodes[i]);}
lastElement=null;parent=null;};break;}
break;case false:switch(this.configuration.runningMode)
{case'full':this.traverseChildren=function(parent)
{if(!parent.childNodes.length)return;var childElementNodes=[];var testNode=parent.childNodes[0];while(testNode)
{if(testNode.nodeType==1)
{childElementNodes.push(testNode);}
testNode=testNode.nextSibling;}
testNode=null;var childElementNodesLength=childElementNodes.length;if(!childElementNodesLength)return;if(childElementNodesLength>this.cacheLevel)
{this.fillCacheTo(childElementNodesLength);}
var lastIndex=childElementNodesLength-1;for(var i=0;i<lastIndex;i++)
{var currentElement=childElementNodes[i];this._addOffspringClassNames(currentElement,i,false);this.traverseChildren(currentElement);}
currentElement=null;var lastElement=childElementNodes[lastIndex];this._addOffspringClassNames(lastElement,lastIndex,true);this.traverseChildren(lastElement);lastElement=null;lastElement=null;parent=null;};break;case'light':this.traverseChildren=function(parent)
{if(!parent.childNodes.length)return;var childElementNodes=[];var testNode=parent.childNodes[0];while(testNode)
{if(testNode.nodeType==1)
{childElementNodes.push(testNode);}
testNode=testNode.nextSibling;}
testNode=null;var childElementNodesLength=childElementNodes.length;if(!childElementNodesLength)return;if(childElementNodesLength>this.cacheLevel)
{this.fillCacheTo(childElementNodesLength);}
var lastIndex=childElementNodesLength-1;switch(childElementNodesLength)
{case 0:break;case 1:this._addOffspringClassNames(childElementNodes[0],lastIndex,true);for(var i=0;i<childElementNodesLength;i++)
{this.traverseChildren(childElementNodes[i]);}
break;default:this._addOffspringClassNames(childElementNodes[0],0,false);this._addOffspringClassNames(childElementNodes[lastIndex],lastIndex,true);for(var i=0;i<childElementNodesLength;i++)
{this.traverseChildren(childElementNodes[i]);}
break;}
lastElement=null;parent=null;};break;}
break;}},traverseChildren:function(parent){if(!parent.childNodes.length)return;var childElementNodes=[];var testNode=parent.childNodes[0];while(testNode)
{if(testNode.nodeType==1)
{childElementNodes.push(testNode);}
testNode=testNode.nextSibling;}
testNode=null;var childElementNodesLength=childElementNodes.length;if(!childElementNodesLength)return;if(childElementNodesLength>this.cacheLevel)
{this.fillCacheTo(childElementNodesLength);}
var lastIndex=childElementNodesLength-1;this._childrenIterator(childElementNodes,childElementNodesLength,lastIndex);lastElement=null;parent=null;},_addOffspringClassNames:function(element,index,isLastElement){index++;if((!element.className)||(!element.className.length))
{switch(isLastElement)
{case false:element.className=this.regularHashTable[index];return;break;case true:element.className=this.lastChildHashTable[index];return;break;}}
switch(isLastElement)
{case false:var applicableClassNames=this.regularHashTableArray[index];break;case true:var applicableClassNames=this.lastChildHashTableArray[index];break;}
var originalClassNames=element.className.split(' ');var classNamesToAdd=originalClassNames;for(var i=0,applicableClassNamesLength=applicableClassNames.length;i<applicableClassNamesLength;i++)
{var alreadyThere=false;var testApplicableClassName=applicableClassNames[i];for(var j=0,originalClassNamesLength=originalClassNames.length;j<originalClassNamesLength;j++)
{if(originalClassNames[j]==testApplicableClassName)
{alreadyThere=true;break;}}
if(!alreadyThere)
{classNamesToAdd.push(testApplicableClassName);}}
element.className=classNamesToAdd.join(' ');element=null;return;},defineFillCacheToFunction:function(){switch(this.configuration.runningMode)
{case'full':this.fillCacheTo=function(fillAmount)
{var fillAmount=fillAmount||15;if(!this.cacheLevel)this.cacheLevel=0;if(this.cacheLevel>=fillAmount)return;var startingPoint=this.cacheLevel++;var isOdd=!((startingPoint%2)==0);var firstChildClass=this.firstChildClass;var lastChildClass=this.lastChildClass;var oddChildClass=this.oddChildClass;var evenChildClass=this.evenChildClass;var onlyChildClass=this.onlyChildClass;var nthChildClassPrefix=this.nthChildClassPrefix;for(var i=startingPoint;i<=fillAmount;i++)
{this.nthChildren[i]=[nthChildClassPrefix,i].join('');var nthChildrenI=this.nthChildren[i];switch(i)
{case 1:this.regularHashTableArray[i]=[firstChildClass,oddChildClass,nthChildrenI];this.lastChildHashTableArray[i]=[firstChildClass,oddChildClass,onlyChildClass,nthChildrenI,lastChildClass];break;default:switch(isOdd)
{case true:this.regularHashTableArray[i]=[oddChildClass,nthChildrenI];this.lastChildHashTableArray[i]=[oddChildClass,nthChildrenI,lastChildClass];break;case false:this.regularHashTableArray[i]=[evenChildClass,nthChildrenI];this.lastChildHashTableArray[i]=[evenChildClass,nthChildrenI,lastChildClass];break;}}
this.regularHashTable[i]=this.regularHashTableArray[i].join(' ');this.lastChildHashTable[i]=this.lastChildHashTableArray[i].join(' ');isOdd=!isOdd;}
this.cacheLevel=fillAmount;};break;case'light':this.fillCacheTo=function(fillAmount)
{var fillAmount=fillAmount||15;if(!this.cacheLevel)this.cacheLevel=0;if(this.cacheLevel>=fillAmount)return;var startingPoint=this.cacheLevel++;var firstChildClass=this.firstChildClass;var lastChildClass=this.lastChildClass;var onlyChildClass=this.onlyChildClass;for(var i=startingPoint;i<=fillAmount;i++)
{switch(i)
{case 1:this.regularHashTableArray[i]=[firstChildClass];this.lastChildHashTableArray[i]=[firstChildClass,onlyChildClass,lastChildClass];break;default:this.regularHashTableArray[i]=[];this.lastChildHashTableArray[i]=[lastChildClass];}
this.regularHashTable[i]=this.regularHashTableArray[i].join(' ');this.lastChildHashTable[i]=this.lastChildHashTableArray[i].join(' ');}
this.cacheLevel=fillAmount;};break;}},fillCacheTo:function(fillAmount){var fillAmount=fillAmount||15;if(!this.cacheLevel)this.cacheLevel=0;if(this.cacheLevel>=fillAmount)return;var startingPoint=this.cacheLevel++;this._fillCacheToIterator(startingPoint,fillAmount);this.cacheLevel=fillAmount;},_checkIfStringFoundInArray:function(testString,testArray){for(var i=0,len=testArray.length;i<len;i++)
{if(testString==testArray[i])return true;}
return false;},_checkIfStringMatchInSubstringArray:function(testString,testArray){for(var i=0,len=testArray.length;i<len;i++)
{var currentArrayItem=testArray[i];var testSubstring=testString.substr(0,currentArrayItem.length);if(testSubstring==currentArrayItem)return true;}
return false;},removeMultipleClassNames:function(element,classNameStrings,classNameSubstrings){if(!element)return;var newClassName='';var classNamesArray=element.className.split(' ');for(var i=0,len=classNamesArray.length;i<len;i++)
{var currentClassName=classNamesArray[i];var isStringInClassNameStrings=this._checkIfStringFoundInArray(currentClassName,classNameStrings);if(isStringInClassNameStrings)continue;var isStringMatchingClassNameSubstrings=this._checkIfStringMatchInSubstringArray(currentClassName,classNameSubstrings);if(isStringMatchingClassNameSubstrings)continue;if(i>0)newClassName=newClassName+' ';newClassName=newClassName+currentClassName;}
element.className=newClassName;},ContentLoaded:function(w,fn){var d=w.document,u=w.navigator.userAgent.toLowerCase();function init(e){if(!arguments.callee.done){arguments.callee.done=true;fn(e);}}
if(/khtml|webkit/.test(u)){(function(){if(/complete|loaded/.test(d.readyState)){init('poll');}else{setTimeout(arguments.callee,10);}})();}else if(/msie/.test(u)&&!w.opera){(function(){try{d.documentElement.doScroll('left');}catch(e){setTimeout(arguments.callee,10);return;}
init('poll');})();d.attachEvent('onreadystatechange',function(e){if(d.readyState=='complete'){d.detachEvent('on'+e.type,arguments.callee);init(e.type);}});}else if(d.addEventListener&&(/gecko/.test(u)&&parseFloat(u.split('rv:')[1])>=1.8)||(/opera/.test(u)&&parseFloat(u.split('opera ')[1])>9)){d.addEventListener('DOMContentLoaded',function(e){this.removeEventListener(e.type,arguments.callee,false);init(e.type);},false);}else{var oldonload=w.onload;w.onload=function(e){if(typeof oldonload=='function'){oldonload(e||w.event);}
init((e||w.event).type);};}}}
offspring.init();