var feeds=["","http://picasaweb.google.com/data/feed/base/user/victor.yiu/albumid/5123515857287330257?kind=photo&alt=rss&authkey=SFShpXY_Shc&hl=en_US&thumbsize=400","http://picasaweb.google.com/data/feed/base/user/rockparkphotography/albumid/5123542812957924081?kind=photo&alt=rss&authkey=rOvUgAwc5J0&hl=en_US&thumbsize=400","http://picasaweb.google.com/data/feed/base/user/rockparkphotography/albumid/5123560048661684081?kind=photo&alt=rss&authkey=e6gRWebvUt4&hl=en_US&thumbsize=400","http://picasaweb.google.com/data/feed/base/user/rockparkphotography/albumid/5123642799796576321?kind=photo&alt=rss&authkey=slMOdPeWmf4&hl=en_US&thumbsize=400","http://picasaweb.google.com/data/feed/base/user/victor.yiu/albumid/4998232745381527569?kind=photo&alt=rss&authkey=B1Q_hlOnmmQ&hl=en_US&thumbsize=400"];var virtualURLs=["/","/concerts","/weddings","/commercial","/travel","/contact"];var frontGalleryTitles;function h(id){return document.getElementById(id);}
function addClass(a,nm){var a1=document.getElementById(a);if(a1&&a1.className.indexOf('hidden')<0)a1.className+=" "+nm;}
function removeClass(c,nm){var a=document.getElementById(c);if(a)a.className=a.className.replace(nm,"");}
function hide(a){addClass(a,"hidden");}
function unhide(a){removeClass(a,"hidden");}
function ptr(o){try{o.style.cursor='pointer';}catch(e){}}
function LoadSlideShow(feed){var options={displayTime:3000,transistionTime:500,scaleImages:true,pauseOnHover:false};var ss=new GFslideShow(feed,"slideshow",options);}
function LoadRecentGalleries(user,filter,inverse,footerlinks){var showNumImages=8;var showNumEntries=12;var feed=new google.feeds.Feed("http://picasaweb.google.com/data/feed/base/user/"
+user+"?kind=album&alt=rss&hl=en_US&access=public&max-results="+showNumEntries*2+"&thumbsize=48");feed.setResultFormat(google.feeds.Feed.MIXED_FORMAT);feed.setNumEntries(showNumEntries*2);feed.load(function(result){if(!result.error){var container=document.getElementById("slideshow");container.innerHTML='';var links="<ul>";var skipped=0;for(var i=0;i<result.feed.entries.length&&(i-skipped)<showNumEntries;i++){var entry=result.feed.entries[i];var title=entry['title'];var link=entry['link'].replace(/http.*\//,user.charAt(0)+".htm?");if(filter){if(inverse){if(title.match(filter)){skipped++;continue;}}else{if(!title.match(filter)){skipped++;continue;}}}
var thumb=google.feeds.getElementsByTagNameNS(entry.xmlNode,"http://search.yahoo.com/mrss/","thumbnail")[0];var thumburl=thumb.attributes[0].value;var guid=entry.xmlNode.getElementsByTagName("guid")[0].childNodes[0].nodeValue;var date=entry['publishedDate'].replace(/ \d\d:\d\d:\d\d .\d\d\d\d/,'');var div=document.createElement("span");var anchor1='<a href="#" onclick="return popPicasa(\''+guid+'\',\''+
escape(title+' ('+date+')')+'\');">'
if(i-skipped<showNumImages){div.innerHTML=anchor1+'<img src="'+thumburl+'" border="0" title="'+title+'"/></a>';container.appendChild(div);}
links+='<li>» '+anchor1
+title+'</a> <span class="small">('+date+')</span> '
+'<a href="'+link+'" target="alt"><img src="images/popout.gif" width="12" height="10" title="View in external window..."/></a></li>';}
if(footerlinks)links+=h(footerlinks).innerHTML;container.innerHTML+=links;container.innerHTML+="</ul>";}});return false;}
function LoadFrontGalleries(){var container=document.getElementById("front_showcase_img");if(container.innerHTML)return;var feed=new google.feeds.Feed("http://picasaweb.google.com/data/feed/base/user/victor.yiu"
+"?kind=album&alt=rss&hl=en_US&access=public&max-results=12&thumbsize=48");feed.setResultFormat(google.feeds.Feed.MIXED_FORMAT);feed.setNumEntries(12);feed.load(function(result){if(!result.error){container.innerHTML='';var links="";frontGalleryTitles=new Array(result.feed.entries.length);for(var i=0;i<result.feed.entries.length;i++){var entry=result.feed.entries[i];var title=entry['title'];var link=entry['link'].replace(/http.*\//,"v.htm?");var thumb=google.feeds.getElementsByTagNameNS(entry.xmlNode,"http://search.yahoo.com/mrss/","thumbnail")[0];var thumburl=thumb.attributes[0].value;var guid=entry.xmlNode.getElementsByTagName("guid")[0].childNodes[0].nodeValue;var date=entry['publishedDate'].replace(/ \d\d:\d\d:\d\d .\d\d\d\d/,'');var div=document.createElement("span");var anchor1='<a href="#" onclick="return popPicasa(\''+guid+'\',\''+
escape(title+' ('+date+')')+'\');" ';div.innerHTML=anchor1+'onmouseover="labelFrontGal('+i+');">'
+'<img src="'+thumburl+'" border="0" title="'+title+'"/></a>';frontGalleryTitles[i]="» "+anchor1+">"+title+"</a>"
+" <span class='small'>("+date+")</span>"
+' <a href="'+link+'"><img src="images/popout.gif" width="12" height="10" title="View in external window..."/></a>';container.appendChild(div);}
container.innerHTML+=links;}});return false;}
function labelFrontGal(n){var container=h("front_showcase_name");try{container.innerHTML=frontGalleryTitles[n];}catch(e){}}
function LoadRecentPosts(){return;var feed=new google.feeds.Feed("http://picasaweb.google.com/data/feed/base/user/victor.yiu/albumid/5123515857287330257?kind=photo&alt=rss&authkey=SFShpXY_Shc&hl=en_US&thumbsize=400");feed.setNumEntries(3);feed.load(function(result){if(!result.error){var container=document.getElementById("bottom");for(var i=0;i<result.feed.entries.length;i++){var entry=result.feed.entries[i];var title=entry['title'];var url=entry['link'];var x='   » <a href="'+url+'">'
+title
+'</a>';container.innerHTML+=x;}}});}
function switchWinByURL(){var w=0;var anc=window.location.href.split('#',2)[1];if(anc){if(anc.charAt(0).match(/[0-5]/)){w=anc.charAt(0);}}
switchWin(w,true);}
function switchWin(id,initial){if(currentId==0&&id!=0){hide('inlinepicasa');unhide('viewport');}
if(id!=currentId||initial){if(id!=0)h('list'+id).className=h('list'+id).className.replace(/list/,'h_list');if(currentId!=0)h('list'+currentId).className=h('list'+currentId).className.replace(/h_list/,'list');hide('text'+currentId);unhide('text'+id);if(currentId==0)unhide('slideshow');if(id==0)hide('slideshow');var feed=feeds[parseInt(id)];if(feed.length)
LoadSlideShow(feed);else
h('slideshow').innerHTML='';if(id==0)LoadFrontGalleries();currentId=id;try{pageTracker._trackPageview(virtualURLs[id]);}catch(e){}}
return false;}
function t(p){try{pageTracker._trackPageview(p);}catch(e){}}
function dumpemail(){document.write('<a href="mailto:vyiu'+' (at) '+'rockpark.com">e-mail</a>');}
function popPicasa(guid,title,tracked){if(!tracked)t('/gallery/'+unescape(title));var rss=encodeURIComponent(guid.replace(/entry.base/,'feed/api')+"&kind=photo");var w=dhtmlmodal.open("pics","inline",'<embed type="application/x-shockwave-flash" '
+'src="http://picasaweb.google.com/s/c/bin/slideshow.swf" '
+'width="663" height="520" '
+'flashvars="host=picasaweb.google.com&captions=1&RGB=0x000000&feed='
+rss
+'" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>',unescape(title),"width=670px,height=522px,resize=0,scrolling=0,center=1","");return false;}
function popPicasa2(user,albumid,title,key){var guid="http://picasaweb.google.com/data/feed/api/user/"
+user+"/albumid/"+albumid
+"?alt=rss&hl=en_US";if(key)guid+="&authkey="+key;popPicasa(guid,title,'true');return false;}
function viewportPicasa(){var p=window.location.href.split('?',2)[1];var u;if(!p)return false;var url="http://picasaweb.google.com/data/feed/api/user/";if(p.charAt(0)=='v')
u="victor.yiu";else if(p.charAt(0)=='r')
u="rockparkphotography";else
return false;var alb=p.slice(1);url+=u+"/album/"+alb+"?kind=photo&alt=rss";setPicasaAlbumName(u,alb,'inlinepicasatitle');hide('viewport');h('inlinepicasaembed').innerHTML='<embed type="application/x-shockwave-flash" '
+'src="http://picasaweb.google.com/s/c/bin/slideshow.swf" '
+'width="650" height="400" '
+'flashvars="host=picasaweb.google.com&RGB=0x202020&feed='
+encodeURIComponent(url)
+'" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';unhide('inlinepicasa');return true;}
function setPicasaAlbumName(user,album,objid){var feed=new google.feeds.Feed("http://picasaweb.google.com/data/feed/base/user/"
+user+"/album/"+album+"?kind=photo&max-results=1");feed.load(function(result){if(!result.error){h(objid).innerHTML="<a href='"
+result.feed.link.replace(/http.*\//,user.charAt(0)+".htm?")
+"'>"
+result.feed.title
+" <img src='images/popout.gif' border='0' title='View in external window...'></a>";}});}