function RQI() {var reg;if (document.all) {reg=/<Q>([^<]*)<\/Q>/g;document.body.innerHTML=document.body.innerHTML.replace(reg, '&ldquo;$1&rdquo;');}}window.onload=function() {RQI()};function CRF(doc, lastUpdated) {var today=new Date();var year=today.getFullYear();if (year<2009) year=2009;doc.write('<BR>');doc.write('<BR>');doc.write('<BR>');doc.write('<FONT SIZE=-2><I>');doc.write('&copy;&nbsp;Copyright 2003-'+year+'&nbsp;<A HREF="'+'index.htm" TARGET="_top">Beat Stamm</A>');if (lastUpdated !="") {doc.write(', this page last updated on '+lastUpdated);}doc.write('</I></FONT>');}function MFN(folder, image, index, thumb) {var pos=image[index].indexOf('*');var isGif=pos>=0;var len=isGif ? pos : image[index].length;var ext=isGif ? '.gif' : '.jpg';var fileslice=image[index].slice(0,len);var filename=folder+(thumb ? '/Thumbs/' : '/Images/')+fileslice+ext;return filename;}function CSS(inline, slides, slideNum) {var html='';if (0<=slideNum && slideNum<slides) {html+='&larr;&nbsp;<a onclick=\"CSS('+inline+','+slides+',';if (slideNum>0) {html+=slideNum;} else  {html+=slides;}html+='-1);return false;\">';if (slideNum>0) {html+='prev';} else  {html+='last';}html+='<\/a>, ';html+='&uarr;&nbsp;<a onclick=\"CSS('+inline+','+slides+',-1);return false;\">'+gallery+'<\/a>, ';html+='<a onclick=\"CSS('+inline+','+slides+',';if (slideNum<slides-1) {html+=slideNum;} else  {html+=-1;}html+='+1);return false;\">';if (slideNum<slides-1) {html+='next';} else  {html+='first';}html+='<\/a>&nbsp;&rarr;';html+='<br><br>';html+='<a onclick=\"CSS('+inline+','+slides+',-1);return false;\">';html+='<img src=\"'+MFN(folder, image, slideNum, false)+'\" border=0 oncontextmenu=\"return false;\" onselectstart=\"return false;\" onmousedown=\"return false;\" oncopy=\"return false;\">';html+='</a><br>';html+='<br>';html+=caption[slideNum];} else  {slideNum=-1;if (!inline) {html+='<h1>Gallery<br>'+gallery+'<\/h1>';}for (var i=0;i<slides;i++) {html+='<a name=\"thumb'+i+'\"><\/a>';html+='<a onclick=\"CSS('+inline+','+slides+','+i+');return false;\">';html+='<img id="thumb" src=\"'+MFN(folder, image, i, true)+'\" border=0 oncontextmenu=\"return false;\" onselectstart=\"return false;\" onmousedown=\"return false;\" oncopy=\"return false;\">';html+='<\/a>';if (lineBreak[i]) {html+='<br>';}}}window.document.getElementById("dDynamicGallery").innerHTML=html;}
