/* SiteMap for bytestork.com by Børge Antonsen (2010) */
window.onload=bytestorkSiteMap;function bytestorkStyles()
{var css=[];css[0]="#bytestorkSiteMap { width: 100%; height: 20px; position: absolute; top: 0; left: 0; background-color: #000; border-bottom: 1px solid #999; display: block; font-family: helvetica, arial; z-index: 1337} \n";css[1]="#bytestorkSiteMap ul { float: left; margin: 0; padding: 0;}"
css[2]="#bytestorkSiteMap ul li { display: inline-block; margin: 0 20px; line-height: 20px; font-size: 10px; padding: 0; }\n";css[3]="#bytestorkSiteMap ul li a:link { color: #e6955b; text-decoration: none;}";css[4]="#bytestorkSiteMap ul li a:visited { color: #e6955b; text-decoration: none;}";css[5]="#bytestorkSiteMap ul li a:hover { color: #fff; text-decoration: underline;}";css[6]="#bytestorkSiteMap ul li a:active { color: #e6955b; text-decoration: none; }";css[7]=".bytestorkLink {font-family: helvetica, arial;}";var styles=document.createElement("style");styles.setAttribute('type','text/css');styles.type="text/css";if(styles.styleSheet)
{styles.styleSheet.cssText='';for(key in css)
{styles.styleSheet.cssText+=css[key];}}else{for(key in css)
{styles.appendChild(document.createTextNode(css[key]));}}
document.getElementsByTagName("head")[0].appendChild(styles);}
function bytestorkSiteMap()
{bytestorkStyles();document.body.style.position="relative";document.body.appendChild(bytestorkDiv());bytestorkFadeIn();}
function bytestorkDiv()
{var div=document.createElement("div");div.id="bytestorkSiteMap";div.style.opacity=0;div.style.MozOpacity=0;div.style.KhtmlOpacity=0;div.style.zoom=1;div.style.filter='alpha(opacity=0)';div.appendChild(bytestorkUlList());return div;}
function bytestorkUlList()
{var ul=document.createElement("ul");var a=bytestorkLinks()
for(key in a)
{var li=document.createElement("li");li.innerHTML=a[key];ul.appendChild(li);}
return ul;}
function bytestorkLinks()
{var urls=[{link:"http://www.bytestork.com",text:"ByteStork",title:"ByteStork front page"},{link:"http://blog.bytestork.com",text:"Blog",title:"ByteStork blog (technical)"},{link:"http://cern.bytestork.com",text:"@CERN",title:"Børge Antonsen @CERN"},{link:"http://www.bovan.org",text:"bovan.org",title:"Personal blog (Norwegian)"}];var a=[];for(key in urls)
{a.push("<a class=\"bytestorkLink\" title=\""+urls[key].title+"\" href=\""+urls[key].link+"\">"+urls[key].text+"</a>");}
return a;}
function bytestorkFadeIn()
{this.count=0;this.e=document.getElementById("bytestorkSiteMap").style;this.start=function(){var self=this;this.interval=setInterval(function(){self.run();},50);};this.run=function(){if(this.count<=100)
{this.count=this.count+10;this.e.opacity=this.count/100;this.e.MozOpacity=this.count/100;this.e.KhtmlOpacity=this.count/100;this.e.filter='alpha(opacity='+this.count+')';}else{this.stop();}};this.stop=function(){clearInterval(this.interval);}
this.start();}
