function hide_panel(){var M;var P;var R;var S;var N;M=A("leftnav");P=A("shownav");R=A("main");M.style.overflow="hidden";var K={height:{to:23},width:{to:100},left:{to:2},top:{to:70}};var O=new YAHOO.util.Anim(M,K);O.duration=0.2;var L={left:{to:9}};var Q=new YAHOO.util.Anim(R,L);Q.duration=0.2;O.onComplete.subscribe(function(){M.style.display="none";P.style.display="block";Q.animate();M.style.overflow="visible"});O.animate()}function show_panel(W){var O;var Q;var T;var U;var P;O=A("leftnav");Q=A("shownav");T=A("main");O.style.overflow="hidden";O.style.height="auto";O.style.display="block";var N=O.offsetHeight;O.style.display="none";O.style.height="23px";O.style.width="100px";var V={height:{to:N},width:{to:151},left:{to:20},top:{to:91}};var R=new YAHOO.util.Anim(O,V);R.duration=0.2;R.onComplete.subscribe(function(){O.style.overflow="visible";O.style.height="auto";if(W){if(A(W).style.display=="none"){Ximagi.Panel.show(W)}}});var M={left:{to:200}};var S=new YAHOO.util.Anim(T,M);S.duration=0.2;S.onComplete.subscribe(function(){Q.style.display="none";O.style.display="block";R.animate()});S.animate()}function compose_gallery_header(M,Q,J){var N=Ximagi.Hash.getParam("sort");var P="/ximagi/search.php";var L;var O="Ximagi.Tooltip.Hide()";if(N=="date"){P+="?date_created_before="+M+"&date_created_after="+M;L="Ximagi.Tooltip.Show('Show all photos taken on "+M+"', this)"}else{if(N=="headline"){P+="?exactheadline="+escape(M);L="Ximagi.Tooltip.Show('Show all photos with headline &quot;"+M+"&quot;', this)"}else{P+="?people%5b%5d="+escape(M);L="Ximagi.Tooltip.Show('Show all photos of "+M+"', this)"}}var K='<div class="key">\n<h1><a name="page='+page+"&view=gallery&key="+J+'"      href="'+P+'"     onmouseover="'+L+'"     onmouseout="'+O+'"     id="'+M.replace(" ","_")+'"     >'+M;if(Q){K+=" (continued from page "+page+")"}K+="</a></h1>\n</div>\n";return K}function compose_detail_header(H,I,F){var G='<div class="key"><h1><a name="page='+page+"&view=detail&key="+F+'"      id="'+H.replace(" ","_")+'"     >'+H;if(I){G+=" (continued from page "+page+")"}G+="</a></h1>\n</div>\n";return G}function compose_header(H,G,I,F){if(G=="d"){return compose_detail_header(H,I,F)}return compose_gallery_header(H,I,F)}function compose_detail_thumb(F,G){var E='<div class="detailimage" style="width: 182px; height: 182px; margin: 0px; padding: 0px; border: 0px" align="center" id="di'+G+'" valign="bottom"><table border="0" cellpadding="0" cellspacing="0"><tr><td valign="bottom"><img src="/ximagi/img/shim.gif" border="0" width="1" height="173" /><a href="javascript:pop_up('+page+","+G+')" onmouseover="load_preview('+page+","+G+')"><img src="'+F.thumb+'" alt="" border="0" onmouseover="Ximagi.Tooltip.Hide(\'Click to see a larger version of this photo\', this)" onmouseout="Ximagi.Tooltip.Hide()" /></a></td></tr></table></div><div class="detailhead"><div class="detailtext" style="font-size: 16px; color: #7d8588;" id="dn'+G+'">'+F.file+'</div><div class="detailtext" style="border-bottom: none" id="dt'+G+'">'+F.caption+'</div><div class="detailtext" id="dp'+G+'"><strong>People:</strong>&nbsp;'+F.people+'</div><div class="detailtext" id="dc'+G+'"><strong>Photographer:</strong>&nbsp;'+F.photographer+'</div><div class="detailtext" style="display: none;" id="dh'+G+'"><a href="/ximagi/search.php?exactheadline[]='+escape(F.headline)+'">'+F.headline+"</a>&nbsp;&nbsp;&nbsp;&nbsp|&nbsp;&nbsp&nbsp;&nbsp;"+F.date+'</div><div class="detail_buttons"><div class="detail_btn lightbox_ops"><a href="javascript:add_single_image_to_lightbox('+G+')" onmouseover="A(\'ldtl_asi2l_icn_'+G+"').src='/ep_assets/icons/add_to_lightbox_hover.gif'\" onmouseout=\"A('ldtl_asi2l_icn_"+G+'\').src=\'/ep_assets/icons/add_to_lightbox.gif\'"><img src="/ep_assets/icons/add_to_lightbox.gif" id="ldtl_asi2l_icn_'+G+'" border="0" width="36" height="31" alt="" onmouseover="Ximagi.Tooltip.Show(\'Click to add this photo to another lightbox\', this)" onmouseout="Ximagi.Tooltip.Hide()"></a><a href="javascript:remove_image_from_lightbox('+G+')" onmouseover="A(\'ldtl_ri2l_icn_'+G+"').src='/ep_assets/icons/remove_from_lightbox_hover.gif'\" onmouseout=\"A('ldtl_ri2l_icn_"+G+'\').src=\'/ep_assets/icons/remove_from_lightbox.gif\'"><img src="/ep_assets/icons/remove_from_lightbox.gif" id="ldtl_ri2l_icn_'+G+'" border="0" width="36" height="31" alt="" onmouseover="Ximagi.Tooltip.Show(\'Click to remove this photo from this lightbox\', this)" onmouseout="Ximagi.Tooltip.Hide()"></a></div><div class="detail_btn add_to_lightbox" style="float:left;"><a id="td'+G+'" href="javascript:add_single_image_to_lightbox('+G+')" onmouseover="A(\'dtl_asi2l_icn_'+G+"').src='/ep_assets/icons/add_to_lightbox_hover.gif'\" onmouseout=\"A('dtl_asi2l_icn_"+G+'\').src=\'/ep_assets/icons/add_to_lightbox.gif\'"><img src="/ep_assets/add_to_lightbox.gif" id="dtl_asi2l_icn_'+G+'" border="0" width="36" height="31" alt="" onmouseover="Ximagi.Tooltip.Show(\'Click to add this photo to a lightbox\', this)" onmouseout="Ximagi.Tooltip.Hide()" /></a></div><div class="detail_btn download_button" style="float:left;"><a id="td'+G+'" href="javascript:Ximagi.Library.download('+G+')" onmouseover="A(\'dtl_dnld_icn_'+G+"').src='/ep_assets/icons/download_hover.gif'\" onmouseout=\"A('dtl_dnld_icn_"+G+'\').src=\'/ep_assets/icons/download.gif\'"><img src="/ep_assets/icons/download.gif" id="dtl_dnld_icn_'+G+'" border="0" width="36" height="31" alt="" onmouseover="Ximagi.Tooltip.Show(\'Click to download a high resolution version of this photo\', this)" onmouseout="Ximagi.Tooltip.Hide()" /></a></div></div></div>';return E}function compose_gallery_thumb(F,G){var E='<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td bgcolor="#e0e0e0"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td align="center" valign="bottom"><img src="/ximagi/img/shim.gif" border="0" height="176" width="1" /><a href="javascript:pop_up('+page+","+G+')" onmouseover="load_preview('+page+","+G+')"><img src="'+F.thumb+'" border="0" alt="" onmouseover="Ximagi.Tooltip.Show(\'Click to see a larger version of this photo\', this)" onmouseout="Ximagi.Tooltip.Hide()" /></a></td></tr></tbody></table></td></tr><tr><td bgcolor="#e0e0e0"><div class="thumbbottom" id="tbt'+G+'"><div class="thumbtext" style="height: 47px; width: 176px; margin-left: 3px; margin-right: 3px; padding-bottom: 3px; padding-top: 4px;" id="tn'+G+'">'+((F.warnings&&F.warnings!="")?F.warnings+"<br />"+F.people:F.people)+'</div><div class="thumbtext" style="margin-left: 3px; margin-bottom: 4px; height: 12px; color: #606060" id="tdcr'+G+'">date: '+F.date+'</div><div class="thumb_buttons" style="float: left; width: 172px;"><div class="thumbtext lightbox_ops" style="padding-top: 3px; float: left; width: 72px;"><a href="javascript:add_single_image_to_lightbox('+G+')" onmouseover="A(\'lthm_asi2l_icn_'+G+"').src='/ep_assets/icons/add_to_lightbox_hover.gif'\" onmouseout=\"A('lthm_asi2l_icn_"+G+'\').src=\'/ep_assets/icons/add_to_lightbox.gif\'"><img src="/ep_assets/icons/add_to_lightbox.gif" id="lthm_asi2l_icn_'+G+'" border="0" width="36" height="31" alt="" onmouseover="Ximagi.Tooltip.Show(\'Click to add this photo to another lightbox\', this)" onmouseout="Ximagi.Tooltip.Hide()"></a><a href="javascript:remove_image_from_lightbox('+G+')" onmouseover="A(\'lthm_ri2l_icn_'+G+"').src='/ep_assets/icons/remove_from_lightbox_hover.gif'\" onmouseout=\"A('lthm_ri2l_icn_"+G+'\').src=\'/ep_assets/icons/remove_from_lightbox.gif\'"><img src="/ep_assets/icons/remove_from_lightbox.gif" id="lthm_ri2l_icn_'+G+'" border="0" width="36" height="31" alt="" onmouseover="Ximagi.Tooltip.Show(\'Click to remove this photo from this lightbox\', this)" onmouseout="Ximagi.Tooltip.Hide()"></a></div><div class="add_to_lightbox" style="float: left;"><a id="td'+G+'" href="javascript:add_single_image_to_lightbox('+G+')" onmouseover="A(\'thm_asi2l_icn_'+G+"').src='/ep_assets/icons/add_to_lightbox_hover.gif'\" onmouseout=\"A('thm_asi2l_icn_"+G+'\').src=\'/ep_assets/icons/add_to_lightbox.gif\'"><img src="/ep_assets/icons/add_to_lightbox.gif" id="thm_asi2l_icn_'+G+'" border="0" width="36" height="31" alt="" onmouseover="Ximagi.Tooltip.Show(\'Click to add this photo to a lightbox\', this)" onmouseout="Ximagi.Tooltip.Hide()" /></a></div><div style="float: left;"><!--change href--><a id="td'+G+'" href="javascript:Ximagi.Library.download('+G+')"  onmouseover="A(\'thm_dnld_icn_'+G+"').src='/ep_assets/icons/download_hover.gif'\" onmouseout=\"A('thm_dnld_icn_"+G+'\').src=\'/ep_assets/icons/download.gif\'"><img src="/ep_assets/download.gif" id="thm_dnld_icn_'+G+'" border="0" width="36" height="31" alt="" onmouseover="Ximagi.Tooltip.Show(\'Click to download a high resolution version of this photo\', this)" onmouseout="Ximagi.Tooltip.Hide()" /></a></div></div><div style="display: none;" id="tt'+G+'"><!--<strong>Caption</strong>: --></div></div></td></tr></tbody></table>';return E}function compose_thumb(F,E,G){if(E=="d"){return compose_detail_thumb(F,G)}return compose_gallery_thumb(F,G)}function adjustmainwidth(){var M;var L;var H;var I;var K;var J;if(!window.innerWidth){J=document.body.clientWidth}if(window.name=="lightbox"){H="20px";I="20px"}else{H="60px";I="80px";if((!window.innerWidth)&(!window.XMLHttpRequest)){K=(J-200)+"px";A("topnav").style.width=K;if(navigator.appVersion.indexOf("Mac")!=-1){K=(J-209)+"px";A("topnavouter").style.width=K}}}M=A("main");L=A("main2");M.style.left="25px";L.style.left="25px";if(shownav){K=(J-220)+"px";M.style.left="190px";L.style.left="190px";M.style.top=H;L.style.top=H;if(!window.innerWidth){M.style.width=K;L.style.width=K}}else{K=(J-35)+"px";M.style.left="25px";L.style.left="25px";M.style.top=I;L.style.top=I;if(!window.innerWidth){M.style.width=K;L.style.width=K}}}function installResize(){window.onresize=adjustmainwidth}

