/*
Copyright (C) 2004, 2003 Great Point Design, Inc.
All rights reserved.
This computer program is the property of Great Point Design, Inc.
and contains its confidential trade secrets.  Use, examination,
copying, transfer and disclosure to others, in whole or in part,
are prohibited except with the express prior written consent
of Great Point Design, Inc.
*/

var cur_show=0,num=0,B7E=1,Bg1=false,M97=1;var qt1=4,V41=0,ITK=4;var pv6=screen.availWidth-100,Wdt=screen.availHeight-180;var PIA=5000,T60=null,i09=false,tW4;var t6f=[1,0,1,0];var e4d=['white','#0066cc'];var h3y=new Array(),ThV=new Array();var new_index=Number.MAX_VALUE,md3=1,vx5;var C52=new Array();var iPW=new Array(),e5i=0;var show_array=[''],f7l=new Array();var qE2='',kKy='_What\'s New',N8x='_Print cart';var o68,H62='',IJ0=0;var s41,D45,cloak_filter='';var qo5,K9X;var N18=false;var g93='_Uncategorized';var muted_now=false,u8R=true,jQ9=false,h40=false,ky4,atB=0;var p61,C7A,slide_on=false,vR3,k2U;var gpMenuHighlight='#b1caf8',gpMenuBackground='#f0f0f0',gpStripeColor='#f0f0f0';var gpMenuShort=0,gpIconWidth=2;var ejv=0,E6y=0,Ow1=-1,je1=0,m13=0,p5e=0;var DEn=0,I79=0;var RtO=((!IE55&&!IE60)?'blendTrans(duration=1)':'progid:DXImageTransform.Microsoft.Fade(Overlap="1")');var k8u=[],FaO,AMu=1,print_win,aCM;var I1h=2,A99=[],qS8=[],Vl3,ji5;var x78=new Image(),oF2=new Array(),KE2;var Gj4=new Array(),delay_display=0,s4F=0;var H42=new Image(),m73=new Array(),Dbr;var V5O,y7N=0,qQ1;var DJV=new Image(),B9V=new Array(),So0;var p4o=new Array(),delay_print=0,UN1=0,jcd=0;var l51='',buffInt,dyn=-1,Wn4=0;var lY5=0,TOY,o73=0;var oF8=(pic_array.length?Math.min(10,Math.max(1,Math.ceil(100/pic_array.length))):1);var pCi=[[5,3,1,2],[6,4,1,2],[7,5,1,1],[7,9.5,1,1]],Die;var h9I=7,wb8=9,SJ2=.55,QP6=160;var i44='progid:DXImageTransform.Microsoft.BasicImage(Rotation=1)';function f35(){var k8W=h3y.length-1;if(!ThV[k8W].length){alert('You have no photos in your cart.\nLeave the cart and add photos first.');return}var d7L='';for(var oU2=0;oU2<ThV[k8W].length-1;oU2++)d7L+=(ThV[k8W][oU2][0]?ThV[k8W][oU2][0]:ThV[k8W][oU2][1])+'|';d7L+=(ThV[k8W][oU2][0]?ThV[k8W][oU2][0]:ThV[k8W][oU2][1]);I79=2;location.href='flyingphoto_pix.zip?files='+d7L}function xh3(cga,max_w,max_h){var T64=cga[2];var MJ4=cga[3];if(T64>max_w||MJ4>max_h){var w15=Math.max(T64/max_w,MJ4/max_h);if(w15){T64/=w15;MJ4/=w15}}return [T64,MJ4]}function imN(){if(!digibug_url)return;var k8W=h3y.length-1;if(!ThV[k8W].length){alert('You have no photos in your cart.\nLeave the cart and add photos first.');return}var d7L='<form id=f1 action="'+digibug_url+'" method=post><input type="hidden" name="cmd" value="addimg"><input type="hidden" name="protocol" value="ufp"><input type="hidden" name="partner_id" value="mike"><input type="hidden" name="imgnum" value='+ThV[k8W].length+'>';for(var oU2=0;oU2<ThV[k8W].length;oU2++){var ItN=oU2+1;var cga=ThV[k8W][oU2];var Q75=xh3(cga,thumb_w,thumb_h);var nTJ=xh3(cga,print_w,print_h);d7L+='<input type="hidden" name="imgraw-'+ItN+'" value="'+canonical_url+prints_path+cga[1]+'"><input type="hidden" name="imgrawheight-'+ItN+'" value='+Math.round(nTJ[1])+'><input type="hidden" name="imgrawwidth-'+ItN+'" value='+Math.round(nTJ[0])+'><input type="hidden" name="imgthumb-'+ItN+'" value="'+canonical_url+thumbs_path+cga[1]+'"><input type="hidden" name="imgthumbheight-'+ItN+'" value='+Math.round(Q75[1])+'><input type="hidden" name="imgthumbwidth-'+ItN+'" value='+Math.round(Q75[0])+'>'}d7L+='</form>';aCM=window.open();aCM.document.writeln('<html><head><title>Order prints from Digibug</title></head><body onload=f1.submit()>'+d7L+'</body></html>');aCM.document.close()}function hK1(){if(Die&&!Die.closed)Die.close();if(!ThV[h3y.length-1].length){alert('You have no photos in your cart.\nLeave the cart and add photos first.');return}Die=window.open('','',"height=610,width=470,status=0,menubar=0,scrollbars=0,resizable=0,toolbar=0,fullscreen=0,top=100,left=100");Die.document.writeln('<html><head><title>Print at Home</title><style type="text/css"> DIV, SPAN, BODY, P { color: black; font:8pt; font-family:Microsoft Sans Serif,Trebuchet MS,arial,serif; } .actionTBL { border-collapse:collapse; border:2 outset; background-color:#d8e4f8 } .action { height:24;border-right:solid white 2px } </style></head><body style=margin:0><div id=headdiv1 style="height:30;width:100%;font:10pt;background-color:#eae9d7"><input type=button style="font-size:8pt;width:60;margin:5 10 0 10" value="print" onclick="opener.print_home();return false"><input type=button style="font-size:8pt;width:60;margin:5 0 0 0" value="cancel" onclick="self.close()"><span style="height:18;font:8pt;margin:-1 0 1 25">Size:<input type=radio name=sze style="margin:2 2 -2 3" onclick="opener.setImages(0)">3x5 inches<input type=radio name=sze style="margin:2 2 -2 9" onclick="opener.setImages(1)" checked>4x6<input type=radio name=sze style="margin:2 2 -2 9" onclick="opener.setImages(2)">5x7</span></div><div id=preview1 style="width:100%;height:580;overflow-y:scroll;margin:0;background-color:white" align=center></div></body></html>');setImages(1)}function setImages(j5n){var k8W=h3y.length-1;if(!ThV[k8W].length)return;var e4Q='';var e41='';var d7L=pCi[j5n];var U13=d7L[0];var F3Q=d7L[1];var tFQ=U13/F3Q;var ByA=0;for(var oU2=0;oU2<ThV[k8W].length;oU2++){var cga=ThV[k8W][oU2];var g15=cga[2]/QP6;var FLq=cga[3]/QP6;var g9v=((g15/FLq<1&&tFQ>1)||(g15/FLq>1&&tFQ<1)?1:0);ByA=ByA||g9v;var PF6=(g9v?F3Q:U13);var OmE=(g9v?U13:F3Q);if(g15>PF6||FLq>OmE){if(g15/FLq<PF6/OmE){g15=OmE*(g15/FLq);FLq=OmE}else{FLq=PF6*(FLq/g15);g15=PF6}}e4Q+=(oU2%d7L[2]==0?'<tr>':'')+'<td nowrap style="height:'+11*SJ2/d7L[3]+'in;width:'+8.5*SJ2/d7L[2]+'in'+(oU2&&oU2%(d7L[2]*d7L[3])==0?';page-break-before:always"':'"')+' align=center><img style="border:0;width:'+g15*SJ2+'in;height:'+FLq*SJ2+'in'+(g9v?';filter:'+i44:'')+'" src="'+prints_path+cga[1]+'" absmiddle>'+((oU2+1)%(d7L[2]*d7L[3])==0&&oU2!=ThV[k8W].length-1?'<tr><td style="height:0;font:0;background-color:dimgray"'+(d7L[2]>1?' colspan='+d7L[2]:'')+'>':'');e41+=(oU2%d7L[2]==0?'<tr>':'')+'<td nowrap style="height:'+wb8/d7L[3]+'in;width:'+h9I/d7L[2]+'in'+(oU2&&oU2%(d7L[2]*d7L[3])==0?';page-break-before:always"':'"')+' align=center><img style="border:0;width:'+g15+'in;height:'+FLq+'in'+(g9v?';filter:'+i44:'')+'" src="'+prints_path+cga[1]+'" absmiddle>'}u18(e4Q);D4i(e41,j5n==1&&oU2==2&&ByA)}function u18(iXJ){Die.preview1.innerHTML='<table nowrap style="width:100%;margin:-30 0 0 0;border:0;position:absolute;left:0;top:30" cellspacing=0 cellpadding=0 align=center>'+iXJ+'</table>'}function D4i(iXJ,w17){var cKD='<html><head><style media="print"> .noprint  { display: none } </style></head><body style="background:white;margin:0;overflow-y:scroll;font-family:Trebuchet MS, arial, serif"><table nowrap style="width:100%;margin:0;border:1" cellspacing=0 cellpadding=0 align=center>'+iXJ+(w17?'<tr><td>':'')+'</table></body></html>';window.frames("printfrm").document.writeln(cKD);window.frames("printfrm").document.close()}function print_home(){window.frames("printfrm").focus();window.frames("printfrm").print();Die.close();window.focus()}function std_prt_view(N78,GbQ){if(M97==N78)return;if(!N78&&aol){alert('The AOL browser does not support fullscreen\nslideshows or saving copies to your PC.\n\nClick on "Help for AOL users" above\nto view a full-featured slideshow.');return}p55();M97=N78;if(!N78&&(!print_win||print_win.closed))wrt_print_win();set_view(cur_show,num,0);eval(N78?'window':'print_win').focus();if(GbQ)copy_hit(1)}function focus_prt(){if(ejv)VJq(1);else std_prt_view(0)}function destroy_prt(){window.clearInterval(So0);std_prt_view(1)}function go_resize(){Wdt=print_win.document.body.clientHeight-130;print_win.maintd1.style.pixelHeight=Wdt+ITK;print_win.overflowdiv1.style.pixelHeight=Wdt+ITK;print_win.img1td1.style.pixelHeight=Wdt+ITK}function wrt_print_win(){V41=0;print_win=window.open('','',"status=0,menubar=0,scrollbars=0,resizable=1,toolbar=0,fullscreen=1,top=0,left=0");print_win.document.writeln('<html><head><title>- '+web_title+(web_owner?' by '+web_owner:'')+' - </title><style type="text/css"> DIV, SPAN, BODY, P { color: black; font:8pt; font-family:verdana, Microsoft Sans Serif,Trebuchet MS,arial,serif; } .actionTBL { border-collapse:collapse; border:2 outset; background-color:black } .action { height:21;border-right:solid white 2px } .linc { color:white } </style></head><iframe tabindex=-1 name=copyit1 style="width:1;height:1;position:absolute;top:0;left:0;background-color:black"></iframe><div id=load1 style="z-index:5;position:absolute;display:\'none\';width:250;height:160;left:'+((screen.availWidth-250)/2)+';top:'+((screen.availHeight-180)/2)+';background-color:#f0f0f0;border:ridge blue 4px" align=center valign=center><div style="margin:30 0 30 0;width:160;font:bold 10pt" align=left>High-quality image<br>is loading...</div><div style="color:black;width:160" align=left>(this may take a while)</div></div><div id=download1 style="z-index:10;position:absolute;display:\'none\';width:260;height:150;left:'+((screen.availWidth-260)/2)+';top:100;background-color:#f0f0f0;border:ridge blue 4px;font:10pt" align=center valign=center><div style="margin-top:20;width:210" align=left><span style="font:bold 10pt">To save a high-quality copy:</span><ul style="margin:0;padding-left:20"><li style="margin-top:10">right-click on the image and choose to save image, <b>OR</b></li><li style="margin-top:5">drag photo onto your desktop.</li></ul></div><div style="margin-top:15;width:200"><input type=submit value="OK" style="width:60;font:8pt" onclick="document.getElementById(\'download1\').style.display=\'none\'"></div></div><div id=loading1 style="z-index:10;position:absolute;display:none;width:250;height:100;left:'+((screen.availWidth-250)/2)+';top:'+((screen.availHeight-150)/2)+';background-color:#f0f0f0;font:10pt;border:4 ridge #3366ff" align=center valign=center nowrap><div id=loadmsg1 style="margin-top:30;width:200"></div></div><img id=bigmark1 src="'+RC1.src+'" style="position:absolute;width:18;height:18;display:none"></head><script language=javascript1.2>function keydown() {  if (window.event == null) return;if (event.keyCode == 37) opener.prev_hit(1); else if (event.keyCode == 39) opener.next_hit(1); }</script><body onkeydown="keydown()" onfocus="opener.focus_prt()" onbeforedestroy="opener.destroy_prt()" onload="opener.go_resize()" onresize="opener.go_resize()" style="background-color:black;margin:0;overflow:hidden"><table align=center cellspacing=0 cellpadding=0 border=0 style="margin:0;width:'+(screen.availHeight-20)+'"><tr><td width=220 height=1 nowrap></td><td width='+Math.max(0,(screen.availWidth-20-440))+' height=1 nowrap></td><td width=220 nowrap></td></tr><tr><td style="height:52;overflow:hidden" nowrap valign=center><div style="height:52;width:220;overflow:hidden" nowrap valign=center>'+(theme_full_header?theme_full_header:'<TABLE style="MARGIN: 0px; WIDTH: 220px; HEIGHT: 52px" cellSpacing=0 cellPadding=0 border=0><TBODY><TR><TD vAlign=center><DIV id=fulldiv style="BORDER: solid #3366ff 0px; BACKGROUND-COLOR: black"><TABLE id=fulltable style="MARGIN: 0px; WIDTH: 208px; HEIGHT: 40px" cellSpacing=0 cellPadding=0 border=0><TBODY><TR><TD noWrap align=middle width="100%"><DIV id=fulltxtdiv style="PADDING-LEFT: 10px; FONT-WEIGHT: bold; FONT-SIZE: 12pt; CURSOR: pointer; COLOR: #3366ff; FONT-FAMILY: Trebuchet MS" onclick="opener.window.open(\'http://www.flyingphoto.com\');return false" align=left>Fullscreen '+(!onGPWeb?'':'Web ')+'Slideshow</DIV></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>')+'</div></td><td align=center style="padding-bottom:0"><table cellspacing=0 cellpadding=0 class=actionTBL><tr><td class=action><span id=back1 style="width:40;height:21;cursor:hand;padding-top:3" nowrap onmouseover="opener.iconHigh(this, 1)" onmouseout="opener.iconHigh(this, 0)" onclick="opener.std_prt_view(1)" title="Back to standard view"><span style="padding-left:5" class=linc>Back</span></span></td><td class=action><span id=pauseplay1 style="width:95;height:21;cursor:pointer;padding:3 0 0 3;display:none" nowrap onmouseover="opener.iconHigh(this, 1)" onmouseout="opener.iconHigh(this, 0)" onclick="opener.pause_play_hit()" title="Resume slideshow" class=linc><b>Resume show</b></span><span id=pauseplay3 style="width:95;height:21" nowrap><span id=speed1 style="height:21;width:53;padding:3 0 0 7;border-right:solid white 2px;cursor:hand" onmouseover="opener.iconHigh(this, 1)" onmouseout="opener.iconHigh(this, 0)" onclick="opener.pause_play_hit()" title="Pause slideshow" class=linc>Pause</span><img id=speed2 src="widget/speedup_white.gif" align=absmiddle style="height:20;width:16;cursor:hand;margin:0 2" onmouseover="opener.iconHigh(this, 1)" onmouseout="opener.iconHigh(this, 0)"><img id=speed3 src="widget/speeddn_white.gif" align=absmiddle style="height:20;width:16;cursor:hand;margin:0 2" onmouseover="opener.iconHigh(this, 1)" onmouseout="opener.iconHigh(this, 0)"></span></td>'+(!onGPWeb?'':'<td class=action><span style="width:75;height:21;cursor:hand;padding-top:3" nowrap onmouseover="opener.iconHigh(this, 1)" onmouseout="opener.iconHigh(this, 0)" onclick="opener.cart_hit()" title="Add this photo to cart"><span style="padding-left:5" class=linc>Add to cart</span></span></td><td class=action><span style="width:90;height:21;cursor:hand;padding-top:3" nowrap onmouseover="opener.iconHigh(this, 1)" onmouseout="opener.iconHigh(this, 0)" onclick="opener.vcart_hit()" title="Click to print or download high-quality copies"><span id=pcart1 style="padding-left:5" class=linc></span></span></td>')+'<td class=action><span id=maxreduce1 style="width:62;height:21;cursor:hand;padding-top:3" nowrap onmouseover="opener.iconHigh(this, 1)" onmouseout="opener.iconHigh(this, 0)" onclick="opener.max_reduce_hit()"><span id=maxreduce2 style="padding-left:4" class=linc></span></span></td><td class=action><div><img src="widget/prev_white.gif" style="height:20;width:20;margin-left:2;cursor:hand" onclick="opener.prev_hit(1)" alt="Previous photo" align=absmiddle onmouseover="opener.iconHigh(this, 1)" onmouseout="opener.iconHigh(this, 0)"><img src="widget/next_white.gif" style="height:20;width:20;margin:0 0 0 0;cursor:hand" onclick="opener.next_hit(1)" alt="Next photo" align=absmiddle onmouseover="opener.iconHigh(this, 1)" onmouseout="opener.iconHigh(this, 0)"></div></td><td class=action><div><img id=mute1 onclick="opener.mute_hit()" align=absmiddle style="margin:0 5 0 5;height:20;width:20;cursor:hand'+(u8R?';display:none" ':'" ')+'onmouseover="opener.iconHigh(this, 1)" onmouseout="opener.iconHigh(this, 0)"><span id=slidespan1 style="margin:-1 7 1 4;height:20;width:20;cursor:hand;visibility:hidden'+(u8R?';display:none" ':'" ')+'ondragstart="event.returnValue=false" ondrag="event.returnValue=false"><hr style="font:0;height:2;color:white;width:100%;margin:3 0 -3 0"><img id=slider1 src="widget/slider14_white.gif" style="height:14;width:14;position:absolute;z-index:3" onmousedown="opener.slide_on=true" onmouseup="opener.slide_on=false" onmousemove="if (opener.slide_on) opener.move_slider(1)" title="Slide to adjust volume"></span></div></td><td class=action><img src="'+cOT.src+'" align=absmiddle style="width:21;height:21;cursor:hand" onmouseover="opener.iconHigh(this, 0, opener.closefull_h)" onmouseout="opener.iconHigh(this, 0, opener.closefull)" onclick="opener.destroy_prt();window.close()" title="Close full screen window"></td></tr></table></td><td align=right style="height:52">'+(!onGPWeb?'':'<a href="#" onclick="opener.window.open(\'http://www.flyingphoto.com\');return false" style="text-decoration:none;cursor:pointer"><span style="font-size:8pt;color:#3366ff;font-family:Arial;text-decoration:none;cursor:pointer;height:24;margin:3 0 3 0" title="Put your photos to work with FlyingPhoto">powered by</span><img src="widget/fpbanner_black_120x36.gif" style="width:120;height:36;margin:3 0 0 0;border:0;cursor:pointer" title="Put your photos to work with FlyingPhoto"></a>')+'</td></tr><tr><td id=maintd1 colspan=3 valign=center align=center height='+(Wdt+ITK)+'><div id=overflowdiv1 style="width:'+(pv6+ITK)+';height:'+(Wdt+ITK)+';overflow:hidden;margin-top:10" align=center><table cellspacing=0 cellpadding=0 border=0 margin=0><tr><td id=img1td1 valign=center style="height:'+(Wdt+ITK)+'"><div id=img1 align=center></div><div id=vid1 align=center style="display:none"><OBJECT ID="player" style="width:324;height:312;border:2 outset" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"></OBJECT><script language=javascript1.2 for=player event=playStateChange(NewState)>if (NewState == 8) opener.set_view(opener.cur_show, opener.num, 0);</script></div></td></tr></table></div></td></tr><tr><td align=left><div id=dat1 align=left style="margin:20 0 20 80;font:10pt Trebuchet MS;color:#a0a0a0"></div></td><td id=captd1 align=center><div id=cap1 align=center style="margin:0 0 0 0;font:bold 12pt Trebuchet MS;color:white"></div></td><td align=right><div id=count1 align=right style="margin:20 80 20 0;font:10pt Trebuchet MS;color:#a0a0a0"></div></td></tr></table></body></html>');print_win.document.close();Sj3();vR3=oPc("slidespan1",1)-2;k2U=vR3+print_win.slidespan1.style.pixelWidth+2;f65();hf0(muted_now);print_win.speed2.onclick=function(){V7N(-1)};print_win.speed3.onclick=function(){V7N(1)};Q08();grY();N8B()}function cart_hit(){W9K()}function vcart_hit(){v3C(1)}function copy_hit(U7t){if(!Bg1)pause_play_hit();if(!document.execCommand){print_win.document.getElementById('download1').style.display='';return}jcd=(U7t?1:0);if(!U7t){print_win.document.copyit1.location.href(print_win.lgpic1.src);show_save(10)}}function show_save(IE1){if(print_win.copyit1.document.readyState=="complete"){print_win.copyit1.document.execCommand("SaveAs",false);return}if(IE1--<=0)print_win.document.getElementById('download1').style.display='';else window.setTimeout("show_save("+IE1+")",100)}function max_reduce_hit(){V41=!V41;var T64=ThV[cur_show][num][2];var MJ4=ThV[cur_show][num][3];var max_w=V41?print_w:Math.min(print_w,pv6);var max_h=V41?print_h:Math.min(print_h,Wdt);if(T64>max_w||MJ4>max_h){var w15=Math.max(T64/max_w,MJ4/max_h);if(w15){T64/=w15;MJ4/=w15}}print_win.overflowdiv1.style.overflow=(V41?'scroll':'hidden');print_win.lgpic1.style.width=T64;print_win.lgpic1.style.height=MJ4;Sj3()}function Sj3(){print_win.maxreduce2.innerText=(V41?' Reduce':'Maximize');print_win.maxreduce1.title=(V41?'Scale image to fit in window':'Maximize image with scrollbars')}function Q08(){if(print_win&&!print_win.closed){print_win.pauseplay1.style.display=(Bg1?'':'none');print_win.pauseplay3.style.display=(Bg1?'none':'')}}function test_music(){if(audiop.url=='')return;var yd7=audiop.network.bufferingProgress;if(yd7-dyn>=6)return;yd7-=dyn;Wn4=(yd7<=0?10:Math.round(10/yd7));muted_now=0;mute_hit();musicwarn1.style.display=''}function y4r(stop){musicmess1.innerHTML=(stop?'<span style="height:14;font:7pt;margin:2 0 -2 6" class=linc><b>Resume music download</b></span>':'Stop music download');musicwarn1.title=(!stop?'Click to stop downloading music file':(Wn4?'Music download may take more than '+Wn4+' minutes\n':'')+'Click to resume downloading music file');buffer1.style.visibility=(stop?'hidden':'visible')}function updateBuffer(){if(audiop.url==''){clearBuffer();return}if(dyn==-1&&audiop.network.bufferingProgress){dyn=audiop.network.bufferingProgress;window.setTimeout("test_music()",6000)}var yd7=audiop.network.downloadProgress;buffer1.style.visibility='visible';buffprog1.style.width=Math.min(Math.floor(yd7*1.4),140);musicmess1.innerText='Stop music download ('+yd7+'%)'}function clearBuffer(D0r){window.clearInterval(buffInt);buffer1.style.visibility='hidden';if(D0r)musicwarn1.style.display='none'}function destroy_win(){if(I79){I79--;return}if(onGPWeb){put_lastff_cookie();if(!u8R)put_volume_cookie()}if(FaO&&!FaO.closed)FaO.close();if(print_win&&!print_win.closed)print_win.close();if(Die&&!Die.closed)Die.close();window.clearInterval(buffInt)}function FsW(){if(!B7E&&!Bg1)pause_play_hit();if(FaO&&!FaO.closed)FaO.close();FaO=window.open('comments.html','',"left="+(document.body.clientWidth/2-200)+",top="+(document.body.clientHeight/2-250)+",menubar=0,scrollbars=0,resizable=0,toolbar=0,width=400,height=500")}function setWait(iXJ,P2L,SKm){if(!M97){if(SKm){print_win.loadmsg1.innerText=iXJ;print_win.loading1.style.display='';return}print_win.load1.style.display='';return}if(document.body.style.cursor=='wait'&&!P2L)return;i09=(P2L?true:false);document.body.style.cursor='wait';loadmsg1.innerText=iXJ;loading1.style.display=''}function clearWait(qUe){window.clearTimeout(tW4);if(print_win&&!print_win.closed){print_win.load1.style.display='none';print_win.loading1.style.display='none'}if(!M97){return}if(i09&&!qUe)return;i09=false;document.body.style.cursor='';loading1.style.display='none'}function i63(el,x1g){var C7R=0;var dfU=(x1g?print_win.document.getElementById(el):document.getElementById(el));while(dfU){C7R+=dfU.offsetTop;dfU=dfU.offsetParent}return C7R-0}function oPc(el,x1g){var C7R=0;var dfU=(x1g?print_win.document.getElementById(el):document.getElementById(el));while(dfU){C7R+=dfU.offsetLeft;dfU=dfU.offsetParent}return C7R-0}function update_mute_volume(){if(jQ9){N6E();f65();hf0(eval(M97?'player':'print_win.player').settings.mute)}}function mute_hit(ha3){if(lY5&&!ha3)return;atB=0;if(!jQ9)muted_now=!muted_now;hf0(jQ9?!eval(M97?'player':'print_win.player').settings.mute:muted_now,1)}function hf0(J8R,reset){mute1.src=(J8R?soundoff.src:soundon.src);mute1.title=(J8R?'Play music':'Stop music');if(jQ9)eval(M97?'player':'print_win.player').settings.mute=J8R;else if(reset){if(J8R&&audiop.playState==3)audiop.controls.pause();else if(!J8R&&audiop.playState==2)audiop.controls.play();else audiop.url=(J8R?'':music_file);h40=false}y4r(J8R);slidespan1.style.visibility=(!J8R?'visible':'hidden');if(print_win&&!print_win.closed){print_win.mute1.src=(J8R?'widget/muteon_white.gif':'widget/muteoff_white.gif');print_win.mute1.title=(J8R?'Play music':'Stop music');print_win.slidespan1.style.visibility=(!J8R?'visible':'hidden')}}function move_slider(x1g){var x=(x1g?print_win.event.clientX:event.clientX);if(x>=(x1g?vR3+3:p61+3)&&x<=(x1g?k2U-2:C7A-2))eval(x1g?'print_win.slider1':'slider1').style.pixelLeft=x-7;if(jQ9)eval(M97?'player':'print_win.player').settings.volume=(x-(x1g?vR3:p61))*4;else audiop.settings.volume=(x-(x1g?vR3:p61))*4;if(x1g)N6E();else f65()}function N6E(){slider1.style.pixelLeft=p61+(jQ9?eval(M97?'player':'print_win.player').settings.volume/4:audiop.settings.volume/4)-7;slider1.style.pixelTop=i63("slidespan1")+5}function f65(){if(print_win&&!print_win.closed){print_win.slider1.style.pixelLeft=vR3+(jQ9?eval(M97?'player':'print_win.player').settings.volume/4:audiop.settings.volume/4)-7;print_win.slider1.style.pixelTop=i63("slidespan1",1)+4}}function iconHigh(element,V9s,source){element.style.backgroundColor=(V9s?(M97?gpMenuHighlight:'#0033ff'):'');if(source)element.src=source.src}function preload_images(){next=MC4(bdir+'/widget/next.gif');Qv6=MC4(bdir+'/widget/prev.gif');soundon=MC4(bdir+'/widget/muteoff.gif');soundoff=MC4(bdir+'/widget/muteon.gif');UB9=MC4(bdir+'/widget/slider14.gif');tQ4=MC4(bdir+'/widget/ffshared.gif');RC1=MC4(bdir+'/widget/new_image.gif');UUD=MC4(bdir+'/widget/speedup.gif');i9Y=MC4(bdir+'/widget/speeddn.gif');cOT=MC4(bdir+'/widget/closefull.gif');o47=MC4(bdir+'/widget/closefull_hover.gif')}function CiG(R18){var Ch6=new Array();for(var rx3=0;rx3<R18.length;rx3++){var oU2=R18[rx3];Ch6[rx3]=[ oU2[2]+(oU2[2]&&oU2[3]?': ':'')+oU2[3]+(oU2[15]?'*':''),'window.location="'+oU2[1]+'"' ]}return Ch6}function init_it(){var R18=build_pf_array();if(R18.length&&(!onGPWeb||enable_other_shows)){pflist1.innerText=pf_list_title;ffchoose1.style.display='';qo5=new GPMenu(0,CiG(R18))}ownertitle1.innerText='by '+web_owner;ownertitle1.style.display=(web_owner?'':'none');title1.innerText=web_title;document.title='FlyingPhoto Web Slideshow - - '+web_title+(web_owner?' by '+web_owner:'')+' - ';p61=oPc("slidespan1")-2;C7A=p61+slidespan1.style.pixelWidth+2;loading1.style.pixelTop=230;loading1.style.pixelLeft=(700-loading1.style.pixelWidth)/2;ji5=av1.style.pixelHeight;av1.style.pixelTop=i63("maintr1");window.setTimeout("init_it_2()",5)}function init_it_2(){av1.onscroll=function(){ebG()};thumbshow1.onclick=function(){thumb_show_hit()};newaction1.onclick=function(){D98();RQC(AMu?1:0,1)};cart1.onclick=function(){v3C(0)};cart1.title='Click to print or download high-quality copies';cart3.onclick=function(){W9K()};cart4.innerText='Add to '+N8x.replace(/^_/,'');anotherFF1.onclick=function(){qo5.activate(oPc("anotherFF1")+5,i63("anotherFF1")+26,40)};fullslide1.onclick=function(){std_prt_view(0)};vcomm1.onclick=function(){FsW()};cartrem1.onclick=function(){W9K()};phome1.onclick=function(){hK1()};downzip1.onclick=function(){f35()};digibug1.onclick=function(){imN()};ziptr1.style.display=(onGPWeb?'':'none');digibugtr1.style.display=(onGPWeb&&digibug_url?'':'none');backto1.onclick=function(){VJq()};pauseplay1.onclick=function(){pause_play_hit()};speed2.onclick=function(){V7N(-1)};speed3.onclick=function(){V7N(1)};speed2.src=UUD.src;speed3.src=i9Y.src;grY();prev1.onclick=function(){prev_hit()};next1.onclick=function(){next_hit()};mute1.onclick=function(){mute_hit()};slider1.onmousedown=function(){slide_on=true};slider1.onmousemove=function(){if(slide_on)move_slider()};slider1.onmouseup=function(){slide_on=false};musicwarn1.onclick=function(){muted_now=(audiop.url=='');mute_hit()};slider1.src=UB9.src;bigmark1.src=RC1.src;mute1.src=soundon.src;mute1.title='Mute sound';K9X=(icon_file?icon_file:tQ4.src);aLo();if(pic_array.length==0){fulltr1.style.display='none';thumbtr1.style.display='none';showtr1.style.display='none';img1.innerHTML='There are no images in this slideshow'}if(onGPWeb&&enable_comments){commtr1.style.display=''}if(!onGPWeb){actiontr1.style.display='none'}if(audiop.controls==null||!music_file){mute1.style.display='none';slidespan1.style.display='none';speed1.style.marginLeft=74}else{u8R=false;audiop.settings.volume=(onGPWeb?get_volume_cookie():30);audiop.settings.setMode('loop',true);N6E()}d3s();if(localv){player.style.width=480;player.style.height=420}for(var i=0;i<pic_array.length;i++)pic_array[i][6]=';'+pic_array[i][6]+';';is8();md3=(h3y.length<4);category1.style.display=(md3?'none':'');D98();newtr1.style.display=(new_index<pic_array.length-1?'':'none');if(enable_other_shows&&enable_comments)titletd.style.pixelHeight=1;N8B();var GDA=comment_array.length;comment1.innerText='View comments '+(GDA?'('+GDA+')':'');if(onGPWeb&&aol&&!get_not_again_cookie()){lY5=true;splashbox1.style.visibility='visible';splashbox1.style.filter=RtO;TOY=window.setTimeout("clear_splash()",18000)}i74();av1.style.display='';GP1();N18=true}function clear_splash(){window.clearTimeout(TOY);splashbox1.filters[0].apply();splashbox1.style.visibility='hidden';splashbox1.filters[0].play();if(!u8R&&!B7E&&Bg1){pause_play_hit()}lY5=0}function N8B(){if(!onGPWeb)return;var iXJ=(ThV[h3y.length-1].length?' ('+ThV[h3y.length-1].length:' (0')+')';cart2.innerText='View '+N8x.replace(/^_/,'')+iXJ;if(print_win&&!print_win.closed)print_win.pcart1.innerText='View cart'+iXJ}function D98(){totalnew1.innerHTML=(AMu?"Just what's new"+(new_index<pic_array.length-1?' ('+(pic_array.length-1-new_index)+')':''):'All the photos');newaction1.title=(AMu?'View new photos':'View the entire Web Slideshow');AMu=(AMu?0:1)}function d3s(clear){maintd1.style.filter=(clear?'':RtO);captd1.style.filter=(clear?'':RtO);if(print_win&&!print_win.closed){print_win.maintd1.style.filter=(clear?'':RtO);print_win.captd1.style.filter=(clear?'':RtO)}}function MC4(img,ea1){var R18=new Image();R18.onerror=function(){qFo(ea1)};R18.src=img;return R18}function qFo(ea1){if(!ea1)return;if(ea1==1)s4F=1;else if(ea1==2)y7N=1;else UN1=1}function i74(){var K4u=false;var F32=null;var q88=location.search.match(new RegExp("album=([^&]+)"));if(q88&&q88[1])F32=unescape(q88[1]);if(F32){for(var R18=0;R18<h3y.length&&!K4u;R18++)if(F32==h3y[R18].name){e5i=R18;K4u=true}}B7E=(location.search.match(new RegExp("thumbs="))?1:0);RQC(0);cur_show=iPW[e5i];set_view(cur_show,num,B7E)}function is8(){var nL0=0;var C03=xdR(0,g93);if(C03)h3y[nL0++]={name:g93,leaf:0};if(show_array[0]){var R5o=[];for(var d7L=0;d7L<show_array.length;d7L++){var Pt1=show_array[d7L].replace(/^_/,'').split(new RegExp("\/"));for(var MJ4=0;MJ4<R5o.length-1;MJ4++){if(Pt1[MJ4]!=R5o[MJ4])break;if(MJ4>=Pt1.length-1)break}var c92='';for(var U5f=0;U5f<MJ4;U5f++)c92+=Pt1[U5f]+'/';for(U5f=MJ4;U5f<Pt1.length;U5f++){var s82=c92+Pt1[U5f];if(xdR(nL0,s82))h3y[nL0++]={name:s82,leaf:(U5f<Pt1.length-1?0:1)};c92=s82+'/'}R5o=Pt1}}h3y[nL0]={name:kKy,leaf:1};ThV[nL0]=new Array();var NpQ=[];for(var i=0;i<h3y.length-1;i++)NpQ[i]=i;f7l[0]={name:web_title,albums:NpQ,icon:K9X};f7l[1]={name:kKy.replace(/^_/,''),albums:[h3y.length-1],icon:K9X};h3y[++nL0]={name:N8x,leaf:1};ThV[nL0]=new Array();f7l[2]={name:N8x.replace(/^_/,''),albums:[h3y.length-1],icon:K9X}}function xdR(d7L,s82){var MJ4=0;ThV[d7L]=new Array();s82=s82.replace(/[\\\|\(\)\[\{\^\$\*\+\?\.\]\}]/g,'\\$&');var K55=';'+s82+'(\\[(\\d+)\\])?;';for(var i=0;i<pic_array.length;i++){if(pic_array[i][6].match(K55)){ThV[d7L][MJ4]=pic_array[i];ThV[d7L][MJ4][8]=RegExp.$2||10000;ThV[d7L][MJ4++][9]=i}}if(ThV[d7L].length){ThV[d7L].sort(nb6);return 1}ThV[d7L]=null;return 0}function W9K(){var D6D=0;var w74=1;if(B7E){for(var rx3=qS8.length-1;rx3>=0;rx3--)if(qS8[rx3][4]){w74=0;D6D+=bH0(rx3)}}else D6D=bH0(num);N8B();clear_all();if(ejv){if(D6D){set_view(h3y.length-1,(B7E?0:D6D-1),B7E)}else alert('No images are selected. Click on images to select them first.');return}if(D6D){setWait('Adding photo'+(D6D>1?'s':'')+' to\n"'+N8x.replace(/^_/,'')+'"',1,1);window.setTimeout("clearWait(1)",1500)}else if(B7E&&w74)alert('No images are selected. Click on images to select them first.')}function bH0(rx3){var k8W=h3y.length-1;if(ejv){if(ThV[k8W].length){var j5n=ThV[k8W][rx3][9];for(var i=0;i<ThV[k8W].length;i++)if(ThV[k8W][i][9]==j5n){ThV[k8W]=ThV[k8W].slice(0,i).concat(ThV[k8W].slice(i+1));return(i<ThV[k8W].length?i:(i?i-1:0))+1}}return 0}if(ThV[cur_show].length){var j5n=(B7E?ThV[qS8[rx3][0]][qS8[rx3][1]][9]:ThV[cur_show][num][9]);for(var i=0;i<ThV[k8W].length;i++)if(ThV[k8W][i][9]==j5n)return 0;ThV[k8W][ThV[k8W].length]=pic_array[j5n];return 1}}function GP1(){var mH1=h3y.length-2;for(var i=new_index+1;i<pic_array.length;i++)ThV[mH1][ThV[mH1].length]=pic_array[i]}function n34(){cart3.title='Add '+(!B7E?'photo':'selected')+' to the '+N8x.replace(/^_/,'')+'\nto print or download';viewtr1.style.display=(ejv?'none':'');actiontr1.style.display=(ejv||!onGPWeb?'none':'');onboxtr1.style.display=(ejv?'':'none')}function b1t(R18,g30){var II7,R04,w6m,b8s;R04=R18.match(/([^-]*)-([^-]*)-([^-]*)/);II7=new Date((R04[3]<50?R04[3]+2000:R04[3]),R04[1],R04[2]);b8s=g30.match(/([^-]*)-([^-]*)-([^-]*)/);w6m=new Date((b8s[3]<50?b8s[3]+2000:b8s[3]),b8s[1],b8s[2]);return II7.getTime()-w6m.getTime()}function m3e(R18,g30){return R18<g30?-1:R18>g30?1:0}function v2C(R18,g30){var i=b1t(g30[5],R18[5]);return i==0?m3e(R18[1],g30[1]):i}function nb6(R18,g30){var T23;T23=R18[8]-g30[8];return T23==0?m3e(R18[1],g30[1]):T23}function aLo(){pauseplay4.innerHTML=(Bg1?'Resume show <span style="font-size:7pt" class="linc"><b>&nbsp;(paused)</b></span>':'Pause slideshow');pauseplay1.title=(Bg1?'Resume the slideshow':'Pause the slideshow')}function pause_play_hit(){o73=0;if(jQ9)return;Bg1=(Bg1?0:1);aLo();Q08();if(!u8R&&((Bg1&&!muted_now)||(!Bg1&&muted_now&&h40))){mute_hit(1);h40=true}if(Bg1)window.clearTimeout(T60);else if(!lY5){setWait('Loading photo...');Wfk(t6f[2],t6f[3])}}function thumb_show_hit(){if(B7E){if(ThV[cur_show].length)setWait('Loading slideshow'+(!u8R?'\nwith background music...':'...'));set_view(cur_show,num,0)}else set_view(cur_show,num,1)}function next_hit(){window.clearTimeout(T60);window.clearTimeout(tW4);if(jQ9)set_view(t6f[2],t6f[3],0);else if(B7E==0){tW4=window.setTimeout("setWait('Loading photo...')",500);eval(M97?'cap1':'print_win.cap1').innerHTML='&nbsp;';Wfk(t6f[2],t6f[3])}else{r09();P4F(t6f[2]);num=t6f[3];r3h()}}function prev_hit(){window.clearTimeout(T60);window.clearTimeout(tW4);if(jQ9)set_view(t6f[0],t6f[1],0);else if(B7E==0){tW4=window.setTimeout("setWait('Loading photo...')",500);eval(M97?'cap1':'print_win.cap1').innerHTML='&nbsp;';Wfk(t6f[0],t6f[1])}else{r09();P4F(t6f[0]);num=t6f[1];r3h()}}function O7s(){vx5=(h3y[cur_show].name!=g93?h3y[cur_show].name.replace(/^_/,""):'');category1.innerText=(vx5?'- '+vx5+' -':'');if(print_win&&!print_win.closed&&!md3)print_win.status=web_title+(vx5?': '+vx5:'')}function P4F(show){if(show==cur_show)return;cur_show=show;for(var i=0;i<iPW.length;i++)if(iPW[i]==show){e5i=i;break}O7s()}function v3C(B24){DEn=(B24?1:0);if(!M97)destroy_prt();je1=B7E;m13=num;p5e=cur_show;B7E=1;RQC(2,1)}function VJq(ha3){I79=0;RQC(AMu?1:0);set_view(p5e,m13,je1);if((DEn&&print_win&&!print_win.closed)||ha3)std_prt_view(0);DEn=0}function RQC(U3o,reset){var B35=f7l[U3o];if(B35.albums!=iPW||!N18){qE2=B35.name;iPW=B35.albums;window.clearTimeout(T60);if(reset){e5i=0;set_view(iPW[e5i],0,B7E)}}}function W32(stop){var lCE=0;for(var d7L=0;d7L<iPW.length&&iPW[d7L]!=stop;d7L++)lCE+=ThV[iPW[d7L]].length;return lCE}function Yp7(cell){if(!ejv)set_view(qS8[cell][0],qS8[cell][1],0,1)}function set_view(jJH,I3g,Y46,R6G){if(pic_array.length==0){DAD();Un8();return}ejv=(jJH==h3y.length-1);p55();num=I3g;B7E=Y46;cur_show=jJH;n34();thumbshow1.title=(Y46?'View as a slideshow':'Return to thumbnails');thumbshow2.innerText=(Y46?'As a slideshow':'As thumbnails');Ow1=-1;window.clearInterval(KE2);window.clearInterval(So0);window.clearInterval(Dbr);window.clearTimeout(T60);O7s();if(B7E==0){if(R6G&&!Bg1)pause_play_hit();DAD();if(lY5&&!Bg1)pause_play_hit();setWait('Loading slideshow'+(!u8R?'\nwith background music...':'...'));x78=null;s4F=0;DJV=null;UN1=0;jcd=0;if(ThV[jJH].length==0){Un8();return}eval(M97?'cap1':'print_win.cap1').innerHTML='&nbsp;';Wfk(jJH,num);if(M97)KE2=window.setInterval("check_big_q()",100);else So0=window.setInterval("check_prt_q()",100)}else{H42=null;m73.length=0;Dbr=window.setInterval("check_thumb_q()",20);T60=window.setTimeout("stack_view()",10)}}function DAD(){avtbl1.style.display='none';vid1.style.display='none';ivtbl1.style.display='';img1.style.display='';if(!u8R){if(!muted_now&&!Bg1&&audiop.playState!=3){if(audiop.playState==2)audiop.controls.play();else audiop.url=music_file}N6E()}slidespan1.style.visibility=(!muted_now?'visible':'hidden');showcontrol1.style.visibility='visible'}function stack_view(){if(!u8R){if(audiop.playState==3)audiop.controls.pause();else audiop.url=''}clearBuffer();ivtbl1.style.display='none';avtbl1.style.display='';showcontrol1.style.visibility='hidden';slidespan1.style.visibility='hidden';if(C52!=iPW||ejv){C52=iPW;E60()}r3h();clearWait()}function V39(cell){if(IJ0)U30(A99[qS8[cell][2]].offtop)}function U30(d88){if(av1.scrollTop>d88-40)av1.scrollTop=d88-50;else if(av1.scrollTop<d88-ji5+146+30)av1.scrollTop=d88-ji5+146+40;ebG()}function x3j(V9s){if(V9s)V39(E6y);if(typeof(document.all["cell"+E6y])!='undefined'&&IJ0&&eval("cell"+E6y)!=null&&A99[qS8[E6y][2]].displayed){eval("cell"+E6y).style.border=(V9s?'2 solid black':'');eval("cell"+E6y).style.padding=(V9s?0:2)}}function r3h(){x3j(0);E6y=W32(cur_show)+num;x3j(1)}function n76(rx3){P4F(qS8[rx3][0]);num=qS8[rx3][1];bm1(rx3)}function bm1(q7T){r3h();if(window.event&&event.shiftKey&&Ow1>=0){var u6H=[Ow1,E6y].sort(m3e);for(var rx3=u6H[1];rx3>=u6H[0];rx3--)d0V(rx3,1)}else if(eval("cell"+q7T).style.backgroundColor==e4d[0]){d0V(q7T,1);Ow1=q7T}else d0V(q7T,0)}function d0V(rx3,V9s){eval("cell"+rx3).style.backgroundColor=e4d[(V9s?1:0)];qS8[rx3][4]=(V9s?1:0)}function clear_all(){for(var rx3=0;rx3<qS8.length;rx3++)if(A99[qS8[rx3][2]].displayed&&eval("cell"+rx3).style.backgroundColor==e4d[1])d0V(rx3,0);Ow1=-1}function cs0(oo4){var tr2=e5i;for(var i=0;i<iPW.length;i++){tr2=(oo4?(tr2+1<iPW.length?tr2+1:0):(tr2-1<0?iPW.length-1:tr2-1));if(ThV[iPW[tr2]].length)return tr2}return e5i}function Un8(){clearWait();d3s(1);if(!muted_now)mute_hit();img1.innerHTML=(!AMu?'There are no photos to display.':'<div style="font:10pt">There are no new photos to display.<br><br>Click "All the photos" under "View..."<br>to return to the photos.</div>');dat1.innerHTML='';cap1.innerHTML='&nbsp;';count1.innerText='';if(print_win&&!print_win.closed){print_win.img1.innerHTML=(!AMu?'There are no photos to display.':'<div style="font:10pt">There are no new photos to display.<br><br>Click on "Back" above.</div>');print_win.dat1.innerHTML='';print_win.cap1.innerHTML='&nbsp;';print_win.count1.innerText=''}}function r09(){if(num!=0){t6f[0]=cur_show;t6f[1]=num-1}else{t6f[0]=iPW[cs0(0)];t6f[1]=ThV[t6f[0]].length-1}if(num!=ThV[cur_show].length-1){t6f[2]=cur_show;t6f[3]=num+1}else{var Ev2=cs0(1);t6f[2]=iPW[Ev2];t6f[3]=0;if(Ev2==0&&++o73>=oF8&&!Bg1)pause_play_hit()}}function Q1h(){if(B9V.length==0)return;DJV=MC4(prints_path+ThV[B9V[0]][B9V[1]][1],3);B9V.length=0}function check_prt_q(){if(!DJV){Q1h()}if(delay_print==0){if(!UN1&&(!DJV||!DJV.complete))return;if(p4o.length==0){if(B9V.length==0)d8d()}else if(!Bg1||UN1){UN1=0;WHB(p4o[0],p4o[1]);p4o.length=0;d8d(1)}Q1h()}}function O9n(K55){return K55.replace(new RegExp("(\\S{50})","g"),"$1 ")}function d8d(s84){var Y57=[0,0];window.clearTimeout(T60);d3s();if(s84&&!V41){print_win.maintd1.filters[0].apply();print_win.captd1.filters[0].apply()}var T64=ThV[cur_show][num][2];var MJ4=ThV[cur_show][num][3];var max_w=V41?print_w:Math.min(print_w,pv6);var max_h=V41?print_h:Math.min(print_h,Wdt);if(T64>max_w||MJ4>max_h){var w15=Math.max(T64/max_w,MJ4/max_h);if(w15){T64/=w15;MJ4/=w15}}delay_print=1;p4o=[ t6f[2],t6f[3] ];print_win.img1.innerHTML='<img style="border:solid black 2px;cursor:hand" id=lgpic1 src="'+DJV.src+'" width='+T64+' height='+MJ4+(ThV[cur_show][num][0]==''?'':' onclick="opener.play_video('+cur_show+','+num+')" title="click to play video"')+' onload="opener.do_prt_timeout()" onerror="opener.delay_print=0" ondblclick="opener.std_prt_view(1)">';B9V=[ t6f[2],t6f[3] ];DJV=null;print_win.bigmark1.style.top=i63('img1',1)+3;print_win.bigmark1.style.left=oPc('img1',1)+(T64-0)-16;print_win.bigmark1.style.display=(ThV[cur_show][num][9]<=new_index||V41?'none':'');print_win.cap1.innerHTML=(ThV[cur_show][num][4]!=''?O9n(ThV[cur_show][num][4]):'&nbsp;');print_win.dat1.innerHTML=ThV[cur_show][num][5];print_win.count1.innerText=(W32(cur_show)+num+1)+" of "+W32();if(s84&&!V41){print_win.maintd1.filters[0].play();print_win.captd1.filters[0].play()}print_win.speed1.innerText='Pause';if(jcd){jcd=0;print_win.document.copyit1.location.href(print_win.lgpic1.src);show_save(100)}}function do_prt_timeout(){clearWait();if(!Bg1)T60=window.setTimeout("delay_print=0",PIA)}function ac6(){if(oF2.length==0||lY5)return;x78=MC4(slides_path+ThV[oF2[0]][oF2[1]][1],1);oF2.length=0}function check_big_q(){if(!x78){ac6()}if(delay_display==0){if(!s4F&&(!x78||!x78.complete))return;if(Gj4.length==0){if(oF2.length==0)M7p()}else if(!Bg1||s4F){s4F=0;WHB(Gj4[0],Gj4[1]);Gj4.length=0;M7p(1)}ac6()}}function Wfk(d7L,tfT){if(ThV[cur_show].length==0){clearWait();return}if(M97){delay_display=0;Gj4.length=0;WHB(d7L,tfT);oF2=[ d7L,tfT ]}else{delay_print=0;p4o.length=0;WHB(d7L,tfT);B9V=[ d7L,tfT ]}}function WHB(yA6,W12){num=W12;P4F(yA6);if(ThV[cur_show].length==0){Un8();return}r09()}function M7p(s84){window.clearTimeout(T60);d3s();if(s84){maintd1.filters[0].apply();captd1.filters[0].apply()}var g15=ThV[cur_show][num][2];var FLq=ThV[cur_show][num][3];if(g15>slide_w||FLq>slide_h){var w15=Math.max(g15/slide_w,FLq/slide_h);if(w15){g15/=w15;FLq/=w15}}delay_display=1;Gj4=[ t6f[2],t6f[3] ];img1.innerHTML='<img style="border:2 outset;cursor:hand" id=lgpic1 width='+g15+' height='+FLq+' onload="do_timeout()" onerror="delay_display=0"'+(ThV[cur_show][num][0]==''?' ondblclick="std_prt_view(0)">':' onclick="play_video('+cur_show+','+num+')" title="click to play video">');lgpic1.src=x78.src;oF2=[ t6f[2],t6f[3] ];x78=null;bigmark1.style.top=i63('img1')+3;bigmark1.style.left=oPc('img1')+350+g15/2-18-20;bigmark1.style.display=(ThV[cur_show][num][9]<=new_index?'none':'');cap1.innerHTML=(ThV[cur_show][num][4]!=''?O9n(ThV[cur_show][num][4]):'&nbsp;');dat1.innerHTML=ThV[cur_show][num][5];count1.innerText=(W32(cur_show)+num+1)+" of "+W32();if(s84){maintd1.filters[0].play();captd1.filters[0].play()}speed1.innerText='speed:'}function do_timeout(){clearWait();if(!Bg1)T60=window.setTimeout("delay_display=0",PIA)}function E60(){var Je4=0;var Rg5=0;var Kf8=2;V5O=new Array();A99=new Array();qS8=new Array();av1.innerHTML='';var abd='<table align=center border=0 cellpadding=2 cellspacing=2 style="background-color:#e0e0e0">';for(cs=0;cs<iPW.length;cs++){var r59=iPW[cs];O5t=h3y[r59].name;if(AMu||iPW.length>1||O5t!=g93){abd+='<tr style="height:27;background-color:#ffffff;font:8pt" nowrap><td align=left style="margin:0;border-color:#0066cc red threedshadow red;border-width:3 0 2 0;border-style:solid" colspan='+qt1+'><span style="height:18;white-space:nowrap;margin:2 0 -2 7">'+(h3y[r59].name==g93?'':(AMu?qE2:O5t.replace(/^_/,'')))+'</span>';Kf8+=27+I1h}var col=qt1;if(ThV[r59].length){for(var C98=0;C98<ThV[r59].length;C98+=qt1){var numb=Math.min(qt1,ThV[r59].length-C98);abd+='<tr id=trow'+Je4+'><td style="background-color:'+e4d[0]+';height:146" colspan='+qt1+'>';A99[Je4++]={cs:r59,displayed:0,numb:numb,cell:Rg5,offtop:Kf8};for(var i=0;i<numb;i++){V5O[Rg5]=0;qS8[Rg5++]=[r59,C98+i,Je4-1,i,0]}Kf8+=146+I1h}abd+='<tr><td colspan='+qt1+' style="font:0;height:1">';Kf8+=1+I1h}else{abd+='<tr><td  align=center valign=center colspan='+qt1+' style="padding:0 20;font:10pt;height:400">'+(cur_show==h3y.length-1?'There are no photos in your cart.<br><br>Leave the cart then add photos to it<br>to print or download high-quality copies.':'There are no new photos to display.<br><br>Click "All the photos" under "View..."<br>to return to the photos.')}}abd+='<tr>';for(U5f=0;U5f<qt1;U5f++)abd+='<td style="font:0;height:0;width:154">';av1.innerHTML=abd+'</table>';Vl3=Kf8+I1h;av1.scrollTop=0;IJ0=Rg5}function XG5(){var l51='';for(var R18=0;R18<A99.length;R18++)l51+=R18+':'+A99[R18].offtop+' '+eval('trow'+R18).offsetTop+'\n';return l51}function wiS(w15){w15=Math.min(w15,A99.length-1);return(w15<=0?0:(Vl3-A99[w15].offtop+146+30>ji5?w15:wiS(w15-1)))}function c22(){var AX8=av1.scrollTop;for(var w15=1;w15<A99.length;w15++)if(A99[w15].offtop+25>AX8)return w15-1;return wiS(A99.length-1)}function y8c(lF3){var AX8=av1.scrollTop;for(var w15=A99.length-1;w15>lF3;w15--)if(A99[w15].offtop<AX8+ji5+10)return w15;return lF3}function ebG(){var b4U=c22();var M6n=y8c(b4U);window.clearInterval(Dbr);for(var w15=M6n;w15>=b4U;w15--){if(!A99[w15].displayed){var cs=A99[w15].cs;var pFW=A99[w15].numb;var Rg5=A99[w15].cell;var Osi=A99[w15].offtop;abd='';var U5f=qS8[Rg5][1];eval("trow"+w15).deleteCell();for(var As2=0;As2<pFW;As2++){var cel=eval("trow"+w15).insertCell();cel.id="cell"+Rg5;cel.style.cssText='width:154;height:146;white-space:nowrap;background-color:'+(qS8[Rg5][4]?e4d[1]:e4d[0]);cel.align='center';cel.vAlign='bottom';cel.onclick=function(){event.cancelBubble=true;n76(this.id.replace(/cell/,'')-0)};cel.ondblclick=function(){Yp7(this.id.replace(/cell/,'')-0)};cel.title="double-click to enlarge\nand view as a slideshow";var cga=ThV[cs][U5f+As2];var g15=cga[2];var FLq=cga[3];var H8e=Math.max(g15/144,FLq/108);if(H8e){g15/=H8e;FLq/=H8e}cel.innerHTML=(cga[9]<=new_index?'':'<img src='+RC1.src+' style="position:absolute;top:'+(Osi+2)+';left:'+(160*(As2+1)-21)+';width:18;height:18">')+'<img style="border:1 solid navy;cursor:hand" id=thimg'+Rg5+' width='+g15+' height='+FLq+'><br><span style="margin:6 0 2 0;height:18;width:146;font:8pt;white-space:nowrap;text-overflow:ellipsis;overflow:hidden">'+(cga[4]==''?'<br>':cga[4])+'</span>';Rg5++}if(pFW<qt1){cel=eval("trow"+w15).insertCell();cel.style.cssText='height:146;white-space:nowrap;background-color:""';cel.colSpan=qt1-pFW}A99[w15].displayed=1}g96(w15)}Dbr=window.setInterval("check_thumb_q()",20)}function g96(w15){var pFW=A99[w15].numb;var Rg5=A99[w15].cell;for(var rx3=Rg5+pFW-1;rx3>=Rg5;rx3--){if(!V5O[rx3])m73[m73.length]=rx3}}function IJ4(){if(m73.length==0)return;qQ1=m73[m73.length-1];H42=MC4(adir+'/'+thumbs_path+ThV[qS8[qQ1][0]][qS8[qQ1][1]][1],2);m73.length--}function check_thumb_q(){if(y7N||(H42&&H42.complete)){V5O[qQ1]=1;eval("thimg"+qQ1).src=(y7N?null:H42.src);y7N=0;H42=null}if(!H42)IJ4()}function V7N(P4Y){PIA=PIA+1000*P4Y;PIA=PIA>9000?9000:(PIA<1000?1000:PIA);speed1.innerText=PIA/1000+' secs';if(print_win&&!print_win.closed)print_win.speed1.innerText=PIA/1000+' secs';grY()}function grY(){speed2.title='speed up slideshow\ndisplay time: '+PIA/1000+' secs';speed3.title='slow down slideshow\ndisplay time: '+PIA/1000+' secs';if(print_win&&!print_win.closed){print_win.speed2.title='speed up slideshow\ndisplay time: '+PIA/1000+' secs';print_win.speed3.title='slow down slideshow\ndisplay time: '+PIA/1000+' secs'}}function play_video(jJH,U5f){window.clearTimeout(T60);cur_show=jJH;num=U5f;r09();if(player.controls==null)alert('Windows media player is either not installed\nor is an old version.\nGo to www.microsoft.com for a free download of the latest version.');else{if(M97)avtbl1.style.display='none';eval(M97?'img1':'print_win.img1').style.display='none';eval(M97?'vid1':'print_win.vid1').style.display='';eval(M97?'player':'print_win.player').stretchToFit=localv;atB=0;if(u8R){eval(M97?'mute1':'print_win.mute1').style.display='';eval(M97?'slidespan1':'print_win.slidespan1').style.display='';if(M97)speed1.style.marginLeft=8}else if(audiop.playState==3){audiop.controls.pause();atB=1}d3s(1);eval(M97?'player':'print_win.player').url=adir.replace(new RegExp("^\/\/"),'\\\\')+'/'+slides_path+ThV[cur_show][num][0];jQ9=true;ky4=window.setInterval("update_mute_volume()",300)}}function p55(){if(jQ9){jQ9=false;eval(M97?'player':'print_win.player').url='';d3s();eval(M97?'vid1':'print_win.vid1').style.display='none';eval(M97?'img1':'print_win.img1').style.display='';if(u8R){eval(M97?'mute1':'print_win.mute1').style.display='none';eval(M97?'slidespan1':'print_win.slidespan1').style.display='none';if(M97)speed1.style.marginLeft=74}else if(audiop.playState==2&&atB)audiop.controls.play();window.clearInterval(ky4);N6E();f65();hf0(muted_now)}}function yield(){}function keydown(){if(window.event==null)return;if(event.keyCode==37){prev_hit()}else if(event.keyCode==39){next_hit()}if(event.keyCode==190){alert(l51);l51=''}}function escape_html(d7L){d7L=d7L.replace(/&/g,'&amp;');d7L=d7L.replace(/</g,'&lt;');d7L=d7L.replace(/>/g,'&gt;');d7L=d7L.replace(/"/g,'&Ew4;');d7L=d7L.replace(/'/g, '&#39;');return d7L}function escape_js(d7L){return d7L.replace(/(["'@\$&\\])/g,'\\$1')}
