var isTvShowsRendered=false;var isDvdsRendered=false;var isWelcomeRendered=false;var isMapRendered=false;var isGradPicsRendered=false;var isAwardsRendered=false;var isBooksRendered=false;var isWebsitesRendered=false;var isAlbumRendered=false;var isMySkillsRendered=false;var isYearBookRendered=false;var isBdayGiftRendered=false;var isMagazinesRendered=false;var mapPanel;var welcomePanel;var main;var popUpWindowWidth;var popUpWindowHeight;var currentScene="room";YAHOO.util.Event.onDOMReady(function(){loadKrPano();main=YAHOO.util.Dom.get("main");showWelcomePanel()});function loadPano(b){currentScene=b;var a=document.getElementById("krpanoSWFObject");a.call("loadpano("+b+", null, MERGE, BLEND(2));")}function loadPanoFromMenu(b,a,c){loadPano(c)}function lookToHotspot(a){var b=document.getElementById("krpanoSWFObject");if(currentScene=="room"){b.call("looktohotspot("+a+")")}else{b.call("loadscene(room)");b.call("looktohotspot("+a+")");currentScene="room"}}function changeScene(b){var a=document.getElementById("krpanoSWFObject");currentScene=b;a.call("loadscene("+b+")")}function lookTo(b,a,d){var c=document.getElementById("krpanoSWFObject");if(currentScene=="room"){c.call("looktohotspot("+d+")")}else{c.call("action(lookup)");c.call("looktohotspot("+d+")");currentScene="room"}}function lookToCoordinates(b,a,d){var c=document.getElementById("krpanoSWFObject");if(currentScene=="room"){c.call("lookto("+d+")")}else{c.call("loadscene(room)");c.call("lookto("+d+")");currentScene="room"}}function showHelp(){var a=document.getElementById("krpanoSWFObject");a.call("action(showguide)")}function updatePopupWindowSize(){popUpWindowWidth=YAHOO.util.Dom.getViewportWidth()*0.8;popUpWindowHeight=YAHOO.util.Dom.getViewportHeight()*0.8}function removePanel(b){var a=YAHOO.util.Dom.get(b+"_c");main.removeChild(a)}function showBdayGiftPanel(){if(!isBdayGiftRendered){updatePopupWindowSize();bdayGiftPanel=new YAHOO.widget.Panel("bdayGiftPanel",{constraintoviewport:true,fixedcenter:true,width:popUpWindowWidth,height:popUpWindowHeight,zIndex:999});bdayGiftPanel.setHeader("Photo Collage");bdayGiftPanel.setBody('<div id="bdayGiftPanelContent"></div>');bdayGiftPanel.render(document.body);loadZoomify("bdayGiftPanelContent","gift");isBdayGiftRendered=true;bdayGiftPanel.hideEvent.subscribe(function(){removePanel("bdayGiftPanel");isBdayGiftRendered=false})}else{bdayGiftPanel.show()}}function showYearBookPanel(){if(!isYearBookRendered){updatePopupWindowSize();yearBookPanel=new YAHOO.widget.Panel("yearBookPanel",{constraintoviewport:true,fixedcenter:true,width:popUpWindowWidth,height:popUpWindowHeight,zIndex:999});yearBookPanel.setHeader("Our High School Year Book");yearBookPanel.setBody('<div id="yearBookPanelContent"></div>');yearBookPanel.render(document.body);loadPageFlip();isYearBookRendered=true;yearBookPanel.hideEvent.subscribe(function(){removePanel("yearBookPanel");isYearBookRendered=false})}else{yearBookPanel.show()}}function showGradPicsPanel(){if(!isGradPicsRendered){updatePopupWindowSize();gradPicsPanel=new YAHOO.widget.Panel("gradPicsPanel",{constraintoviewport:true,fixedcenter:true,width:popUpWindowWidth,height:popUpWindowHeight,zIndex:999});gradPicsPanel.setHeader("My Graduation Pictures");gradPicsPanel.setBody('<div id="gradPicsPanelContent"></div>');gradPicsPanel.render(document.body);loadZoomify("gradPicsPanelContent","gradPics");isGradPicsRendered=true;gradPicsPanel.hideEvent.subscribe(function(){removePanel("gradPicsPanel");isGradPicsRendered=false})}else{gradPicsPanel.show()}}function showAwardsPanel(){if(!isAwardsRendered){updatePopupWindowSize();awardsPanel=new YAHOO.widget.Panel("awardsPanel",{constraintoviewport:true,fixedcenter:true,width:popUpWindowWidth,height:popUpWindowHeight,zIndex:999});awardsPanel.setHeader("My Awards");awardsPanel.setBody('<div id="awardsPanelContent"></div>');awardsPanel.render(document.body);loadZoomify("awardsPanelContent","awards");isAwardsRendered=true;awardsPanel.hideEvent.subscribe(function(){removePanel("awardsPanel");isAwardsRendered=false})}else{awardsPanel.show()}}function showBooksPanel(){if(!isBooksRendered){updatePopupWindowSize();booksPanel=new YAHOO.widget.Panel("booksPanel",{constraintoviewport:true,fixedcenter:true,width:popUpWindowWidth,height:popUpWindowHeight,zIndex:999});booksPanel.setHeader("My Books");booksPanel.setBody('<div id="booksPanelContent"></div>');booksPanel.render(document.body);isBooksRendered=true;loadZoomify("booksPanelContent","books");booksPanel.hideEvent.subscribe(function(){removePanel("booksPanel");isBooksRendered=false})}else{booksPanel.show()}}function showDvdsPanel(){if(!isDvdsRendered){updatePopupWindowSize();dvdsPanel=new YAHOO.widget.Panel("dvdsPanel",{constraintoviewport:true,fixedcenter:true,width:popUpWindowWidth,height:popUpWindowHeight,zIndex:999});dvdsPanel.setHeader("My Favorite Movies");dvdsPanel.setBody('<div id="dvdPanelContent"></div>');dvdsPanel.render(document.body);loadTiltViewer("xml/movies.xml","dvdPanelContent");isDvdsRendered=true;dvdsPanel.hideEvent.subscribe(function(){removePanel("dvdsPanel");isDvdsRendered=false})}else{dvdsPanel.show()}}function showAlbumPanel(){if(!isAlbumRendered){updatePopupWindowSize();albumPanel=new YAHOO.widget.Panel("albumPanel",{constraintoviewport:true,fixedcenter:true,width:popUpWindowWidth,height:popUpWindowHeight,zIndex:999});albumPanel.setHeader("My Photo Album");albumPanel.setBody('<div id="albumPanelContent"></div>');albumPanel.render(document.body);loadSimpleViewer();isAlbumRendered=true;albumPanel.hideEvent.subscribe(function(){removePanel("albumPanel");isAlbumRendered=false})}else{albumPanel.show()}}function showTvShowPanel(){if(!isTvShowsRendered){updatePopupWindowSize();tvShowsPanel=new YAHOO.widget.Panel("tvShowsPanel",{constraintoviewport:true,fixedcenter:true,width:popUpWindowWidth,height:popUpWindowHeight,zIndex:999});tvShowsPanel.setHeader("My Favorite Tv Shows");tvShowsPanel.setBody('<div id="tvShowsPanelContent"></div>');tvShowsPanel.render(document.body);loadPostCardViewer();isTvShowsRendered=true;tvShowsPanel.hideEvent.subscribe(function(){removePanel("tvShowsPanel");isTvShowsRendered=false})}else{tvShowsPanel.show()}}function showWebsitesPanel(){if(!isWebsitesRendered){updatePopupWindowSize();websitesPanel=new YAHOO.widget.Panel("websitesPanel",{constraintoviewport:true,fixedcenter:true,width:popUpWindowWidth,height:popUpWindowHeight,zIndex:999});websitesPanel.setHeader("My Websites");websitesPanel.setBody('<div id="websitesContent"></div>');websitesPanel.render(document.body);loadCarousel("websitesContent","xml/websites.xml");isWebsitesRendered=true;websitesPanel.hideEvent.subscribe(function(){removePanel("websitesPanel");isWebsitesRendered=false})}else{websitesPanel.show()}}function showMagazinesPanel(){if(!isMagazinesRendered){updatePopupWindowSize();magazinesPanel=new YAHOO.widget.Panel("magazinesPanel",{constraintoviewport:true,fixedcenter:true,width:popUpWindowWidth,height:popUpWindowHeight,zIndex:999});magazinesPanel.setHeader("My Favorite Magazines");magazinesPanel.setBody('<div id="magazinesPanelContent"></div>');magazinesPanel.render(document.body);loadPhotoStack("magazinesPanelContent");isFhmRendered=true;magazinesPanel.hideEvent.subscribe(function(){removePanel("magazinesPanel");isMagazinesRendered=false})}else{magazinesPanel.show()}}function showMapPanel(){if(!isMapRendered){updatePopupWindowSize();mapPanel=new YAHOO.widget.Panel("mapPanel",{constraintoviewport:true,fixedcenter:true,width:popUpWindowWidth,height:popUpWindowHeight,zIndex:999});mapPanel.setHeader("My Travels");mapPanel.setBody('<div id="mapPanelContent"></div>');mapPanel.render(document.body);loadGmap();isMapRendered=true;mapPanel.hideEvent.subscribe(function(){removePanel("mapPanel");isMapRendered=false})}else{mapPanel.show()}}function showWelcomePanel(){if(!isWelcomeRendered){welcomePanel=new YAHOO.widget.Panel("welcomePanel",{constraintoviewport:true,fixedcenter:true,width:375,height:375,zIndex:999});var a=document.getElementById("welcomePanelContent").innerHTML;welcomePanel.setHeader("Welcome!");welcomePanel.setBody(a);welcomePanel.render(document.body);isWelcomeRendered=true;welcomePanel.hideEvent.subscribe(function(){removePanel("welcomePanel");isWelcomeRendered=false})}else{welcomePanel.show()}}function showMySkillsPanel(){if(!isMySkillsRendered){mySkillsPanel=new YAHOO.widget.Panel("mySkillsPanel",{constraintoviewport:true,fixedcenter:true,width:400,height:400,zIndex:999});var a=document.getElementById("mySkillsContent").innerHTML;mySkillsPanel.setHeader("My Skills");mySkillsPanel.setBody(a);mySkillsPanel.render(document.body);isMySkillsRendered=true;mySkillsPanel.hideEvent.subscribe(function(){removePanel("mySkillsPanel");isMySkillsRendered=false})}else{mySkillsPanel.show()}}function loadPageFlip(){var a=new SWFObject("flash-plugins/pageFlip.swf","viewer","100%","100%","8","#181818");a.addVariable("xmlConfig","xml/yearbook.xml");a.write("yearBookPanelContent")}function loadKrPano(){if(typeof(deconcept)!=="undefined"&&deconcept.SWFObjectUtil.getPlayerVersion().major>=6){var b=new SWFObject("krpano/krpano.swf","krpanoSWFObject","100%","100%","9.0.28","#000000");b.addParam("allowFullScreen","true");b.addParam("wmode","opaque");b.addVariable("pano","panorama.xml");b.useExpressInstall("krpano/swfobject/expressinstall.swf");b.setAttribute("xiRedirectUrl",window.location);if(b.write("krpanoDIV")){var a=new SWFkrpanoMouseWheel(b)}}else{document.getElementById("krpanoDIV").innerHTML="Flash Player 9 needed"}}function loadPostCardViewer(){var a=new SWFObject("flash-plugins/PostCardViewer.swf","viewer","100%","100%","8","#181818");a.addVariable("xmlURL","xml/tvShows.xml");a.write("tvShowsPanelContent")}function loadTiltViewer(b,c){var a=new SWFObject("flash-plugins/TiltViewer.swf","tiltviewer","100%","100%","9.0.28","#000000");a.addVariable("useFlickr","false");a.addVariable("xmlURL",b);a.addVariable("maxJPGSize","755");a.addVariable("useReloadButton","false");a.addVariable("columns","3");a.addVariable("rows","3");a.addParam("allowFullScreen","false");a.write(c)}function loadSimpleViewer(){var a=new SWFObject("flash-plugins/simpleviewer.swf","simpleviewer","100%","100%","9.0.28","#000000");a.addVariable("xmlDataPath","xml/simpleviewer.xml");a.write("albumPanelContent")}function loadCarousel(b,c){var a=new SWFObject("flash-plugins/Carousel.swf","carousel","100%","100%","9.0.0","#000000");a.addVariable("xmlfile",c);a.addVariable("loaderColor","0x666666");a.addVariable("wmode","transparent");a.write(b)}function loadPhotoStack(b){var a=new SWFObject("flash-plugins/photostack.swf","photoStack","100%","100%","9.0.0","#000000");a.addVariable("wmode","transparent");a.write(b)}function loadZoomify(c,e){var b=popUpWindowWidth-20;var d=popUpWindowHeight-20-26;var a=new SWFObject("flash-plugins/ZoomifyViewer.swf","zoomify",b,d,"9.0.0","#000000");a.addVariable("zoomifyImagePath","images/zoomify/"+e);a.addVariable("menu","false");a.write(c)}function loadGmap(){if(GBrowserIsCompatible()){var p=document.getElementById("mapPanelContent");p.style.width=popUpWindowWidth-20;p.style.height=popUpWindowHeight-20-26;var z=new GMap(p);var d=new GLatLng(20.96143961409684,-158.203125);z.addControl(new GLargeMapControl());z.addControl(new GMapTypeControl());z.setCenter(d,2);z.setMapType(G_SATELLITE_MAP);var d=new GLatLng(20.96143961409684,-158.203125);var t=new GLatLng(38.89861068018581,-77.03659415245056);var l=new GLatLng(37.82646346751159,-122.42310047149658);var N=new GLatLng(40.75699780805856,-73.98609638214111);var y=new GLatLng(36.147119313044975,-115.15488266944885);var i=new GLatLng(29.427039169044928,-98.43761265277863);var n=new GLatLng(29.27269152503985,-94.81510698795319);var F=new GLatLng(39.33642177141803,-120.34810066223145);var x=new GLatLng(29.550196571735395,-95.09438931941986);var v=new GLatLng(30.27393049709812,-97.73968040943146);var g=new GLatLng(36.01673027706455,-114.73768919706345);var H=new GLatLng(34.13668629444307,-118.3557665348053);var b=new GLatLng(11.970478646400363,121.94892883300781);var K=new GLatLng(16.198520285887387,120.05009651184082);var B=new GLatLng(8.422175424888389,124.62592363357544);var c=new GLatLng(9.258542430253295,124.65739130973816);var e=new GLatLng(10.293290443943441,123.90278935432434);var G=new GLatLng(9.0781964661976,123.19725036621094);var m=new GLatLng(13.507197187871062,120.90591430664062);var s=new GLatLng(15.349872541505135,119.96626138687134);var q=new GMarker(t,{title:"Washington, D.C."});var h=new GMarker(l,{title:"San Francisco"});var J=new GMarker(N,{title:"New York"});var w=new GMarker(y,{title:"Alcatraz Island"});var f=new GMarker(i,{title:"San Antonio, Texas"});var k=new GMarker(n,{title:"Galveston, Texas"});var C=new GMarker(F,{title:"Truckee, California"});var u=new GMarker(x,{title:"Houston, Texas"});var r=new GMarker(v,{title:"Austin, Texas"});var a=new GMarker(g,{title:"Arizona/Nevada"});var E=new GMarker(H,{title:"Los Angeles, California"});var M=new GMarker(b,{title:"Boracay"});var I=new GMarker(K,{title:"Pangasinan"});var A=new GMarker(B,{title:"Cagayan De Oro"});var L=new GMarker(c,{title:"Camiguin"});var O=new GMarker(c,{title:"Cebu"});var D=new GMarker(G,{title:"Negros"});var j=new GMarker(m,{title:"Puerto Galera"});var o=new GMarker(s,{title:"Zambales"});z.addOverlay(q);z.addOverlay(h);z.addOverlay(J);z.addOverlay(w);z.addOverlay(f);z.addOverlay(k);z.addOverlay(C);z.addOverlay(u);z.addOverlay(r);z.addOverlay(a);z.addOverlay(E);z.addOverlay(M);z.addOverlay(I);z.addOverlay(A);z.addOverlay(L);z.addOverlay(O);z.addOverlay(D);z.addOverlay(j);z.addOverlay(o);GEvent.addListener(q,"click",function(){var P='<div class="balloonDiv"><p>Washington D.C.</p><img src="images/travels/whiteHouse.jpg" /></div>';z.openInfoWindowHtml(t,P)});GEvent.addListener(h,"click",function(){var P='<div class="balloonDiv"><p>San Francisco</p><img src="images/travels/alcatraz.jpg" /></div>';z.openInfoWindowHtml(l,P)});GEvent.addListener(J,"click",function(){var P='<div class="balloonDiv"><p>New York</p><img src="images/travels/newYork.jpg" /></div>';z.openInfoWindowHtml(N,P)});GEvent.addListener(w,"click",function(){var P='<div class="balloonDiv"><p>Las Vegas, Nevada</p><img src="images/travels/lasVegas.jpg" /></div>';z.openInfoWindowHtml(y,P)});GEvent.addListener(f,"click",function(){var P='<div class="balloonDiv"><p>San Antonio, Texas</p><img src="images/travels/sanAntonio.jpg" /></div>';z.openInfoWindowHtml(i,P)});GEvent.addListener(k,"click",function(){var P='<div class="balloonDiv"><p>Galveston, Texas</p><img src="images/travels/galveston.jpg" /></div>';z.openInfoWindowHtml(n,P)});GEvent.addListener(C,"click",function(){var P='<div class="balloonDiv"><p>Truckee, California</p><img src="images/travels/truckee.jpg" /></div>';z.openInfoWindowHtml(F,P)});GEvent.addListener(u,"click",function(){var P='<div class="balloonDiv"><p>Houston, Texas</p><img src="images/travels/houston.jpg" /></div>';z.openInfoWindowHtml(x,P)});GEvent.addListener(r,"click",function(){var P='<div class="balloonDiv"><p>Austin, Texas</p><img src="images/travels/austin.jpg" /></div>';z.openInfoWindowHtml(v,P)});GEvent.addListener(a,"click",function(){var P='<div class="balloonDiv"><p>Hoover Dam, Nevada Arizona border </p><img src="images/travels/hooverDam.jpg" /></div>';z.openInfoWindowHtml(g,P)});GEvent.addListener(E,"click",function(){var P='<div class="balloonDiv"><p>Los Angeles, California</p><img src="images/travels/losAngeles.jpg" /></div>';z.openInfoWindowHtml(H,P)});GEvent.addListener(M,"click",function(){var P='<div class="balloonDiv"><p>Boracay</p><img src="images/travels/boracay.jpg" /></div>';z.openInfoWindowHtml(b,P)});GEvent.addListener(I,"click",function(){var P='<div class="balloonDiv"><p>Pangasinan</p><img src="images/travels/pangasinan.jpg" /></div>';z.openInfoWindowHtml(K,P)});GEvent.addListener(A,"click",function(){var P='<div class="balloonDiv"><p>Cagayan De Oro</p><img src="images/travels/cagayanDeOro.jpg" /></div>';z.openInfoWindowHtml(B,P)});GEvent.addListener(L,"click",function(){var P='<div class="balloonDiv"><p>Camiguin</p><img src="images/travels/camiguin.jpg" /></div>';z.openInfoWindowHtml(c,P)});GEvent.addListener(O,"click",function(){var P='<div class="balloonDiv"><p>Cebu</p><img src="images/travels/cebu.jpg" /></div>';z.openInfoWindowHtml(e,P)});GEvent.addListener(D,"click",function(){var P='<div class="balloonDiv"><p>Negros</p><img src="images/travels/negros.jpg" /></div>';z.openInfoWindowHtml(G,P)});GEvent.addListener(j,"click",function(){var P='<div class="balloonDiv"><p>Puerto Galera</p><img src="images/travels/puertoGalera.jpg" /></div>';z.openInfoWindowHtml(m,P)});GEvent.addListener(o,"click",function(){var P='<div class="balloonDiv"><p>Zambales</p><img src="images/travels/zambales.jpg" /></div>';z.openInfoWindowHtml(s,P)})}else{alert("Sorry, the Google Maps API is not compatible with this browser")}};