function showImage($a){try{var $b=document.getElementById("photo_img");$b.src='images/'+$a+'.jpg';}catch(e){return true;};return false;};var $c;function openMovieWindow(location,$d,$e){if($c)$c.close();$c=window.open(location,'PhilipLeeMovie',"toolbar=no,location=no,status=yes,directories=no,menubar=no,scrollbars=auto,resizable=no,width="+$d+",height="+$e);if($c)try{$c.focus();}catch(e){return(true);};return(false);};var $f=false;function embedSlideshow($g,$h,$i,$j,$k){$f=swfobject.hasFlashPlayerVersion("9");if($f){var $l={gallerycolourmain:"0x8E8684",gallerycolourbg:"0xE9D9DA",xmlfile:$g};var $m={allowfullscreen:"true",bgcolor:"#000000"};var $n={name:"slideshow"};var el,$e,$o;if($i==true){el=document.getElementById("photogallery");$o="gallery1985";$e="500";if($j==true){$l.galleryrows="3";$l.gallerycols="3";}else if($k==true){$l.galleryrows="2";$l.gallerycols="2";}}else{el=document.getElementById("photo");$o="slideshow1985";$e="360";};el.innerHTML="<div id=\"photos\"></div>";swfobject.embedSWF("/images/"+$o+".swf","photos","680",$e,"9.0.0",false,$l,$m,$n);}else{if($h=='')document.write('<p><a href="http://get.adobe.com/flashplayer" target="_blank"><img id="photo_img" src="images/getflash.gif" alt="Selected thumbnail image" /></a></p>\n');else document.write('<p><img id="photo_img" src="images/'+$h+'.jpg" alt="Selected thumbnail image" /></p>\n');}};function embedGetFlashAd(){if($f){try{document.getElementById("clickablethumbnails").style.display="none";}catch(e){}}else{document.write('<p class="figure_noprint"><a href="http://get.adobe.com/flashplayer"><img src="images/getflashplayer.gif" alt="Get Adobe Flash Player" width="88" height="31" align="left" class="inline_right" /></a><br />Portfolio best viewed with <a href="http://get.adobe.com/flashplayer" title="Get Adobe Flash Player">Adobe Flash Player</a>.</p>');}};function embedSlideshowText($i){if($f){if($i==true)document.write('<p class="figure_noprint">To start a slideshow, select a gallery to play from the list above.</p>\n');else document.write('<p class="figure_noprint">To start the slideshow, click the play button above.</p>\n');return true;}else{return false;}};function embedVideo($p,$q,$d,$e,external){document.getElementById($p).style.display="block";var $l={};var $m={allowfullscreen:"true"};var $n={name:"flashplayer"};$l.height=$e;$l.width=$d;if(external){$l.file="http://www.theogray.com/video/ext/pl/"+$q+".flv";$l.image="http://www.theogray.com/video/ext/pl/"+$q+".jpg";}else{$l.file="/videos/"+$q+".flv";$l.image="/videos/"+$q+".jpg";};swfobject.embedSWF("/videos/flvplayer.swf",$p,$d,$e,"9.0.0",false,$l,$m,$n);}

