//This javascript is used by the jsp files that interact and embed the flash //display for the footprint chronicles content. var M_strGFileName = "footprint.js"; //This setups window sizing and other parameters for footprint video popup window. function popUp(URL) { try { strFeatures = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=462,height=448,left=485,top=245"; doPopup(URL, strFeatures); } catch( e ) { HandleError( "popUp", e, M_strGFileName ); } } //This setups window sizing and other parameters for footprint privacy policy popup window. function privacy(URL) { try { strFeatures = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=400,left=485,top=245"; doPopup(URL, strFeatures); } catch( e ) { HandleError( "privacy", e, M_strGFileName ); } } //This setups window sizing and other parameters for footprint email FAQ popup window. function email(URL) { try { strFeatures = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=540,height=600,left=485,top=245"; doPopup(URL, strFeatures); } catch( e ) { HandleError( "email", e, M_strGFileName ); } } //All the above functtions call ths function in order to call Global.js popUp function function doPopup(strURL, strFeatures) { try { day = new Date(); id = day.getTime(); popUpRef(strURL, id, strFeatures); } catch( e ) { HandleError( "doPopup", e, M_strGFileName ); } } function tsStateChange(strIssueNum, strDesc) { try { var strExtPath = "TINSHED" + ":" + strIssueNum + ":" + strDesc; var pageName = "Patagonia - The Tin Shed - Volume " + strIssueNum + " - " + strDesc; logStateChange(pageName, strExtPath); } catch(e) { HandleError( "tsStateChange", e, M_strPageName ); } } function fbStateChange(strIssueNum, strDesc) { try { var strExtPath = "FLIPBOOK" + ":" + strIssueNum + ":" + strDesc; var pageName = "Flipbook - Volume " + strIssueNum + " - " + strDesc; logStateChange(pageName, strExtPath); } catch(e) { HandleError( "fbStateChange", e, M_strPageName ); } } function fpStateChange(strDesc) { try { var strExtPath = "FOOTPRINT" + ":" + strDesc; var pageName = "Patagonia - The Footprint Chronicles - " + strDesc; logStateChange(pageName, strExtPath); } catch(e) { HandleError( "fpStateChange", e, M_strPageName ); } } function logStateChange(pageName, path) { try { if(typeof(s_account)=='undefined') { return; } var s=s_gi(s_account); s.pageName = pageName; s.prop7 = path; s.t(); } catch(e) { HandleError( "logStateChange", e, M_strPageName ); } } /*New Footprint JS ---------------------------------------------*/ function closeFPIntro(){ $('footprintIntroWrap').fade(); } var footprintAccordion = { openIdx : '', animating: false, init : function(){ $$('.footprintAcc').each(function(el){ el.observe('click', function(){ if(!footprintAccordion.animating){ footprintAccordion.animating = true; var thisID = this.id, copyID = thisID.replace('footprintAcc','footprintAccCopy'), openID = footprintAccordion.openIdx; if(openID){ var openDiv = openID.replace('footprintAccCopy','footprintAcc'); $(openDiv).removeClassName('open'); $(footprintAccordion.openIdx).blindUp({ duration: 0.3, afterFinish: function(){ footprintAccordion.animating = false; footprintAccordion.openIdx = ''; } }); if(openID == copyID) { //if we're closing the open div kill it here. return false; } } if(openID != copyID){ this.addClassName('open'); $(copyID).blindDown({ duration: 0.3, afterFinish: function() { footprintAccordion.openIdx = copyID; footprintAccordion.animating = false; } }); } } //end if !animating else { console.log('got in here'); } }); }); } }