document.write("<script language='Javascript'>")
document.write(unescape("jQuery.noConflict%28%29%0A%0AjQuery.zoomer%3D%7B%0A%09dsettings%3A%20%7B%0A%09%09zoomby%3A%203%2C%20//default%20increase%20factor%20of%20enlarged%20image%0A%09%09duration%3A%20500%2C%20//default%20duration%20of%20animation%2C%20in%20millisec%0A%09%09imgopacity%3A%200.2%20//opacify%20of%20original%20image%20when%20enlarged%20image%20overlays%20it%0A%20%09%7D%2C%0A%09cursorcss%3A%20%27url%28http%3A//www.waggachurchofchrist.org.au/slides/zoom.cur%29%2C%20-moz-zoom-in%27%2C%20//Value%20for%20CSS%27s%20%27cursor%27%20attribute%2C%20added%20to%20original%20image%0A%09zIndexcounter%3A%20100%2C%0A%09imgshells%3A%20%5B%5D%2C%0A%0A%09refreshoffsets%3Afunction%28%24window%2C%20%24target%2C%20warpshell%29%7B%0A%09%09var%20%24offsets%3D%24target.offset%28%29%0A%09%09var%20winattrs%3D%7Bx%3A%24window.scrollLeft%28%29%2C%20y%3A%24window.scrollTop%28%29%2C%20w%3A%24window.width%28%29%2C%20h%3A%24window.height%28%29%7D%0A%09%09warpshell.attrs.x%3D%24offsets.left%20//update%20x%20position%20of%20original%20image%20relative%20to%20page%0A%09%09warpshell.attrs.y%3D%24offsets.top%0A%09%09warpshell.newattrs.x%3Dwinattrs.x+winattrs.w/2-warpshell.newattrs.w/2%0A%09%09warpshell.newattrs.y%3Dwinattrs.y+winattrs.h/2-warpshell.newattrs.h/2%0A%09%09if%20%28warpshell.newattrs.x%3Cwinattrs.x+5%29%7B%20//no%20space%20to%20the%20left%3F%0A%09%09%09warpshell.newattrs.x%3Dwinattrs.x+5%09%0A%09%09%7D%0A%09%09else%20if%20%28warpshell.newattrs.x+warpshell.newattrs.w%20%3E%20winattrs.x+winattrs.w%29%7B//no%20space%20to%20the%20right%3F%0A%09%09%09warpshell.newattrs.x%3Dwinattrs.x+5%0A%09%09%7D%0A%09%09if%20%28warpshell.newattrs.y%3Cwinattrs.y+5%29%7B%20//no%20space%20at%20the%20top%3F%0A%09%09%09warpshell.newattrs.y%3Dwinattrs.y+5%0A%09%09%7D%0A%09%7D%2C%0A%0A%09zoom%3Afunction%28%24%2C%20%24target%2C%20options%29%7B%0A%09%09var%20setting%3D%7B%7D%20//create%20blank%20object%20to%20store%20combined%20settings%0A%09%09var%20setting%3DjQuery.extend%28setting%2C%20this.dsettings%2C%20options%29%0A%09%09var%20effectpos%3Dthis.imgshells.length%0A%09%09var%20attrs%3D%7Bw%3A%24target.outerWidth%28%29%2C%20h%3A%24target.outerHeight%28%29%7D%0A%09%09var%20newattrs%3D%7Bw%3AMath.round%28attrs.w*setting.zoomby%29%2C%20h%3AMath.round%28attrs.h*setting.zoomby%29%7D%0A%09%09%24target.css%28%27cursor%27%2C%20jQuery.zoomer.cursorcss%29%0A%09%09var%20%24clone%3D%24target.clone%28%29.css%28%7Bposition%3A%27absolute%27%2C%20left%3A0%2C%20top%3A0%2C%20visibility%3A%27hidden%27%2C%20border%3A%271px%20solid%20gray%27%2C%20cursor%3A%27pointer%27%7D%29.appendTo%28document.body%29%0A%09%09%24target.add%28%24clone%29.data%28%27pos%27%2C%20effectpos%29%20//save%20position%20of%20image%0A%09%09this.imgshells.push%28%7B%24target%3A%24target%2C%20%24clone%3A%24clone%2C%20attrs%3Aattrs%2C%20newattrs%3Anewattrs%7D%29%20//remember%20info%20about%20this%20warp%20image%20instance%0A%09%09%24target.bind%28%27click.zoom%27%2C%20function%28e%29%7B%20//action%20when%20original%20image%20is%20clicked%20on%0A%09%09%09var%20%24this%3D%24%28this%29.css%28%7Bopacity%3Asetting.imgopacity%7D%29%0A%09%09%09var%20imageinfo%3DjQuery.zoomer.imgshells%5B%24this.data%28%27pos%27%29%5D%0A%09%09%09jQuery.zoomer.refreshoffsets%28%24%28window%29%2C%20%24this%2C%20imageinfo%29%20//refresh%20offset%20positions%20of%20original%20and%20warped%20images%0A%09%09%09var%20%24clone%3Dimageinfo.%24clone%0A%09%09%09%24clone.stop%28%29.css%28%7BzIndex%3A++jQuery.zoomer.zIndexcounter%2C%20left%3Aimageinfo.attrs.x%2C%20top%3Aimageinfo.attrs.y%2C%20width%3Aimageinfo.attrs.w%2C%20height%3Aimageinfo.attrs.h%2C%20opacity%3A0%2C%20visibility%3A%27visible%27%7D%29%0A%09%09%09.animate%28%7Bopacity%3A1%2C%20left%3Aimageinfo.newattrs.x%2C%20top%3Aimageinfo.newattrs.y%2C%20width%3Aimageinfo.newattrs.w%2C%20height%3Aimageinfo.newattrs.h%7D%2C%20setting.duration%2C%0A%09%09%09function%28%29%7B%20//callback%20function%20after%20warping%20is%20complete%0A%09%09%09%09//none%20added%09%09%0A%09%09%09%7D%29%20//end%20animate%0A%09%09%7D%29%20//end%20click%0A%09%09%24clone.click%28function%28e%29%7B%20//action%20when%20magnified%20image%20is%20clicked%20on%0A%09%09%09var%20%24this%3D%24%28this%29%0A%09%09%09var%20imageinfo%3DjQuery.zoomer.imgshells%5B%24this.data%28%27pos%27%29%5D%0A%09%09%09jQuery.zoomer.refreshoffsets%28%24%28window%29%2C%20imageinfo.%24target%2C%20imageinfo%29%20//refresh%20offset%20positions%20of%20original%20and%20warped%20images%0A%09%09%09%24this.stop%28%29.animate%28%7Bopacity%3A0%2C%20left%3Aimageinfo.attrs.x%2C%20top%3Aimageinfo.attrs.y%2C%20width%3Aimageinfo.attrs.w%2C%20height%3Aimageinfo.attrs.h%7D%2C%20%20setting.duration%2C%0A%09%09%09function%28%29%7B%0A%09%09%09%09%24this.hide%28%29%0A%09%09%09%09imageinfo.%24target.css%28%7Bopacity%3A1%7D%29%20//reveal%20original%20image%0A%09%09%09%7D%29%20//end%20animate%0A%09%09%7D%29%20//end%20click%0A%09%7D%0A%7D%3B%0A%0AjQuery.fn.zoomer%3Dfunction%28options%29%7B%0A%09var%20%24%3DjQuery%0A%09return%20this.each%28function%28%29%7B%20//return%20jQuery%20obj%0A%09%09var%20%24imgref%3D%24%28this%29%0A%09%09if%20%28this.tagName%21%3D%22IMG%22%29%0A%09%09%09return%20true%20//skip%20to%20next%20matched%20element%0A%09%09if%20%28parseInt%28%24imgref.css%28%27width%27%29%29%3E0%20%26%26%20parseInt%28%24imgref.css%28%27height%27%29%29%3E0%29%7B%20//if%20image%20has%20explicit%20width/height%20attrs%20defined%0A%09%09%09jQuery.zoomer.zoom%28%24%2C%20%24imgref%2C%20options%29%0A%09%09%7D%0A%09%09else%20if%20%28this.complete%29%7B%20//account%20for%20IE%20not%20firing%20image.onload%0A%09%09%09jQuery.zoomer.zoom%28%24%2C%20%24imgref%2C%20options%29%0A%09%09%7D%0A%09%09else%7B%0A%09%09%09%24%28this%29.bind%28%27load%27%2C%20function%28%29%7B%0A%09%09%09%09jQuery.zoomer.zoom%28%24%2C%20%24imgref%2C%20options%29%0A%09%09%09%7D%29%0A%09%09%7D%0A%09%7D%29%0A%7D%3B%0A%0A//**%20The%20following%20applies%20the%20zoom%20effect%20to%20images%20with%20class%3D%22zoom%22%20and%20optional%20%22img-zoomby%22%20and%20%22img-zoomtime%22%20attrs%0A//**%20It%20also%20looks%20for%20links%20with%20attr%20rel%3D%22zoom%5Btargetimageid%5D%22%20and%20makes%20them%20togglers%20for%20that%20image%0A%0AjQuery%28document%29.ready%28function%28%24%29%7B%0A%09var%20%24targets%3D%24%28%27.zoom%27%29%0A%09%24targets.each%28function%28i%29%7B%0A%09%09var%20%24target%3D%24%28this%29%0A%09%09var%20options%3D%7B%7D%0A%09%09if%20%28%24target.attr%28%27img-zoomby%27%29%29%0A%09%09%09options.zoomby%3DparseFloat%28%24target.attr%28%27img-zoomby%27%29%29%0A%09%09if%20%28%24target.attr%28%27img-zoomtime%27%29%29%0A%09%09%09options.duration%3DparseInt%28%24target.attr%28%27img-zoomtime%27%29%29%0A%09%09%24target.zoomer%28options%29%0A%09%7D%29%0A%09var%20%24triggers%3D%24%28%27a%5Brel%5E%3D%22zoom%5B%22%5D%27%29%0A%09%24triggers.each%28function%28i%29%7B%0A%09%09var%20%24trigger%3D%24%28this%29%0A%09%09var%20targetid%3D%24trigger.attr%28%27rel%27%29.match%28/%5C%5B.+%5C%5D/%29%5B0%5D.replace%28/%5B%5C%5B%5C%5D%27%5D/g%2C%20%27%27%29%20//parse%20%27id%27%20from%20rel%3D%27zoom%5Bid%5D%27%0A%09%09%24trigger.data%28%27zoomimageid%27%2C%20targetid%29%0A%09%09%24trigger.click%28function%28e%29%7B%0A%09%09%09%24%28%27%23%27+%24%28this%29.data%28%27zoomimageid%27%29%29.trigger%28%27click.zoom%27%29%0A%09%09%09e.preventDefault%28%29%0A%09%09%7D%29%0A%09%7D%29%0A%7D%29"));
document.write("</script>");