Mercurial > judyates
changeset 9:325fe78243c9 judyates
[svn r10] all the good stuff from my week at mom's.
line wrap: on
line diff
1.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0069.JPG has changed
2.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0160.JPG has changed
3.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0179.JPG has changed
4.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0222.JPG has changed
5.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0224.JPG has changed
6.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0273.JPG has changed
7.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0718.JPG has changed
8.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0849.JPG has changed
9.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0864.JPG has changed
10.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0899.JPG has changed
11.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0906.JPG has changed
12.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0907.JPG has changed
13.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0909.JPG has changed
14.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_0922.JPG has changed
15.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_1052.JPG has changed
16.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_1331.JPG has changed
17.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_1337.JPG has changed
18.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_1356.JPG has changed
19.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_1370.JPG has changed
20.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_1390.JPG has changed
21.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_1419.JPG has changed
22.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_1470.JPG has changed
23.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_1517.JPG has changed
24.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_1540.JPG has changed
25.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_2296.JPG has changed
26.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_4430.JPG has changed
27.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_5865.JPG has changed
28.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_6911.JPG has changed
29.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_7126.JPG has changed
30.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_7128.JPG has changed
31.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_7137.JPG has changed
32.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_7162.JPG has changed
33.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_7876.JPG has changed
34.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_7887.JPG has changed
35.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_7959.JPG has changed
36.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_7973.JPG has changed
37.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_8283.JPG has changed
38.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_8353.JPG has changed
39.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_8389.JPG has changed
40.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_9347.JPG has changed
41.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_9349.JPG has changed
42.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_9790.JPG has changed
43.1 Binary file e2gallerypro/e2upload/Galleries/photos/IMG_9899.JPG has changed
44.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 44.2 +++ b/e2gallerypro/e2upload/Galleries/photos/desc.txt Sun Apr 11 22:05:32 2010 -0400 44.3 @@ -0,0 +1,51 @@ 44.4 +-rw-r--r-- 1 r 3308263 2009-05-01 06:20 IMG_0069.JPG 44.5 +-rw-r--r-- 1 r 3582398 2009-05-01 06:36 IMG_0160.JPG 44.6 +-rw-r--r-- 1 r 1991556 2009-05-01 06:43 IMG_0179.JPG 44.7 +-rw-r--r-- 1 r 2862771 2009-05-01 06:58 IMG_0222.JPG 44.8 +-rw-r--r-- 1 r 2909613 2009-05-01 06:58 IMG_0224.JPG 44.9 +-rw-r--r-- 1 r 3228184 2009-05-07 10:05 IMG_0273.JPG 44.10 +-rw-r--r-- 1 r 3049115 2009-05-15 06:18 IMG_0718.JPG 44.11 +-rw-r--r-- 1 r 6571347 2009-05-22 00:28 IMG_0849.JPG 44.12 +-rw-r--r-- 1 r 3571854 2009-05-22 00:41 IMG_0864.JPG 44.13 +-rw-r--r-- 1 r 4387091 2009-05-22 01:21 IMG_0899.JPG 44.14 +-rw-r--r-- 1 r 3055570 2007-03-05 09:05 IMG_0906.JPG 44.15 +-rw-r--r-- 1 r 5166723 2009-05-22 01:56 IMG_0907.JPG 44.16 +-rw-r--r-- 1 r 2974677 2009-05-22 01:56 IMG_0909.JPG 44.17 +-rw-r--r-- 1 r 3273390 2009-05-22 02:28 IMG_0922.JPG (Turkey Surprise) 44.18 + 44.19 + After taking many photos at the nature center outside of Liberal, KS, I made a quick stop at the ladies' room before leaving. 44.20 + When I cane out, I saw a surkey about ten feet away from me! Of course, my camera was about 50 feet away in the truck. I thought, "now why didn't think to bring my camera with me?" 44.21 + It's Like with hunting--- the minute you lay your gun down, there's the deer. So I snuck out to the truck and got my camera. By then, the turkey was about 25 yards from me , but fortunately I already had my 500x zoom, so I was able to take his picture. 44.22 + 44.23 + 44.24 +-rw-r--r-- 1 r 1943555 2009-05-23 20:48 IMG_1052.JPG 44.25 +-rw-r--r-- 1 r 3396709 2009-05-24 23:54 IMG_1331.JPG 44.26 +-rw-r--r-- 1 r 3249685 2009-05-24 23:55 IMG_1337.JPG 44.27 +-rw-r--r-- 1 r 4357721 2009-05-25 00:42 IMG_1356.JPG 44.28 +-rw-r--r-- 1 r 2883541 2009-05-25 00:51 IMG_1370.JPG 44.29 +-rw-r--r-- 1 r 1838143 2009-05-25 00:58 IMG_1390.JPG 44.30 +-rw-r--r-- 1 r 5049383 2009-05-25 01:03 IMG_1419.JPG 44.31 +-rw-r--r-- 1 r 3130700 2009-05-25 01:58 IMG_1470.JPG 44.32 +-rw-r--r-- 1 r 5243121 2009-06-01 05:26 IMG_1517.JPG 44.33 +-rw-r--r-- 1 r 3660517 2009-06-01 05:28 IMG_1540.JPG 44.34 +-rw-r--r-- 1 r 3525782 2007-03-26 07:54 IMG_2296.JPG 44.35 +-rw-r--r-- 1 r 3663401 2008-09-24 22:12 IMG_4430.JPG 44.36 +-rw-r--r-- 1 r 3027809 2008-10-30 05:18 IMG_5865.JPG 44.37 +-rw-r--r-- 1 r 3981158 2009-01-18 04:30 IMG_6911.JPG 44.38 +-rw-r--r-- 1 r 3358626 2009-01-20 02:01 IMG_7126.JPG 44.39 +-rw-r--r-- 1 r 3377685 2009-01-20 02:01 IMG_7128.JPG 44.40 +-rw-r--r-- 1 r 2937382 2009-01-21 00:59 IMG_7137.JPG 44.41 +-rw-r--r-- 1 r 3037186 2009-01-21 01:07 IMG_7162.JPG 44.42 +-rw-r--r-- 1 r 3648069 2009-03-29 02:43 IMG_7876.JPG 44.43 +-rw-r--r-- 1 r 2969160 2009-03-29 02:44 IMG_7887.JPG 44.44 +-rw-r--r-- 1 r 3153592 2009-03-29 03:52 IMG_7959.JPG 44.45 +-rw-r--r-- 1 r 4091366 2009-03-29 04:08 IMG_7973.JPG 44.46 +-rw-r--r-- 1 r 4424974 2009-04-09 07:09 IMG_8283.JPG 44.47 +-rw-r--r-- 1 r 2635498 2009-04-18 02:35 IMG_8353.JPG 44.48 +-rw-r--r-- 1 r 2779559 2009-04-18 02:41 IMG_8389.JPG 44.49 +-rw-r--r-- 1 r 2989613 2009-04-23 04:15 IMG_9347.JPG 44.50 +-rw-r--r-- 1 r 2894749 2009-04-23 04:15 IMG_9349.JPG 44.51 +-rw-r--r-- 1 r 2678629 2008-03-22 21:58 IMG_9790.JPG 44.52 +-rw-r--r-- 1 r 3092499 2009-05-01 06:07 IMG_9899.JPG 44.53 +drwxr-xr-x 2 r 4096 2010-03-24 09:54 large 44.54 +drwxr-xr-x 2 r 4096 2010-03-24 09:54 thumbs
45.1 Binary file e2gallerypro/e2upload/Galleries/prints/Judy_Yates_Buffalo_Verde.jpg has changed
46.1 Binary file e2gallerypro/e2upload/Galleries/prints/Judy_Yates_Longhorn_Sunset.jpg has changed
47.1 Binary file e2gallerypro/e2upload/Galleries/prints/Judy_Yates_Turquoise_Sky.jpg has changed
48.1 Binary file e2gallerypro/e2upload/Galleries/prints/Judy_Yates_Wood_Duck_Pair.jpg has changed
49.1 Binary file e2gallerypro/e2upload/Galleries/prints/large/Judy_Yates_Buffalo_Verde.jpg has changed
50.1 Binary file e2gallerypro/e2upload/Galleries/prints/large/Judy_Yates_Longhorn_Sunset.jpg has changed
51.1 Binary file e2gallerypro/e2upload/Galleries/prints/large/Judy_Yates_Turquoise_Sky.jpg has changed
52.1 Binary file e2gallerypro/e2upload/Galleries/prints/large/Judy_Yates_Wood_Duck_Pair.jpg has changed
53.1 --- a/e2gallerypro/js/e2gallerypro.js Fri Mar 19 07:17:36 2010 -0400 53.2 +++ b/e2gallerypro/js/e2gallerypro.js Sun Apr 11 22:05:32 2010 -0400 53.3 @@ -1,1 +1,324 @@ 53.4 -var E2GalleryPro={version:"1.2"};var openclose=true;var slidesHidden=false;var imagecontainer=$("images");var busy=false;var previousid="0";var currentthumbpos=0;var showInfoType="show";var movedamount=0;var imagenumber=Number(1);var thumbnailNumberPos;var thumbSizing;var totalthumbsvisible=0;var currentThumbSpot=1;var thumbWidth=setThumbWidth;var largeHtmlIsCreated;var galleryHeight;var showThumbs="hide";var fsisopen="closed";var animatingPop=false;var moving=false;var timer;var playing=false;var prevHidden=false;var nextHidden=false;var totalNumImages;var totalNumQuicktime;var totalNumMedia;var closinggalleries=false;var currentGallery=maingalleries[0]["gallerynum"];var currentimage=0;var lastimage=maingalleries[0]["end"];var startImage=maingalleries[0]["start"];var largeIsOpen=false;function openforsale(){if(fsisopen=="open"){fsisopen="closed";var b=new Fx.Morph("fsbox",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({bottom:-277});var a=new Fx.Morph("fsclose",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0})}else{fsisopen="open";var b=new Fx.Morph("fsbox",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({bottom:-100});var a=new Fx.Morph("fsclose",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:1})}}function addImage(e){currentimage=galleryimages[e]["imgid"];filetype=galleryimages[e]["filetype"];$("imgloader").empty();$("infoloader").empty();var f="";if(galleryimages[e]["title"]){f+="<h2>"+galleryimages[e]["title"]+"</h2>";if(galleryimages[e]["forsale"]==true){f+='<div id="purchasebtn">'+purchaseprinttxt+"</div>"}}if(galleryimages[e]["description"]){f+='<span class="description">'+galleryimages[e]["description"]+"</span>";if(galleryimages[e]["forsale"]==true){f+='<div id="purchasebtn">'+purchaseprinttxt+"</div>"}}if(galleryimages[e]["copyright"]){f+='<div class="copyright"><strong>Copyright:</strong> '+galleryimages[e]["copyright"]+"</div>";if(galleryimages[e]["forsale"]==true){f+='<div id="purchasebtn">'+purchaseprinttxt+"</div>"}}if(galleryimages[e]["author"]){f+='<div class="author"><strong>Author:</strong> '+galleryimages[e]["author"]+"</div>";if(galleryimages[e]["forsale"]==true){f+='<div id="purchasebtn">'+purchaseprinttxt+"</div>"}}if(f==""){f+="<h2>No Image Information Available</h2>";if(galleryimages[e]["forsale"]==true){f+='<div id="purchasebtn">'+purchaseprinttxt+"</div>"}}$("infoloader").set("html",f);var d=new Fx.Morph("infoloader",{duration:transitionspeed});var b=new Fx.Morph("imgloader",{duration:transitionspeed,onComplete:function(){busy=false}});var g=new Fx.Morph("imgloader",{duration:transitionspeed,onComplete:function(){if(filetype=="image"){var o="<img src='"+galleryimages[e]["path"]+galleryimages[e]["src"]+"' id='imgsrc' title='"+galleryimages[e]["title"]+"' />";$("imgloader").set("html",o);b.start({opacity:1})}if(filetype=="flv"||filetype=="mp4"){fileWidth=galleryimages[e]["width"]||flashdefaultWidth;fileHeight=galleryimages[e]["height"]||flashdefaultHeight;media=new Swiff(""+NBpath+"?videoURL="+galleryimages[e]["mediaURL"]+"&allowSmoothing=true&autoPlay="+autoplay+"&buffer=6&showTimecode="+showTimecode+"&loop=true&controlColour="+controllerColor+"&scaleIfFullScreen=true&showScalingButton=false",{id:"MediaboxSWF",width:mediaWidth,height:mediaHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="mov"){var n='<object width="'+galleryimages[e]["width"]+'" height="'+galleryimages[e]["height"]+'" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"> <param name="src" value="'+galleryimages[e]["mediaURL"]+'"><param name="autoplay" value="'+autoplay+'"><param name="controller" value="true"><embed src="'+galleryimages[e]["mediaURL"]+'" width="'+galleryimages[e]["width"]+'" height="'+galleryimages[e]["height"]+'" autoplay="'+autoplay+'" controller="true" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>';$("imgloader").set("html",n);b.start({opacity:1})}else{if(filetype=="swf"){fileWidth=galleryimages[e]["width"]||flashdefaultWidth;fileHeight=galleryimages[e]["height"]||flashdefaultHeight;media=new Swiff(galleryimages[e]["mediaURL"],{id:"e2gallerySWF",width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="blip.tv"){fileWidth=galleryimages[e]["width"]||"640px";fileHeight=galleryimages[e]["height"]||"390px";media=new Swiff(galleryimages[e]["mediaURL"],{src:galleryimages[e]["mediaURL"],width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="dailymotion"){fileWidth=galleryimages[e]["width"]||"480px";fileHeight=galleryimages[e]["height"]||"381px";media=new Swiff(galleryimages[e]["mediaURL"],{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="flickr"){fileWidth=galleryimages[e]["width"]||"500px";fileHeight=galleryimages[e]["height"]||"375px";mediaSplit=galleryimages[e]["mediaURL"].split("/");mediaId=mediaSplit[5];media=new Swiff("http://www.flickr.com/apps/video/stewart.swf",{id:mediaId,classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",width:fileWidth,height:fileHeight,params:{flashvars:"photo_id="+mediaId+"&show_info_box="+flInfo,wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="google"){fileWidth=galleryimages[e]["width"]||"400px";fileHeight=galleryimages[e]["height"]||"326px";mediaSplit=galleryimages[e]["mediaURL"].split("=");mediaId=mediaSplit[1];media=new Swiff("http://video.google.com/googleplayer.swf?docId="+mediaId+"&autoplay="+autoplayNum,{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="metacafe"){fileWidth=galleryimages[e]["width"]||"400px";fileHeight=galleryimages[e]["height"]||"345px";mediaSplit=galleryimages[e]["mediaURL"].split("/");mediaId=mediaSplit[4];media=new Swiff("http://www.metacafe.com/fplayer/"+mediaId+"/.swf",{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="myspace"){fileWidth=galleryimages[e]["width"]||"425px";fileHeight=galleryimages[e]["height"]||"360px";mediaSplit=galleryimages[e]["mediaURL"].split("=");mediaId=mediaSplit[2];media=new Swiff("http://lads.myspace.com/videos/vplayer.swf?m="+mediaId+"&v=2&type=video",{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="revver"){fileWidth=galleryimages[e]["width"];fileHeight=galleryimages[e]["height"];mediaSplit=galleryimages[e]["mediaURL"].split("/");mediaId=mediaSplit[4];media=new Swiff("http://flash.revver.com/player/1.0/player.swf?mediaId="+mediaId+"&affiliateId="+revverID+"&allowFullScreen="+revverFullscreen+"&backColor=#"+revverBack+"&frontColor=#"+revverFront+"&gradColor=#"+revverGrad+"&shareUrl=revver",{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="rutube"){fileWidth=galleryimages[e]["width"]||"470px";fileHeight=galleryimages[e]["height"]||"353px";mediaSplit=galleryimages[e]["mediaURL"].split("=");mediaId=mediaSplit[1];media=new Swiff("http://video.rutube.ru/"+mediaId,{movie:"http://video.rutube.ru/"+mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="seesmicm"){fileWidth=galleryimages[e]["width"]||"435px";fileHeight=galleryimages[e]["height"]||"355px";mediaSplit=galleryimages[e]["mediaURL"].split("/");mediaId=mediaSplit[5];media=new Swiff("http://seesmic.com/Standalone.swf?video="+mediaId,{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="tudou"){fileWidth=galleryimages[e]["width"]||"400px";fileHeight=galleryimages[e]["height"]||"340px";mediaSplit=galleryimages[e]["mediaURL"].split("/");mediaId=mediaSplit[5];media=new Swiff("http://www.tudou.com/v/"+mediaId,{width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="youku"){fileWidth=galleryimages[e]["width"]||"480px";fileHeight=galleryimages[e]["height"]||"400px";mediaSplit=galleryimages[e]["mediaURL"].split("id_");mediaId=mediaSplit[1];media=new Swiff("http://player.youku.com/player.php/sid/"+mediaId+"=/v.swf",{width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="youtube"){mediaSplit=galleryimages[e]["mediaURL"].split("v=");mediaId=mediaSplit[1];if(mediaId.match(/fmt=18/i)){mediaFmt="&ap=%2526fmt%3D18";mediaWidth=galleryimages[e]["width"]||"560px";mediaHeight=galleryimages[e]["height"]||"345px"}else{if(mediaId.match(/fmt=22/i)){mediaFmt="&ap=%2526fmt%3D22";mediaWidth=galleryimages[e]["width"]||"640px";mediaHeight=galleryimages[e]["height"]||"385px"}else{mediaFmt=ytQuality;mediaWidth=galleryimages[e]["width"]||"480px";mediaHeight=galleryimages[e]["height"]||"295px"}}media=new Swiff("http://www.youtube.com/v/"+mediaId+"&autoplay="+autoplayNum+"&fs="+fullscreenNum+mediaFmt+"&color1=0x"+ytColor1+"&color2=0x"+ytColor2,{id:mediaId,width:mediaWidth,height:mediaHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="veoh"){fileWidth=galleryimages[e]["width"]||"410px";fileHeight=galleryimages[e]["height"]||"341px";mediaSplit=galleryimages[e]["mediaURL"].split("videos/");mediaId=mediaSplit[1];media=new Swiff("http://www.veoh.com/videodetails2.swf?permalinkId="+mediaId+"&player=videodetailsembedded&videoAutoPlay="+AutoplayNum,{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="viddler"){fileWidth=galleryimages[e]["width"]||"437px";fileHeight=galleryimages[e]["height"]||"370px";mediaSplit=galleryimages[e]["mediaURL"].split("/");mediaId=mediaSplit[4];media=new Swiff(galleryimages[e]["mediaURL"],{id:"viddler_"+mediaId,movie:galleryimages[e]["mediaURL"],classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen,id:"viddler_"+mediaId,movie:galleryimages[e]["mediaURL"]}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="vimeo"){fileWidth=galleryimages[e]["width"]||"400px";fileHeight=galleryimages[e]["height"]||"225px";mediaSplit=galleryimages[e]["mediaURL"].split("/");mediaId=mediaSplit[3];media=new Swiff("http://www.vimeo.com/moogaloop.swf?clip_id="+mediaId+"&server=www.vimeo.com&fullscreen="+fullscreenNum+"&show_title="+vmTitle+"&show_byline="+vmByline+"&show_portrait="+vmPortrait+"&color="+vmColor,{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}else{if(filetype=="12seconds"){fileWidth=galleryimages[e]["width"]||"430px";fileHeight=galleryimages[e]["height"]||"360px";mediaSplit=galleryimages[e]["mediaURL"].split("/");mediaId=mediaSplit[5];media=new Swiff("http://embed.12seconds.tv/players/remotePlayer.swf",{id:mediaId,width:fileWidth,height:fileHeight,params:{flashvars:"vid="+mediaId+"",wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader");b.start({opacity:1})}}}}}}}}}}}}}}}}}}}if(galleryimages[e]["forsale"]==true){$("fsbox").empty();var m=new Element("div",{id:"fsbutton"}).inject($("fsbox"),"top");var h=new Element("div",{id:"fstop"}).inject($("fsbox"));var k=new Element("div",{id:"forsale"}).inject($("fsbox"));$("fsbutton").set("html",orderText+"<div id='fsclose'></div>");if(galleryimages[e]["title"]==""||galleryimages[e]["title"]==null){placeTitle=galleryimages[e]["src"]}else{placeTitle=galleryimages[e]["title"]}var j=new Fx.Morph("fsbox",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){var p=galleryimages[e]["paytype"];if(p=="paypal"){numOfPrices=galleryimages[e]["numOfPrices"];paypalform="";paypalform+='<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">';paypalform+=' <input type="hidden" name="cmd" value="_s-xclick">';paypalform+=' <input type="hidden" name="hosted_button_id" value="'+paypalButtonId+'">';paypalform+=' <img src="'+thumbPath+galleryimages[e]["src"]+'" border="0" class="forsalethumb" align="left" />';paypalform+=" <strong>Buy: "+placeTitle+"</strong><br />";paypalform+=" "+purchaseOf+placeTitle+shipinginfoshort+"<br />";paypalform+=" <table>";paypalform+=' <tr><td><input type="hidden" name="on0" value="'+galleryimages[e]["src"]+" - "+paypalSelectText+'">'+galleryimages[e]["src"]+" -"+paypalSelectText+'</td></tr><tr><td><select name="os0">';for(i=1;i<=numOfPrices;i++){if(galleryimages[e]["pricecurrency"+i+""]=="€"){pricingFormat=+""+galleryimages[e]["price"+i+""]+""+galleryimages[e]["pricecurrencysymbol"+i+""]}else{pricingFormat=galleryimages[e]["pricecurrencysymbol"+i+""]+""+galleryimages[e]["price"+i+""]}paypalform+='<option value="'+galleryimages[e]["pricesize"+i+""]+'">'+galleryimages[e]["pricesize"+i+""]+" "+pricingFormat+""}paypalform+=" </select> </td></tr>";paypalform+=" </table>";paypalform+=' <input type="hidden" name="currency_code" value="'+galleryimages[e]["pricecurrency"+i+""]+'">';paypalform+=' <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">';paypalform+=' <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">';paypalform+="</form>";$("forsale").set("html",paypalform)}if(p=="google"){numOfPrices=galleryimages[e]["numOfPrices"];googleform="";googleform+='<form action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/'+merchantId+'" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm">';googleform+='<img src="'+thumbPath+galleryimages[e]["src"]+'" border="0" class="forsalethumb" align="left" />';googleform+="<strong>Buy: "+placeTitle+"</strong>";googleform+="<br />";googleform+=purchaseOf+placeTitle+shipinginfoshort+"<br />";googleform+=selectSizes+": ";googleform+='<select name="item_selection_1">';for(i=1;i<=numOfPrices;i++){if(galleryimages[e]["pricecurrency"+i+""]=="€"){pricingFormat=galleryimages[e]["price"+i+""]+" "+galleryimages[e]["pricecurrencysymbol"+i+""]}else{pricingFormat=galleryimages[e]["pricecurrencysymbol"+i+""]+""+galleryimages[e]["price"+i+""]}googleform+=' <option value="'+i+'">'+galleryimages[e]["pricesize"+i+""]+" - "+pricingFormat+"</option>"}googleform+="</select><br />";for(i=1;i<=numOfPrices;i++){googleform+='<input name="item_option_name_'+i+'" type="hidden" value="'+galleryimages[e]["pricesize"+i+""]+' Print"/>';googleform+='<input name="item_option_price_'+i+'" type="hidden" value="'+galleryimages[e]["price"+i+""]+'"/>';googleform+='<input name="item_option_description_'+i+'" type="hidden" value="'+galleryimages[e]["pricesize"+i+""]+" "+placeTitle+'"/>';googleform+='<input name="item_option_quantity_'+i+'" type="hidden" value="1"/>';googleform+='<input name="item_option_currency_'+i+'" type="hidden" value="'+galleryimages[e]["pricecurrency"+i+""]+'"/>'}googleform+='<input alt="" src="https://checkout.google.com/buttons/buy.gif?merchant_id='+merchantId+'&w=121&h=44&style=trans&variant=text&loc=en_US" type="image"/>';googleform+="</form><hr /><br />";$("forsale").set("html",googleform)}$("fsbutton").addEvent("click",function(){openforsale();var q=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});q.start({opacity:0})})}});j.start({opacity:1,bottom:-277});var l=new Fx.Morph("fsclose",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});l.start({opacity:0})}}});var c=new Fx.Morph(""+e+"",{duration:100,transition:Fx.Transitions.linear});c.start({"border-color":"#FFF","background-color":"#FFF",opacity:1});d.start({opacity:1});g.start({opacity:0});var a=new Fx.Morph("loading",{duration:200,onComplete:function(){}});a.start({opacity:0})}function setThumbClick(a){thumbPath=maingalleries[a]["thumbpath"];imagenumber=Number(1);$$(".thumbnail").addEvent("click",function(f){if(playing==true){slideshow()}if(!busy){if(filetype!="image"){$("imgloader").empty()}busy=true;var g=this.id;imagenumber=this.get("rel");imagenumber=Number(imagenumber);$("numOf").set("text",imagenumber+" of ").inject("photoNum","top");var b=Number(galleryimages[g]["imgid"]);loadimage(Number(g),Number(imagenumber));var d=new Fx.Morph(""+previousid+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});d.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});var c=new Fx.Morph(g,{duration:500,transition:Fx.Transitions.linear});c.start({"border-color":"#FFF","background-color":"#FFF",opacity:1});previousid=b}});$("next").addEvent("click",function(c){if(playing==true){slideshow()}if(!busy){busy=true;nextnum=Number(currentimage+1);imagenumber=Number(imagenumber+1);realNum=$(""+nextnum+"").get("rel");$("numOf").set("text",realNum+" of ").inject("photoNum","top");loadimage(nextnum,imagenumber);var b=new Fx.Morph(""+currentimage+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});b.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});thumbinview=$("thumbnails").getCoordinates().width;maxThumbsVisible=Math.floor(thumbinview/setThumbWidth);thumbsMod=imagenumber%maxThumbsVisible;if(imagenumber>=maxThumbsVisible&&thumbsMod==1||maxThumbsVisible==1){movethumbs("more")}currentimage=Number(galleryimages[nextnum]["imgid"]);previousid=currentimage}});$("previous").addEvent("click",function(c){if(playing==true){slideshow()}if(!busy){thumbinview=$("thumbnails").getCoordinates().width;maxThumbsVisible=Math.floor(thumbinview/setThumbWidth);thumbsMod=(imagenumber)%maxThumbsVisible;if(imagenumber>=maxThumbsVisible&&thumbsMod==1||maxThumbsVisible==1){movethumbs("back")}previousnum=Number(currentimage-1);busy=true;imagenumber=Number(imagenumber-1);realNum=$(""+previousnum+"").get("rel");$("numOf").set("text",realNum+" of ").inject("photoNum","top");loadimage(""+previousnum+"",imagenumber);var b=new Fx.Morph(""+currentimage+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});b.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});currentimage=Number(galleryimages[previousnum]["imgid"]);previousid=currentimage}});$(window.document).addEvent("keydown",function(c){if(c.key=="right"&¤timage!=lastimage){if(playing==true){slideshow()}if(!busy){busy=true;nextnum=Number(currentimage+1);imagenumber=Number(imagenumber+1);realNum=$(""+nextnum+"").get("rel");$("numOf").set("text",realNum+" of ").inject("photoNum","top");loadimage(nextnum,imagenumber);var b=new Fx.Morph(""+currentimage+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});b.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});thumbinview=$("thumbnails").getCoordinates().width;maxThumbsVisible=Math.floor(thumbinview/setThumbWidth);thumbsMod=imagenumber%maxThumbsVisible;if(imagenumber>=maxThumbsVisible&&thumbsMod==1||maxThumbsVisible==1){movethumbs("more")}currentimage=Number(galleryimages[nextnum]["imgid"]);previousid=currentimage}}if(c.key=="left"&¤timage!=0){if(playing==true){slideshow()}if(!busy){thumbinview=$("thumbnails").getCoordinates().width;maxThumbsVisible=Math.floor(thumbinview/setThumbWidth);thumbsMod=(imagenumber)%maxThumbsVisible;if(imagenumber>=maxThumbsVisible&&thumbsMod==1||maxThumbsVisible==1){movethumbs("back")}previousnum=Number(currentimage-1);busy=true;imagenumber=Number(imagenumber-1);realNum=$(""+previousnum+"").get("rel");$("numOf").set("text",realNum+" of ").inject("photoNum","top");loadimage(""+previousnum+"",imagenumber);var b=new Fx.Morph(""+currentimage+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});b.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});currentimage=Number(galleryimages[previousnum]["imgid"]);previousid=currentimage}}});$$(".thumbnail").addEvent("mouseenter",function(){myid=this.id;var d=galleryimages[myid]["filetype"];var c=new Fx.Morph("thumbnailPopUp",{duration:25,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("thumbnailPopUp").empty();if(d=="image"){var f=new Element("img",{src:thumbPath+galleryimages[myid]["src"],id:"thumbPop"}).inject($("thumbnailPopUp"))}else{var f=new Element("img",{src:galleryimages[myid]["src"],id:"thumbPop"}).inject($("thumbnailPopUp"))}myX=$("gallery").getCoordinates().width;myY=$("images").getCoordinates().height;myImgWidth=$("thumbPop").getCoordinates().width;myImgHeight=$("thumbPop").getCoordinates().height;myNewX=((myX/2)-(myImgWidth/2));myNewY=(myY-(myImgHeight/2))-(($("thumbnailPopUp").getCoordinates().height/2)+6);if(animatingPop!=true){animatingPop=true;var e=function(){$("thumbnailPopUp").setStyles({position:"absolute",top:(myNewY),left:myNewX,visibility:"hidden"});var g=new Fx.Morph("thumbnailPopUp",{duration:200,transition:Fx.Transitions.Expo.easeOut,onComplete:function(){animatingPop=false}});g.start({top:myNewY,left:myNewX,opacity:1})};e.delay(250)}}});c.start({opacity:0});if(myid!=currentimage){var b=new Fx.Morph(myid,{duration:100,transition:Fx.Transitions.Expo.easeInOut});b.start({"border-color":"#FFF","background-color":"#FFF",opacity:1})}});$$(".thumbnail").addEvent("mouseleave",function(){myid=this.id;var c=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});c.start({opacity:0});if(myid!=currentimage){var b=new Fx.Morph(myid,{duration:50,transition:Fx.Transitions.Expo.easeInOut});b.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5})}})}function loadThumbs(l,b){var e=$("thumbnailwrap");thumbnailNumberPos=1;totalNumImages=0;totalNumMedia=0;totalNumQuicktime=0;$("thumbnailwrap").empty();startImage=maingalleries[l]["start"];endImage=maingalleries[l]["end"];thumbPath=maingalleries[l]["thumbpath"];lastimage=maingalleries[l]["end"];currentGallery=maingalleries[l]["gallerynum"];currentimage=Number(galleryimages[startImage]["imgid"]);previousid=Number(startImage);busy=false;for(i=startImage;i<=endImage;i++){filetype=galleryimages[i]["filetype"];if(totalthumbsvisible<$("thumbnails").getCoordinates().width-setThumbWidth){totalthumbsvisible+=setThumbWidth}thumbWidth+=setThumbWidth;e.setStyles({width:thumbWidth});var a=i;if(filetype=="image"){var c=new Element("div",{"class":"thumbnail",id:galleryimages[i]["imgid"],rel:thumbnailNumberPos});var f=new Element("img",{src:thumbPath+galleryimages[i]["src"],rel:" ","class":" controls",title:galleryimages[i]["title"]}).injectInside(c);totalNumImages++}if(filetype=="flv "||filetype=="mov"||filetype=="mp4"||filetype=="mp3 "||filetype=="aac"||filetype=="swf"||filetype=="blip"||filetype=="dailymotion"||filetype=="flickr"||filetype=="googlevideo"||filetype=="metacafe"||filetype=="myspacetv"||filetype=="revver"||filetype=="rutube"||filetype=="seesmic"||filetype=="tudou"||filetype=="youku"||filetype=="youtube"||filetype=="Veoh"||filetype=="viddler"||filetype=="vimeo"||filetype=="12seconds"){var c=new Element("div",{"class":"thumbnail",id:galleryimages[i]["imgid"],rel:thumbnailNumberPos});var f=new Element("img",{src:galleryimages[i]["src"],"class":" controls",title:galleryimages[i]["title"]}).injectInside(c);totalNumMedia++}if(totalNumMedia>1){flashCount=totalNumMedia+" Media Files | "}else{if(totalNumMedia==1){flashCount=totalNumMedia+" Media File | "}else{flashCount=""}}$("flashNum").set("html",flashCount);if(totalNumImages>1){imagecountHTML=totalNumImages+" Photos | "}else{if(totalNumImages==1){imagecountHTML=totalNumImages+" Photo | "}else{imagecountHTML=""}}$("photoNum").set("html",'<span id="numOf">1 of </span>'+imagecountHTML);c.injectInside($("thumbnailwrap"));thumbnailNumberPos++;$(""+i+"").setStyles({opacity:0});var g=new Fx.Morph(""+i+"",{duration:100,transition:Fx.Transitions.Expo.easeInOut,wait:true});if(i==0){g.start({opacity:1})}else{g.start({opacity:0.5})}if(i==endImage){thumbnailsviewable=Math.floor($("thumbnails").getCoordinates().width);if(thumbWidth>thumbnailsviewable){var d=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0,left:-40});var h=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});h.start({opacity:0.75,right:0})}else{var d=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0,left:-40});var h=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});h.start({opacity:0,right:-40})}if(b=="loadNew"){e.setStyles({left:0});currentthumbpos=0;loadimage(Number(startImage))}setThumbClick(l)}var j=$$(".controls");var k=new Tips(j,{showDelay:100,hideDelay:100,offsets:{x:8,y:8},title:"title",text:null,className:"minitooltips",fixed:false,onShow:function(m){m.fade(1)},onHide:function(m){m.fade(0)}})}}function galleries(){var c=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});c.start({opacity:0});if(playing==true){slideshow()}var b=new Fx.Morph("galleries",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});var a=new Fx.Morph("fsbox",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});filetype=galleryimages[currentimage]["filetype"];galleryheight=$("gallery").getCoordinates().height;hiddenGalpas=(galleryheight-$("controls").getCoordinates().height);controlHeight=$("controls").getCoordinates().height;if(openclose==true){if(filetype!="image"){$("imgloader").setStyle("visibility","hidden")}b.start({bottom:[-galleryheight,controlHeight]});if(slidesHidden==true){showthumbbox()}openclose=false;a.start({opacity:0})}else{closinggalleries=true;b.start({bottom:-(hiddenGalpas-1)}).addEvent("onComplete",function(){if(closinggalleries==true){if(filetype!="image"){$("imgloader").setStyle("visibility","visible");closinggalleries=false}}});a.start({opacity:1});openclose=true}}function loadimage(f,d){fsisopen="closed";var h=new Fx.Morph("fsbox",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});h.start({opacity:0,bottom:-305});if(f==startImage){$("previous").setStyles({visibility:"hidden"});prevHidden=true}else{$("previous").setStyles({visibility:"visible"});prevHidden=false}if(f==lastimage){$("next").setStyles({visibility:"hidden"});nextHidden=true}else{$("next").setStyles({visibility:"visible"});nextHidden=false}var g=$("images");var j=$("loading");var k=$("gallery");$("loading").setStyles({position:"absolute",opacity:0,left:(k.getCoordinates().width/2)-(j.getCoordinates().width/2),top:(g.getCoordinates().height/2)-(j.getCoordinates().height/2)});if(imagesloaded[f]!=f){imagesloaded[f]=f;var a=new Fx.Morph("infoloader",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});var b=new Fx.Morph("imgloader",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("imgloader").empty();filetype=galleryimages[f]["filetype"];if(filetype=="image"){new Asset.image(galleryimages[f]["path"]+galleryimages[f]["src"],{onload:function(){var l=new Fx.Morph("imagewrap",{duration:500,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){addImage(f)}});l.start({height:galleryimages[f]["height"],width:galleryimages[f]["width"],opacity:1,top:(((g.getCoordinates().height/2)-(galleryimages[f]["height"]/2))),left:(((g.getCoordinates().width/2)-(galleryimages[f]["width"]/2)))})}})}if(filetype=="flv "||filetype=="mov"||filetype=="mp4"||filetype=="mp3 "||filetype=="aac"||filetype=="swf"||filetype=="blip"||filetype=="dailymotion"||filetype=="flickr"||filetype=="googlevideo"||filetype=="metacafe"||filetype=="myspacetv"||filetype=="revver"||filetype=="rutube"||filetype=="seesmic"||filetype=="tudou"||filetype=="youku"||filetype=="youtube"||filetype=="Veoh"||filetype=="viddler"||filetype=="vimeo"||filetype=="12seconds"){if(playing==true){slideshow()}var e=new Fx.Morph("imagewrap",{duration:500,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){addImage(f)}});e.start({height:galleryimages[f]["height"],width:galleryimages[f]["width"],opacity:1,top:(((g.getCoordinates().height/2)-(galleryimages[f]["height"]/2))),left:(((g.getCoordinates().width/2)-(galleryimages[f]["width"]/2)))})}}});var c=new Fx.Morph("loading",{duration:200,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0});b.start({opacity:0});c.start({opacity:1})}else{var b=new Fx.Morph("imgloader",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("imgloader").empty();filetype=galleryimages[f]["filetype"];if(filetype=="image"){var e=new Fx.Morph("imagewrap",{duration:300,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){addImage(f)}});e.start({height:galleryimages[f]["height"],width:galleryimages[f]["width"],opacity:1,top:(((g.getCoordinates().height/2)-(galleryimages[f]["height"]/2))),left:(((g.getCoordinates().width/2)-(galleryimages[f]["width"]/2)))})}if(filetype=="flv "||filetype=="mov"||filetype=="mp4"||filetype=="mp3 "||filetype=="aac"||filetype=="swf"||filetype=="blip"||filetype=="dailymotion"||filetype=="flickr"||filetype=="googlevideo"||filetype=="metacafe"||filetype=="myspacetv"||filetype=="revver"||filetype=="rutube"||filetype=="seesmic"||filetype=="tudou"||filetype=="youku"||filetype=="youtube"||filetype=="Veoh"||filetype=="viddler"||filetype=="vimeo"||filetype=="12seconds"){if(playing==true){slideshow()}var e=new Fx.Morph("imagewrap",{duration:300,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){addImage(f)}});e.start({height:galleryimages[f]["height"],width:galleryimages[f]["width"],opacity:1,top:(((g.getCoordinates().height/2)-(galleryimages[f]["height"]/2))),left:(((g.getCoordinates().width/2)-(galleryimages[f]["width"]/2)))})}}});b.start({opacity:0})}}function nextprev(d,c){if(d=="previous"){var b=new Fx.Morph("previous",{duration:200,transition:Fx.Transitions.Expo.easeInOut});if(currentimage!=startImage){if(c=="enter"){b.start({opacity:1})}}if(c=="exit"&¤timage!=startImage){b.start({opacity:0.5})}}if(d=="next"){var a=new Fx.Morph("next",{duration:200,transition:Fx.Transitions.Expo.easeInOut});if(currentimage!=lastimage){if(c=="enter"){a.start({opacity:1})}}if(c=="exit"&¤timage!=lastimage){a.start({opacity:0.5})}}}function creategalleries(){var c=maingalleries.length-1;var b=function(d,j){var k=new Element("div",{"class":"gallery",id:"gallery"+d.gallerynum});var h=new Element("h3").set("html",d.name).injectInside(k);var e=new Element("img",{src:d.mainthumb+d.src,"class":"galleryimg",title:d.name,rel:d.description}).injectAfter(h);k.injectInside($("galleryset"));if(c==j){var g=$$(".galleryimg");var f=new Tips(g,{showDelay:100,hideDelay:100,offsets:{x:0,y:125},className:"tooltips",fixed:true,onShow:function(l){l.fade(1)},onHide:function(l){l.fade(0)}});$$(".gallery").addEvent("click",function(l){if(playing==true){slideshow()}var m=this.id;galleryID=""+m+"";galleries();galleryNum=Number(galleryID.slice(7));loadThumbs(galleryNum,"loadNew");movedamount=0})}};maingalleries.each(function(d,e){b(d,e)});var a=new Element("div",{"class":"clear"});a.inject($("galleryset"),"bottom")}function movethumbs(f){var e=$("thumbnails").getCoordinates().width-2;var g=setThumbWidth*(totalNumImages);var d=new Fx.Morph("thumbnailwrap",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});thisminusthat=g-e;if(f=="back"){if(!moving){moving=true;if(currentthumbpos!=0){move=(currentthumbpos+e);d.start({left:[currentthumbpos,move]}).addEvent("onComplete",function(){moving=false});currentthumbpos+=e;movedamount-=e}}}if(f=="more"){if(!moving){moving=true;move=(currentthumbpos-e);var c=new Fx.Morph("thumbgall",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});d.start({left:[currentthumbpos,move]}).addEvent("onComplete",function(){moving=false});currentthumbpos-=e;movedamount+=e}}thumbnailsviewable=$("thumbnails").getCoordinates().width;if(currentthumbpos==0){var b=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:0,left:-40});var a=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0.75,right:0})}else{if(movedamount<g-e){var b=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:0.75,left:0});var a=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0.75,right:0})}else{var b=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:0.75,left:0});var a=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0,right:-40})}}}function smallMessage(b,c,a){var d=new Fx.Morph("smallmessage",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});if(b=="show"){$("smallmessage").setStyles({opacity:0,bottom:-80,left:(($("images").getCoordinates().width/2)-(($("smallmessage").getCoordinates().width/2)))});$("smallmessage").set("text",c);d.start({bottom:(-80)+a,opacity:1})}if(b=="hide"){d.start({bottom:-80,opacity:0})}}function showInfo(a){var b=new Fx.Morph("imageinfo",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});if(showInfoType=="show"){showInfoType="hide";$("imageinfo").setStyles({"background-color":"#000",bottom:-300,width:"100%",opacity:0});b.start({bottom:(-300)+a,opacity:0.9})}else{if(showInfoType=="hide"){showInfoType="show";b.start({bottom:-300,opacity:0})}}}function loadLarge(){largeId=galleryimages[currentimage]["imgid"];var a=new Fx.Morph("lrgloader",{duration:transitionspeed});var c="<img src='"+galleryimages[largeId]["lrgpath"]+galleryimages[largeId]["src"]+"' id='imgsrc' title='"+galleryimages[largeId]["title"]+"' />";$("lrgloader").set("html",c);a.start({opacity:0.99999});var b=new Fx.Morph("closebtn",{duration:500,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:1})}function slideshow(){if(playing==false){$("slideshow").set("html",'<img src="'+designPath+'pause.png" alt="'+pauseText+'" title="'+pauseText+'" class="controls" border="0" align="absmiddle" />');playing=true;pp="play";var f=$$(".controls");var d=new Tips(f,{showDelay:100,hideDelay:100,offsets:{x:8,y:8},title:"title",text:null,className:"minitooltips",fixed:false,onShow:function(h){h.fade(1)},onHide:function(h){h.fade(0)}});var g=new Fx.Morph(""+currentimage+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});g.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});if(currentimage!=lastimage){nextImage=currentimage+1;thumbinview=$("thumbnails").getCoordinates().width;maxThumbsVisible=Math.floor(thumbinview/setThumbWidth);thumbsMod=(nextImage+1)%maxThumbsVisible;if((nextImage+1)>=maxThumbsVisible&&thumbsMod==1||maxThumbsVisible==1){movethumbs("more")}}else{var e=new Fx.Morph("thumbnailwrap",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({left:[currentthumbpos,0]}).addEvent("onComplete",function(){moving=false});currentthumbpos=0;nextImage=startImage;if(currentthumbpos==0){var b=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:0,left:-40});var a=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0.75,right:0})}else{if(movedamount<thumbBoxWidth-moveamount){var b=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:0.75,left:0});var a=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0.75,right:0})}else{var b=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:0.75,left:0});var a=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0,right:-40})}}}imagenumber=$(""+nextImage+"").get("rel");$("numOf").set("text",imagenumber+" of ").inject("photoNum","top");loadimage(nextImage)}else{c=$clear(timer);$("slideshow").set("html",'<img src="'+designPath+'play.png" alt="'+playText+'" title="'+playText+'" class="controls" border="0" align="absmiddle" />');playing=false;pp="pause";var f=$$(".controls");var d=new Tips(f,{showDelay:100,hideDelay:100,offsets:{x:8,y:8},title:"title",text:null,className:"minitooltips",fixed:false,onShow:function(h){h.fade(1)},onHide:function(h){h.fade(0)}})}var c=function(){if(currentimage!=lastimage){nextImage=currentimage+1;thumbinview=$("thumbnails").getCoordinates().width;maxThumbsVisible=Math.floor(thumbinview/setThumbWidth);thumbsMod=(nextImage+1)%maxThumbsVisible;if((nextImage+1)>=maxThumbsVisible&&thumbsMod==1||maxThumbsVisible==1){movethumbs("more")}}if(currentimage!=lastimage&&pp=="play"){var k=new Fx.Morph(""+currentimage+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});k.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});imagenumber=$(""+nextImage+"").get("rel");$("numOf").set("text",imagenumber+" of ").inject("photoNum","top");loadimage(nextImage)}else{c=$clear(timer);$("slideshow").set("html",'<img src="'+designPath+'play.png" alt="'+playText+'" title="'+playText+'" class="controls" border="0" align="absmiddle" />');playing=false;pp="pause";var j=$$(".controls");var h=new Tips(j,{showDelay:100,hideDelay:100,offsets:{x:8,y:8},title:"title",text:null,className:"minitooltips",fixed:false,onShow:function(l){l.fade(1)},onHide:function(l){l.fade(0)}})}};timer=c.periodical(slideshowtime)}function showthumbbox(){if(openclose!=false){minusThumb=$("thumbbox").getCoordinates().height;minusControls=$("controls").getCoordinates().height;var b=new Fx.Morph("gallery",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});var a=new Fx.Morph("thumbbox",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});if(showThumbs=="show"){showThumbs="hide";a.start({opacity:1});b.start({height:galleryHeight});slidesHidden=false}else{if(showThumbs=="hide"){showThumbs="show";a.start({opacity:0});b.start({height:(galleryHeight)-(minusThumb)});slidesHidden=true}}}}var resizeTimeout;prepareResize=function(){$clear(resizeTimeout);resizeTimeout=realResize.delay(300)};function createBackDrop(){if(largeHtmlIsCreated==null||largeHtmlIsCreated==""){var d=new Element("div",{id:"largeimage"}).injectInside(document.body);var b=new Element("div",{id:"lrgwrap","class":"close"}).injectInside("largeimage");var f=new Element("div",{id:"closebtn","class":"close"}).injectInside("largeimage");var c=new Element("div",{id:"lrgloader"}).injectInside("lrgwrap");var d=new Element("div",{id:"backdrop","class":"close"}).injectInside(document.body);$("largeimage").set("opacity",0);$("closebtn").set("opacity",0);$("largeimage").setStyles({height:0,width:0,opacity:0,top:($("gallery").getCoordinates().height)-50,left:(window.getWidth()/2)});$("backdrop").set("opacity",0);$("backdrop").setStyles({height:0,width:0,opacity:0,top:($("gallery").getCoordinates().height/2)-50,left:(window.getWidth()/2)});$$(".close").addEvent("click",function(){largeIsOpen=false;$clear(resizeTimeout);var g=new Fx.Morph("closebtn",{duration:500,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("lrgloader").empty();var j=new Fx.Morph("lrgwrap",{duration:500,transition:Fx.Transitions.Expo.easeInOut});var h=new Fx.Morph("largeimage",{duration:500,transition:Fx.Transitions.Expo.easeInOut});var k=new Fx.Morph("backdrop",{duration:1000,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("backdrop").setStyles({height:0,width:0,opacity:0,top:($("imagewrap").getCoordinates().height/2)+50,left:(window.getWidth()/2)})}});j.start({height:0,width:0,opacity:0});h.start({height:0,width:0,opacity:0,top:($("imagewrap").getCoordinates().height/2)+50,left:(window.getWidth()/2)});k.start({opacity:0})}});g.start({opacity:0})});largeHtmlIsCreated=true}if(galleryimages[currentimage]["lrgheight"]&&galleryimages[currentimage]["lrgwidth"]){var a=new Fx.Morph("loading",{duration:200,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:1});$("backdrop").setStyles({opacity:0,height:window.getScrollHeight(),width:"100%",top:0,left:0});var e=new Fx.Morph("backdrop",{duration:500,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){largeIsOpen=true;new Asset.image(galleryimages[currentimage]["lrgpath"]+galleryimages[currentimage]["src"],{onload:function(){var j=new Fx.Morph("loading",{duration:200,transition:Fx.Transitions.Expo.easeInOut});var h=new Fx.Morph("lrgwrap",{duration:500,transition:Fx.Transitions.Expo.easeInOut});var g=new Fx.Morph("largeimage",{duration:500,transition:Fx.Transitions.Expo.easeInOut});j.start({opacity:0});h.start({width:galleryimages[currentimage]["lrgwidth"],height:galleryimages[currentimage]["lrgheight"],opacity:1});g.start({width:galleryimages[currentimage]["lrgwidth"],height:galleryimages[currentimage]["lrgheight"],opacity:1,top:window.getScroll().y+20,left:((window.getWidth()/2)-(galleryimages[currentimage]["lrgwidth"]/2))}).addEvent("onComplete",function(){$("lrgloader").empty();var k=new Fx.Morph("lrgloader",{duration:500,transition:Fx.Transitions.Expo.easeInOut});k.start({opacity:0,width:galleryimages[currentimage]["lrgwidth"],height:galleryimages[currentimage]["lrgheight"],top:((($("largeimage").getCoordinates().height/2)-(galleryimages[currentimage]["lrgheight"]/2))),left:((($("largeimage").getCoordinates().width/2)-(galleryimages[currentimage]["lrgwidth"]/2)))}).addEvent("onComplete",function(){loadLarge()})})}})}});e.start({opacity:0.5});window.addEvent("resize",prepareResize);realResize=function(){var h=new Fx.Morph("backdrop",{duration:100,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){}});var g=new Fx.Morph("largeimage",{duration:100,transition:Fx.Transitions.Expo.easeInOut});h.start({opacity:0.5,height:window.getScrollHeight()});g.start({top:window.getScroll().y+20,left:((window.getWidth()/2)-(galleryimages[currentimage]["lrgwidth"]/2))})};$(window.document).addEvent("keydown",function(h){if(h.key=="esc"&&largeIsOpen==true){largeIsOpen=false;$clear(resizeTimeout);var g=new Fx.Morph("closebtn",{duration:500,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("lrgloader").empty();var k=new Fx.Morph("lrgwrap",{duration:500,transition:Fx.Transitions.Expo.easeInOut});var j=new Fx.Morph("largeimage",{duration:500,transition:Fx.Transitions.Expo.easeInOut});var l=new Fx.Morph("backdrop",{duration:1000,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("backdrop").setStyles({height:0,width:0,opacity:0,top:($("imagewrap").getCoordinates().height/2)+50,left:(window.getWidth()/2)})}});k.start({height:0,width:0,opacity:0});j.start({height:0,width:0,opacity:0,top:($("imagewrap").getCoordinates().height/2)+50,left:(window.getWidth()/2)});l.start({opacity:0})}});g.start({opacity:0})}})}}window.addEvent("domready",function(){$("slideshow").addEvent("click",function(){slideshow()});$("showthumbbox").addEvent("click",function(){showthumbbox()});$("showinfo").addEvent("click",function(){showInfo(135)});$("opengallery").addEvent("click",function(){galleries()});$("previous").addEvent("mouseenter",function(){nextprev("previous","enter");var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0})});$("images").addEvent("mouseenter",function(){nextprev("previous","exit");nextprev("next","exit");var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0});var f=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});f.start({opacity:0.75});var e=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({opacity:0.75})});$("controls").addEvent("mouseenter",function(){nextprev("previous","exit");nextprev("next","exit");var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0})});$("previous").addEvent("mouseleave",function(){nextprev("previous","exit");nextprev("next","exit")});$("next").addEvent("mouseenter",function(){nextprev("next","enter");nextprev("previous","exit");var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0})});$("next").addEvent("mouseleave",function(){nextprev("next","exit");nextprev("previous","exit")});$("thumbleft").addEvent("mouseleave",function(){var e=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({opacity:0.75});var d=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0.75})});$("thumbleft").addEvent("mouseenter",function(){var f=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});f.start({opacity:1});var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0});var e=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({opacity:0.75})});$("thumbright").addEvent("mouseleave",function(){var d=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0.75})});$("thumbright").addEvent("mouseenter",function(){var f=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});f.start({opacity:1});var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0});var e=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({opacity:0.75})});$("thumbleft").addEvent("click",function(){movethumbs("back")});$("thumbright").addEvent("click",function(){movethumbs("more")});$("thumbnailwrap").addEvent("mouseleave",function(){var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0})});var a=new Asset.image(designPath+"pause.png");galleryHeight=$("gallery").getCoordinates().height;$("imgloader").addEvent("click",function(){createBackDrop()});$("imgloader").addEvent("mouseenter",function(){if(galleryimages[currentimage]["lrgheight"]&&galleryimages[currentimage]["lrgwidth"]){smallMessage("show","Click Image to Enlarge",25)}});$("imgloader").addEvent("mouseleave",function(){if(galleryimages[currentimage]["lrgheight"]&&galleryimages[currentimage]["lrgwidth"]){smallMessage("hide")}if(currentimage!=0){var f=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});f.start({opacity:0.75});var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0});var e=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({opacity:0.75})}if(currentimage!=lastimage){var e=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({opacity:0.75});var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0});var f=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});f.start({opacity:0.75})}});$("fsbox").setStyles({left:($("gallery").getCoordinates().width/2)-($("fsbox").getCoordinates().width/2)});$("previous").set("opacity",0.5);$("next").set("opacity",0.5);creategalleries();loadThumbs(0,"loadNew");$("imagewrap").set("opacity",0);thumbSizing=$("1").getCoordinates().width;thumbRightMargin=$("1").getStyle("margin-right").toInt();thumbLeftMargin=$("1").getStyle("margin-left").toInt();setThumbWidth=Number(thumbSizing+thumbRightMargin+thumbLeftMargin);thumbWidth=Number(setThumbWidth);var c=$$(".controls");var b=new Tips(c,{showDelay:100,hideDelay:100,offsets:{x:8,y:8},title:"title",text:null,className:"minitooltips",fixed:false,onShow:function(d){d.fade(1)},onHide:function(d){d.fade(0)}});$(window.document).addEvent("keydown",function(d){if(d.key=="space"&&playing==true){slideshow()}if(d.key=="esc"&&playing==true){slideshow()}if(d.key=="esc"&&openclose==false){galleries()}})}); 53.5 \ No newline at end of file 53.6 +var E2GalleryPro={version:"1.2"}; 53.7 +var openclose=true; 53.8 +var slidesHidden=false; 53.9 +var imagecontainer=$("images"); 53.10 +var busy=false; 53.11 +var previousid="0"; 53.12 +var currentthumbpos=0; 53.13 +var showInfoType="show"; 53.14 +var movedamount=0; 53.15 +var imagenumber=Number(1); 53.16 +var thumbnailNumberPos; 53.17 +var thumbSizing; 53.18 +var totalthumbsvisible=0; 53.19 +var currentThumbSpot=1; 53.20 +var thumbWidth=setThumbWidth; 53.21 +var largeHtmlIsCreated; 53.22 +var galleryHeight; 53.23 +var showThumbs="hide"; 53.24 +var fsisopen="closed"; 53.25 +var animatingPop=false; 53.26 +var moving=false; 53.27 +var timer; 53.28 +var playing=false; 53.29 +var prevHidden=false; 53.30 +var nextHidden=false; 53.31 +var totalNumImages; 53.32 +var totalNumQuicktime; 53.33 +var totalNumMedia; 53.34 +var closinggalleries=false; 53.35 +var currentGallery=maingalleries[0]["gallerynum"]; 53.36 +var currentimage=0; 53.37 +var lastimage=maingalleries[0]["end"]; 53.38 +var startImage=maingalleries[0]["start"]; 53.39 +var largeIsOpen=false; 53.40 + 53.41 +function openforsale() 53.42 +{ 53.43 + if(fsisopen=="open") 53.44 + { 53.45 + fsisopen="closed"; 53.46 + var b=new Fx.Morph("fsbox",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut}); 53.47 + b.start({bottom:-277}); 53.48 + var a=new Fx.Morph("fsclose",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut}); 53.49 + a.start({opacity:0}) 53.50 + } 53.51 + else 53.52 + { 53.53 + fsisopen="open"; 53.54 + var b=new Fx.Morph("fsbox",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut}); 53.55 + b.start({bottom:-100}); 53.56 + var a=new Fx.Morph("fsclose",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut}); 53.57 + a.start({opacity:1}) 53.58 + } 53.59 +} 53.60 + 53.61 +function addImage(e) 53.62 +{ 53.63 + currentimage=galleryimages[e]["imgid"]; 53.64 + filetype=galleryimages[e]["filetype"]; 53.65 + $("imgloader").empty(); 53.66 + $("infoloader").empty(); 53.67 + var f=""; 53.68 + if(galleryimages[e]["title"]) 53.69 + { 53.70 + f+="<h2>"+galleryimages[e]["title"]+"</h2>"; 53.71 + if(galleryimages[e]["forsale"]==true) 53.72 + { 53.73 + f+='<div id="purchasebtn">'+purchaseprinttxt+"</div>" 53.74 + } 53.75 + } 53.76 + if(galleryimages[e]["description"]) 53.77 + { 53.78 + f+='<span class="description">'+galleryimages[e]["description"]+"</span>"; 53.79 + if(galleryimages[e]["forsale"]==true) 53.80 + { 53.81 + f+='<div id="purchasebtn">'+purchaseprinttxt+"</div>" 53.82 + } 53.83 + } 53.84 + if(galleryimages[e]["copyright"]) 53.85 + { 53.86 + f+='<div class="copyright"><strong>Copyright:</strong> '+galleryimages[e]["copyright"]+"</div>"; 53.87 + if(galleryimages[e]["forsale"]==true) 53.88 + { 53.89 + f+='<div id="purchasebtn">'+purchaseprinttxt+"</div>" 53.90 + } 53.91 + } 53.92 + if(galleryimages[e]["author"]) 53.93 + { 53.94 + f+='<div class="author"><strong>Author:</strong> '+galleryimages[e]["author"]+"</div>"; 53.95 + if(galleryimages[e]["forsale"]==true) 53.96 + { 53.97 + f+='<div id="purchasebtn">'+purchaseprinttxt+"</div>" 53.98 + } 53.99 + } 53.100 + 53.101 + if(f=="") 53.102 + { 53.103 + f+="<h2>No Image Information Available</h2>"; 53.104 + if(galleryimages[e]["forsale"]==true) 53.105 + { 53.106 + f+='<div id="purchasebtn">'+purchaseprinttxt+"</div>" 53.107 + } 53.108 + } 53.109 + 53.110 + $("infoloader").set("html",f); 53.111 + var d=new Fx.Morph("infoloader",{duration:transitionspeed}); 53.112 + var b=new Fx.Morph("imgloader",{duration:transitionspeed,onComplete:function(){busy=false}}); 53.113 + var g=new Fx.Morph("imgloader",{duration:transitionspeed,onComplete:function() 53.114 + { 53.115 + if(filetype=="image") 53.116 + { 53.117 + var o="<img src='"+galleryimages[e]["path"]+galleryimages[e]["src"]+"' id='imgsrc' title='"+galleryimages[e]["title"]+"' />"; 53.118 + $("imgloader").set("html",o); 53.119 + b.start({opacity:1}) 53.120 + } 53.121 + if(filetype=="flv"||filetype=="mp4") 53.122 + { 53.123 + fileWidth=galleryimages[e]["width"]||flashdefaultWidth; 53.124 + fileHeight=galleryimages[e]["height"]||flashdefaultHeight; 53.125 + media=new Swiff(""+NBpath+"?videoURL="+galleryimages[e]["mediaURL"]+"&allowSmoothing=true&autoPlay="+autoplay+"&buffer=6&showTimecode="+showTimecode+"&loop=true&controlColour="+controllerColor+"&scaleIfFullScreen=true&showScalingButton=false",{id:"MediaboxSWF",width:mediaWidth,height:mediaHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.126 + media.inject("imgloader"); 53.127 + b.start({opacity:1}) 53.128 + } 53.129 + else 53.130 + { 53.131 + if(filetype=="mov") 53.132 + { 53.133 + var n='<object width="'+galleryimages[e]["width"]+'" height="'+galleryimages[e]["height"]+'" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"> <param name="src" value="'+galleryimages[e]["mediaURL"]+'"><param name="autoplay" value="'+autoplay+'"><param name="controller" value="true"><embed src="'+galleryimages[e]["mediaURL"]+'" width="'+galleryimages[e]["width"]+'" height="'+galleryimages[e]["height"]+'" autoplay="'+autoplay+'" controller="true" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>'; 53.134 + $("imgloader").set("html",n); 53.135 + b.start({opacity:1}) 53.136 + }else{ 53.137 + if(filetype=="swf") 53.138 + { 53.139 + fileWidth=galleryimages[e]["width"]||flashdefaultWidth; 53.140 + fileHeight=galleryimages[e]["height"]||flashdefaultHeight; 53.141 + media=new Swiff(galleryimages[e]["mediaURL"],{id:"e2gallerySWF",width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}});media.inject("imgloader"); 53.142 + b.start({opacity:1}) 53.143 + }else{ 53.144 + if(filetype=="blip.tv") 53.145 + { 53.146 + fileWidth=galleryimages[e]["width"]||"640px"; 53.147 + fileHeight=galleryimages[e]["height"]||"390px"; 53.148 + media=new Swiff(galleryimages[e]["mediaURL"],{src:galleryimages[e]["mediaURL"],width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.149 + media.inject("imgloader"); 53.150 + b.start({opacity:1}) 53.151 + }else{ 53.152 + if(filetype=="dailymotion") 53.153 + { 53.154 + fileWidth=galleryimages[e]["width"]||"480px"; 53.155 + fileHeight=galleryimages[e]["height"]||"381px"; 53.156 + media=new Swiff(galleryimages[e]["mediaURL"],{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.157 + media.inject("imgloader"); 53.158 + b.start({opacity:1}) 53.159 + }else{ 53.160 + if(filetype=="flickr") 53.161 + { 53.162 + fileWidth=galleryimages[e]["width"]||"500px"; 53.163 + fileHeight=galleryimages[e]["height"]||"375px"; 53.164 + mediaSplit=galleryimages[e]["mediaURL"].split("/"); 53.165 + mediaId=mediaSplit[5]; 53.166 + media=new Swiff("http://www.flickr.com/apps/video/stewart.swf",{id:mediaId,classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",width:fileWidth,height:fileHeight,params:{flashvars:"photo_id="+mediaId+"&show_info_box="+flInfo,wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.167 + media.inject("imgloader"); 53.168 + b.start({opacity:1}) 53.169 + }else{ 53.170 + if(filetype=="google") 53.171 + { 53.172 + fileWidth=galleryimages[e]["width"]||"400px"; 53.173 + fileHeight=galleryimages[e]["height"]||"326px"; 53.174 + mediaSplit=galleryimages[e]["mediaURL"].split("="); 53.175 + mediaId=mediaSplit[1]; 53.176 + media=new Swiff("http://video.google.com/googleplayer.swf?docId="+mediaId+"&autoplay="+autoplayNum,{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.177 + media.inject("imgloader"); 53.178 + b.start({opacity:1}) 53.179 + }else{ 53.180 + if(filetype=="metacafe") 53.181 + { 53.182 + fileWidth=galleryimages[e]["width"]||"400px"; 53.183 + fileHeight=galleryimages[e]["height"]||"345px"; 53.184 + mediaSplit=galleryimages[e]["mediaURL"].split("/"); 53.185 + mediaId=mediaSplit[4]; 53.186 + media=new Swiff("http://www.metacafe.com/fplayer/"+mediaId+"/.swf",{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.187 + media.inject("imgloader"); 53.188 + b.start({opacity:1}) 53.189 + }else{ 53.190 + if(filetype=="myspace") 53.191 + { 53.192 + fileWidth=galleryimages[e]["width"]||"425px"; 53.193 + fileHeight=galleryimages[e]["height"]||"360px"; 53.194 + mediaSplit=galleryimages[e]["mediaURL"].split("="); 53.195 + mediaId=mediaSplit[2]; 53.196 + media=new Swiff("http://lads.myspace.com/videos/vplayer.swf?m="+mediaId+"&v=2&type=video",{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.197 + media.inject("imgloader"); 53.198 + b.start({opacity:1}) 53.199 + }else{ 53.200 + if(filetype=="revver") 53.201 + { 53.202 + fileWidth=galleryimages[e]["width"]; 53.203 + fileHeight=galleryimages[e]["height"]; 53.204 + mediaSplit=galleryimages[e]["mediaURL"].split("/");mediaId=mediaSplit[4]; 53.205 + media=new Swiff("http://flash.revver.com/player/1.0/player.swf?mediaId="+mediaId+"&affiliateId="+revverID+"&allowFullScreen="+revverFullscreen+"&backColor=#"+revverBack+"&frontColor=#"+revverFront+"&gradColor=#"+revverGrad+"&shareUrl=revver",{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.206 + media.inject("imgloader"); 53.207 + b.start({opacity:1}) 53.208 + }else{ 53.209 + if(filetype=="rutube") 53.210 + { 53.211 + fileWidth=galleryimages[e]["width"]||"470px"; 53.212 + fileHeight=galleryimages[e]["height"]||"353px"; 53.213 + mediaSplit=galleryimages[e]["mediaURL"].split("="); 53.214 + mediaId=mediaSplit[1]; 53.215 + media=new Swiff("http://video.rutube.ru/"+mediaId,{movie:"http://video.rutube.ru/"+mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.216 + media.inject("imgloader"); 53.217 + b.start({opacity:1}) 53.218 + }else{ 53.219 + if(filetype=="seesmicm") 53.220 + { 53.221 + fileWidth=galleryimages[e]["width"]||"435px"; 53.222 + fileHeight=galleryimages[e]["height"]||"355px"; 53.223 + mediaSplit=galleryimages[e]["mediaURL"].split("/"); 53.224 + mediaId=mediaSplit[5]; 53.225 + media=new Swiff("http://seesmic.com/Standalone.swf?video="+mediaId,{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.226 + media.inject("imgloader"); 53.227 + b.start({opacity:1}) 53.228 + }else{ 53.229 + if(filetype=="tudou") 53.230 + { 53.231 + fileWidth=galleryimages[e]["width"]||"400px"; 53.232 + fileHeight=galleryimages[e]["height"]||"340px"; 53.233 + mediaSplit=galleryimages[e]["mediaURL"].split("/"); 53.234 + mediaId=mediaSplit[5]; 53.235 + media=new Swiff("http://www.tudou.com/v/"+mediaId,{width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.236 + media.inject("imgloader"); 53.237 + b.start({opacity:1}) 53.238 + }else{ 53.239 + if(filetype=="youku") 53.240 + { 53.241 + fileWidth=galleryimages[e]["width"]||"480px"; 53.242 + fileHeight=galleryimages[e]["height"]||"400px"; 53.243 + mediaSplit=galleryimages[e]["mediaURL"].split("id_"); 53.244 + mediaId=mediaSplit[1]; 53.245 + media=new Swiff("http://player.youku.com/player.php/sid/"+mediaId+"=/v.swf",{width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.246 + media.inject("imgloader"); 53.247 + b.start({opacity:1}) 53.248 + }else{ 53.249 + if(filetype=="youtube") 53.250 + { 53.251 + mediaSplit=galleryimages[e]["mediaURL"].split("v="); 53.252 + mediaId=mediaSplit[1]; 53.253 + if(mediaId.match(/fmt=18/i)) 53.254 + { 53.255 + mediaFmt="&ap=%2526fmt%3D18"; 53.256 + mediaWidth=galleryimages[e]["width"]||"560px"; 53.257 + mediaHeight=galleryimages[e]["height"]||"345px" 53.258 + }else{ 53.259 + if(mediaId.match(/fmt=22/i)) 53.260 + { 53.261 + mediaFmt="&ap=%2526fmt%3D22"; 53.262 + mediaWidth=galleryimages[e]["width"]||"640px"; 53.263 + mediaHeight=galleryimages[e]["height"]||"385px" 53.264 + }else 53.265 + { 53.266 + mediaFmt=ytQuality; 53.267 + mediaWidth=galleryimages[e]["width"]||"480px"; 53.268 + mediaHeight=galleryimages[e]["height"]||"295px" 53.269 + }} 53.270 + media=new Swiff("http://www.youtube.com/v/"+mediaId+"&autoplay="+autoplayNum+"&fs="+fullscreenNum+mediaFmt+"&color1=0x"+ytColor1+"&color2=0x"+ytColor2,{id:mediaId,width:mediaWidth,height:mediaHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.271 + media.inject("imgloader"); 53.272 + b.start({opacity:1}) 53.273 + }else{ 53.274 + if(filetype=="veoh") 53.275 + { 53.276 + fileWidth=galleryimages[e]["width"]||"410px"; 53.277 + fileHeight=galleryimages[e]["height"]||"341px"; 53.278 + mediaSplit=galleryimages[e]["mediaURL"].split("videos/"); 53.279 + mediaId=mediaSplit[1]; 53.280 + media=new Swiff("http://www.veoh.com/videodetails2.swf?permalinkId="+mediaId+"&player=videodetailsembedded&videoAutoPlay="+AutoplayNum,{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.281 + media.inject("imgloader"); 53.282 + b.start({opacity:1}) 53.283 + }else{ 53.284 + if(filetype=="viddler") 53.285 + { 53.286 + fileWidth=galleryimages[e]["width"]||"437px"; 53.287 + fileHeight=galleryimages[e]["height"]||"370px"; 53.288 + mediaSplit=galleryimages[e]["mediaURL"].split("/"); 53.289 + mediaId=mediaSplit[4]; 53.290 + media=new Swiff(galleryimages[e]["mediaURL"],{id:"viddler_"+mediaId,movie:galleryimages[e]["mediaURL"],classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen,id:"viddler_"+mediaId,movie:galleryimages[e]["mediaURL"]}}); 53.291 + media.inject("imgloader"); 53.292 + b.start({opacity:1}) 53.293 + }else{ 53.294 + if(filetype=="vimeo") 53.295 + { 53.296 + fileWidth=galleryimages[e]["width"]||"400px"; 53.297 + fileHeight=galleryimages[e]["height"]||"225px"; 53.298 + mediaSplit=galleryimages[e]["mediaURL"].split("/"); 53.299 + mediaId=mediaSplit[3]; 53.300 + media=new Swiff("http://www.vimeo.com/moogaloop.swf?clip_id="+mediaId+"&server=www.vimeo.com&fullscreen="+fullscreenNum+"&show_title="+vmTitle+"&show_byline="+vmByline+"&show_portrait="+vmPortrait+"&color="+vmColor,{id:mediaId,width:fileWidth,height:fileHeight,params:{wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.301 + media.inject("imgloader"); 53.302 + b.start({opacity:1}) 53.303 + }else{ 53.304 + if(filetype=="12seconds") 53.305 + { 53.306 + fileWidth=galleryimages[e]["width"]||"430px"; 53.307 + fileHeight=galleryimages[e]["height"]||"360px"; 53.308 + mediaSplit=galleryimages[e]["mediaURL"].split("/"); 53.309 + mediaId=mediaSplit[5]; 53.310 + media=new Swiff("http://embed.12seconds.tv/players/remotePlayer.swf",{id:mediaId,width:fileWidth,height:fileHeight,params:{flashvars:"vid="+mediaId+"",wmode:"opaque",bgcolor:bgcolor,allowscriptaccess:scriptaccess,allowfullscreen:fullscreen}}); 53.311 + media.inject("imgloader"); 53.312 + b.start({opacity:1}) 53.313 + }}}}}}}}}}}}}}}}}}} 53.314 + 53.315 + 53.316 + if(galleryimages[e]["forsale"]==true) 53.317 + { 53.318 + $("fsbox").empty(); 53.319 + var m=new Element("div",{id:"fsbutton"}).inject($("fsbox"),"top"); 53.320 + var h=new Element("div",{id:"fstop"}).inject($("fsbox")); 53.321 + var k=new Element("div",{id:"forsale"}).inject($("fsbox")); 53.322 + $("fsbutton").set("html",orderText+"<div id='fsclose'></div>"); 53.323 + if(galleryimages[e]["title"]==""||galleryimages[e]["title"]==null) 53.324 + { 53.325 + placeTitle=galleryimages[e]["src"] 53.326 + } 53.327 + else 53.328 + { 53.329 + placeTitle=galleryimages[e]["title"]}var j=new Fx.Morph("fsbox",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){var p=galleryimages[e]["paytype"];if(p=="paypal"){numOfPrices=galleryimages[e]["numOfPrices"];paypalform="";paypalform+='<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">';paypalform+=' <input type="hidden" name="cmd" value="_s-xclick">';paypalform+=' <input type="hidden" name="hosted_button_id" value="'+paypalButtonId+'">';paypalform+=' <img src="'+thumbPath+galleryimages[e]["src"]+'" border="0" class="forsalethumb" align="left" />';paypalform+=" <strong>Buy: "+placeTitle+"</strong><br />";paypalform+=" "+purchaseOf+placeTitle+shipinginfoshort+"<br />";paypalform+=" <table>";paypalform+=' <tr><td><input type="hidden" name="on0" value="'+galleryimages[e]["src"]+" - "+paypalSelectText+'">'+galleryimages[e]["src"]+" -"+paypalSelectText+'</td></tr><tr><td><select name="os0">';for(i=1;i<=numOfPrices;i++){if(galleryimages[e]["pricecurrency"+i+""]=="€"){pricingFormat=+""+galleryimages[e]["price"+i+""]+""+galleryimages[e]["pricecurrencysymbol"+i+""]}else{pricingFormat=galleryimages[e]["pricecurrencysymbol"+i+""]+""+galleryimages[e]["price"+i+""]}paypalform+='<option value="'+galleryimages[e]["pricesize"+i+""]+'">'+galleryimages[e]["pricesize"+i+""]+" "+pricingFormat+""}paypalform+=" </select> </td></tr>";paypalform+=" </table>";paypalform+=' <input type="hidden" name="currency_code" value="'+galleryimages[e]["pricecurrency"+i+""]+'">';paypalform+=' <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">';paypalform+=' <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">';paypalform+="</form>";$("forsale").set("html",paypalform)}if(p=="google"){numOfPrices=galleryimages[e]["numOfPrices"];googleform="";googleform+='<form action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/'+merchantId+'" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm">';googleform+='<img src="'+thumbPath+galleryimages[e]["src"]+'" border="0" class="forsalethumb" align="left" />';googleform+="<strong>Buy: "+placeTitle+"</strong>";googleform+="<br />";googleform+=purchaseOf+placeTitle+shipinginfoshort+"<br />";googleform+=selectSizes+": ";googleform+='<select name="item_selection_1">';for(i=1;i<=numOfPrices;i++){if(galleryimages[e]["pricecurrency"+i+""]=="€"){pricingFormat=galleryimages[e]["price"+i+""]+" "+galleryimages[e]["pricecurrencysymbol"+i+""]}else{pricingFormat=galleryimages[e]["pricecurrencysymbol"+i+""]+""+galleryimages[e]["price"+i+""]}googleform+=' <option value="'+i+'">'+galleryimages[e]["pricesize"+i+""]+" - "+pricingFormat+"</option>"}googleform+="</select><br />";for(i=1;i<=numOfPrices;i++){googleform+='<input name="item_option_name_'+i+'" type="hidden" value="'+galleryimages[e]["pricesize"+i+""]+' Print"/>';googleform+='<input name="item_option_price_'+i+'" type="hidden" value="'+galleryimages[e]["price"+i+""]+'"/>';googleform+='<input name="item_option_description_'+i+'" type="hidden" value="'+galleryimages[e]["pricesize"+i+""]+" "+placeTitle+'"/>';googleform+='<input name="item_option_quantity_'+i+'" type="hidden" value="1"/>';googleform+='<input name="item_option_currency_'+i+'" type="hidden" value="'+galleryimages[e]["pricecurrency"+i+""]+'"/>'}googleform+='<input alt="" src="https://checkout.google.com/buttons/buy.gif?merchant_id='+merchantId+'&w=121&h=44&style=trans&variant=text&loc=en_US" type="image"/>';googleform+="</form><hr /><br />";$("forsale").set("html",googleform)}$("fsbutton").addEvent("click",function(){openforsale();var q=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});q.start({opacity:0})})}});j.start({opacity:1,bottom:-277});var l=new Fx.Morph("fsclose",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});l.start({opacity:0})}}});var c=new Fx.Morph(""+e+"",{duration:100,transition:Fx.Transitions.linear});c.start({"border-color":"#FFF","background-color":"#FFF",opacity:1});d.start({opacity:1});g.start({opacity:0});var a=new Fx.Morph("loading",{duration:200,onComplete:function(){}});a.start({opacity:0})}function setThumbClick(a){thumbPath=maingalleries[a]["thumbpath"];imagenumber=Number(1);$$(".thumbnail").addEvent("click",function(f){if(playing==true){slideshow()}if(!busy){if(filetype!="image"){$("imgloader").empty()}busy=true;var g=this.id;imagenumber=this.get("rel");imagenumber=Number(imagenumber);$("numOf").set("text",imagenumber+" of ").inject("photoNum","top");var b=Number(galleryimages[g]["imgid"]);loadimage(Number(g),Number(imagenumber));var d=new Fx.Morph(""+previousid+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});d.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});var c=new Fx.Morph(g,{duration:500,transition:Fx.Transitions.linear});c.start({"border-color":"#FFF","background-color":"#FFF",opacity:1});previousid=b}});$("next").addEvent("click",function(c){if(playing==true){slideshow()}if(!busy){busy=true;nextnum=Number(currentimage+1);imagenumber=Number(imagenumber+1);realNum=$(""+nextnum+"").get("rel");$("numOf").set("text",realNum+" of ").inject("photoNum","top");loadimage(nextnum,imagenumber);var b=new Fx.Morph(""+currentimage+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});b.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});thumbinview=$("thumbnails").getCoordinates().width;maxThumbsVisible=Math.floor(thumbinview/setThumbWidth);thumbsMod=imagenumber%maxThumbsVisible;if(imagenumber>=maxThumbsVisible&&thumbsMod==1||maxThumbsVisible==1){movethumbs("more")}currentimage=Number(galleryimages[nextnum]["imgid"]);previousid=currentimage}});$("previous").addEvent("click",function(c){if(playing==true){slideshow()}if(!busy){thumbinview=$("thumbnails").getCoordinates().width;maxThumbsVisible=Math.floor(thumbinview/setThumbWidth);thumbsMod=(imagenumber)%maxThumbsVisible;if(imagenumber>=maxThumbsVisible&&thumbsMod==1||maxThumbsVisible==1){movethumbs("back")}previousnum=Number(currentimage-1);busy=true;imagenumber=Number(imagenumber-1);realNum=$(""+previousnum+"").get("rel");$("numOf").set("text",realNum+" of ").inject("photoNum","top");loadimage(""+previousnum+"",imagenumber);var b=new Fx.Morph(""+currentimage+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});b.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});currentimage=Number(galleryimages[previousnum]["imgid"]);previousid=currentimage}});$(window.document).addEvent("keydown",function(c){if(c.key=="right"&¤timage!=lastimage){if(playing==true){slideshow()}if(!busy){busy=true;nextnum=Number(currentimage+1);imagenumber=Number(imagenumber+1);realNum=$(""+nextnum+"").get("rel");$("numOf").set("text",realNum+" of ").inject("photoNum","top");loadimage(nextnum,imagenumber);var b=new Fx.Morph(""+currentimage+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});b.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});thumbinview=$("thumbnails").getCoordinates().width;maxThumbsVisible=Math.floor(thumbinview/setThumbWidth);thumbsMod=imagenumber%maxThumbsVisible;if(imagenumber>=maxThumbsVisible&&thumbsMod==1||maxThumbsVisible==1){movethumbs("more")}currentimage=Number(galleryimages[nextnum]["imgid"]);previousid=currentimage}}if(c.key=="left"&¤timage!=0){if(playing==true){slideshow()}if(!busy){thumbinview=$("thumbnails").getCoordinates().width;maxThumbsVisible=Math.floor(thumbinview/setThumbWidth);thumbsMod=(imagenumber)%maxThumbsVisible;if(imagenumber>=maxThumbsVisible&&thumbsMod==1||maxThumbsVisible==1){movethumbs("back")}previousnum=Number(currentimage-1);busy=true;imagenumber=Number(imagenumber-1);realNum=$(""+previousnum+"").get("rel");$("numOf").set("text",realNum+" of ").inject("photoNum","top");loadimage(""+previousnum+"",imagenumber);var b=new Fx.Morph(""+currentimage+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});b.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});currentimage=Number(galleryimages[previousnum]["imgid"]);previousid=currentimage}}});$$(".thumbnail").addEvent("mouseenter",function(){myid=this.id;var d=galleryimages[myid]["filetype"];var c=new Fx.Morph("thumbnailPopUp",{duration:25,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("thumbnailPopUp").empty();if(d=="image"){var f=new Element("img",{src:thumbPath+galleryimages[myid]["src"],id:"thumbPop"}).inject($("thumbnailPopUp"))}else{var f=new Element("img",{src:galleryimages[myid]["src"],id:"thumbPop"}).inject($("thumbnailPopUp"))}myX=$("gallery").getCoordinates().width;myY=$("images").getCoordinates().height;myImgWidth=$("thumbPop").getCoordinates().width;myImgHeight=$("thumbPop").getCoordinates().height;myNewX=((myX/2)-(myImgWidth/2));myNewY=(myY-(myImgHeight/2))-(($("thumbnailPopUp").getCoordinates().height/2)+6);if(animatingPop!=true){animatingPop=true;var e=function(){$("thumbnailPopUp").setStyles({position:"absolute",top:(myNewY),left:myNewX,visibility:"hidden"});var g=new Fx.Morph("thumbnailPopUp",{duration:200,transition:Fx.Transitions.Expo.easeOut,onComplete:function(){animatingPop=false}});g.start({top:myNewY,left:myNewX,opacity:1})};e.delay(250)}}});c.start({opacity:0});if(myid!=currentimage){var b=new Fx.Morph(myid,{duration:100,transition:Fx.Transitions.Expo.easeInOut});b.start({"border-color":"#FFF","background-color":"#FFF",opacity:1})}});$$(".thumbnail").addEvent("mouseleave",function(){myid=this.id;var c=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});c.start({opacity:0});if(myid!=currentimage){var b=new Fx.Morph(myid,{duration:50,transition:Fx.Transitions.Expo.easeInOut});b.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5})}})}function loadThumbs(l,b){var e=$("thumbnailwrap");thumbnailNumberPos=1;totalNumImages=0;totalNumMedia=0;totalNumQuicktime=0;$("thumbnailwrap").empty();startImage=maingalleries[l]["start"];endImage=maingalleries[l]["end"];thumbPath=maingalleries[l]["thumbpath"];lastimage=maingalleries[l]["end"];currentGallery=maingalleries[l]["gallerynum"];currentimage=Number(galleryimages[startImage]["imgid"]);previousid=Number(startImage);busy=false;for(i=startImage;i<=endImage;i++){filetype=galleryimages[i]["filetype"];if(totalthumbsvisible<$("thumbnails").getCoordinates().width-setThumbWidth){totalthumbsvisible+=setThumbWidth}thumbWidth+=setThumbWidth;e.setStyles({width:thumbWidth});var a=i;if(filetype=="image"){var c=new Element("div",{"class":"thumbnail",id:galleryimages[i]["imgid"],rel:thumbnailNumberPos});var f=new Element("img",{src:thumbPath+galleryimages[i]["src"],rel:" ","class":" controls",title:galleryimages[i]["title"]}).injectInside(c);totalNumImages++}if(filetype=="flv "||filetype=="mov"||filetype=="mp4"||filetype=="mp3 "||filetype=="aac"||filetype=="swf"||filetype=="blip"||filetype=="dailymotion"||filetype=="flickr"||filetype=="googlevideo"||filetype=="metacafe"||filetype=="myspacetv"||filetype=="revver"||filetype=="rutube"||filetype=="seesmic"||filetype=="tudou"||filetype=="youku"||filetype=="youtube"||filetype=="Veoh"||filetype=="viddler"||filetype=="vimeo"||filetype=="12seconds"){var c=new Element("div",{"class":"thumbnail",id:galleryimages[i]["imgid"],rel:thumbnailNumberPos});var f=new Element("img",{src:galleryimages[i]["src"],"class":" controls",title:galleryimages[i]["title"]}).injectInside(c);totalNumMedia++}if(totalNumMedia>1){flashCount=totalNumMedia+" Media Files | "}else{if(totalNumMedia==1){flashCount=totalNumMedia+" Media File | "}else{flashCount=""}}$("flashNum").set("html",flashCount);if(totalNumImages>1){imagecountHTML=totalNumImages+" Photos | "}else{if(totalNumImages==1){imagecountHTML=totalNumImages+" Photo | "}else{imagecountHTML=""}}$("photoNum").set("html",'<span id="numOf">1 of </span>'+imagecountHTML);c.injectInside($("thumbnailwrap"));thumbnailNumberPos++;$(""+i+"").setStyles({opacity:0});var g=new Fx.Morph(""+i+"",{duration:100,transition:Fx.Transitions.Expo.easeInOut,wait:true});if(i==0){g.start({opacity:1})}else{g.start({opacity:0.5})}if(i==endImage){thumbnailsviewable=Math.floor($("thumbnails").getCoordinates().width);if(thumbWidth>thumbnailsviewable){var d=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0,left:-40});var h=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});h.start({opacity:0.75,right:0})}else{var d=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0,left:-40});var h=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});h.start({opacity:0,right:-40})}if(b=="loadNew"){e.setStyles({left:0});currentthumbpos=0;loadimage(Number(startImage))}setThumbClick(l)}var j=$$(".controls");var k=new Tips(j,{showDelay:100,hideDelay:100,offsets:{x:8,y:8},title:"title",text:null,className:"minitooltips",fixed:false,onShow:function(m){m.fade(1)},onHide:function(m){m.fade(0)}})}}function galleries(){var c=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});c.start({opacity:0});if(playing==true){slideshow()}var b=new Fx.Morph("galleries",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});var a=new Fx.Morph("fsbox",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});filetype=galleryimages[currentimage]["filetype"];galleryheight=$("gallery").getCoordinates().height;hiddenGalpas=(galleryheight-$("controls").getCoordinates().height);controlHeight=$("controls").getCoordinates().height;if(openclose==true){if(filetype!="image"){$("imgloader").setStyle("visibility","hidden")}b.start({bottom:[-galleryheight,controlHeight]});if(slidesHidden==true){showthumbbox()}openclose=false;a.start({opacity:0})}else{closinggalleries=true;b.start({bottom:-(hiddenGalpas-1)}).addEvent("onComplete",function(){if(closinggalleries==true){if(filetype!="image"){$("imgloader").setStyle("visibility","visible");closinggalleries=false}}});a.start({opacity:1});openclose=true}}function loadimage(f,d){fsisopen="closed";var h=new Fx.Morph("fsbox",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});h.start({opacity:0,bottom:-305});if(f==startImage){$("previous").setStyles({visibility:"hidden"});prevHidden=true}else{$("previous").setStyles({visibility:"visible"});prevHidden=false}if(f==lastimage){$("next").setStyles({visibility:"hidden"});nextHidden=true}else{$("next").setStyles({visibility:"visible"});nextHidden=false}var g=$("images");var j=$("loading");var k=$("gallery");$("loading").setStyles({position:"absolute",opacity:0,left:(k.getCoordinates().width/2)-(j.getCoordinates().width/2),top:(g.getCoordinates().height/2)-(j.getCoordinates().height/2)});if(imagesloaded[f]!=f){imagesloaded[f]=f;var a=new Fx.Morph("infoloader",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});var b=new Fx.Morph("imgloader",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("imgloader").empty();filetype=galleryimages[f]["filetype"];if(filetype=="image"){new Asset.image(galleryimages[f]["path"]+galleryimages[f]["src"],{onload:function(){var l=new Fx.Morph("imagewrap",{duration:500,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){addImage(f)}});l.start({height:galleryimages[f]["height"],width:galleryimages[f]["width"],opacity:1,top:(((g.getCoordinates().height/2)-(galleryimages[f]["height"]/2))),left:(((g.getCoordinates().width/2)-(galleryimages[f]["width"]/2)))})}})}if(filetype=="flv "||filetype=="mov"||filetype=="mp4"||filetype=="mp3 "||filetype=="aac"||filetype=="swf"||filetype=="blip"||filetype=="dailymotion"||filetype=="flickr"||filetype=="googlevideo"||filetype=="metacafe"||filetype=="myspacetv"||filetype=="revver"||filetype=="rutube"||filetype=="seesmic"||filetype=="tudou"||filetype=="youku"||filetype=="youtube"||filetype=="Veoh"||filetype=="viddler"||filetype=="vimeo"||filetype=="12seconds"){if(playing==true){slideshow()}var e=new Fx.Morph("imagewrap",{duration:500,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){addImage(f)}});e.start({height:galleryimages[f]["height"],width:galleryimages[f]["width"],opacity:1,top:(((g.getCoordinates().height/2)-(galleryimages[f]["height"]/2))),left:(((g.getCoordinates().width/2)-(galleryimages[f]["width"]/2)))})}}});var c=new Fx.Morph("loading",{duration:200,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0});b.start({opacity:0});c.start({opacity:1})}else{var b=new Fx.Morph("imgloader",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("imgloader").empty();filetype=galleryimages[f]["filetype"];if(filetype=="image"){var e=new Fx.Morph("imagewrap",{duration:300,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){addImage(f)}});e.start({height:galleryimages[f]["height"],width:galleryimages[f]["width"],opacity:1,top:(((g.getCoordinates().height/2)-(galleryimages[f]["height"]/2))),left:(((g.getCoordinates().width/2)-(galleryimages[f]["width"]/2)))})}if(filetype=="flv "||filetype=="mov"||filetype=="mp4"||filetype=="mp3 "||filetype=="aac"||filetype=="swf"||filetype=="blip"||filetype=="dailymotion"||filetype=="flickr"||filetype=="googlevideo"||filetype=="metacafe"||filetype=="myspacetv"||filetype=="revver"||filetype=="rutube"||filetype=="seesmic"||filetype=="tudou"||filetype=="youku"||filetype=="youtube"||filetype=="Veoh"||filetype=="viddler"||filetype=="vimeo"||filetype=="12seconds"){if(playing==true){slideshow()}var e=new Fx.Morph("imagewrap",{duration:300,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){addImage(f)}});e.start({height:galleryimages[f]["height"],width:galleryimages[f]["width"],opacity:1,top:(((g.getCoordinates().height/2)-(galleryimages[f]["height"]/2))),left:(((g.getCoordinates().width/2)-(galleryimages[f]["width"]/2)))})}}});b.start({opacity:0})}}function nextprev(d,c){if(d=="previous"){var b=new Fx.Morph("previous",{duration:200,transition:Fx.Transitions.Expo.easeInOut});if(currentimage!=startImage){if(c=="enter"){b.start({opacity:1})}}if(c=="exit"&¤timage!=startImage){b.start({opacity:0.5})}}if(d=="next"){var a=new Fx.Morph("next",{duration:200,transition:Fx.Transitions.Expo.easeInOut});if(currentimage!=lastimage){if(c=="enter"){a.start({opacity:1})}}if(c=="exit"&¤timage!=lastimage){a.start({opacity:0.5})}}}function creategalleries(){var c=maingalleries.length-1;var b=function(d,j){var k=new Element("div",{"class":"gallery",id:"gallery"+d.gallerynum});var h=new Element("h3").set("html",d.name).injectInside(k);var e=new Element("img",{src:d.mainthumb+d.src,"class":"galleryimg",title:d.name,rel:d.description}).injectAfter(h);k.injectInside($("galleryset"));if(c==j){var g=$$(".galleryimg");var f=new Tips(g,{showDelay:100,hideDelay:100,offsets:{x:0,y:125},className:"tooltips",fixed:true,onShow:function(l){l.fade(1)},onHide:function(l){l.fade(0)}});$$(".gallery").addEvent("click",function(l){if(playing==true){slideshow()}var m=this.id;galleryID=""+m+"";galleries();galleryNum=Number(galleryID.slice(7));loadThumbs(galleryNum,"loadNew");movedamount=0})}};maingalleries.each(function(d,e){b(d,e)});var a=new Element("div",{"class":"clear"});a.inject($("galleryset"),"bottom")}function movethumbs(f){var e=$("thumbnails").getCoordinates().width-2;var g=setThumbWidth*(totalNumImages);var d=new Fx.Morph("thumbnailwrap",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});thisminusthat=g-e;if(f=="back"){if(!moving){moving=true;if(currentthumbpos!=0){move=(currentthumbpos+e);d.start({left:[currentthumbpos,move]}).addEvent("onComplete",function(){moving=false});currentthumbpos+=e;movedamount-=e}}}if(f=="more"){if(!moving){moving=true;move=(currentthumbpos-e);var c=new Fx.Morph("thumbgall",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});d.start({left:[currentthumbpos,move]}).addEvent("onComplete",function(){moving=false});currentthumbpos-=e;movedamount+=e}}thumbnailsviewable=$("thumbnails").getCoordinates().width;if(currentthumbpos==0){var b=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:0,left:-40});var a=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0.75,right:0})}else{if(movedamount<g-e){var b=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:0.75,left:0});var a=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0.75,right:0})}else{var b=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:0.75,left:0});var a=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0,right:-40})}}}function smallMessage(b,c,a){var d=new Fx.Morph("smallmessage",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});if(b=="show"){$("smallmessage").setStyles({opacity:0,bottom:-80,left:(($("images").getCoordinates().width/2)-(($("smallmessage").getCoordinates().width/2)))});$("smallmessage").set("text",c);d.start({bottom:(-80)+a,opacity:1})}if(b=="hide"){d.start({bottom:-80,opacity:0})}}function showInfo(a){var b=new Fx.Morph("imageinfo",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});if(showInfoType=="show"){showInfoType="hide";$("imageinfo").setStyles({"background-color":"#000",bottom:-300,width:"100%",opacity:0});b.start({bottom:(-300)+a,opacity:0.9})}else{if(showInfoType=="hide"){showInfoType="show";b.start({bottom:-300,opacity:0})}}}function loadLarge(){largeId=galleryimages[currentimage]["imgid"];var a=new Fx.Morph("lrgloader",{duration:transitionspeed});var c="<img src='"+galleryimages[largeId]["lrgpath"]+galleryimages[largeId]["src"]+"' id='imgsrc' title='"+galleryimages[largeId]["title"]+"' />";$("lrgloader").set("html",c);a.start({opacity:0.99999});var b=new Fx.Morph("closebtn",{duration:500,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:1})}function slideshow(){if(playing==false){$("slideshow").set("html",'<img src="'+designPath+'pause.png" alt="'+pauseText+'" title="'+pauseText+'" class="controls" border="0" align="absmiddle" />');playing=true;pp="play";var f=$$(".controls");var d=new Tips(f,{showDelay:100,hideDelay:100,offsets:{x:8,y:8},title:"title",text:null,className:"minitooltips",fixed:false,onShow:function(h){h.fade(1)},onHide:function(h){h.fade(0)}});var g=new Fx.Morph(""+currentimage+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});g.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});if(currentimage!=lastimage){nextImage=currentimage+1;thumbinview=$("thumbnails").getCoordinates().width;maxThumbsVisible=Math.floor(thumbinview/setThumbWidth);thumbsMod=(nextImage+1)%maxThumbsVisible;if((nextImage+1)>=maxThumbsVisible&&thumbsMod==1||maxThumbsVisible==1){movethumbs("more")}}else{var e=new Fx.Morph("thumbnailwrap",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({left:[currentthumbpos,0]}).addEvent("onComplete",function(){moving=false});currentthumbpos=0;nextImage=startImage;if(currentthumbpos==0){var b=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:0,left:-40});var a=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0.75,right:0})}else{if(movedamount<thumbBoxWidth-moveamount){var b=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:0.75,left:0});var a=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0.75,right:0})}else{var b=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});b.start({opacity:0.75,left:0});var a=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:0,right:-40})}}}imagenumber=$(""+nextImage+"").get("rel");$("numOf").set("text",imagenumber+" of ").inject("photoNum","top");loadimage(nextImage)}else{c=$clear(timer);$("slideshow").set("html",'<img src="'+designPath+'play.png" alt="'+playText+'" title="'+playText+'" class="controls" border="0" align="absmiddle" />');playing=false;pp="pause";var f=$$(".controls");var d=new Tips(f,{showDelay:100,hideDelay:100,offsets:{x:8,y:8},title:"title",text:null,className:"minitooltips",fixed:false,onShow:function(h){h.fade(1)},onHide:function(h){h.fade(0)}})}var c=function(){if(currentimage!=lastimage){nextImage=currentimage+1;thumbinview=$("thumbnails").getCoordinates().width;maxThumbsVisible=Math.floor(thumbinview/setThumbWidth);thumbsMod=(nextImage+1)%maxThumbsVisible;if((nextImage+1)>=maxThumbsVisible&&thumbsMod==1||maxThumbsVisible==1){movethumbs("more")}}if(currentimage!=lastimage&&pp=="play"){var k=new Fx.Morph(""+currentimage+"",{duration:500,transition:Fx.Transitions.Expo.easeInOut});k.start({"border-color":"#FFF","background-color":"#FFF",opacity:0.5});imagenumber=$(""+nextImage+"").get("rel");$("numOf").set("text",imagenumber+" of ").inject("photoNum","top");loadimage(nextImage)}else{c=$clear(timer);$("slideshow").set("html",'<img src="'+designPath+'play.png" alt="'+playText+'" title="'+playText+'" class="controls" border="0" align="absmiddle" />');playing=false;pp="pause";var j=$$(".controls");var h=new Tips(j,{showDelay:100,hideDelay:100,offsets:{x:8,y:8},title:"title",text:null,className:"minitooltips",fixed:false,onShow:function(l){l.fade(1)},onHide:function(l){l.fade(0)}})}};timer=c.periodical(slideshowtime)}function showthumbbox(){if(openclose!=false){minusThumb=$("thumbbox").getCoordinates().height;minusControls=$("controls").getCoordinates().height;var b=new Fx.Morph("gallery",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});var a=new Fx.Morph("thumbbox",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});if(showThumbs=="show"){showThumbs="hide";a.start({opacity:1});b.start({height:galleryHeight});slidesHidden=false}else{if(showThumbs=="hide"){showThumbs="show";a.start({opacity:0});b.start({height:(galleryHeight)-(minusThumb)});slidesHidden=true}}}}var resizeTimeout;prepareResize=function(){$clear(resizeTimeout);resizeTimeout=realResize.delay(300)};function createBackDrop(){if(largeHtmlIsCreated==null||largeHtmlIsCreated==""){var d=new Element("div",{id:"largeimage"}).injectInside(document.body);var b=new Element("div",{id:"lrgwrap","class":"close"}).injectInside("largeimage");var f=new Element("div",{id:"closebtn","class":"close"}).injectInside("largeimage");var c=new Element("div",{id:"lrgloader"}).injectInside("lrgwrap");var d=new Element("div",{id:"backdrop","class":"close"}).injectInside(document.body);$("largeimage").set("opacity",0);$("closebtn").set("opacity",0);$("largeimage").setStyles({height:0,width:0,opacity:0,top:($("gallery").getCoordinates().height)-50,left:(window.getWidth()/2)});$("backdrop").set("opacity",0);$("backdrop").setStyles({height:0,width:0,opacity:0,top:($("gallery").getCoordinates().height/2)-50,left:(window.getWidth()/2)});$$(".close").addEvent("click",function(){largeIsOpen=false;$clear(resizeTimeout);var g=new Fx.Morph("closebtn",{duration:500,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("lrgloader").empty();var j=new Fx.Morph("lrgwrap",{duration:500,transition:Fx.Transitions.Expo.easeInOut});var h=new Fx.Morph("largeimage",{duration:500,transition:Fx.Transitions.Expo.easeInOut});var k=new Fx.Morph("backdrop",{duration:1000,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("backdrop").setStyles({height:0,width:0,opacity:0,top:($("imagewrap").getCoordinates().height/2)+50,left:(window.getWidth()/2)})}});j.start({height:0,width:0,opacity:0});h.start({height:0,width:0,opacity:0,top:($("imagewrap").getCoordinates().height/2)+50,left:(window.getWidth()/2)});k.start({opacity:0})}});g.start({opacity:0})});largeHtmlIsCreated=true}if(galleryimages[currentimage]["lrgheight"]&&galleryimages[currentimage]["lrgwidth"]){var a=new Fx.Morph("loading",{duration:200,transition:Fx.Transitions.Expo.easeInOut});a.start({opacity:1});$("backdrop").setStyles({opacity:0,height:window.getScrollHeight(),width:"100%",top:0,left:0});var e=new Fx.Morph("backdrop",{duration:500,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){largeIsOpen=true;new Asset.image(galleryimages[currentimage]["lrgpath"]+galleryimages[currentimage]["src"],{onload:function(){var j=new Fx.Morph("loading",{duration:200,transition:Fx.Transitions.Expo.easeInOut});var h=new Fx.Morph("lrgwrap",{duration:500,transition:Fx.Transitions.Expo.easeInOut});var g=new Fx.Morph("largeimage",{duration:500,transition:Fx.Transitions.Expo.easeInOut});j.start({opacity:0});h.start({width:galleryimages[currentimage]["lrgwidth"],height:galleryimages[currentimage]["lrgheight"],opacity:1});g.start({width:galleryimages[currentimage]["lrgwidth"],height:galleryimages[currentimage]["lrgheight"],opacity:1,top:window.getScroll().y+20,left:((window.getWidth()/2)-(galleryimages[currentimage]["lrgwidth"]/2))}).addEvent("onComplete",function(){$("lrgloader").empty();var k=new Fx.Morph("lrgloader",{duration:500,transition:Fx.Transitions.Expo.easeInOut});k.start({opacity:0,width:galleryimages[currentimage]["lrgwidth"],height:galleryimages[currentimage]["lrgheight"],top:((($("largeimage").getCoordinates().height/2)-(galleryimages[currentimage]["lrgheight"]/2))),left:((($("largeimage").getCoordinates().width/2)-(galleryimages[currentimage]["lrgwidth"]/2)))}).addEvent("onComplete",function(){loadLarge()})})}})}});e.start({opacity:0.5});window.addEvent("resize",prepareResize);realResize=function(){var h=new Fx.Morph("backdrop",{duration:100,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){}});var g=new Fx.Morph("largeimage",{duration:100,transition:Fx.Transitions.Expo.easeInOut});h.start({opacity:0.5,height:window.getScrollHeight()});g.start({top:window.getScroll().y+20,left:((window.getWidth()/2)-(galleryimages[currentimage]["lrgwidth"]/2))})};$(window.document).addEvent("keydown",function(h){if(h.key=="esc"&&largeIsOpen==true){largeIsOpen=false;$clear(resizeTimeout);var g=new Fx.Morph("closebtn",{duration:500,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("lrgloader").empty();var k=new Fx.Morph("lrgwrap",{duration:500,transition:Fx.Transitions.Expo.easeInOut});var j=new Fx.Morph("largeimage",{duration:500,transition:Fx.Transitions.Expo.easeInOut});var l=new Fx.Morph("backdrop",{duration:1000,transition:Fx.Transitions.Expo.easeInOut,onComplete:function(){$("backdrop").setStyles({height:0,width:0,opacity:0,top:($("imagewrap").getCoordinates().height/2)+50,left:(window.getWidth()/2)})}});k.start({height:0,width:0,opacity:0});j.start({height:0,width:0,opacity:0,top:($("imagewrap").getCoordinates().height/2)+50,left:(window.getWidth()/2)});l.start({opacity:0})}});g.start({opacity:0})}})}}window.addEvent("domready",function(){$("slideshow").addEvent("click",function(){slideshow()});$("showthumbbox").addEvent("click",function(){showthumbbox()});$("showinfo").addEvent("click",function(){showInfo(135)});$("opengallery").addEvent("click",function(){galleries()});$("previous").addEvent("mouseenter",function(){nextprev("previous","enter");var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0})});$("images").addEvent("mouseenter",function(){nextprev("previous","exit");nextprev("next","exit");var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0});var f=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});f.start({opacity:0.75});var e=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({opacity:0.75})});$("controls").addEvent("mouseenter",function(){nextprev("previous","exit");nextprev("next","exit");var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0})});$("previous").addEvent("mouseleave",function(){nextprev("previous","exit");nextprev("next","exit")});$("next").addEvent("mouseenter",function(){nextprev("next","enter");nextprev("previous","exit");var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0})});$("next").addEvent("mouseleave",function(){nextprev("next","exit");nextprev("previous","exit")});$("thumbleft").addEvent("mouseleave",function(){var e=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({opacity:0.75});var d=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0.75})});$("thumbleft").addEvent("mouseenter",function(){var f=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});f.start({opacity:1});var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0});var e=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({opacity:0.75})});$("thumbright").addEvent("mouseleave",function(){var d=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0.75})});$("thumbright").addEvent("mouseenter",function(){var f=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});f.start({opacity:1});var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0});var e=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({opacity:0.75})});$("thumbleft").addEvent("click",function(){movethumbs("back")});$("thumbright").addEvent("click",function(){movethumbs("more")});$("thumbnailwrap").addEvent("mouseleave",function(){var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0})});var a=new Asset.image(designPath+"pause.png");galleryHeight=$("gallery").getCoordinates().height;$("imgloader").addEvent("click",function(){createBackDrop()});$("imgloader").addEvent("mouseenter",function(){if(galleryimages[currentimage]["lrgheight"]&&galleryimages[currentimage]["lrgwidth"]){smallMessage("show","Click Image to Enlarge",25)}});$("imgloader").addEvent("mouseleave",function(){if(galleryimages[currentimage]["lrgheight"]&&galleryimages[currentimage]["lrgwidth"]){smallMessage("hide")}if(currentimage!=0){var f=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});f.start({opacity:0.75});var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0});var e=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({opacity:0.75})}if(currentimage!=lastimage){var e=new Fx.Morph("thumbleft",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});e.start({opacity:0.75});var d=new Fx.Morph("thumbnailPopUp",{duration:50,transition:Fx.Transitions.Expo.easeInOut});d.start({opacity:0});var f=new Fx.Morph("thumbright",{duration:transitionspeed,transition:Fx.Transitions.Expo.easeInOut});f.start({opacity:0.75})}});$("fsbox").setStyles({left:($("gallery").getCoordinates().width/2)-($("fsbox").getCoordinates().width/2)});$("previous").set("opacity",0.5);$("next").set("opacity",0.5);creategalleries();loadThumbs(0,"loadNew");$("imagewrap").set("opacity",0);thumbSizing=$("1").getCoordinates().width;thumbRightMargin=$("1").getStyle("margin-right").toInt();thumbLeftMargin=$("1").getStyle("margin-left").toInt();setThumbWidth=Number(thumbSizing+thumbRightMargin+thumbLeftMargin);thumbWidth=Number(setThumbWidth);var c=$$(".controls");var b=new Tips(c,{showDelay:100,hideDelay:100,offsets:{x:8,y:8},title:"title",text:null,className:"minitooltips",fixed:false,onShow:function(d){d.fade(1)},onHide:function(d){d.fade(0)}});$(window.document).addEvent("keydown",function(d){if(d.key=="space"&&playing==true){slideshow()}if(d.key=="esc"&&playing==true){slideshow()}if(d.key=="esc"&&openclose==false){galleries()}})});
54.1 --- a/log/error_log.log Fri Mar 19 07:17:36 2010 -0400 54.2 +++ b/log/error_log.log Sun Apr 11 22:05:32 2010 -0400 54.3 @@ -1171,3 +1171,5 @@ 54.4 [Fri Mar 19 02:42:25 2010] [error] [client 67.195.112.117] File does not exist: /home/r/Desktop/web/judyates/robots.txt 54.5 [Fri Mar 19 04:47:04 2010] [error] [client 207.46.195.224] File does not exist: /home/r/Desktop/web/judyates/robots.txt 54.6 [Fri Mar 19 05:48:34 2010] [error] [client 207.46.13.41] File does not exist: /home/r/Desktop/web/judyates/robots.txt 54.7 +[Sun Apr 11 21:50:35 2010] [error] [client 127.0.0.1] File does not exist: /home/r/Desktop/web/judyates/favicon.ico 54.8 +[Sun Apr 11 21:50:38 2010] [error] [client 127.0.0.1] File does not exist: /home/r/Desktop/web/judyates/favicon.ico
55.1 --- a/recent_sales.html Fri Mar 19 07:17:36 2010 -0400 55.2 +++ b/recent_sales.html Sun Apr 11 22:05:32 2010 -0400 55.3 @@ -38,10 +38,10 @@ 55.4 var galleryimages = new Array(); 55.5 55.6 galleryimages = [ 55.7 -{'filetype':'image', 'path':'./e2gallerypro/e2upload/Galleries/prints/','src':'Judy_Yates_Buffalo_Verde.jpg', 'width':'720', 'height':'584', 'lrgwidth':'720', 'lrgheight':'584', 'lrgpath':'./e2gallerypro/e2upload/Galleries/prints/large/','title': 'Buffalo Verde', 'author':'Judy Yates', 'copyright':'Copyright Judy Yates Artist', 'description':'Buffalo Verde','forsale':true,'paytype':'paypal' , 'price1': '265', 'pricecurrency1': 'USD', 'pricecurrencysymbol1': '$', 'pricesize1': '16inx20in','numOfPrices':1, 'imgid':0}, 55.8 -{'filetype':'image', 'path':'./e2gallerypro/e2upload/Galleries/prints/','src':'Judy_Yates_Longhorn_Sunset.jpg', 'width':'720', 'height':'569', 'lrgwidth':'720', 'lrgheight':'569', 'lrgpath':'./e2gallerypro/e2upload/Galleries/prints/large/','title': 'Longhorn Sunset', 'author':'Judy Yates', 'copyright':'Copyright Judy Yates Artist', 'description':'Longhorn Sunset','forsale':true,'paytype':'paypal' , 'price1': '265', 'pricecurrency1': 'USD', 'pricecurrencysymbol1': '$', 'pricesize1': '16inx20in','numOfPrices':1, 'imgid':1}, 55.9 -{'filetype':'image', 'path':'./e2gallerypro/e2upload/Galleries/prints/','src':'Judy_Yates_Turquoise_Sky.jpg', 'width':'720', 'height':'558', 'lrgwidth':'720', 'lrgheight':'558', 'lrgpath':'./e2gallerypro/e2upload/Galleries/prints/large/','title': 'Turquoise Sky', 'author':'Judy Yates', 'copyright':'Copyright Judy Yates Artist', 'description':'Winner of the Mass. Primitive Arms Stamp Contest','forsale':true,'paytype':'paypal' , 'price1': '265', 'pricecurrency1': 'USD', 'pricecurrencysymbol1': '$', 'pricesize1': '16inx22in','numOfPrices':1, 'imgid':2}, 55.10 -{'filetype':'image', 'path':'./e2gallerypro/e2upload/Galleries/prints/','src':'Judy_Yates_Wood_Duck_Pair.jpg', 'width':'720', 'height':'537', 'lrgwidth':'720', 'lrgheight':'537', 'lrgpath':'./e2gallerypro/e2upload/Galleries/prints/large/','title': 'Wood Duck Pair', 'author':'Judy Yates', 'copyright':'Copyright Judy Yates Artist', 'description':'Wood Duck Pair','forsale':true,'paytype':'paypal' , 'price1': '265', 'pricecurrency1': 'USD', 'pricecurrencysymbol1': '$', 'pricesize1': '16inx20in','numOfPrices':1, 'imgid':3} 55.11 +{'filetype':'image', 'path':'./e2gallerypro/e2upload/Galleries/prints/','src':'Judy_Yates_Buffalo_Verde.jpg', 'width':'720', 'height':'584', 'lrgwidth':'1300', 'lrgheight':'1055', 'lrgpath':'./e2gallerypro/e2upload/Galleries/prints/large/','title': 'Buffalo Mesa Verde', 'author':'Judy Yates', 'copyright':'Copyright Judy Yates Artist', 'description':'Buffalo Verde','forsale':true,'paytype':'paypal' , 'price1': '265', 'pricecurrency1': 'USD', 'pricecurrencysymbol1': '$', 'pricesize1': '16inx20in','numOfPrices':1, 'imgid':0}, 55.12 +{'filetype':'image', 'path':'./e2gallerypro/e2upload/Galleries/prints/','src':'Judy_Yates_Longhorn_Sunset.jpg', 'width':'720', 'height':'569', 'lrgwidth':'1300', 'lrgheight':'1027', 'lrgpath':'./e2gallerypro/e2upload/Galleries/prints/large/','title': 'Longhorn Sunset', 'author':'Judy Yates', 'copyright':'Copyright Judy Yates Artist', 'description':'Longhorn Sunset','forsale':true,'paytype':'paypal' , 'price1': '265', 'pricecurrency1': 'USD', 'pricecurrencysymbol1': '$', 'pricesize1': '16inx20in','numOfPrices':1, 'imgid':1}, 55.13 +{'filetype':'image', 'path':'./e2gallerypro/e2upload/Galleries/prints/','src':'Judy_Yates_Turquoise_Sky.jpg', 'width':'720', 'height':'558', 'lrgwidth':'1300', 'lrgheight':'1007', 'lrgpath':'./e2gallerypro/e2upload/Galleries/prints/large/','title': 'Turquoise Sky', 'author':'Judy Yates', 'copyright':'Copyright Judy Yates Artist', 'description':'Winner of the Mass. Primitive Arms Stamp Contest','forsale':true,'paytype':'paypal' , 'price1': '265', 'pricecurrency1': 'USD', 'pricecurrencysymbol1': '$', 'pricesize1': '16inx22in','numOfPrices':1, 'imgid':2}, 55.14 +{'filetype':'image', 'path':'./e2gallerypro/e2upload/Galleries/prints/','src':'Judy_Yates_Wood_Duck_Pair.jpg', 'width':'720', 'height':'537', 'lrgwidth':'1300', 'lrgheight':'970', 'lrgpath':'./e2gallerypro/e2upload/Galleries/prints/large/','title': 'Wood Duck Pair', 'author':'Judy Yates', 'copyright':'Copyright Judy Yates Artist', 'description':'Wood Duck Pair','forsale':true,'paytype':'paypal' , 'price1': '265', 'pricecurrency1': 'USD', 'pricecurrencysymbol1': '$', 'pricesize1': '16inx20in','numOfPrices':1, 'imgid':3} 55.15 ]; 55.16 <!--End (E)2 Gallery Parse XML output Javascript--> 55.17 </script> <script type="text/javascript" src="e2gallerypro/js/e2gallerypro.js"></script>