BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Lough Ree Yacht Club - ECPv4.9.14//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Lough Ree Yacht Club
X-ORIGINAL-URL:https://www.lryc.ie
X-WR-CALDESC:Events for Lough Ree Yacht Club
BEGIN:VTIMEZONE
TZID:UTC
BEGIN:STANDARD
TZOFFSETFROM:+0000
TZOFFSETTO:+0000
TZNAME:UTC
DTSTART:20260101T000000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;VALUE=DATE:20260725
DTEND;VALUE=DATE:20260727
DTSTAMP:20260503T085723
CREATED:20190927T080858Z
LAST-MODIFIED:20260227T115306Z
UID:4129-1784937600-1785110399@www.lryc.ie
SUMMARY:Double Ree
DESCRIPTION:\n\nDouble Ree Notice of Race Click Here\nDouble Ree Sailing Instructions Click Here\n\n\n.tribe-events-event-image {\n  display:none;\n}\n\n\n\n//numericalTotals\nvar total = 0;\n//Summary Strings\nvar summaryMsg = [];\n//Arrays\nvar errors = [];\nvar boatCount = 1;\n//Constants\nvar kidsMealFee = 15;\nvar adultMealFee = 15;\nvar fillToCartURL='https://www.lryc.ie/cart/?fill_cart=';\n\nfunction calculateTotal() {\n   this.summaryMsg = [];\n   thereAreValidationErrors()\n   if (this.errors.length > 0) {\n      printErrors();\n      return;\n   }\n   disableButton();\n   var xhr = new XMLHttpRequest()\n      xhr.open("GET"\, 'https://www.lryc.ie/?clear-cart'\, true);\n      xhr.setRequestHeader("Content-Type"\, "application/x-www-form-urlencoded; charset=UTF-8");\n      xhr.onload = function () {\n         getTotalBoatEntryFees();\n      };\n      xhr.send(); \n}\nfunction goToCart() {\n   window.location.href = fillToCartURL;\n}\nfunction getEntryProductSingleFleet(){\n   var today = new Date();\n   var dd = today.getDate();\n   var mm = today.getMonth()+1; //January is 0!\n   \n   if (mm === 8 && dd > 21) {\n      return '1657';\n   } else if (mm > 8) {\n      return '1657';\n   }\n   return '1656'\n}\nfunction thereAreValidationErrors(){\n   this.errors = [];\n   var helm = document.getElementsByName("helm");\n   var crew = document.getElementsByName("crew");\n   var boatNo = document.getElementsByName("boatNo");\n   var club = document.getElementsByName("club");\n   var declaration = document.getElementById("checkMember");\n   var spinnaker = document.getElementsByName("spinnaker");\n   var boatClass = document.getElementsByName("field4")[0].value;\n   if (boatClass=="") {\n      \n   } else{\n   if (helm[0].value.length < 3) {\n      this.errors.push("Please enter a helm name")\n   } \n   if (crew[0].value.length < 3) {\n      this.errors.push("Please enter a crew name")\n   }   \n   if (!declaration.checked){\n      this.errors.push("Boats entering must be members of their respective class")\n   }\n   if (boatNo[0].value.length < 3) {\n      this.errors.push("Please enter a boat number")\n   }    \n   if (club[0].value.length < 3) {\n      this.errors.push("Please enter a club")\n   }}\n   var validation = document.getElementById("validation");\n   validation.innerHTML = "";\n}\nfunction printErrors(){\n    var validation = document.getElementById("validation");\n    for (i = 0; i < errors.length; i++) {\n        validation.innerHTML += (errors[i] + "");\n    }\n}\nfunction createCartButton(){ \n   this.cartHref += "\″ onclick=\"disableButton()\" id=\"goToCheckout\">Add to Cart"\n   var summary = document.getElementById("addToCart").innerHTML = this.cartHref;    \n}\nfunction disableButton(){\n   var goToCheckout = document.getElementById("Next");\n   goToCheckout.disabled = true;\n   goToCheckout.value='Thank you please wait a few moments while we build your entry';\n   goToCheckout.style.background = "#909090"\n}\nfunction getTotalBoatEntryFees(){\n  var helm = document.getElementsByName("helm");\n  var crew = document.getElementsByName("crew");\n  var boatNo = document.getElementsByName("boatNo");\n  var boatName = document.getElementsByName("boatName");\n  var club = document.getElementsByName("club");\n  var boatClass= document.getElementsByName("field4");\n  var spinnaker = document.getElementsByName("spinnaker");\n  if (boatClass[0].value=="") {\n      getTotalMealFees();\n  } else{\n  var xhr = new XMLHttpRequest();\n  xhr.open("POST"\, 'https://www.lryc.ie/?add-to-cart'\, true);\n  xhr.setRequestHeader("Content-Type"\, "application/x-www-form-urlencoded; charset=UTF-8");\n  xhr.onload = function () {\n    getTotalMealFees();\n  };\n  var additionalInfo = ' Spinnaker Colour :' + spinnaker[0].value;\n  if (boatClass[0].value==="Mirror"){\n   if (boatName[0].value.length > 0){  \nxhr.send('boatClass='+boatClass[0].value+'&boatNumber='+boatNo[0].value+'&helm='+helm[0].value+'&crew='+crew[0].value+'&club='+club[0].value+'&boatName='+boatName[0].value+'&AdditionalInfo='+additionalInfo+'&quantity=1&add-to-cart='+1656);\n   } else {\nxhr.send('boatClass='+boatClass[0].value+'&boatNumber='+boatNo[0].value+'&helm='+helm[0].value+'&crew='+crew[0].value+'&club='+club[0].value+'&AdditionalInfo='+additionalInfo+'&quantity=1&add-to-cart='+1656);\n }}else{\n  if (boatName[0].value.length > 0){  \nxhr.send('boatClass='+boatClass[0].value+'&boatNumber='+boatNo[0].value+'&helm='+helm[0].value+'&crew='+crew[0].value+'&club='+club[0].value+'&boatName='+boatName[0].value+'&AdditionalInfo='+additionalInfo+'&quantity=1&add-to-cart='+1657);\n   } else {\nxhr.send('boatClass='+boatClass[0].value+'&boatNumber='+boatNo[0].value+'&helm='+helm[0].value+'&crew='+crew[0].value+'&club='+club[0].value+'&AdditionalInfo='+additionalInfo+'&quantity=1&add-to-cart='+1657);\n  }}\n}\n} \nfunction getTotalMealFees() {\n   var fridayS = document.getElementsByName("fridayBbq");\n   var smallNum=parseInt(fridayS[0].value);\n   if (smallNum>0) {\n           var xhr = new XMLHttpRequest();\n           xhr.open("POST"\, 'https://www.lryc.ie/?add-to-cart'\, true);\n           xhr.setRequestHeader("Content-Type"\, "application/x-www-form-urlencoded; charset=UTF-8");\n           xhr.onload = function () {\n               saturdayMeals();\n           };\n           xhr.send('&quantity='+smallNum+'&add-to-cart='+6691);\n   } else {\n      saturdayMeals();\n   }\n}\nfunction saturdayMeals() {\n   var fridayL = document.getElementsByName("saturdayLasagne");\n   var largeNum=parseInt(fridayL[0].value);\n   var dinners = largeNum;\n   if (dinners>0) {\n           var xhr = new XMLHttpRequest();\n           xhr.open("POST"\, 'https://www.lryc.ie/?add-to-cart'\, true);\n           xhr.setRequestHeader("Content-Type"\, "application/x-www-form-urlencoded; charset=UTF-8");\n           xhr.onload = function () {\n               getAdditionalInfo();\n           };\n           xhr.send('&quantity='+dinners+'&add-to-cart='+6685);\n   } else {\n        getAdditionalInfo();\n   }\n}\nfunction createSummary(){\n   this.total = 0; \n    this.summaryMsg = [];\n    var fridayL = document.getElementsByName("saturdayLasagne");\n    var largeNum=parseInt(fridayL[0].value);\n    var fridayV = document.getElementsByName("fridayBbq");\n    var largeNumV=parseInt(fridayV[0].value);\n    var boatClass = document.getElementsByName("field4")[0].value;\n    var today = new Date();\n    var dd = today.getDate();\n    var mm = today.getMonth()+1; //January is 0!\n    var entry=80;\n    if (mm === 7 && dd > 18) {\n       entry=80;\n    }\n    if (boatClass === "Mirror"){\n      this.summaryMsg.push("1 x " + boatClass + " Fleet Nationals = €"+100);\n      this.total += 100\n    } else if (boatClass.length > 0){\n      this.summaryMsg.push("1 x " + boatClass + "= €"+entry);\n      this.total += 80\n    }\n    if (largeNum > 0){\n       this.total += 20*largeNum;\n       this.summaryMsg.push(largeNum+" x Saturday Meal Lasagne = €"+20*largeNum);\n    }\n    if (largeNumV > 0){\n       this.total += 20*largeNumV;\n       this.summaryMsg.push(largeNumV+" x Saturday Vegetarian = €"+20*largeNumV);\n    }\n    var accomadation= document.getElementsByName("accomadationSelect");\n    for (i = 0; i < accomadation.length; i++) { \n        var priceAndProductNo = accomadation[i].value.split('\,');\n        if (parseInt(priceAndProductNo[0]) > 0) {\n            if (parseInt(priceAndProductNo[0]) == 45){\n               this.total += 15\n               this.summaryMsg.push("1 x " + accomadation[i][accomadation[i].selectedIndex].innerText+ " €15");\n            } else {\n               this.total += 30\n               this.summaryMsg.push("1 x " + accomadation[i][accomadation[i].selectedIndex].innerText+ " €30");\n            }\n        }\n    }\n    var summary = document.getElementById("entrySummary");\n    summary.innerHTML = "";\n    for (i = 0; i < summaryMsg.length; i++) {\n        summary.innerHTML += (summaryMsg[i] + "");\n    }\n   document.getElementById("Total").innerHTML = "€ "+ this.total; \n   document.getElementById("regattaFormTotal").style.display= "block";\n}\nfunction accomaSelected(){\n   createSummary()\n}\nfunction addBerthingAccomodation(){\n    var nextBoatDiv = document.getElementById("accomodationDetail");\n    nextBoatDiv.innerHTML="";\n    nextBoatDiv.innerHTML+="" +\n        " "+ \n    ""+\n    ""+\n    ""+\n    ""\n}\nfunction payBerthing(){\n       var accomadation= document.getElementsByName("accomadationSelect");\n       var priceAndProductNo = accomadation[0].value.split('\,');\n       var accom="";\n       var priceCode=13827\n       if (parseInt(priceAndProductNo[0]) == 45) {\n           priceCode=13826\n       }\n       if (parseInt(priceAndProductNo[0]) == 0) {\n           goToCart();\n       } else {\n           var xhr = new XMLHttpRequest();\n           xhr.open("POST"\, 'https://www.lryc.ie/?add-to-cart'\, true);\n           xhr.setRequestHeader("Content-Type"\, "application/x-www-form-urlencoded; charset=UTF-8");\n           xhr.onload = function () {\n               goToCart();\n           };\n           xhr.send('&quantity=1&add-to-cart='+priceCode);\n      }\n}\nfunction getAdditionalInfo(){\n       var additional = document.getElementsByName("paragraph_text");\n       var soda = document.getElementsByName("sodaDesc");\n       var xhr = new XMLHttpRequest();\n       xhr.open("POST"\, 'https://www.lryc.ie/?add-to-cart'\, true);\n       xhr.setRequestHeader("Content-Type"\, "application/x-www-form-urlencoded; charset=UTF-8");\n       xhr.onload = function () {\n           payBerthing();\n       };\n       var additionalInfo =  ""\n       if (additional[0].value !== ""){\n           additionalInfo += '  Additional Request: ' +additional[0].value;\n       } \n       xhr.send('AdditionalInfo='+additionalInfo+'&quantity=1&add-to-cart='+2150);\n}\n\n\n\n\n\n1 Declaration\n\nRules of the Regatta\n1.1 The regatta will be governed by the rules as defined by The Racing Rules of Sailing.\n1.2 The prescriptions of the Irish National Authority (Irish Sailing) will apply.\n1.3 All relevant class rules will apply.\n1.4 These Rules are contingent upon Covid-19\, Govt.\, I.S. and L.R.Y.C. Rules and Guidelines in\nplace at the time of the regatta.\n\n\n2 Boat to Enter\nHelm\n\nCrew\n\nClass\nPlease select a classMirror420Feva29er\n\n\n\n\n\nPlease tick here to confirm you are a member of the selected class for 2024. Please contact your respective association for class membership if required. \n\nSail No\n\nBoat Name (If applicable)\n\nSpinnaker Colour (may be changed at registration)\n\nClub\n\n\n3Meals \n\nSaturday Lasagne €20  \nNumber of Lasagne12345	 	 \n\nSaturday Vegetarian €20 \nNumber of Vegetarian12345	 	 \n\n\n\n\n4Berthing & Camping\nTents are €15 for the weekend\, Caravans are €30\n\nPlease select option if applicable\nCaravan\nTent\n\n\n\n\n\n\n\n\n\n5 Additional Requests\n\nIf you have any additional requests\, please enter here and we will endeavour\, at the regatta committee's absolute discretion\, to fulfill the request if practical/possible. \n \n\n\n\n6 Summary\nPlease check that all items needed have been selected correctly. For more information contact sailing@lryc.ie\n\nTotal\n€ 0\n\n\n \n\n\n
URL:https://www.lryc.ie/event/double-ree/
ATTACH;FMTTYPE=image/jpeg:https://www.lryc.ie/wp-content/uploads/2019/10/double-ree.jpg
END:VEVENT
END:VCALENDAR