
function Map(domEl){this.domElement=domEl;}
neo.util2d={};(function(){var lib=neo.util2d;lib.sortPoints=function(pnts,dim){var cpnts=[];var ln=pnts.length;for(var i=0;i<ln;i++)cpnts.push(pnts[i]);function compare(p0,p1){var p0v=p0[dim];var p1v=p1[dim];return(p0v<p1v)?-1:((p0v==p1v)?0:1);}
return cpnts.sort(compare);}
lib.indexEm=function(pnts){var ln=pnts.length;for(var i=0;i<ln;i++){var cp=pnts[i];cp._index=i;}}
lib.pointSet=function(pnts){this.inPoints=pnts;lib.indexEm(pnts);this.pointsX=lib.sortPoints(pnts,"x");this.pointsY=lib.sortPoints(pnts,"y");var intersector=[];var ln=pnts.length;for(var i=0;i<ln;i++){intersector.push(0);}}
lib.findIndex=function(pnts,dim,v,lb,ub){if(typeof lb=="undefined"){var p0=pnts[0];var v0=p0[dim];if(v<v0)return-1;return lib.findIndex(pnts,dim,v,0,pnts.length-1);}
if(lb==ub){var pnt=pnts[lb];var pv=pnt[dim];return(pv<=v)?lb:-1;}
if(lb==ub-1){pnt=pnts[ub];var pv=pnt[dim];return(pv<=v)?ub:lb;}
var c=Math.floor((lb+ub)/2);var cpnt=pnts[c];pv=cpnt[dim];if(pv<=v){return lib.findIndex(pnts,dim,v,c,ub);}
return lib.findIndex(pnts,dim,v,lb,c-1);}
lib.findNearbyInDim=function(p,pnts,dim,d){var v=p[dim];var idx=lib.findIndex(pnts,dim,v);var rs=[];var cidx=idx+1;var ln=pnts.length;if(cidx<ln){var cp=pnts[cidx];while((cp[dim]-v)<d){rs.push(cp);cidx++;if(cidx==ln)break;cp=pnts[cidx];}}
if(idx<0)return rs;cidx=idx;cp=pnts[cidx];while((v-cp[dim])<d){rs.push(cp);cidx--;if(cidx<=0)return rs;cp=pnts[cidx];}
return rs;}
lib.pointSet.prototype.findNearby=function(p,d){var xnb=lib.findNearbyInDim(p,this.pointsX,"x",d);var ynb=lib.findNearbyInDim(p,this.pointsY,"y",d);var xi=[];var xln=xnb.length;var intersector={};for(var i=0;i<xln;i++){var cp=xnb[i];var cpi=cp._index;xi.push(xnb[i]);intersector[cpi]=1;}
var yln=ynb.length;var rs=[];for(var j=0;j<yln;j++){cp=ynb[j];cpi=cp._index;if(intersector[cpi])rs.push(cp);}
var dsq=d*d;var frs=[];var rln=rs.length;var px=p.x;var py=p.y;for(var k=0;k<rln;k++){cp=rs[k];var dx=(px-cp.x);var dy=(py-cp.y);if((dx*dx+dy*dy)<dsq)frs.push(cp);}
return frs;}})();var topScale=0.85;var aratio=0.66666;var aratio=0.78;aratio=0.67;var playMovie=0;var hd=0;var screenWd=1920;var screenHt=1080;screenWd=1080;screenHt=720;if(playMovie){topScale=1.25;topScale=1.14;topScale=1.12;topScale=1.1;topScale=1.1*1080/720;topScale=1.55;}
var mapwd=topScale*800;var mapht=Math.floor(mapwd*aratio);var maptp=hd?120:50;var maplft=50;var listWidth=hd?440:280;var listHeight=mapht+50;(function(){var $n=neo;var c0=new $n.shape.Circle({radius:20,innerColor:"#707070",outerColor:"#303060"});var tr0=new $n.shape.IsoTriangle({baseOnTop:1,width:18,height:12,fillStyle:"#ffffff"});var ffbut=new $n.shape.FFButton({scale:1,oneTriangle:false,circle:c0,rotation:-Math.PI/2,triangle:tr0,bty:-12,tty:0});var tr1=new $n.shape.IsoTriangle({baseOnTop:1,width:24,height:16,fillStyle:"#ffffff"});var fbut=new $n.shape.FFButton({scale:1,oneTriangle:1,rotation:-Math.PI/2,triangle:tr1,bty:-12});var sq0=new $n.shape.Rect({width:18,height:18,fillStyle:"#ffffff",centered:1});var vcr=new $n.shape.VcrButtons({container:$('.c1'),left:50,top:100,scale:0.5,separation:100,ffbutton:ffbut,fbutton:fbut,square:sq0});$n.shapes.vcrbuttons0=vcr;})();(function(){var mark0=new $n.shape.Rect({width:2,height:6,centered:0});var smallMark0=new $n.shape.Rect({width:2,height:3,centered:0});var bar=new $n.shape.Rect({height:1,width:0});var sliding=new $n.shape.IsoTriangle({height:15,width:15,baseOnTop:1});var vcrbuttons0=$n.shapes.vcrbuttons0;var so={mark:mark0,smallMark:smallMark0,bar:bar,includeYear:1,textColor:"black",sliding:sliding,vertical:0,fontSize:"8pt",barColor:"black",loopAnimation:0,width:600,height:15,paddingTop:10,paddingBottom:30,startYear:1820,endYear:2010,subInterval:10,interval:50,bar:bar};if(!playMovie)so.vcrbuttons=vcrbuttons0;so.loopAnimation=0;so.delay=50;var slider0=new $n.slider.Slider(so);neo.shapes.slider0=slider0;})();(function(){var $n=neo;var mark0=new $n.shape.Rect({centered:1,width:10,height:3});var sq=new $n.shape.Rect({centered:1,width:1,height:1,fillStyle:"white"});var st=new $n.shape.Rect({centered:1,width:0.7,height:0.1,fillStyle:"black"});var plusSign=new $n.shape.PlusSign({square:sq,stroke:st});var bar=new $n.shape.Rect({fillStyle:"grey",width:2,centered:0});var sliding=new $n.shape.Rect({fillStyle:"navy",height:4,width:20,centered:1});var zoomer0=new neo.zoomer.Zoomer({mark:mark0,plusSign:plusSign,sliding:sliding,vertical:1,numMarks:4,width:50,height:100,lowerBound:1,upperBound:4,interval:50,bar:bar});neo.shapes.zoomer0=zoomer0;})();function flashMap(domEl){this.domElement=domEl;}
flashMap.prototype=new Map();(function(){flashMap.prototype.highlighted=null;flashMap.prototype.showItem=function(item,halo){var fel=this.domElement;if(!item.visible){fel.showWreck(item.id,halo);item.visible=1;}}
flashMap.prototype.selectItem=function(item){var fel=this.domElement;if(item){fel.selectWreck(item.id);item.visible=1;}else{fel.selectWreck(0);}}
flashMap.prototype.hideItem=function(item){var fel=this.domElement;if(item.visible){fel.hideWreck(item.id);item.visible=false;}}
flashMap.prototype.highlightItem=function(item){var fel=this.domElement;if(!fel)return;var ch=this.highlighted;neo.log("highlight",item,ch);if(ch&&(ch!=item)){fel.highlightWreck(ch.id,0);}
if(item){try{fel.highlightWreck(item.id,1);}catch(e){alert('catch');alert(e);debugger;}}
this.highlighted=item;}})();var noaaCharts={1851:"CP212C",1854:"cp416c",1870:"CP1130C",1884:"CP1799C",1903:"CP2799C",1905:"cp2914c",1948:"6151_9-1948",1949:"6151_11-1949",1959:"6151_7-1959",1968:"6151_3-1968",1969:"6151_1-1969",1970:"6151_1-1970",1971:"6151_1-1971",1972:"6151_2-1972",1973:"6151_3-1973",1974:"6151_5-1974",1975:"18521-4-1975",1976:"18521-3-1976",1977:"18521-3-1977",1978:"18521-3-1978",1979:"18521-10-1979",1981:"18521-1-1981",1982:"18521-3-1982",1983:"18521-7-1983",1984:"18521-6-1984",1985:"18521-10-1985",1987:"18521-9-1987"};function nextChart(yr){for(var i in noaaCharts){if(i>=yr){return{year:i,path:noaaCharts[i]};}}
return{year:1987,path:noaaCharts[1987]};}
var noaaBaseUrl="http://historicalcharts.noaa.gov/tiled_jpgs_done/zoomifyURLDrivenWebPage.htm?zoomifyImagePath=";var wrecks=[{"name":"potomac","date":"1852","livesLost":"none","shipType":"Brig","x":"417343","y":"5120804","description":"Capt. Addison Drinkwater.  While outbound for San Francisco she struck on the middle sands of the bar.  She finally drifted free and tide currents carried her back to Astoria.  She was A total construction loss.","day":"May","cargo":"Lumber","source":"Lewis & Dryden Marine History, Gibbs' Pacific Graveyard","index":0},{"name":"great republic","date":"1879","shipType":"steamer-side wheeler","livesLost":"11","tonnage":"3,881","x":"421636","y":"5124131","day":"April 19","cargo":"900 passengers","source":"Lewis& Dryden Marine History\/Gibbs' Pacific Graveyard\/Don Marshall Oregon Shipwrecks","index":1},{"name":"cairnsmore","date":"1883","shipType":"bark","tonnage":"975","x":"424770","y":"5114259","livesLost":"none","length":"207","day":"Sept. 27","wherebuilt":"Glasgow","cargo":"Cement and Machinery","source":"Oregon Shipwrecks by Don Marshall and Lloyd's Register","index":2},{"name":"peter iredale","date":"1906","shipType":"Bark","livesLost":"none","x":"424885","y":"5112913","description":"Capt Lawrence.  One hundred miles south of the Columbia River the ship ran into a dense fog.  Navigating by dead reckoning, the captain calculated that he was 50 miles off shore.  By the time he saw the breakers it was too late and they were blown onto the beach.","day":"Oct. 25","tonnage":"1994","length":"287","wherebuilt":"Maryport, England","source":"Oregon Historical Quarterly, March 1963.","bigImage":"peter-iredale.jpg","image":"peter-iredale-small.jpg","index":3},{"name":"vazlav vorovsky","date":"1941","livesLost":"none","link":"http:\/\/www.crmm.org","description":"Capt J. Tokareff. The ship lost steering on the bar in heavy weather, drifted on to Peacock Spit and broke up. The Coast Guard removed the crew, but the captain elected to remain aboard until it was obvious the ship could not be saved.  Rumors circulated that Josef Stalin had the captain executed for losing the ship.","x":"417195","y":"5123376","shipType":"Freighter","tonnage":"4793 gross","length":"365","wherebuilt":"Sunderland, England","cargo":"heavy machinery","day":"April 3","source":"Don Marshall's Oregon Shipwrecks","bigImage":"vazlav.jpg","image":"vazlav-small.jpg","index":4},{"note":"cgmod","name":"laurel","date":"1929","shipType":"Freighter","livesLost":"1","tonnage":"5779","cargo":"Lumber","description":"Capt Louis Johnson lost steering while exiting the Columbia River. The ship broke in two when she struck the shore.  Johnson lost his license for failing to use emergency steering gear.","x":"416534","y":"5125066","length":"410","wherebuilt":"Seatle, Wa","day":"June 16","source":"McCurdy's Maritime History, Lloyd's Register","bigImage":"laurel.jpg","image":"laurel-small.jpg","index":5},{"name":"william & ann","date":"1829","shipType":"Bark - Snow","livesLost":"26","tonnage":"300","cargo":"Supplies for Hudsons Bay CompanyCo.","description":"Under command of Capt Hanwell, and following schooner, Convoy, she missed the channel in a raging storm and ran aground on Clatsop spit where she was pounded to pieces by overflowing walls of water.","source":"Lloyd's Register, Gibbs' Pacific Graveyard","day":"March 10","x":"423741","y":"5121024","index":6},{"name":"isabella","date":"1830","shipType":"Bark","livesLost":"None","tonnage":"209","cargo":"Supplies for Hudsons Bay","description":"Commanded by Capt Thomas Ryan,she lost the wind while crossing the bar and ran aground on Sand Island.  Caught in a heavy swell with a southeast wind, she was hit by heavy breakers and broke up.","day":"May 23","source":"Pacific Graveyard, Gibbs","x":"423152","y":"5123669","index":7},{"note":"cgmod","name":"vancouver","date":"1848","shipType":"Bark","day":"May 8","livesLost":"None","tonnage":"303","wherebuilt":"London","cargo":"Supplies for Hudsons Bay","source":"LLoyd's  Register, Don Marshall's Oregon Shipwrecks","description":"Capt Mouatt turned his vessel over to pilot S.C. Reeves, the first bar pilot, and she struck the sand around the middle of the river and was a total loss as were the supplies for Fort Vancouver. Some accused Reeves of deliberately causing the accident so that he could pillage the ship. He resigned following the incident.","x":"423079","y":"5121024","index":8},{"name":"u.s.s. peacock","date":"1841","shipType":"Sloop, 18 guns","livesLost":"None","tonnage":"559","wherebuilt":"U.S.","description":"Commanded by Capt William L. Hudson, the sloop missed the channel, struck the bar,and broke up. The location of the wreck on the north side of the bar is denoted Peacock Spit. ","day":"July 18","x":"415800","y":"5123524","index":9},{"note":"cgmod","name":"u.s.s. shark","date":"1846","shipType":"Schooner  12 guns","livesLost":"None","tonnage":"400","wherebuilt":"U.S.","description":"Under command of Capt. Schenck, the vessel left Fort Astor undermanned and ill-prepared. She struck Clatsop spit and broke up. Cannon drifted south and are allegedly responsible for the naming of Cannon Beach.","day":"Sept. 10","source":"Don Marshall's Oregon Shipwrecks","x":"423668","y":"5120288","index":10},{"name":"maine","date":"1848","shipType":"whaler bark","livesLost":"None","tonnage":"294","description":"The captain elected to cross the bar without a pilot, lost the wind, and drifted onto Clatsop spit. The bark and its cargo were a total loss. The captain and part of the crew took the vessel's long boat and sailed to San Francisco.","day":"Aug 25","wherebuilt":"U.S.","cargo":"whale and sperm oil","source":"Don Marshall's Oregon Shipwrecks","x":"427049","y":"5108379","index":11},{"name":"sylvia de grasse","date":"1849","shipType":"Packet","livesLost":"None","wherebuilt":"U.S.","cargo":"Lumber","description":"William Gray, owner.  When she weighed anchor just east of Astoria, the overloaded vessel drifted onto the rocks and became wedged.  Her lumber cargo was off loaded, but the rocks never released their hold.  She was the first ship to bring news of the French revolution to the U.S.","x":"438591","y":"5116318","index":12},{"note":"cgmod","name":"iowa","date":"1936","shipType":"Steamer, freighter","livesLost":"34","tonnage":"8800","cargo":"Lumber and general","description":"Capt Edgar L. Yates. The ship crossed the bar in a fierce gale and was blown  onto Peacock Spit. The Coast Guard received a faint SOS, but when they arrived it was too late  and all hands were lost. Only the masts and king posts were showing.","day":"January 12","source":"Don Masrshall's Oregon Shipwrecks","bigImage":"iowa.jpg","image":"iowa-small.jpg","x":"415396","y":"5124834","index":13},{"note":"cgmod","name":"pescawha","date":"1933","shipType":"Schooner, gas","livesLost":"1","tonnage":"93","description":"Capt Riley lost the gas engined schooner on the rocks of the north jetty opposite buoy 10 and he was crushed while attempting to launch a life boat.  The Pescawha had a colorful career as a Canadian rum runner before being captured by the U.S. Coast Guard.","day":"Feb 27","source":"Gibbs' Pacific Graveyard","x":"416247","y":"5123699","index":14},{"note":"cgmod","name":"sea thrush","date":"1932","shipType":"Steamer","livesLost":"none","tonnage":"5832","length":"410","wherebuilt":"Portland, Or","description":"Capt Landstrom. Equipped with faulty charts and caught in a heavy fog, the ship grounded on Clatsop spit between buoys 10 and 12. The captain stayed on board hoping to refloat her, but the keel snapped and he was removed by the Coast Guard. The ship sank. She was originally named Westland.","day":"Dec 4","source":"McCurdy's Maritime History, LLoyd's register, Gibbs' Pacific Graveyard","bigImage":"sea-thrush.jpg","image":"sea-thrush-small.jpg","x":"420969","y":"5121710","index":15},{"note":"cgmod","name":"admiral benson","date":"1920","shipType":"Steamer","livesLost":"none","tonnage":"2962","length":"299","wherebuilt":"Wilmington, De","cargo":"General","description":"Capt C.C. Graham. Inbound, the ship stranded near Peacock Spit in the fog.  The passengers were removed by the Coast Guard. The captain stayed on board until  Feb 24. A ship wreck, (the Laurel), had been mistaken for the range buoy by the liner's officers.","day":"Feb 15","source":"McCurdy's Maritime History, Lloyd's Register","bigImage":"admiral-benson.jpg","image":"admiral-benson-small.jpg","x":"415794","y":"5124266","index":16},{"name":"north bend","date":"1928","shipType":"Schooner","livesLost":"none","tonnage":"981","length":"204","wherebuilt":"North Bend, Or","description":"Capt Theodore Hansen. In attempting to cross the bar without a pilot, a wind change forced the ship aground off buoy 8. Sand eventually washed from under the vessel and formed a channel across the spit to Baker Bay where it refloated itself after nearly a year of being land locked. She was subsequently converted to a barge.","day":"Feb 15","bigImage":"north-bend.jpg","image":"north-bend-small.jpg","x":"415583","y":"5124502","index":17},{"name":"rosecrans","date":"1913","day":"Jan 7","shipType":"Steamer","livesLost":"32","tonnage":"2976","length":"86 feet","wherebuilt":"Glasgow","cargo":"oil","source":"The H.W. McCurdy Marine History of the Pacific Northwest","description":"A former Army transport converted to a tanker, the ship missed the channel and ran aground on Peacock Spit in a 55 MPH gale. It broke apart and only three crewmen were saved.","bigImage":"rosecrans.jpg","image":"rosecrans-small.jpg","x":"415752","y":"5125655","index":18},{"name":"admiral","date":"1912","day":"Jan. 13","shipType":"Schooner","livesLost":"None","tonnage":"683","length":"173 ft. 6 in.","wherebuilt":"Coos Bay, Oregon","source":"The H.W. McCurdy Marine History of the Pacific Northwest","description":"Capt. Joseph Bender. Heading for Grays   Harbor, the ship was blown off course by a gale. She hit the 20 yard gap in the south jetty and all hands stepped off the vessel on both sides of the jetty.  The ship eventually worked its way through the jetty into the channel and sunk during an attempted salvage.","x":"417639","y":"5120436","index":19},{"name":"oshkosh","date":"1911","day":"Feb. 12","shipType":"Schooner (gas)","livesLost":"6","tonnage":"683","wherebuilt":"North Bend, Oregon","source":"The H.W. McCurdy Marine History of the Pacific Northwest","description":"Capt. Latham. The ship encountered a strong southeast gale and ran for the Columbia River where she struck the bar and sank.  Only the engineer survived.","bigImage":"oshkosh.jpg","image":"oshkosh-small.jpg","x":"418593","y":"5119847","index":20},{"name":"galena","date":"1906","day":"Nov. 13","shipType":"Bark","livesLost":"None","tonnage":"2294","length":"292","wherebuilt":"Dundee, Scotland","cargo":"Ballast","description":"Capt. Howell was standing off the mouth of the Columbia.  He got too close to shore and was carried on to the beach by the surf.  The bark was eventually covered by sand and today a small settlement is built over the top of her hull.","bigImage":"galena.jpg","image":"galena-small.jpg","x":"426020","y":"5110658","index":21},{"name":"frank w. howe","date":"1904","day":"Feb. 22","shipType":"Schooner","livesLost":"2","tonnage":"553","cargo":"Railroad Ties","description":"Capt. A. Keegan took on water during a gale, beached and broke in two at Fort Canby.  One seaman died when he was swept from the rigging and the cook was crushed by a wave while at the helm.","x":"417727","y":"5131089","bigImage":"frank-w-howe.jpg","image":"frank-w-howe-small.jpg","index":22},{"name":"cavour","date":"1903","day":"Dec. 8","shipType":"Bark","livesLost":"None","tonnage":"1429","wherebuilt":"Nova Scotia","cargo":"Lumber","source":"The H.W. McCurdy Marine History of the Pacific Northwest .  Gibbs Pacific Graveyard","description":"Capt. Telemore Sofianos. She was the first Italian ship lost on the Columbia River Bar.  While anchored offshore awaiting favorable winds to cross the bar, strong winds blew her ashore dragging her anchor.  The ship was a total loss.","x":"420432","y":"5124185","index":23},{"name":"alsternixe","date":"1903","day":"Feb. 9","shipType":"Bark","livesLost":"None","tonnage":"3059","source":"The H.W. McCurdy Marine History of the Pacific Northwest.  Gibbs Pacific Graveyard","description":"Capt. Richard Auhagen got out of the channel and was blown ashore 2 miles south of Cape Disappointment.  Later floated free, it was one of the few vessels to escape destruction in this situation","x":"419402","y":"5124037","bigImage":"alsternixe.jpg","image":"alsternixe-small.jpg","index":24},{"name":"cape wrath","date":"1901","day":"Jan. 15","shipType":"Bark","livesLost":"15","tonnage":"2140","length":"231","wherebuilt":"Glasgow, Scotland","source":"The H.W. McCurdy Marine History of the Pacific Northwest.   Gibbs Pacific Graveyard.  Loyd's Register","description":"Lost off the mouth of the Columbia in a terrible storm, the ship and all hands vanished without a trace.","x":"410505","y":"5121906","index":25},{"name":"potrimpos","date":"1896","day":"Dec. 19","shipType":"Bark","livesLost":"None","tonnage":"1246","length":"227","wherebuilt":"Hamburg, Germany","cargo":"Ballast","source":"The H.W. McCurdy Marine History of the Pacific Northwest.  Lloyd's Register","description":"While Capt. Hellwegge was waiting for a bar pilot, the vessel drifted ashore seven miles south of the Ilwaco Lifeboat Station in a heavy fog.  The vessel was eventually pulled free, only to capsize and become a total loss.","bigImage":"potrimpos.jpg","image":"potrimpos-small.jpg","x":"418545","y":"5131840","index":26},{"name":"point loma","date":"1896","day":"Feb. 28","shipType":"Steamer Schooner","livesLost":"None","tonnage":"380","length":"148","wherebuilt":"San Francisco, California","cargo":"Lumber","source":"The H.W. McCurdy Marine History of the Pacific Northwest.  Gibb's Pacific Graveyard.  Lloyd's Register","description":"Captain Conway. Struck by a gale, the ship's hull leaked and put out the boiler fires.  She washed up on Long Beach, near Seaview, Washington, a total loss.","bigImage":"point-loma.jpg","image":"point-loma-small.jpg","x":"418545","y":"5131843","index":27},{"name":"governor moody","date":"1890","day":"Sept. 20","shipType":"Pilot Schooner","livesLost":"None","tonnage":"64","length":"83","wherebuilt":"Astoria, Oregon","source":"Lewis & Dryden's Marine History of the Pacific Northwest.  Gibb's Pacific Graveyard.  Oregon Shipwrecks, Don Marshall.","x":"416984","y":"5127484","index":28},{"name":"carrie b. lake","date":"1886","day":"Jan. 3","shipType":"Schooner-Fishing","livesLost":"3","tonnage":"36","wherebuilt":"Puget Sound, Washington","source":"Lewis & Dryden's Marine History of the Pacific Northwest.  Gibb's Pacific Graveyard","description":"The ship stranded near the present location of Long Beach and was a total loss. Three lives were lost, two crew managed to struggle ashore.","x":"418548","y":"5131840","index":29},{"name":"devonshire (or dovenshire)","date":"1884","shipType":"Tramp Steamer","tonnage":"1513","length":"316","wherebuilt":"Stockton, England","description":"Wrecked on Clatsop Spit.  Very little known.","x":"425211","y":"5113305","index":30},{"name":"corsica","date":"1882","day":"Feb. 21","shipType":"Bark","livesLost":"None","tonnage":"778","length":"152","wherebuilt":"Quebec","cargo":"Wheat","source":"Oregon Shipwrecks by   Don Marshall\/Lloyd's Register","description":"Capt W.H. Vessey.  Headed for England, the ship struck heavily on the bar.  She sank 12 miles south of the river.","x":"410873","y":"5111687","index":31},{"name":"primrose","date":"1882","shipType":"Snow","tonnage":"226","length":"95","wherebuilt":"Sunderlund","source":"Lloyd's Register","x":"426240","y":"5109701","index":32},{"name":"edith lorn","date":"1881","day":"Nov. 17","shipType":"Bark","livesLost":"None","tonnage":"803","cargo":"Grain","source":"Oregon Shipwrecks by Don Marshall\/Lewis & Dryden's Maritime History","description":"Capt. Willliam Watt.  Enroute to Queenstown, she lost the wind in mid crossing and struck the bar.  She soon broke up and sank.","x":"418300","y":"5120804","index":33},{"name":"fern glenn","date":"1881","day":"Oct. 16","shipType":"Bark","tonnage":"818","cargo":"Ballast","source":"Lewis & Dryden Marine History\/Gibbs Pacific Graveyard","description":"Capt. F. Budd mistook Tillamook Rock Light for Point Adams Light and ran aground on Clatsop Spit in clear weather.  The ship soon broke up and was a total loss.","x":"424133","y":"5116016","index":34},{"name":"rival","date":"1881","day":"Sept. 13","shipType":"Bark","tonnage":"299","length":"130","wherebuilt":"Baltimore","cargo":"Hay & Shingles","source":"Lewis & Dryden Marine History\/Gibbs' Pacific Graveyard\/Don Marshall's Oregon Shipwrecks","x":"418979","y":"5124979","index":35},{"name":"city of dublin","date":"1878","day":"Oct. 18","shipType":"Bark","livesLost":"none","tonnage":"814","length":"200","wherebuilt":"Grenck, Scotland","source":"Lewis & Dryden Marine History\/Don Marshall Oregon Shipwreck\/Gibbs' Pacific Graveyard","description":"Capt. David Steven.  Approaching the mouth in darkness and fog, the ship came in too close and a shift of wind carried her onto Clatsop Spit.  Salvage was unsuccesful.  She was written off as a total loss.","x":"423888","y":"5116318","index":36},{"name":"nimbus","date":"1877","day":"Dec. 29","shipType":"Bark","livesLost":"None","tonnage":"1302","wherebuilt":"Bath, ME","cargo":"Grain","source":"Lewis & Dryden Marine History","description":"Capt. R.L. Leonard, Pilot Doig. The ship struck heavily on the bar, but continued on unaware that she was taking on water.  She finally sank 25 miles off the mouth.","x":"407785","y":"5131683","index":37},{"name":"architect","date":"1875","day":"Mar. 28","shipType":"Bark","livesLost":"none","tonnage":"2179","wherebuilt":"Rockville, MD","cargo":"Ballast","source":"Lewis & Dryden Marine History\/Don Marshalll Oregon Shipwrecks\/Gibbs' Pacific Graveyard.","description":"Capt Mertage.  Attempting to follow The Pactolus across the bar, she lost the wind and drifted onto Clatsop Spit.  Salvage sold for $52.00.","x":"424698","y":"5114775","index":38},{"name":"sidi (sea waif)","date":"1874","day":"March 1","shipType":"Brig","livesLost":"None","tonnage":"776","cargo":"Ballast","source":"Lewis & Dryden Marine History\/Don Marshall Oregon Shipwrecks","description":"Capt Cometoux.  The ship passed over the bar successfully, but, on turning to round Sand Island, the wind shifted and forced her aground.  The vessel was salvaged by Capt. Wm. Koerner of Astoria and renamed The Sea Waif and served as a lumber hauler.","x":"423888","y":"5123403","index":39},{"name":"windward","date":"1871","day":"Dec. 23","shipType":"Bark","livesLost":"None","tonnage":"818","source":"Gibbs' Pacific Graveyard\/Lewis & Dryden Marine History","description":"The ship ran aground on Sand Island but was refloated and refitted.  She then served as a lumber carrier until, under Capt. A.E. Williams, she ran aground at Whidby Island in 1875 and was a total loss.","x":"422225","y":"5123074","index":40},{"name":"u. s. grant","date":"1871","day":"Dec. 19","shipType":"Steamer","livesLost":"None","tonnage":"55","length":"70","wherebuilt":"Porrtland, OR","cargo":"Passenger-Mail","source":"Don Marshall Oregon Shipwrecks\/Lewis & Dryden Marine History","description":"Capt.A.W. Gray. The ship broke from her morrings at Fort Canby and grounded on Sand Island, a total loss.","x":"421192","y":"5126392","index":41},{"name":"champion","date":"1870","day":"Apr. 15","shipType":"Schooner","livesLost":"3","wherebuilt":"Tillamook, OR","cargo":"Lumber","source":"Lewis & Dryden Marine History\/Gibbs' Pacific Graveyard.","description":"Capt. Dodge.  Outbound, she lost the wind on the bar and had to anchor that night.  She was hit by a heavy swell and capsized.  One crewman was saved by lashing himself to the overturned lifeboat.","x":"416235","y":"5124055","index":42},{"name":"w. b. scranton","date":"1866","day":"May 5","shipType":"Bark","livesLost":"None","tonnage":"810","cargo":"Machinery","source":"Lewis & Dryden Marine History\/Gibbs' Pacific Graveyard","description":"Capt. Paul Corno.  The wind failed in the middle of the bar and she drifted and struck heavily. The Cape Disappointment light house keeper rowed out to save two women on board. The crew stayed on board until night when they abandoned the vessel.  The vessel broke up less than 24 hours after grounding.","x":"416021","y":"5121758","index":43},{"name":"ariel","date":"1886","shipType":"Schooner","livesLost":"none","tonnage":"99 or 43","wherebuilt":"Baltimore or New York","source":"Don Marshall Oregon Shipwrecks\/Gibbs' Pacific Graveyard.","description":"Could have been 1866. Two schooners wrecked at the river mouth 20 years apart.  Records are  inconclusive as to which is which.","x":"424109","y":"5116759","index":44},{"name":"industry","date":"1865","day":"March 16","shipType":"Bark","livesLost":"17","wherebuilt":"Stockton, CA","source":"Don Marshall Oregon Shipwrecks\/Gibbs' Paific Graveyard`","description":"Capt. Lewis.  After standing off the mouth for two weeks attempting to cross the bar, she lost the wind and hung up on the middle shoals.  Only seven were saved before the vessel broke up.","x":"417859","y":"5120756","index":45},{"name":"s. d. lewis","date":"1865","day":"March 16","shipType":"Brig","livesLost":"None","source":"Gibbs' Pacific Graveyard","description":"The vessel missed stays and went hard aground on Clatsop Spit. She temporarily drifted free, but as the prow swung into the wind, a giant breaker carried her higher on the shoal. The crew got off safely but the brig eventually fell to pieces.","x":"421878","y":"5120852","index":46},{"name":"jenny ford (jennie ford)","date":"1864","day":"Jan. 29","shipType":"Barkentine","livesLost":"1","cargo":"Ballast","source":"Don Marshall Oregon Shipwrecks\/Gibbs' Pacific Graveyard","description":"Capt. McCarthy.  Grounded at North Head in heavy weather, she broke up immediately and one passenger was lost.","x":"416609","y":"5127862","index":47},{"name":"woodpecker","date":"1861","day":"May 10","shipType":"Schooner","livesLost":"None","tonnage":"175","wherebuilt":"London","cargo":"Cattle and flour","source":"Lewis & Dryden Marine History\/Don Marshall Oregon Shipwrecks\/Gibbs' Pacific Graveyard\/Lloyd's Register","description":"Capt. Alfred Crosby,  Bar Pilot.  Sailing over the bar, she missed stays and got into the breakers.  The cargo was jettisoned in an attempt to refloat her.  One cow survived and much of the flour was reclaimed.","x":"421389","y":"5119554","index":48},{"name":"desdemona","date":"1856","day":"Jan. 1","shipType":"Bark","livesLost":"1","length":"104","wherebuilt":"Jonesboro, ME","cargo":"General","source":"Lewis & Dryden Marine History\/Don Marshall Oregon Shipwrecks","description":"Capt. Francis Williams. Coming in without a pilot, the  captain claimed that the lower buoy was adrift, and while looking for it, ran aground on what is known as Desdemona Sands.  One crewman drowned while attempting to salvage the cargo.  ","x":"430283","y":"5118597","index":49},{"name":"detroit","date":"1855","day":"Dec\/ 25","shipType":"Brig","livesLost":"none","tonnage":"141","length":"84","wherebuilt":"Guilford, CT","description":"The brig hit heavily on the middle sands of the bar and shipped enough water to scare off the crew.  Her helm was tied before she was abandoned and finally washed up on Tillamook Head.  She was purchased and stripped by James Cook, Astoria resident.","source":"Don Marshall Oregon Shipwrecks, Gibbs' Pacific Graveyard","x":"419843","y":"5121024","index":50},{"name":"firefly","date":"1854","day":"Feb. 25","shipType":"Tug-Steam","livesLost":"4","wherebuilt":"San Francisco, CA","source":"Don Marshall Oregon Shipwrecks, Gibbs' Pacific Graveyard ","description":"Capt. Hawkes was towing logs from Young's River to Welsh's Sawmill.  He rounded the point and was caught in the ebb tide and grounded near Point Stevens until, at high tide, the log raft reversed and dragged the underpowered tug across the flat into deep water where she sank.  Passengers rode the log raft to Astoria.","x":"428888","y":"5115805","index":51},{"name":"oriole","date":"1853","day":"Sept. 19","shipType":"Bark","livesLost":"None","cargo":"Supplies for building lighthouse at Fort Canby","source":"Lewis & Dryden Marine History, Gibbs' Pacific Graveyard, Don Marshall Oregon Shipwrecks","description":"Capt. Lentz, Pilot Flavel. The bark lost the wind on the bar, struck the south sands, filled with water and drifted seaward.  Soon after the captain and crew abandoned her, she sank.","x":"422639","y":"5120804","index":52},{"name":"i. merrithew","date":"1853","day":"Jan. 12","shipType":"Bark","livesLost":"None","tonnage":"128","cargo":"General Cargo","source":"Lewis & Dryden Marine History, Gibbs' Pacific Graveyard, Don Marshall Oregon Shipwrecks","description":"Capt. Samuel Kissam. After waiting at the mouth of the river for 13 days before attempting to cross the bar, she lost the wind in the crossing and grounded on Clatsop Spit.  After the crew was rescued, the ship drifted out to sea and finally wrecked near Cape Dissappointment.","x":"420872","y":"5120876","index":53},{"name":"mindora","date":"1853","day":"Jan. 12","shipType":"Bark","livesLost":"None","source":"Don Marshall Oregon Shipwrecks, Lewis & Dryden Marine History, Gibbs' Pacific Graveyard","description":"Capt. George Staples.  She lay off the bar for 28 days waiting for favorable winds, finally making it to Sand Island and anchoring.  Strong currents dragged her to middle sands and the crew abandoned ship because of mountainous seas.  The vessel then drifted out to sea and eventually wrecked between Willapa Bay and Gray's Harbor.","x":"424329","y":"5123448","index":54},{"name":"vandalia","date":"1853","day":"Jan. 9","shipType":"Bark","livesLost":"9-12","source":"Lewis & Dryden Marine History, Don Marshall Oregon Shipwrecks","description":"Capt. E. N. Beard. The vessel washed up on the beach near McKenzies' Head and Pacific City.  All hands were lost. The  cause of the wreck remains a mystery.","x":"418004","y":"5125948","index":55},{"name":"bordeaux","date":"1852","day":"Dec. 13","shipType":"Brig","livesLost":"None","tonnage":"250","source":"Gibbs' Pacific Graveyard, Don Marshall Oregon Shipwreck, Lewis & Dryden Marine History.","description":"Bound from Puget Sound to San Francisco, she made an unscheduled turn into the Columbia and anchored on the bar where she fell victim to currents.  She drifted onto Clatsop Spit and was demolished in the surf.","x":"423372","y":"5116025","index":56},{"name":"marie","date":"1852","day":"Nov. 29","shipType":"Brig","livesLost":"9","source":"Gibbs' Pacific Graveyard, Lewis & Dryden Marine History","description":"Enroute from San Francisco to Willapa Bay, she encountered  a heavy fog and was wrecked on North Beach 2 miles north of Cape Disappointment.","x":"417784","y":"5131683","index":57},{"name":"general warren","date":"1852","shipType":"American Steamship","livesLost":"42","tonnage":"309","cargo":"Wheat, Hogs, Passengers","source":"Don Marshall Oregon Shipwrecks, Gibbs' Pacific Graveyard","description":"Capt. George Charles Thompson.  After crossing the bar the ship was damaged by heavy seas with Captain Flavel aboard as pilot. It did not have enough power to fight the tide and washed up on Clatsop Spit.  Flavel went for help but when he returned to the ship's location there was nothing but wreckage and dead bodies.","x":"422050","y":"5118965","index":58},{"name":"dolphin","date":"1852","shipType":"Navy Brig","livesLost":"none","description":"The ship was wrecked on Clatsop Spit while attempting to enter the river.The vessel was carried onto the beach and demolished, but the crew reached shore safely.","source":"Gibbs","x":"421313","y":"5120215","index":59},{"name":"morning star","date":"1849","day":"July 11","shipType":"Bark","livesLost":"1","source":"Gibbs' Pacific Graveyard","description":"Capt. Menes.  While crossing the bar sans pilot, she struck off Sand Island.  After being hung up for several hours she freed herself and drifted into Baker Bay.  She was repaired enough to make it to Portland where her cargo was sold and later the vessel was sold to California interests.","x":"420724","y":"5124626","index":60},{"name":"aurora","date":"1849","day":"Feb.","shipType":"Full Rigged","livesLost":"none","tonnage":"346","wherebuilt":"Baltimore, MD","cargo":"26 passengers","source":"Gibbs' Pacific Graveyard, Don  Marshall Oregon Shipwrecks","description":"Capt Kilbourn. The ship ran aground off Gray's Bay in 8 feet of water.  After all hands were rescued a gale arose and destroyed the ship.","x":"441387","y":"5124478","index":61},{"name":"josephine","date":"1849","shipType":"Bark","livesLost":"None","cargo":"Lumber and Potatos","source":"Lewis & Dryden Marine History, Gibbs' Pacific Graveyard, Don Marshall Oregon Shipwrecks","description":"Capt. Collins.  Piloted by a drunken Indian, she left Astoria and made it to Baker Bay. There, she was pulled into the current, drifted to the south channel and struck Point Adams bar. She drifted in a leaking condition and sank south of Cape D.","x":"424033","y":"5113230","index":62},{"name":"alice mcdonald","date":"1906","day":"Dec. 30","shipType":"Schooner","source":"McCurdy Marine History, Don Marshall Oregon Shipwrecks","description":"Capt. Bender. The ship ran aground on Clatsop Spit and was  salvaged early in 1907.  Eventually it wrecked at Point Loma, CA in 1910 and sold for $800.","bigImage":"alice-mcdonald.jpg","image":"alice-mcdonald-small.jpg","x":"425138","y":"5112789","index":63},{"name":"electra","date":"1944","day":"Jan. 26","shipType":"Troller, diesel","tonnage":"72","source":"Gibbs' pacific Graveyard, Don Marshall Oregon Shipwrecks","description":"The ship stranded inside the bar on Clatsop Spit.  Attempts to free her by CGC Nemaha were unsuccessful and she was abandoned.","bigImage":"electra.jpg","image":"electra-small.jpg","x":"424181","y":"5119775","index":64},{"name":"erria","date":"1951","day":"Dec. 20","shipType":"Danish Motor Vessel","livesLost":"11","tonnage":"8786","length":"450","cargo":"wheat, apples, lumber, iron, passengers","source":"Gibbs' Pacific Graveyard, Don Marshall Oregon Shipwrecks","description":"Capt. M. Agge.  While at anchor in Astoria a fire, starting from an electrical short amidships, quickly erupted into an inferno.  It caused the death of 8 of her passengers and 3 crewmen.  She was towed to Portland for discharge of her cargo and eventually towed to Rotterdam where she was completely rebuilt as a freighter.","wherebuilt":"Nakskou","bigImage":"erria.jpg","image":"erria-small.jpg","x":"440505","y":"5119554","index":65},{"name":"francis h. leggett","date":"1914","day":"Sept. 18","shipType":"Steam Schooner","livesLost":"60","tonnage":"1606","wherebuilt":"Newport News, VA","cargo":"Railroad Ties","source":"Don Marshall Oregon Shipwrecks, Gibbs' Pacific Graveyard","description":"Capt. C. Maro.  The ship hit heavy weather southwest of the Columbia River en route from Gray's Harbor to San Francisco.  She lost part of her deck cargo causing a bad starboard list and she finally sunk.  There were only two survivors.","x":"411903","y":"5108158","index":66},{"name":"george olson","date":"1964","day":"Jan. 30","shipType":"Barge","length":"321","cargo":"Lumber","description":"The ship broke loose from the tug Mikimiki and hit near Cape Disappointment.  Attempts to tow her proved futile as she was sinking.  She was run aground near the jetty disgourging 3 1\/2 million board feet of lumber.","bigImage":"georgeolson.jpg","image":"georgeolson-small.jpg","x":"420048","y":"5124493","index":67},{"name":"henriette","date":"1903","day":"Dec. 27","shipType":"Barque","livesLost":"None","tonnage":"735","source":"Don Marshall Oregon Shipwrecks, Gibbs' Pacific Graveyard","description":"Grounded in the Columbia east of Astoria, she settled on her anchor which punched a hole in the hull causing her to sink.  She was salvaged and converted to a barge.  She was later refitted as a steamer and ultimately converted to a four masted schooner.  Finally she was wrecked in the Fiji Islands in 1922.","bigImage":"henriette.jpg","image":"henriette-small.jpg","x":"437710","y":"5115950","index":68},{"name":"intrepid","date":"1954","day":"Feb. 16","shipType":"Barge","livesLost":"none","tonnage":"1800","wherebuilt":"Mare Island Naval Yard","cargo":"empty","source":"Don Marshall Oregon Shiwrecks, Gibbs' Pacific Graveyard","description":"The barge was cut loose from the Tidewater Shaver when it threatened to drag the tug onto Peacock Spit.  The barge drifted onto Long Beach and was abandoned.  She was originally built as a naval training bark with auxiliary steam engine.","bigImage":"intrepid.jpg","image":"intrepid-small.jpg","index":69},{"name":"melanope","date":"1906","day":"Dec.","shipType":"Bark","livesLost":"none","tonnage":"1608","length":"258","wherebuilt":"Liverpool","source":"Don Marshall Oregon Shipwrecks, Gibbs' Pacific Graveyard, Lloyd's Register","description":"Capt. N.K. Wills.  Dismasted in a gale and abandoned by her crew she was spotted off the mouth of the Columbia and towed to Astoria.  She was sold and converted to a barge.","bigImage":"melanope.jpg","image":"melanope-small.jpg","x":"411534","y":"5125583","index":70},{"name":"welsh prince","date":"1922","day":"May 28","shipType":"Steam Freighter","livesLost":"7","tonnage":"2322","wherebuilt":"Bristol, England","cargo":"Lumber and Steel","source":"Don Marshall Pacific Graveyard","description":"In a dense fog, the Iowan, an American freighter, struck the Welsh Prince, a British freighter, near the forecastle crushing the seven seamen inside and causing the Welsh Prince to sink in 30 minutes.  She was deemed not salvageable and dynamited to clear the channel.","bigImage":"prince.jpg","image":"prince-small.jpg","x":"441900","y":"5124405","index":71},{"name":"gary denn","date":"1966","day":"Aug. 27","shipType":"Troller","source":"CRMM","description":" The ship was lost on Benson Beach.","bigImage":"garydenn.jpg","image":"garydenn-small.jpg","index":72},{"name":"childar","date":"1934","day":"May 3","shipType":"Freighter","livesLost":"4","tonnage":"4136","length":"377","wherebuilt":"Malmo, Sweden","cargo":"Lumber","source":"Gibbs' Pacific Graveyard, Oregonian May 8, 1934.","description":"Capt. J. Matthiasen.  Caught in a gale and fully loaded, the ship washed ashore on Peacock Spit.  CG Cutter Red Wing hooked up and pulled her free of the shore.  Due to terrible weather, instead of crossing the bar, she was towed all the way to Esquimalt, B.C.","x":"414551","y":"5123965","index":73},{"name":"columbia #50","date":"1899","day":"Nov. 29","shipType":"Light Ship","livesLost":"none","length":"112","wherebuilt":"San Francisco, CA","source":"Gibbs' Pacific Graveyard, Don Marshall Oregon Shiipwrecks, photo caption in scrap book.","description":"Capt. Joseph Harriman.  The first Columbia River lightship was buffeted by heavy seas and blown ashore at McKensie Point north of the mouth.  Undamaged, she was hauled across the spit and refloated in Baker Bay,  A spectacular salvage effort that took nearly two years.  She was returned to her post and remained there until replaced in 1909.","x":"416902","y":"5126757","index":74},{"name":"beaver","date":"1940","day":"Aug. 3","shipType":"Gas Powered Boat","tonnage":"15","source":"Gibbs' Pacific Graveyard, CRMM","description":"The ship wrecked on Clatsop Spit.  Picture in scrap book.","x":"424181","y":"5114920","index":75},{"name":"calmar","date":"1949","day":"Jan.","shipType":"Steamer","livesLost":"2","tonnage":"2032","length":"417","wherebuilt":"Baltimore, MD","source":"Don Marshall Oregon Shipwrecks, CRMM","index":76},{"name":"mauna ala","date":"1941","day":"Dec. 10","shipType":"Freighter-Matson","livesLost":"none","tonnage":"6256","length":"420","wherebuilt":"Bath, ME","cargo":"Christmas Trees and Candles","source":"Gibbs' Pacific Graveyard, CRMM","x":"425283","y":"5112348","index":77},{"name":"camden","date":"1942","day":"Oct. 4","shipType":"Tanker","tonnage":"6653","length":"419","wherebuilt":"Camden, N.J.","cargo":"Gasoline","source":"Don Marshall Oregon Shipwrecks","index":78},{"name":"queen (the)","date":"1893","day":"Sept. 7","shipType":"Passenger Steamer","tonnage":"2727 gross","length":"331","wherebuilt":"Philadelphia, PA","cargo":"Passenger","source":"Grover-Unforgiving Coast","description":"The luxury steamship, Queen of the Pacific, ran aground on Clatsop Spit when the captain was blinded by smoke from a forest fire.  Five tugs cooperated to free her.","x":"425963","y":"5111247","index":79},{"name":"gleaner","date":"1888","day":"Jan. 28","shipType":"Steamer","cargo":"Passengers and general cargo","source":"Personal account by Ina C. Cameron (Maunula) 196 F.190; Gibb's Pacific Graveyard","livesLost":"3","wherebuilt":"Grays Bay, 1883","description":"Capsized off Tongue Point, en route to Astoria from Deep River, at 11 a.m. January 28, 1888. In a gale the cargo shifted and the craft heeled over, drowning one man and two women.The propeller steamer was commanded by Captain Peter Jordan.","x":"440578","y":"5117640","index":80},{"name":"americana","date":"1918","day":"Feb. 28","shipType":"Schooner","livesLost":"13","tonnage":"900","length":"204","wherebuilt":"Grangemouth, Scotland","cargo":"Lumber","source":"Gibbs; Pacific Graveyard, Don Marshall Oregon Shipwrecks","description":"After clearing the Columbia Bar in a gale, the ship vanished without a trace.","x":"409110","y":"5119038","index":81},{"name":"andrada","date":"1900","day":"Dec. 11","shipType":"Bark","tonnage":"2593","length":"304","wherebuilt":"Sunderland","source":"Don Marshall Oregon Shipwrecks, Record of American and Foreign Shipping","description":"Capt. Adams. Standing off the Columbia, she took pilot aboard and stood to sea under unfavorable weather conditions. The vessel was never seen again.","x":"412416","y":"5120288","index":82},{"name":"bell buoy","date":"1960","day":"Aug. 19","shipType":"Fishing Boat","tonnage":"15","source":"Gibbs' Pacific Graveyard.","description":"The ship foundered off Cape Disappointment.","x":"416021","y":"5126905","index":83},{"name":"brodick castle","date":"1908","day":"Dec.","shipType":"Square Rigger","livesLost":"all hands","tonnage":"1785","length":"258","wherebuilt":"Glasgow","cargo":"Wheat","source":"Lloyd's Register, Gibbs' Pacific Graveyard","description":"The ship disappeared with all hands after departing the Columbia River. She is believed to have foundered in a gale.","x":"410580","y":"5118156","index":84},{"name":"cadzow forest","date":"1896","day":"Jan. 4","shipType":"Bark","tonnage":"1116","length":"207","wherebuilt":"Glasgow","source":"Don Marshall Oregon Shipwrecks, Gibbs' Pacific Graveyard, Lloyd's Register","description":"Capt. McInnis.The ship took on a bar pilot, but the sea was so bad they couldn't cross the bar. All hands, including the pilot, were lost.  The derelict bark eventually washed up on shore in British Columbia.","x":"414623","y":"5122274","index":85},{"name":"capt. james fornance","date":"1917","day":"Dec. 21","shipType":"Steamer","livesLost":"none","tonnage":"153","source":"Gibbs' Pacific Graveyard","description":"The ship stranded in a gale four miles east of Fort Canby Life Saving Station. Forty-seven passengers were removed and landed safely at Ilwaco.","x":"427122","y":"5123303","index":86},{"name":"drexel victory","date":"1947","day":"Jan. 19","shipType":"Victory Steamer","livesLost":"none","tonnage":"7607","length":"439","wherebuilt":"Richmond, CA","cargo":"grain","source":"H.W. McCurdy Marine History, List of Merchant Vessels of the U.S.","description":"Capt. C Rommerdahl,  Pilot E.P. Gillette.  The ship broke in two between holds 4 and 5 and sank.  She was in deep water and on course at the time.  No cause was discovered.","x":"415284","y":"5122126","index":87},{"name":"drumcraig","date":"1906","day":"Jan. 19","shipType":"bark","livesLost":"all hands","tonnage":"1919","length":"280","wherebuilt":"Barrow","cargo":"lumber","source":"Don Marshall Oregon Shipwrecks Lloyd's Register.","description":"Foundered at sea west of the Columbia River while headed from Astoria to Manilla.","x":"411755","y":"5119627","index":88},{"name":"elfin","date":"1937","day":"May 11","shipType":"River Freighter","tonnage":"196","wherebuilt":"St. Helens, OR","source":"McCurdy Marine History of the Pacific N.W.","description":"Capt. Alfred Babbidge. The ship was destroyed by an explosion and fire between Astoria and Ilwaco.","x":"420504","y":"5126684","index":89},{"name":"rambler","date":"1859","day":"Dec. 21","shipType":"Schooner","livesLost":"4","cargo":"oil, peltries","source":"Lewis & Dryden Marine History","description":"Sailing from Neah Bay for San Francisco, she capsized off the mouth of the Columbia.  No trace of the crew was ever found.","x":"425063","y":"5113819","index":90},{"name":"machigone","date":"1852","day":"Nov. 20","shipType":"Schooner","livesLost":"9","cargo":"lumber","source":"Lewis & Dryden Marine History","description":"Sailing from Astoria for San Francisco with a heavy load of lumber, she encountered a terrible gale at the mouth of the Columbia.  No wreckage was found.","x":"413301","y":"5120215","index":91},{"name":"ida mae","date":"1953","day":"Oct. 27","shipType":"Fish Packer","livesLost":"none","tonnage":"26","source":"Gibbs' Pacific Graveyard","description":"The ship struck bottom and went down off Cape Disappointment. The three man crew swam to safety.","x":"418080","y":"5123303","index":92},{"name":"triumph (cg52301)","date":"1961","day":"Jan. 12","shipType":"motor lifeboat","livesLost":"5","tonnage":"8","length":"36","wherebuilt":"Maryland","source":"First Reunion on 30th Anniv. Triumph-F.V. Mermaid Incident.  In pamphlet file HJ 6645 (USCG)","description":"Coxswain John L. Culp.  Maneuvering in the breakers off Peacock Spit, the ship secured a towline to F.V. Mermaid which subsequently parted on two separate occasions.  The second time the Triumph attempted to connect the towline, she capsized and did not right herself as she was designed to do.  One man, Gordon Huggins, survived. Two other Coast Guard boats were lost as well as the F.V. Mermaid.","x":"422491","y":"5121906","index":93},{"name":"mermaid","date":"1961","day":"Jan 12","shipType":"Fishing Vessel","livesLost":"2","length":"35'","source":"First Reunion on 30th Anniv. of Triumph-F.V. Mermaid Incident, Pam. file H.J. 6645 (USCG)","description":"In distress in heavy seas off Peacock Spit, the ship called the Coast Guard.  After an attempt to tow her failed, she capsized and only one man survived.","x":"421609","y":"5122274","index":94},{"name":"telephone","date":"1887","day":"Nov. 20","shipType":"Stern Wheeler","livesLost":"1","source":"Gibbs' Shipwrecks of the Pacific Coast.","description":"Capt. U.B. Scott.  The ship caught fire enroute from Portland to Astoria and the captain ran her into the bank enabling all but one passenger to escape.  She burned to the water line but was repaired and served till she rammed a revetment and sank again, only to be revived and ultimately finish her days in California.","x":"439246","y":"5116215","index":95},{"name":"c-trader","date":"1963","day":"Dec. 6","cargo":"lumber","source":"Gibbs' Pacific Graveyard.","description":"Capt. Leary. The vessel hit the shoals near Willapa Bar.  Some of her plates parted and she started taking on water.  Salvage Chief towed her but she struck on the Columbia Bar and was hard aground just off Desdemona Sands Light.  She was sold for salvage and destroyed as a navigation hazard.","x":"422783","y":"5121685","index":96},{"name":"douglas dearborn","date":"1890","day":"Jan. 4","shipType":"Schooner","livesLost":"entire crew","source":"Lewis & Dryden; Gibb's Pacific Graveyard","description":"The ship was found floating bottom up off the Columbia River Bar. The entire crew drowned.","x":"412860","y":"5113230","index":97},{"name":"protection","date":"1900","day":"Jan. 1","shipType":"Steam Schooner","livesLost":"entire crew","tonnage":"281","wherebuilt":"San Francisco","cargo":"lumber","source":"Gibbs' Shipwrecks of the Pacific Coast","description":"The Protection went missing with her entire crew off the mouth of the  Columbia in a severe storm. Not so much as a scrap of wreckage was ever found.","x":"409992","y":"5125066","index":98},{"name":"multnomah","date":"1929","day":"June 16","shipType":"Steam Schooner","livesLost":"none","cargo":"lumber","source":"McCurdy Marine History of the Northwest, Gibbs' Pacific Graveyard","description":"Disabled off the Columbia River Bar, the Coast Guard sent the pilot schooner to go to her aid because they were busy rescuing the crew from the Laurel. Fifteen passengers were rescued. Shortly after they were evacuated, temporary repairs were made on the ships boiler and she reached Astoria under her own power.","index":99},{"name":"amak","date":"1942","day":"Oct. 16","shipType":"fishing vessel","livesLost":"none","length":"70'","source":"Don Marshall Oregon Shipwrecks","description":"Capt. Charles Ellis.  A huge wave crashed over the fishing boat near buoy 10 tearing off the deck house.  The hull and the deckhouse were brought to the dock separately.","x":"418445","y":"5122715","index":100},{"name":"battle abbey","date":"1914","day":"Dec. 18","shipType":"Bark","livesLost":"none","tonnage":"1606","length":"242","wherebuilt":"Liverpool","source":"Don Marshall Oregon Shipwrecks, Lloyd's Register","description":"The ship burned at sea off the Columbia River. A German ship rescued the crew.","x":"407785","y":"5121169","index":101},{"name":"hellenic skipper (curacao)","date":"1940","day":"July 12","shipType":"Steamer","livesLost":"none","tonnage":"1548","length":"214","cargo":"lumber","source":"McCurdy Marine Histor of the N.W., Don Marshall Oregon Shipwrecks","description":"The ship was destroyed by a fire and explosion off the Columbia River,  cause unknown.","index":102},{"name":"daisy freeman","date":"1912","day":"Oct. 11","shipType":"Steam Schooner","tonnage":"613","length":"173","wherebuilt":"California","cargo":"lumber","source":"McCurdy Marine History of the N.W., Don Marshall Oregon Shipwrecks, Lloyd's Register","description":"Heavy seas off the jetty damaged the ship's rudder and carried off her deckload and stove in the hull.  She anchored off the light ship.  The tug Goliath picked up the water logged ship and towed her to Astoria.","x":"408301","y":"5115216","index":103},{"name":"dreadnaught","date":"1876","day":"Feb.","shipType":"sloop","livesLost":"7","wherebuilt":"Tillamook, OR","source":"Gibb's Pacific Graveyard, Don Marshall Oregon Shipwrecks.","description":"Capt. Terwilliger.  Built in 1876, she was wrecked shortly after on Clatsop Spit with all hands lost. ","x":"424818","y":"5113852","index":104},{"name":"emily stevens","date":"1881","day":"Feb. 8","shipType":"schooner","livesLost":"none","tonnage":"100","length":"87","wherebuilt":"Westport, OR","cargo":"lumber","source":"Gibbs' Pacific Graveyard, Don Marshall Oregon Shipwrecks ","description":"The schooner struck Clatsop Spit and was abandoned.  Later she drifted free and was picked up by the tug Columbia and towed to Astoria relatively undamaged.","x":"426168","y":"5110142","index":105},{"name":"emma claudine","date":"1906","day":"Nov. 19","shipType":"Schooner","livesLost":"none","source":"Don Marshall Oregon Shipwrecks, McCurdy Marine History","description":"Capt. Stream.  In a severe blow, the schooner foundered on Clatsop Spit.  The captain transferred his wife to the Minnie E. Caine and the crew was forced ultimately to abandon ship.","x":"422859","y":"5120215","index":106},{"name":"susan","date":"1952","day":"Jan. 21","shipType":"Cannery Tender","livesLost":"none","tonnage":"52","length":"72","wherebuilt":"Seattle, WN","source":"McCurdy Marine History, Don Marshall Oregon Shipwrecks","description":"Driven ashore on Peacock Spit during a blinding snow storm, the ship was pounded to pieces by the breakers. The two man crew was rescued.","x":"415963","y":"5125688","index":107},{"name":"henrietta","date":"1860","shipType":"Bark","source":"Gibbs' Pacific Graveyard","description":"Stranded on the south side of the river entrance near Astoria.","x":"425652","y":"5118156","index":108},{"name":"nabob","date":"1876","day":"March 4","shipType":"Bark","livesLost":"all","cargo":"grain","source":"Gibbs' Shipwrecks of the Pacific Coast, Don Marshall Oregon Shipwrecks, Lewis & Dryden.","description":"Capt. Fetherstone. The ship disappeared with her entire crew after crossing the Columbia bar.","x":"410505","y":"5115729","index":109},{"name":"neptune","date":"1948","day":"Nov. 16","shipType":"diesel tug","livesLost":"1","tonnage":"415","source":"Gibbs Pacific Graveyard, Don Marshall Oregn Shipwrecks, McCurdy Marine History    ","x":"411242","y":"5123156","index":110},{"name":"republic","date":"1945","day":"Feb. 7","shipType":"Troller, shark boat","livesLost":"4","tonnage":"25","source":"Gibbs Pacific Graveyard, Don Marshall Oregon Shipwrecks, McCurdy Marine History","description":"The ship foundered off the mouth of the Columbia. Part of her bow and forward deck drifted ashore on North Beach Peninsula several months later.","x":"413005","y":"5126096","index":111},{"name":"ricky","date":"1949","day":"July 22","shipType":"Fishing Boat","livesLost":"none","tonnage":"25","source":"Gibbs Pacific Graveyard, Don Marshall Oregon Shipwrecks, McCurdy Marine History","description":"Skipper J.B. Price. The ship dragged anchor and smashed against the rocks of the north jetty of the Columbia bar in a storm.  The crew escaped.","x":"417195","y":"5123965","index":112},{"name":"rose ann","date":"1948","day":"Feb. 8","shipType":"Fish Dragger","livesLost":"4","tonnage":"51","wherebuilt":"Seattle","source":"Gibbs' Pacific Graveyard, Don Marshall Oregon Shipwrecks, McCurdy Marine History","x":"414255","y":"5113009","index":113},{"name":"rudolph","date":"1945","day":"Sept. 2","shipType":"Fish Boat","livesLost":"none","tonnage":"27","source":"Gibbs'  Pacific Graveyard, McCurdy Marine History","description":"The ship stranded on Peaock Spit.","x":"414991","y":"5123524","index":114},{"name":"state of washington","date":"1920","day":"June 23","shipType":"Sternwheel river Steamer","livesLost":"1","tonnage":"605","wherebuilt":"Tacoma","source":"Gibbs' Pacific Graveyard, McCurdy Maritime History.  Picture p. 312, McCurdy Maritime History.","description":"Capt. H.L.Hill. The ship was destroyed by a terrific explosion off Tongue Point.","x":"440726","y":"5118670","index":115},{"name":"midnight express","date":"1981","day":"Nov. 29","shipType":"trawler","livesLost":"4","length":"861","source":"Sea Stories by John Paul Barrett","description":"Capt. George McMurrick.  The ship rolled over while picking up a tow of rock cod 12 miles off the Columbia in 60 fathoms. The captain and one crew member survived.","index":116},{"name":"william nottingham","date":"1911","day":"Oct. 9","shipType":"topsail schooner","wherebuilt":"Ballard","source":"SOS North Pacific Gordon R. Newell","description":"Dismasted and water logged by gales, the ship was deserted by her crew off the Columbia River.  She was pulled into Astoria by a bar tug, rerigged and served for another generation.","x":"411314","y":"5121317","index":117},{"name":"bettie m.","date":"1976","day":"March 20","shipType":"Tuna Seiner","length":"190","wherebuilt":"Tacoma, WA","cargo":"Tuna","source":"Oregonian, Daily Astorian","x":"419429","y":"5124970","index":118},{"name":"bear","date":"1965","day":"March 5","shipType":"trawler","livesLost":"2","length":"38","source":"McCurdy Marine History of the Pacific Northwest, Daily Astorian","description":"The ship was lost at sea after leaving Tillamook for Ilwaco. The owner and his son drowned. The wreckage washed ashore between the Peter Iredale and the south jetty.","x":"423741","y":"5115581","index":119},{"name":"wind theme","date":"1977","day":"Feb.","shipType":"Sailing Vessel","length":"65","source":"Daily Astorian 3\/1\/77","x":"421340","y":"5124529","index":120},{"name":"c.g. utility # 1332","date":"1977","day":"Nov. 15","shipType":"C.G. training boat","livesLost":"3","length":"41 ft.","source":"Daily Astorian","x":"421878","y":"5121489","index":121},{"name":"king silver","date":"1984","day":"Dec 11","shipType":"Crab Fishing Vessel","length":"45'","cargo":"Crab","source":"Columbia Press","description":"A swell caused crab pots to shift and boat could not recover. Ship capsized and sunk near buoy 2. Four crewmen were rescued.","x":"413156","y":"5121196","index":122},{"name":"salty dog","date":"1985","day":"June 6","shipType":"Pleasure Craft","length":"24'","source":"Daily Astorian","description":"The boat capsized and sunk near Chinook. Four people were rescued.","x":"425703","y":"5123400","index":123},{"name":"bonnie","date":"1985","day":"May 5","shipType":"Fishing Boat","livesLost":"2","length":"40'","source":"Daily Astorian","description":"The boat sank near the river's mouth entrance buoy.","x":"410656","y":"5116442","index":124},{"name":"sixpack","date":"1985","day":"June 3","shipType":"Fishing Vessel","livesLost":"1","length":"50'","source":"Daily Astorian","description":"The boat capsized near the mouth of the river. Two people rescued.","x":"415215","y":"5118501","index":125},{"name":"marta","date":"1984","day":"March 20","shipType":"Fishing Boat","livesLost":"1","length":"38'","source":"Daily Astorian","description":"The boat capsized near the mouth of the river. Two men were rescued and the boat was salvaged.","index":126},{"name":"sea king","date":"1991","day":"January 11","shipType":"Trawler","livesLost":"3","length":"75'","source":"Daily Astorian","description":"A swell pushed the boat into buoy 10 and it started to sink. Three crewmen jumped aboard the buoy and were rescued. Later the Coast Guard attempted to tow the boat to safety but it rolled suddenly and sank killing the two fishermen and one Coast Guard man who were aboard.","x":"418300","y":"5122911","index":127},{"name":"bad check","date":"1987","day":"March 2","shipType":"Pleasure Craft","livesLost":"3","length":"31'","source":"Daily Astorian","description":"In bad weather, the boat capsized on the bar and sank. One body was found on the rocks on the south side of the north jetty.","x":"419281","y":"5123008","index":128},{"name":"peggy ann iv","date":"1989","day":"January 12","shipType":"Crabber","length":"38'","source":"Daily Astorian","description":"Fishing one and a half miles offshore, the boat struck an underwater object which knocked a huge hole in the hull. The boat sank immediately but the two crewmen aboard were rescued.","x":"411097","y":"5124970","index":129},{"name":"caroline","date":"1992","day":"January 3","shipType":"Fishing Boat","livesLost":"2","length":"43'","source":"Daily Astorian","description":"The vessel capsized just south of the Columbia River bar. Two of the three crewmen were rescued but one later died. The body of the third man was eventually found.","x":"417174","y":"5116686","index":130},{"name":"ptarmigan","date":"1991","day":"April 24","shipType":"Fishing Vessel","length":"60'","source":"Daily Astorian","description":"The boat's engine quit while it was in the Ilwaco channel. The anchor wouldn't hold and the boat drifted into pilings, ruptured its hull and sank. The three crewmen were rescued.","x":"420407","y":"5125018","index":131},{"name":"timi nicole","date":"1992","day":"November 24","shipType":"Fishing Boat","length":"65'","source":"Daily Astorian","description":"The vessel lost engine power near channel marker two and hit some rocks. It later broke up.","x":"413793","y":"5120167","index":132},{"name":"new janet ann","date":"1993","day":"March 2","shipType":"Trawler","livesLost":"3","length":"69'","cargo":"Fish","source":"Oregonian","description":"The boat capsized and sank at the mouth of the Columbia River. The three man crew was never found.","x":"414381","y":"5121245","index":133},{"name":"nickie joe","date":"1987","day":"July 14","shipType":"Pleasure Craft","livesLost":"3","length":"26'","source":"Daily Astorian","description":"A wave capsized the boat near the tip of the south jetty. Only one of the four men aboard had a life jacket. Two bodies were found.","x":"417077","y":"5120363","index":134},{"name":"dilharree","date":"1880","day":"March 10","shipType":"Bark","livesLost":"none","tonnage":"1293","length":"227","wherebuilt":"London","cargo":"Grain","source":"Lloyd's Register; Gibb's Pacific Graveyard; Don Marshall's Oregon Shipwrecks; Lewis & Dryden's Marine History of the Pacific Northwest","description":"Outbound in tow, she ran aground on Peacock Spit when her steering gear jammed. She was so heavy, three vessels could not dislodge her and she was auctioned off.","x":"417977","y":"5124372","index":135},{"name":"william h. besse","date":"1886","day":"July 23","shipType":"Bark","livesLost":"None","tonnage":"1300","length":"180","wherebuilt":"Bath, Maine","cargo":"Railroad iron","source":"Pacific Graveyard; Oregon Shipwrecks","description":"Capt. Gibbs used an old chart and hit Peacock Spit hard. The ship filled almost immmediately. She did not have a pilot. There is a buoy at the wrecksite known as \"Bessie Buoy.\"","x":"417717","y":"5125003","index":136},{"name":"cape saint james","date":"2002","day":"April 4","shipType":"Crabber","livesLost":"None","cargo":"Dungeoness crab","source":"Curator\/Daily Astorian","description":"Fishing vessel grounded on Clatsop Beach just south of Peter Iredale wreck. Refloated on subsequent tide, cargo jettisoned in attempt to get off the beach.","x":"425283","y":"5111612","index":137}];var flashEl;var cPan={x:0,y:0};function ieVersion(){var ua=navigator.userAgent;var m=ua.match(/MSIE\s*(\d)/);if(!m)return 0;return parseInt(m[1]);}
var theIEVersion=ieVersion();function initCanvas(el){if(theIEVersion){G_vmlCanvasManager_.initElement(el);}}
function initTheCanvas(){if(theIEVersion){G_vmlCanvasManager_.init();}}
function initCanvases(){if(theIEVersion){G_vmlCanvasManager_.reInit();}}
function fromFlash(val)
{alert(val);var vvv=val;}
function wreckXtoCanvasX(x){var cnx=mapwd/2;var xsc=topScale*1.37;var xsc=topScale*1.56;var xsc=topScale*1.35;var dx=(x-cnx);var rs=cZoom*dx+topScale*5*(cZoom-1)+xsc*cPan.x+cnx;var rv=canvasXtoWreckX(rs);return rs;}
function canvasXtoWreckX(cx){var cnx=mapwd/2;var xsc=topScale*1.35;dx=(cx-(topScale*5*(cZoom-1)+xsc*cPan.x+cnx))/cZoom;return dx+cnx;}
function wreckYtoCanvasY(y){var cny=mapht/2;var ysc=topScale*1.35;var dy=(y-cny);var rs=cZoom*dy-ysc*cPan.y+cny;var rv=canvasYtoWreckY(rs);return rs;}
function canvasYtoWreckY(cy){var cny=mapht/2;var ysc=topScale*1.35;dy=(cy-(cny-ysc*cPan.y))/cZoom;return dy+cny;}
var theContext,wreckMarker;function renderWrecks(){theContext.clearRect(0,0,1000,1000);var ln=wpoints.length;var xsc=topScale*1.37;var ysc=xsc;for(var i=0;i<ln;i++){var wp=wpoints[i];if(wp.x){wreckMarker.options.x=wreckXtoCanvasX(wp.x);wreckMarker.options.y=wreckYtoCanvasY(wp.y);wreckMarker.render();}}}
function setPan(rel,updateCpan){var maxPanX=(cZoom*mapwd-mapwd)/(2*1.3*topScale);var maxPanY=(cZoom*mapht-mapht)/(2*1.33*topScale);var px=cPan.x+rel.x;var py=cPan.y+rel.y;neo.log("pan",mapht,cZoom,maxPanY,py,rel.y);px=Math.min(px,maxPanX);px=Math.max(px,-maxPanX);py=Math.min(py,maxPanY);py=Math.max(py,-maxPanY);if(typeof flashEl.setPan=="function"){flashEl.setPan(px,py);}
if(updateCpan){cPan.x=px;cPan.y=py;}}
function setZoom(z){var zratio=z/cZoom;flashEl.setZoom(z*100);cZoom=z;cPan.x=zratio*cPan.x;cPan.y=zratio*cPan.y;setPan({x:0,y:0},1);flashEl.scaleWrecks((1/z)*100);renderWrecks();}
function selectItem(w){neo.log("select",w);theMap.selectItem(w);listDiv.hide();itemDiv.show();renderWreckPage(itemDiv,w);var dt=w.date;if(dt){slider0V.setValue(dt);}}
function selectItemById(id){var w=wrecksById[id];selectItem(w);}
function getItemByName(nm){var lcn=nm.toLowerCase();var ln=wrecks.length;for(var i=0;i<ln;i++){var w=wrecks[i];var wn=w.name;if(wn.toLowerCase()==lcn)return w;}}
function selectItemByName(nm){var w=getItemByName(nm);if(w){selectItem(w);}}
function selectItemsByName(nms,delay,cidx,continuation){var ln=nms.length;if(cidx<ln){selectItemByName(nms[cidx]);var idx=cidx+1;titleDiv.hide();setTimeout(function(){selectItemsByName(nms,delay,idx,continuation);},delay);}else{continuation();}}
var webColor="#202040";var movieColor="#000000";var bColor=playMovie?movieColor:webColor;var icanvas;var theMap;var itemDiv;var listHeaderDiv;var listDiv;var bigIm;var bigImDiv;var bigImBackground;var hoverDiv;var noaaDiv;var loadingDiv;var aboutLinkDiv;var sortedByDate=true;var mapIsReady=false;function flashIsReady(){if(!pageRendered)setTimeout(flashIsReady,1000);mapIsReady=true;theMap=new flashMap(flashEl);slider0V.render();initWrecks();setPan({x:0,y:0});slider0V.setValue(slider0V.options.endYear);if(!playMovie)zoomer0V.render();zoomer0V.setValue(1);loadingDiv.hide();}
var imgRoot="http://www.crmm.org/pages/shipwreckphotos/";function listElGen(w,forHover){var nm=w.name;var d=w.date;var img=w.image;var rs="";if(forHover){rs+='<table style="color:white;font-size:9pt;">';rs+='<tr>';}
var txt=d+" "+capitalizeWords(nm);if(w.image){rs+='<td><img width=50  src="'+imgRoot+img+'"/></td>';rs+='<td style="vertical-align:middle;">'+txt+'</td>';}else{rs+='<td colspan="2" style="font-size:9pt;vertical-align:middle">'+txt+'</td>';}
if(forHover){rs+='</tr>';rs+='</table>';neo.log("hover",rs);}
return rs;}
var listEl=new neo.dom.AtomicElement({tag:"tr",css:{cursor:"pointer","text-decoration":"none",margin:"10px",color:"white","font-size":"9pt"},hoverCss:{"text-decoration":"underline"},htmlGen:listElGen});function renderList(container,byName){if(byName)ws=wrecksSortedByName;else ws=wrecks;var list=new neo.dom.List({elementComponent:listEl,css:{color:"white"},selectCallback:selectItem,elementContents:ws,container:container});container.empty();list.render();}
function backToList(){itemDiv.hide();listDiv.show();zoomer0V.setValue(1);theMap.selectItem(0);}
var smallImage=new neo.dom.AtomicElement({tag:"img",attributes:{width:150}});var smallImageContainer=new neo.dom.Elements({tag:"div",css:{"text-align":"center"},elements:[smallImage]});smallImageContainer.parts={image:smallImage};var backToListBut=new neo.dom.Element({tag:"input",attributes:{type:"button",value:"Back To List"},css:{color:"black"},click:backToList});var wreckName=new neo.dom.AtomicElement({tag:"p",css:{"font-size":hd?"18pt":"12pt","text-align":"center"}});var photoLink=new neo.dom.AtomicElement({tag:"a",css:{"font-size":hd?"14pt":"10pt","color":"white",cursor:"pointer","text-align":"center","display":"block"},content:"Expand image"});var wreckLineTitle=new neo.dom.AtomicElement({tag:"td"});var wreckLineValue=new neo.dom.AtomicElement({tag:"td"});var wreckLine=new neo.dom.Elements({tag:"tr",css:{},elements:[wreckLineTitle,wreckLineValue]});wreckLine.parts={title:wreckLineTitle,value:wreckLineValue};var dateLine=wreckLine.applyParts({"title":{html:"Date:"}});var typeLine=wreckLine.applyParts({"title":{html:"Type of ship:"}});var livesLine=wreckLine.applyParts({"title":{html:"Lives lost:"}});var cargoLine=wreckLine.applyParts({"title":{html:"Cargo:"}});var tonnageLine=wreckLine.applyParts({"title":{html:"Tonnage:"}});var wherebuiltLine=wreckLine.applyParts({"title":{html:"Where built:"}});var sourceLine=wreckLine.applyParts({"title":{html:"Source:"}});var wreckTable=new neo.dom.Elements({tag:"table",css:{color:"white","padding-left":hd?"35px":"5px","padding-top":"10px","font-size":hd?"16pt":"10pt"},elements:[cargoLine,dateLine,typeLine,livesLine,tonnageLine,wherebuiltLine,sourceLine]});wreckTable.parts={date:dateLine,type:typeLine,lives:livesLine,cargo:cargoLine,tonnage:tonnageLine,wherebuilt:wherebuiltLine,source:sourceLine};if(playMovie){var wreckPage=new neo.dom.Elements({tag:"div",css:{},elements:[wreckName,smallImageContainer,wreckTable]});}else{var wreckPage=new neo.dom.Elements({tag:"div",css:{},elements:[backToListBut,wreckName,smallImageContainer,photoLink,wreckTable]});}
wreckPage.parts={name:wreckName,image:smallImageContainer,bigimLink:photoLink,table:wreckTable};function renderWreckPage(container,wreck){container.empty();var tm=new Date().getTime();neo.startCollectingVersions();var wpage=wreckPage.newVersion();var wv=wpage._currentVersion;function setField(nitname,fieldname,fieldvalue){if(fieldvalue){var v=fieldvalue;}else{v=wreck[fieldname];}
if(v){wpage.applyPartPath(["table",nitname,"value"],{html:v},wv,1);}else{wpage.applyPartPath(["table",nitname],{doNotRender:1},wv,1);}
var rr=wpage.selectPart(["table",nitname]);}
var yr=wreck.date;var dy=wreck.day;if(dy){var date=dy+" "+yr;}else{date=yr;}
wpage.applyPart("name",{html:wreck.name},wv,1);var img=hd?wreck.bigImage:wreck.image;function unsmallify(img){return img.replace(/\-small/,"");}
var yr=wreck.date;if(img){wpage.applyPartPath(["image","image"],{src:imgRoot+img},wv,1);}
setField("date",null,date);setField("type","shipType");setField("cargo","cargo");setField("lives","livesLost");setField("tonnage","tonnage");setField("source","source");setField("wherebuilt","wherebuilt");var rwpage=wpage.apply({container:container});var etm=new Date().getTime()-tm;rwpage.render();var blink=wpage.selectPart("bigimLink");var rb=blink.value.rendered;var imp=wpage.selectPart("image");var bimp=imp.value.rendered;if(img){rb.click(function(){hoverDiv.hide();bigIm.attr("src",imgRoot+unsmallify(img));bigImTitle.html(yr+" "+wreck.name);bigImDiv.show();bigImBackground.show();});}else{rb.hide();bimp.hide();}
neo.removeCollectedVersions();}
var sdiv,zdiv;function genFlash(movie,left,top,width,height){if(theIEVersion){var rs='<object style="z-index:1;position:absolute;left:'+left+'px;top:'+top+'px;background-color:#c0c0c0" id = "foob" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';rs+=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" ';rs+='    WIDTH="'+width+'" HEIGHT="'+height+'">';rs+='<PARAM NAME="menu" VALUE=false>';rs+='<PARAM NAME="movie" VALUE="'+movie+'">';rs+='<PARAM NAME="quality" VALUE="best">';rs+='<PARAM NAME="bgcolor" VALUE="#c0c0c0">';rs+=' <PARAM NAME="wmode" VALUE="opaque">';rs+='</object>';return rs;}else{rs='<embed class="flashEmbed" style="position:absolute;margin:0;padding:0;left:'+left+'px;top:'+top+'px;background-color:#c0c0c0" id="foob" name="foob" wmode="opaque"  AllowScriptAccess="always" src="'+movie+'" width="'+width+'" height="'+height+'"></embed>';return rs;}}
var iccursor;function setIcanvasCursor(v){if(iccursor==v)return;icanvas.css("cursor",v);iccursor=v;}
function noaaTextUpdate(yr){var nxt=nextChart(yr);noaaText.html("Click for chart from => "+(nxt.year));}
function noaaPopPage(){var yr=slider0V.cTime;var nxt=nextChart(yr);var url=noaaBaseUrl+nxt.path;var winFeatures="menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,width=900,height=700";window.open(url,"noaaWin"+yr,winFeatures);}
var slider0V;var dragRefPnt;var cPan={x:0,y:0};var cZoom=1.0;var sdiv;var zdiv;var fdiv;var flashJel;var pageRendered=false;var titleDiv;var titleText;function renderThePage(){if(theIEVersion&&!(G_vmlCanvasManager_.initialized)){setTimeout(renderThePage,1000);return;}
var body=$('body');flashEl=document.getElementById("foob");flashJel=$(flashEl);var aboutLinkD='<a href="about.html" class="standard" style="position:absolute;font-weight:bold;top:15px;width:150px;height:20px;left:'+(maplft+mapwd+listWidth-200)+'px;">About this map</a>';var aboutLink=$(aboutLinkD);if(!playMovie)body.append(aboutLink);sdiv=$('<div style="position:absolute;top:'+(maptp+mapht)+'px;left:60px;height:50px;width:'+mapwd+'px;"/>');body.append(sdiv);noaaDiv=$('<div style="z-index:300;position:absolute;'+'top:'+(maptp+mapht+10)+'px;left:'+(mapwd-170)+'px;width:200px;">');if(!playMovie)body.append(noaaDiv);var noaaIm=$('<div style="position:absolute;cursor:pointer;top:0px;right:0px"><img src="swimages/noaa.jpg"/></div>');noaaDiv.append(noaaIm);noaaIm.click(noaaPopPage);noaaText=$('<div style="cursor:pointer;position:absolute;right:0px;top:40px;height:10px;font-size:9pt;padding-right:4px;">Click for chart from => 1889</div>');noaaDiv.append(noaaText);noaaText.click(noaaPopPage);var zht=topScale*150;zdiv=$('<div style="z-index:40;opacity:1;position:absolute;top:'+(maptp+mapht-topScale*190)+'px;left:'+(mapwd-35)+'px;height:'+zht+'px;width:50px;"/>');body.append(zdiv);fdiv=$('<div style="z-index:1;background-color:#eeeeee;position:absolute;left:'+maplft+'px;top:'+maptp+'px;width:'+mapwd+'px;height:'+mapht+'px;"></div>');var listContainerD='<div style="z-index:1;padding-left:5px;padding-bottom:20px;color:white;background-color:'+bColor+';position:absolute;color:white;overflow:auto;left:'+(maplft+mapwd+5)+'px;top:'+maptp+'px;width:'+listWidth+'px;height:'+listHeight+'px;"></div>';listContainer=$(listContainerD);body.append(listContainer);var listHeaderHeight=40;var listHeaderDivD='<div style="padding-bottom:20px;padding-left:5px;width:'+(listWidth-30)+';"><p>Click on shipwreck names in the list below or on dots on the map to see wreck details.</br></div>';var listHeaderDiv=$(listHeaderDivD);if(!playMovie)listContainer.append(listHeaderDiv);var listSortButton=$('<input  type="button" value="Sort by name"/>');listHeaderDiv.append(listSortButton);listSortButton.click(function(){if(sortedByDate){renderList(listDiv,1);sortedByDate=false;listSortButton.attr("value","Sort by date");}else{renderList(listDiv,0);sortedByDate=true;listSortButton.attr("value","Sort by name");}});var listDivD='<div style="width:'+(listWidth-30)+'px;"></div>';listDiv=$(listDivD);listContainer.append(listDiv);var itemDivD='<div style="z-index:1;background-color:'+bColor+';color:white;position:absolute;left:'+(maplft+mapwd+5)+'px;top:'+maptp+'px;width:'+listWidth+'px;height:'+listHeight+'px;"></div>';itemDiv=$(itemDivD);body.append(itemDiv);itemDiv.hide();bColor="black";if(hd){bigIm=$('<img width="1890" height="1010"/>');}else{bigIm=$('<img/>');}
var bigImDivD='<div style="z-index:500;background-color:'+bColor+';color:white;position:absolute;left:'+(hd?0:maplft)+'px;top:2px;width:'+(hd?1900:(mapwd+listWidth+5))+'px;"/>';bigImDiv=$(bigImDivD);body.append(bigImDiv);var titleDivD='<div style="z-index:500;background-color:'+bColor+';color:white;position:absolute;left:'+(maplft)+'px;top:2px;width:'+(mapwd+listWidth+25)+'px;height:'+(mapht+190)+'px;"/>';var titleDivD='<div style="z-index:500;background-color:'+bColor+';color:white;position:absolute;left:0px;top:2px;width:'+screenWd+'px;height:'+screenHt+'px;"/>';titleText=$('<div class="titleText">HAHA HAHA</div>');titleDiv=$(titleDivD);body.append(titleDiv);titleDiv.append(titleText);titleDiv.hide();var loadingDivD='<div style="z-index:2000;background-color:'+bColor+';color:white;position:absolute;left:'+(maplft)+'px;top:'+maptp+'px;width:'+(mapwd)+'px;height:'+(mapht)+'px;"/>';loadingDiv=$(loadingDivD);loadingDiv.html('<center style="padding-top:200px;font-size:12pt">Loading map ...</center>');body.append(loadingDiv);var bigImBackgroundD='<div style="z-index:400;background-color:'+bColor+';color:white;position:absolute;left:'+(maplft)+'px;top:2px;width:'+(mapwd+listWidth+15)+'px;height:'+(mapht+150)+'px;"/>';bigImBackground=$(bigImBackgroundD);body.append(bigImBackground);bigImBackground.hide();var bigImHeader=$('<p style="padding-top:0px;text-align:center"/>');bigImDiv.append(bigImHeader);var closeIm=$('<input style="position:absolute;right:0px;top:0px" type="button" value="Close Image"/>');if(!playMovie)bigImDiv.append(closeIm);bigImTitle=$('<span style="font-size:14pt">Peter Iredale</span>');if(!hd)bigImHeader.append(bigImTitle);closeIm.click(function(){bigIm.removeAttr("src");bigImDiv.hide();bigImBackground.hide();});var imC=$('<div style="text-align:center;padding-bottom:40px"/>');bigImDiv.append(imC);imC.append(bigIm);bigImDiv.hide();hoverDiv=$('<div style="z-index:350;position:absolute;background-color:'+bColor+';color:white;border:solid white thin;position:absolute;left:100;top:100;"></div>');body.append(hoverDiv);hoverDiv.hide();var icanvasE=document.createElement('canvas');icanvasE.setAttribute("width",mapwd);icanvasE.setAttribute("height",mapht);initCanvas(icanvasE);icanvas=$(icanvasE);icanvas.css("position","absolute");icanvas.css("opacity",0.01);icanvas.css({top:maptp,left:maplft});icanvas.css("background-color","#c0c0c0");icanvas.css("z-index",10);body.append(icanvas);var icoff=icanvas.offset();var iht=icanvas.height();setIcanvasCursor("pointer");function relDragRefPnt(e){var pnt={x:(e.pageX)-icoff.left,y:iht+(icoff.top)-(e.pageY)};if(dragRefPnt){var relX=(pnt.x)-(dragRefPnt.x);var relY=(pnt.y)-(dragRefPnt.y);return{x:relX,y:-relY};}
return null;}
icanvas.mousemove(function(e){var pnt={x:(e.pageX)-icoff.left,y:iht+(icoff.top)-(e.pageY)};var hpnt={x:e.pageX,y:e.pageY};var relCanvas={x:(hpnt.x)-icoff.left,y:(hpnt.y)-icoff.top};if(dragRefPnt){var rel=relDragRefPnt(e);setPan(rel);return;}
var tm=new Date().getTime();var wpnt={x:canvasXtoWreckX(pnt.x),y:canvasYtoWreckY(pnt.y)};var nbs=wreckPointSet.findNearby(wpnt,5);if(nbs.length){var nbs0=nbs[0];var wid="w_"+(nbs0.index);var w=wrecksById[wid];hoverDiv.html(listElGen(w,true));neo.log("hover",hoverDiv.width());var hwd=hoverDiv.width();if((mapwd-relCanvas.x)<(hwd+10)){var hleft=hpnt.x-hoverDiv.width()-10;}else{hleft=hpnt.x+10;}
hoverDiv.css({left:hleft,top:hpnt.y-13});hoverDiv.show();if(theMap)theMap.highlightItem(w);setIcanvasCursor("pointer");neo.log("hover",nbs,hpnt,w);}else{hoverDiv.hide();if(theMap)theMap.highlightItem(null);setIcanvasCursor(cZoom==1?"auto":"pointer");}
var etm=(new Date().getTime())-tm;});icanvas.mouseout(function(){hoverDiv.hide();});icanvas.mousedown(function(e){var pnt={x:(e.pageX)-icoff.left,y:iht+(icoff.top)-(e.pageY)};var wpnt={x:canvasXtoWreckX(pnt.x),y:canvasYtoWreckY(pnt.y)};var tm=new Date().getTime();var nbs=wreckPointSet.findNearby(wpnt,5);if(nbs.length){var nb0=nbs[0];var wid="w_"+(nb0.index);selectItemById(wid);}else{dragRefPnt=pnt;setIcanvasCursor("move");}});function stopDrag(e){if(dragRefPnt){var rel=relDragRefPnt(e);setPan(rel,1);dragRefPnt=null;setIcanvasCursor(cZoom==1?"auto":"pointer");renderWrecks();}}
icanvas.mouseup(function(e){stopDrag(e);});icanvas.mouseleave(function(e){stopDrag(e);});renderList(listDiv);var slider0=neo.shapes.slider0;slider0=slider0.apply({container:sdiv});slider0V=slider0;slider0.value.callback=function(tm,halos){if(theMap&&flashEl&&mapIsReady){flashEl.execMorphs(tm);setWreckVisibility(tm,halos);noaaTextUpdate(tm);}};var ictx=new yUp(icanvasE.getContext('2d',1,1));theContext=ictx;var circlev=new neo.shape.Circle({drawC:ictx,radius:2});wreckMarker=circlev;renderWrecks();zoomer0V=neo.shapes.zoomer0.apply({container:zdiv});zoomer0V.value.callback=function(z){if(theMap)setZoom(z);return;flashEl.setZoom(z*100);cZoom=z;flashEl.scaleWrecks((1/z)*100);renderWrecks();};pageRendered=true;}
var wbox=wrecksBox();function wrecksBox(){var ln=wrecks.length;var w=wrecks[0];var mxx=parseInt(w.x);var mnx=parseInt(w.x);var mxy=parseInt(w.y);var mny=parseInt(w.y);for(var i=0;i<ln;i++){w=wrecks[i];if(w.x){var mxx=Math.max(mxx,parseInt(w.x));var mnx=Math.min(mnx,parseInt(w.x));var mxy=Math.max(mxy,parseInt(w.y));var mny=Math.min(mny,parseInt(w.y));}else{}}
return{minx:mnx,maxx:mxx,miny:mny,maxy:mxy};}
var wrecksById={};var wrecksMD=[];function pruneWrecks(){var rs=[];var ln=wrecks.length;for(var i=0;i<ln;i++){var cw=wrecks[i];if(cw.x){var dt=cw.date;if(dt){var idt=parseInt(dt);if(idt==dt){rs.push(cw);var wnm="w_"+(cw.index);cw.id=wnm;wrecksById[wnm]=cw;continue;}}}
wrecksMD.push(cw);}
wrecks=rs;}
pruneWrecks();var wscale=topScale*2.295;var wscale=topScale*2.257;var wtranslate={x:-280,y:-200};var wtranslate={x:topScale*-202,y:topScale*-142};var wtranslate={x:topScale*-184,y:topScale*-179};var wpoints=[];function wreckPoints(){var ln=wrecks.length;for(var i=0;i<ln;i++){var cw=wrecks[i];var wx=(parseInt(cw.x)-400000)/100;var wy=(parseInt(cw.y)-5100000)/100;var wpnt={x:(wx*wscale)+wtranslate.x,y:(wy*wscale)+wtranslate.y,index:cw.index};wpoints.push(wpnt);}}
wreckPoints();var wreckPointSet=new neo.util2d.pointSet(wpoints);function capitalizeWord(w){if(!w.length)return w;if(w=="u.s.s."){return"U.S.S.";}
var f=w.charAt(0);var rst=w.substr(1);return f.toUpperCase(f)+rst;}
function capitalizeWords(s){var words=s.split(" ");var cwords=$.map(words,capitalizeWord);return cwords.join(" ");}
function capitalizeWreckNames(){$.each(wrecks,function(i,w){if(w.name)w.name=capitalizeWords(w.name);});}
capitalizeWreckNames();function sortWrecks(){var cmf=function(w0,w1){var d0=w0.date;var d1=w1.date;return(d0<d1)?-1:((d0==d1)?0:1);}
wrecks.sort(cmf);}
sortWrecks();var wrecksSortedByName=[];function sortWrecksByName(){var ln=wrecks.length;for(var i=0;i<ln;i++)wrecksSortedByName.push(wrecks[i]);var cmf=function(w0,w1){var n0=w0.name
var n1=w1.name
return(n0<n1)?-1:((n0==n1)?0:1);}
wrecksSortedByName.sort(cmf);}
sortWrecksByName();var initialDate=1900;function initWrecks(){var m=document.getElementById("foob");var ln=wrecks.length;for(var i=0;i<ln;i++){var w=wrecks[i];w.date=parseInt(w.date);var vis=initialDate<=w.date;w.visible=vis;if(!vis){theMap.hideItem(w);}}}
function setWreckVisibility(year,halos){var ln=wrecks.length;for(var i=0;i<ln;i++){var w=wrecks[i];if(w.date<year){neo.log("wreck","visible",w);theMap.showItem(w,halos);}else{theMap.hideItem(w);}}}