function loadAlWardMovies(w){w.select('div.movie').each(function(x){var z={},v={allowfullscreen:'true',allowscriptaccess:'always'},u={name:x.id};x.select('input').each(function(y){z[y.name]=escape(y.value);if(y.name=='file')x.up().insert(new Element('input',{type:'hidden',name:y.name,value:y.value}))});if(z.file&&z.width&&z.height){swfobject.embedSWF('/flash/player.swf',x.id,z.width,z.height,'9','/flash/expressInstall.swf',z,v,u)}})}document.observe('dom:loaded',function(){var o=$('page'),T=o&&o.getHeight(),x=$('alwardbio-box'),t=$('alwardbio-big'),g=$('seealward'),p=$('photo-box'),n=$('photo-content'),f=null,i=[];$('buttons').select('td.button.boff img').each(function(z){function e(z,d){z.src=d;window.status=d}var c=String(z.src).replace(/\.([a-z0-9]+)$/,'-over.$1');i.push(c);z.up().observe('mouseover',e.curry(z,c)).observe('mouseout',e.curry(z,z.src))});i=ImageCache.create(i);window.resizeAlWardPage=function(m){m=m>>>0;o.style.height=Math.max(T,m?m:document.viewport.getHeight())+'px'};if(o){window.resizeAlWardPage();Event.observe(window,'resize',function(s){window.resizeAlWardPage()})}if(x){var K=ImageCache.create($w('albiographbgbig.png bio-bg.png bio-ml.png bio-mr.png bio-top.png bio-bottom.png').map(function(S){return'/images/'+S}),function(){function R(){o.style.height=(x.getHeight()+x.cumulativeOffset().top)+'px'}function b(){if(x.visible())return;if(Prototype.Browser.IE){x.grow({duration:0.5})}else x.appear({duration:0.5});document.observe('click',a);document.setCookie('wasabout','1',{exp:{d:1}});R.delay(0.05)}function a(s){if(Event.element(s).ancestors().include(x))return;document.stopObserving('click',a);if(Prototype.Browser.IE){x.shrink({duration:0.8,afterFinish:window.resizeAlWardPage})}else x.puff({duration:0.8,afterFinish:window.resizeAlWardPage})}if(/\/about/.test(location.pathname)&&!document.getCookie('wasabout'))b();$('alwardbiobt').observe('click',function(r){Event.stop(r);b()})})}if(t){function Z(s){var Y=Event.element(s);if(Y==t||Y.ancestors().include(t))return;document.stopObserving('click',Z);t.dropOut({duration:0.5})}function Q(){if(t.visible())return;t.setStyle({left:'-131px',top:'-90px'});t.grow({duration:0.5,direction:f=$w('center top-left top-right bottom-left bottom-right').without(f).pick(1).first()});document.observe('click',Z)}$('albiograph').observe('click',function(r){Event.stop(r);Q()})}var w=null;if(g){function P(s){var y=Event.element(s);if(y.nodeName!="A")return;Event.stop(s);var l=String(y.href).match(/^(.*)\/(\d+)$/);if(l){if(!w||w.closed){w=window.open(l[1],y.target,'channelmode=no,directories=no,height=328,width=658,location=no,menubar=no,status=no,titlebar=yes,toolbar=no,',false);(function X(){try{if(!w.AlWard)X.delay(0.2);else{w.AlWard.song=l[2]>>>0;if(w.AlWard.song!=w.AlWard.playing)X.delay(0.2)}}catch(J){}}).delay(0.5)}else{w.AlWard.song=l[2]}}}var W=$('playlist');if(W)W.select('a').each(function(y,L){y.observe('click',P)});loadAlWardMovies(g)}if(p&&n){p.select('a.photo-link').each(function(y){var k,v=('['+$F('photo-meta')+']').evalJSON(),O=y.href,z=y.select('img')[0],N=String.interpret(z&&z.src),j=p.positionedOffset(),q=v[2],u=v[3];if(q>1100){u=Math.round(u*1100/q);q=1100}if(u>790){q=Math.round(q*790/u);u=790}var V=q+62,M=u-92;function h(r){y.stopObserving('click',h);p.setStyle({position:'absolute',left:j.left+'px',top:j.top+'px',width:(v[0]+62)+'px'});n.style.height=(v[1]-92)+'px';z.src=O;k=new Effect.Parallel([new Effect.Morph(p,{style:{left:Math.round((800-V)/2+3)+'px',top:Math.round(-u/2+220)+'px',width:V+'px'},sync:true}),new Effect.Morph(n,{style:{height:M+'px'},sync:true}),new Effect.Morph(z,{style:{width:q+'px',height:u+'px'},sync:true})],{duration:1.2,delay:0.2});document.observe('click',U)}function U(r){document.stopObserving('click',U);if(k)k.cancel();k=new Effect.Parallel([new Effect.Morph(p,{style:{left:j.left+'px',top:j.top+'px',width:(v[0]+62)+'px'},sync:true}),new Effect.Morph(n,{style:{height:(v[1]-92)+'px'},sync:true}),new Effect.Morph(z,{style:{width:v[0]+'px',height:v[1]+'px'},sync:true})],{duration:0.8,delay:0,afterFinish:function(){z.src=N;y.observe('click',h)}})}y.observe('click',function(r){Event.stop(r)}).observe('click',h)})}});