﻿(function(a){a.fn.equalHeights=function(b){a(this).each(function(){var c=0;a(this).children().each(function(){if(a(this).height()>c)c=a(this).height()});if(!b||!Number.prototype.pxToEm)c=c.pxToEm();a.browser.msie&&a.browser.version==6&&a(this).children().css({height:c});a(this).children().css({"min-height":c})});return this};a.fn.equalWidths=function(b){a(this).each(function(){var c=0;a(this).children().each(function(){if(a(this).width()>c)c=a(this).width()});if(!b||!Number.prototype.pxToEm)c=c.pxToEm();a.browser.msie&&a.browser.version==6&&a(this).children().css({width:c});a(this).children().css({"min-width":c})});return this};Number.prototype.pxToEm=String.prototype.pxToEm=function(b){b=jQuery.extend({scope:"body",reverse:false},b);var e=this==""?0:parseFloat(this),c,d=function(){var a=document.documentElement;return self.innerWidth||a&&a.clientWidth||document.body.clientWidth};if(b.scope=="body"&&a.browser.msie&&(parseFloat(a("body").css("font-size"))/d()).toFixed(1)>0){var f=function(){return(parseFloat(a("body").css("font-size"))/d()).toFixed(3)*16};c=f()}else c=parseFloat(jQuery(b.scope).css("font-size"));var g=b.reverse==true?(e*c).toFixed(2)+"px":(e/c).toFixed(2)+"em";return g}})(this.jQuery);window.log=function(){log.history=log.history||[];log.history.push(arguments);arguments.callee=arguments.callee.caller;this.console&&console.log(Array.prototype.slice.call(arguments))};(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});$(document).ready(function(){if($.browser.msie){$("li:first-child").addClass("first-child");$("li:last-child").addClass("last-child")}$("a.ext").click(function(){window.open($(this).attr("href"));return false});$("#BookYes").click(function(){$(".bookOptions").show()});$("#BookNo").click(function(){$(".bookOptions").hide()});var a=location.host+location.pathname;a.indexOf("www.seaandsafety.com.au")<0&&$.navItem(a)});$(function(){$(".details ul").equalHeights()});jQuery.navItem=function(a){a=="www.boatlicencebrisbane.com.au/"&&$(".primary .boat-licence a").addClass("selected");a=="www.firstaidercourses.com.au/"&&$(".primary .first-aid-courses a").addClass("selected")}
