(function($){$.extend({metadata:{defaults:{type:'class',name:'metadata',cre:/({.*})/,single:'metadata'},setType:function(type,name){this.defaults.type=type;this.defaults.name=name;},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length)settings.single='metadata';var data=$.data(elem,settings.single);if(data)return data;data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m) data=m[1];}else if(settings.type=="elem"){if(!elem.getElementsByTagName)return;var e=elem.getElementsByTagName(settings.name);if(e.length) data=$.trim(e[0].innerHTML);}else if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr) data=attr;} if(data.indexOf('{')<0) data="{"+data+"}";data=eval("("+data+")");$.data(elem,settings.single,data);return data;}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);};})(jQuery);;;(function($){$.fn.navmenu=function(options){options=$.extend({},$.fn.navmenu.defaults,options||{});return this.each(function(){var navTimeout,homePage,cachedDivs={},currentHoverPage;var $navMenu=$(this);for(i in options.pageInfo){var page=options.pageInfo[i];if(page.P==0){homePage=page;break;}} if(!homePage)return;var activePages={};var currentPage=options.pageInfo["a"+pageId],parentPage;if(currentPage){activePages[currentPage.ID]=1;while(1){parentPage=getParentPage(currentPage);if(!parentPage) break;if(parentPage.ID==homePage.ID) break;currentPage=parentPage;activePages[currentPage.ID]=1;}} function getDivs(pageId){if(cachedDivs[pageId]) return cachedDivs[pageId];var $divs=$();for(i in options.pageInfo){var page=options.pageInfo[i];if(page.P!=pageId) continue;if(page.ID in activePages) var linkClass="activeLink";else var linkClass="";linkClass+=" nav {pageId:"+page.ID+",parentId:"+page.P+"}";if(page.U){var url=page.U;}else{var url="javascript:void(0)";} $divs=$divs.add($("
",{"class":"linkDiv"}).append($("",{href:url,"class":linkClass,html:page.N})));} cachedDivs[pageId]=$divs;return $divs;} function getParentPage(childPage){for(i in options.pageInfo){var page=options.pageInfo[i];if(childPage.P==page.ID) return page;}} $("a",$navMenu).each(function(){var data=$(this).metadata();if(data.pageId in activePages) $(this).addClass("activeLink");});$("a.topLevel",$navMenu).mouseover(function(){clearTimeout(navTimeout);var data=$(this).metadata();if(currentHoverPage==data.pageId) return;if(data.pageId==homePage.ID) return;currentHoverPage=data.pageId;if(options.animate) $("div.subLevel",$navMenu).slideUp("fast",function(){$(this).remove();});else $("div.subLevel",$navMenu).remove();var $divs=getDivs(data.pageId);if($divs.length==0)return;var offset=$(this).offset();if(options.alignment=="Vertical"){var top=offset.top;var left=offset.left+$(this).parent().width();}else{var top=offset.top+$(this).parent().height() var left=offset.left;} var $div=$("
",{"class":"subLevel",css:{top:top,left:left,display:"none",zIndex:100}}).append($divs).appendTo($navMenu);if(options.animate) $div.slideDown("fast");else $div.show();}).each(function(){var data=$(this).metadata();var page=options.pageInfo["a"+data.pageId];if(page&&page.W){$(this).css({width:page.W,paddingLeft:0,paddingRight:0});}});$("div.linkDiv a",$navMenu).live("mouseover",function(){clearTimeout(navTimeout);var offset=$(this).offset();var data=$(this).metadata();$("div.child-of-"+data.parentId,$navMenu).remove();var $divs=getDivs(data.pageId);if($divs.length==0)return;var top=offset.top;var left=offset.left+$(this).parent().width();$("
",{"class":"subLevel child-of-"+data.parentId,css:{top:top,left:left}}).append($divs).appendTo($navMenu);});$("a.topLevel,a.nav",$navMenu).live("mouseout",function(){navTimeout=setTimeout(function(){currentHoverPage=0;if(options.animate){$("div.subLevel",$navMenu).slideUp("fast",function(){$(this).remove();});}else{$("div.subLevel",$navMenu).remove();}},1000);});(function(){var $crumbs=$("#breadCrumbs");if($crumbs.length==0||$crumbs.data("initialized")==true) return;$crumbs.data("initialized",true);if(pageId==homePage.ID){$crumbs.hide();return;} var i=0;var html="";var currentPage=options.pageInfo["a"+pageId];if(!currentPage){$crumbs.hide();return;} while(1){var parentPage=getParentPage(currentPage);if(!parentPage)break;i++;if(currentPage.ID==pageId) var linkClass="activeCrumb";else var linkClass="";html='' +currentPage.N+' > '+html;currentPage=parentPage;} if(i<3){$crumbs.hide();return;} html=html.substring(0,html.length-6);html=''+homePage.N+' > '+html;$crumbs.html(html);})();(function(){if(pageId==homePage.ID) return;var $clickUnder=$("#clickUnder");if($clickUnder.length==0||$clickUnder.data("initialized")==true) return;$clickUnder.data("initialized",true);var currentPage=options.pageInfo["a"+pageId];var topLevelPage;if(!currentPage)return;while(1){var parentPage=getParentPage(currentPage);if(parentPage.ID==homePage.ID){break;} if(parentPage.P==homePage.ID){topLevelPage=parentPage;break;} currentPage=parentPage;} if(!topLevelPage) return;var $divs=$();for(i in options.pageInfo){var page=options.pageInfo[i];if(topLevelPage.ID!=page.P) continue;if(options.alignment!="Vertical"&&page.N.substring(0,1)==" "){page.N=page.N.split(" ").join(" ");} if(page.ID in activePages) var linkClass="activeLink";else var linkClass="";linkClass+=" clickLink nav {pageId:"+page.ID+",parentId:"+page.P+"}";$divs=$divs.add($("
",{"class":"clickLinkDiv linkDiv"}).append($("",{href:page.U,target:page.T,"class":linkClass,html:page.N})));} if(options.alignment=="Vertical") $clickUnder.remove().appendTo($("a.activeLink").parent()).append($divs);else $clickUnder.append($divs);})();});} $.fn.navmenu.defaults={ pageInfo:[], alignment:"Vertical", animate:false }; })(jQuery); ; $(function() { $("#navMenu").navmenu({ pageInfo:{ "a440695":{"P":0,"ID":440695,"O":0,"U":"http:\/\/www.youthbeauty.co.nz\/","N":"Home","T":"_top","W":0} ,"a10103":{"P":440695,"ID":10103,"O":"1","U":"","N":"About Us","T":"","W":0} ,"a10205":{"P":10103,"ID":10205,"O":"1","U":"\/index.php?page=mission","N":"Company Mission & Vision","T":"_top","W":0} ,"a10206":{"P":10103,"ID":10206,"O":"2","U":"\/index.php?page=testimonials","N":"Testimonials","T":"_top","W":0} ,"a102027":{"P":10103,"ID":102027,"O":"3","U":"\/index.php?page=partners","N":"Business partners we recommend","T":"_top","W":0} ,"a102025":{"P":10103,"ID":102025,"O":"3","U":"\/index.php?page=tandc","N":"Terms and Conditions","T":"_top","W":0} ,"a10104":{"P":440695,"ID":10104,"O":"2","U":"","N":"Business Support","T":"","W":0} ,"a10207":{"P":10104,"ID":10207,"O":"1","U":"\/index.php?page=startup","N":"Start Up Businesses","T":"_top","W":0} ,"a10208":{"P":10104,"ID":10208,"O":"2","U":"\/index.php?page=business","N":"Existing Businesses","T":"_top","W":0} ,"a10209":{"P":10104,"ID":10209,"O":"3","U":"\/index.php?page=marketing","N":"Marketing Advice","T":"_top","W":0} ,"a102010":{"P":10104,"ID":102010,"O":"4","U":"\/index.php?page=reports","N":"Useful Reports","T":"_top","W":0} ,"a249882":{"P":440695,"ID":249882,"O":"3","U":"","N":"-----------------------------","T":"","W":0} ,"a254420":{"P":440695,"ID":254420,"O":"4","U":"http:\/\/www.youthbeauty.co.nz\/copy-of-beauty-technology.html","N":"BEAUTY TECHNOLOGY & EQUIPMENT","T":"_top","W":0} ,"a15":{"P":440695,"ID":15,"O":"19","U":"","N":"Slimming & Detox","T":"","W":0} ,"a100058":{"P":15,"ID":100058,"O":"1","U":"\/products\/greencoffeeplus","N":"Green Coffee Plus+","T":"_top","W":0} ,"a100067":{"P":15,"ID":100067,"O":"2","U":"\/products\/footpatches","N":"Foot Patches","T":"_top","W":0} ,"a100068":{"P":15,"ID":100068,"O":"3","U":"\/products\/footspa","N":"Detox Foot Spa","T":"_top","W":0} ,"a1":{"P":440695,"ID":1,"O":"5","U":"","N":"Wax and Bodytreats","T":"","W":0} ,"a10001":{"P":1,"ID":10001,"O":"1","U":"\/products\/bodytreats","N":"Bodytreats, Wax and accessories","T":"_top","W":0} ,"a2":{"P":440695,"ID":2,"O":"6","U":"","N":"Skin Care","T":"","W":0} ,"a10006":{"P":2,"ID":10006,"O":"1","U":"\/products\/skincarerx","N":"Skincare RX","T":"_top","W":0} ,"a10007":{"P":2,"ID":10007,"O":"2","U":"\/products\/drhill","N":"Dr Hill","T":"_top","W":0} ,"a10008":{"P":2,"ID":10008,"O":"3","U":"\/products\/imagine","N":"I'magine","T":"_top","W":0} ,"a10009":{"P":2,"ID":10009,"O":"4","U":"\/products\/oxygen","N":"Oxygen Botanicals","T":"_top","W":0} ,"a100060":{"P":2,"ID":100060,"O":"5","U":"\/products\/maja","N":"Maja Skincare & Herbal Peel","T":"_top","W":0} ,"a3":{"P":440695,"ID":3,"O":"7","U":"","N":"Skin Analysis","T":"","W":0} ,"a100010":{"P":3,"ID":100010,"O":"1","U":"\/products\/skinscan","N":"Skin Scanner","T":"_top","W":0} ,"a100011":{"P":3,"ID":100011,"O":"2","U":"\/products\/dermatone","N":"Dermatone Skin Analyser","T":"_top","W":0} ,"a100063":{"P":3,"ID":100063,"O":"3","U":"\/products\/eskinanalyser","N":"Electronic Skin Analyser","T":"_top","W":0} ,"a4":{"P":440695,"ID":4,"O":"8","U":"","N":"Mineral Makeup","T":"","W":0} ,"a100012":{"P":4,"ID":100012,"O":"1","U":"\/products\/makeupfix","N":"MAKEUPFIX","T":"_top","W":0} ,"a100070":{"P":4,"ID":100070,"O":"2","U":"\/products\/mineralfix","N":"Mineral Fix","T":"_top","W":0} ,"a5":{"P":440695,"ID":5,"O":"9","U":"","N":"IPL Technology","T":"","W":0} ,"a100015":{"P":5,"ID":100015,"O":"1","U":"\/products\/apoloiii","N":"Apollo III","T":"_top","W":0} ,"a100016":{"P":5,"ID":100016,"O":"2","U":"\/products\/apolloIV","N":"Apollo IV+","T":"_top","W":0} ,"a100017":{"P":5,"ID":100017,"O":"3","U":"\/products\/xlight","N":"X-Light","T":"_top","W":0} ,"a6":{"P":440695,"ID":6,"O":"10","U":"","N":"Laser & IPL Consumables","T":"","W":0} ,"a100018":{"P":6,"ID":100018,"O":"1","U":"\/products\/glendale","N":"Glendale Eye Protection","T":"_top","W":0} ,"a100019":{"P":6,"ID":100019,"O":"2","U":"\/products\/gel","N":"Ultrasound Gel","T":"_top","W":0} ,"a100020":{"P":6,"ID":100020,"O":"3","U":"\/products\/lipoxome","N":"Lipoxome","T":"_top","W":0} ,"a100021":{"P":6,"ID":100021,"O":"4","U":"\/products\/drhillipl","N":"Dr Hill Post IPL Care","T":"_top","W":0} ,"a100075":{"P":6,"ID":100075,"O":"5","U":"\/products\/postlaser","N":"Post Laser Soothing Gel","T":"_top","W":0} ,"a7":{"P":440695,"ID":7,"O":"11","U":"","N":"Depilar Technology","T":"","W":0} ,"a100024":{"P":7,"ID":100024,"O":"1","U":"\/products\/depilar","N":"Depilar","T":"_top","W":0} ,"a8":{"P":440695,"ID":8,"O":"12","U":"","N":"LED Technology","T":"","W":0} ,"a100026":{"P":8,"ID":100026,"O":"2","U":"\/products\/desktopled","N":"Desktop LED","T":"_top","W":0} ,"a9":{"P":440695,"ID":9,"O":"13","U":"","N":"MBE Technology","T":"","W":0} ,"a100027":{"P":9,"ID":100027,"O":"1","U":"\/products\/oxymega","N":"Oxy Megastation","T":"_top","W":0} ,"a100038":{"P":9,"ID":100038,"O":"1","U":"\/products\/mayamicro","N":"Maya Peel Microdermabrasion","T":"_top","W":0} ,"a100061":{"P":9,"ID":100061,"O":"2","U":"\/products\/bluemate","N":"Blue Mate Electroporation","T":"_top","W":0} ,"a100062":{"P":9,"ID":100062,"O":"3","U":"\/products\/rubymate","N":"Ruby Mate Microcurrents Face and Body","T":"_top","W":0} ,"a100030":{"P":9,"ID":100030,"O":"4","U":"\/products\/mayaultra","N":"Maya Peel Ultrasonic","T":"_top","W":0} ,"a100031":{"P":9,"ID":100031,"O":"5","U":"\/products\/maya2","N":"Maya 2Gether","T":"_top","W":0} ,"a100032":{"P":9,"ID":100032,"O":"6","U":"\/products\/synergica","N":"Synergica Multicolour","T":"_top","W":0} ,"a100035":{"P":9,"ID":100035,"O":"9","U":"\/products\/oxycorner","N":"Oxy Corner and Oxy Point","T":"_top","W":0} ,"a10":{"P":440695,"ID":10,"O":"14","U":"","N":"Microdermabrasion","T":"","W":0} ,"a100039":{"P":10,"ID":100039,"O":"2","U":"\/products\/diamondpee","N":"Diamond Peel Dermabrasion","T":"_top","W":0} ,"a100049":{"P":10,"ID":100049,"O":"3","U":"\/products\/crystalderm","N":"Crystal Dermabrasion Units","T":"_top","W":0} ,"a100029":{"P":10,"ID":100029,"O":"3","U":"\/products\/greymate","N":"Grey Mate Microdermabrasion","T":"_top","W":0} ,"a100050":{"P":10,"ID":100050,"O":"4","U":"\/products\/duo","N":"Diamond & Crystal DUO Unit","T":"_top","W":0} ,"a11":{"P":440695,"ID":11,"O":"15","U":"","N":"Spa Technology","T":"","W":0} ,"a100051":{"P":11,"ID":100051,"O":"1","U":"\/products\/umo","N":"UMO Handspa","T":"_top","W":0} ,"a100052":{"P":11,"ID":100052,"O":"1","U":"\/products\/spaqueen","N":"Spa Queen","T":"_top","W":0} ,"a12":{"P":440695,"ID":12,"O":"16","U":"","N":"Tanning and Cellulite","T":"","W":0} ,"a100053":{"P":12,"ID":100053,"O":"1","U":"\/products\/bodywave","N":"Bodywave","T":"_top","W":0} ,"a13":{"P":440695,"ID":13,"O":"17","U":"","N":"Prof. Teeth Whitening","T":"","W":0} ,"a100054":{"P":13,"ID":100054,"O":"1","U":"\/products\/cosmeticbright","N":"Cosmetic Bright","T":"_top","W":0} ,"a100069":{"P":13,"ID":100069,"O":"2","U":"\/products\/salonbright","N":"Salon Bright","T":"_top","W":0} ,"a14":{"P":440695,"ID":14,"O":"18","U":"","N":"Salon Equipment","T":"","W":0} ,"a100055":{"P":14,"ID":100055,"O":"1","U":"\/products\/warmers","N":"Hot Towel Warmers","T":"_top","W":0} ,"a100056":{"P":14,"ID":100056,"O":"2","U":"\/products\/sterilisers","N":"UV Sterilisers","T":"_top","W":0} ,"a100057":{"P":14,"ID":100057,"O":"3","U":"\/products\/trolleys","N":"Trolleys","T":"_top","W":0} ,"a16":{"P":440695,"ID":16,"O":"20","U":"","N":"Nail and Manicure","T":"","W":0} ,"a100059":{"P":16,"ID":100059,"O":"1","U":"\/products\/gelac","N":"Gelac","T":"_top","W":0} ,"a17":{"P":440695,"ID":17,"O":"21","U":"","N":"High Freq & Ultrasound Devices","T":"","W":0} ,"a100064":{"P":17,"ID":100064,"O":"1","U":"\/products\/majahf","N":"Maja High Frequency Ozone","T":"_top","W":0} ,"a100071":{"P":17,"ID":100071,"O":"2","U":"\/products\/ultraled","N":"Ultrasonic & LED Handheld","T":"_top","W":0} ,"a18":{"P":440695,"ID":18,"O":"22","U":"","N":"Dermal Rolling","T":"","W":0} ,"a100065":{"P":18,"ID":100065,"O":"1","U":"\/products\/needle","N":"Micro Needling Rollers","T":"_top","W":0} ,"a100066":{"P":18,"ID":100066,"O":"2","U":"\/products\/hyacid","N":"Hyaluronic Acid","T":"_top","W":0} ,"a19":{"P":440695,"ID":19,"O":"23","U":"","N":"Eye Lash Extensions","T":"","W":0} ,"a100072":{"P":19,"ID":100072,"O":"1","U":"\/products\/eyelashtools","N":"Tools","T":"_top","W":0} ,"a20":{"P":440695,"ID":20,"O":"24","U":"","N":"Eyelash Growth Conditioner","T":"","W":0} ,"a100073":{"P":20,"ID":100073,"O":"1","U":"\/products\/envyderm","N":"Envy Derm","T":"_top","W":0} ,"a21":{"P":440695,"ID":21,"O":"25","U":"","N":"Makeup Accessories","T":"","W":0} ,"a100074":{"P":21,"ID":100074,"O":"1","U":"\/products\/hilcook","N":"Hil Cook Solution Buds","T":"_top","W":0} //Back to the 'standard' options ,"a249879":{"P":440695,"ID":249879,"O":"20","U":"","N":"-----------------------------","T":"","W":0} ,"a101011":{"P":440695,"ID":101011,"O":"9","U":"","N":"Treatment Information","T":"","W":0} ,"a102015":{"P":101011,"ID":102015,"O":"1","U":"\/index.php?page=skincare","N":"Skin Care","T":"_top","W":0} ,"a102016":{"P":101011,"ID":102016,"O":"2","U":"\/index.php?page=nonsurgical","N":"Non Surgical","T":"_top","W":0} ,"a102017":{"P":101011,"ID":102017,"O":"3","U":"\/index.php?page=cellulite","N":"Cellulite","T":"_top","W":0} ,"a102018":{"P":101011,"ID":102018,"O":"4","U":"\/index.php?page=teeth","N":"Teeth Whitening","T":"_top","W":0} ,"a102019":{"P":101011,"ID":102019,"O":"5","U":"\/index.php?page=hair","N":"Permanent Hair Removal","T":"_top","W":0} ,"a102020":{"P":101011,"ID":102020,"O":"6","U":"\/index.php?page=antiageing","N":"Anti-ageing","T":"_top","W":0} ,"a102028":{"P":101011,"ID":102028,"O":"7","U":"\/index.php?page=treatacne","N":"Acne","T":"_top","W":0} ,"a102029":{"P":101011,"ID":102029,"O":"8","U":"\/index.php?page=treatageing","N":"Ageing","T":"_top","W":0} ,"a102030":{"P":101011,"ID":102030,"O":"9","U":"\/index.php?page=treatpigmentation","N":"Pigmentation","T":"_top","W":0} ,"a102031":{"P":101011,"ID":102031,"O":"10","U":"\/index.php?page=treatskin","N":"Skin","T":"_top","W":0} ,"a101012":{"P":440695,"ID":101012,"O":"10","U":"","N":"Treatment Locations","T":"","W":0} ,"a102021":{"P":101012,"ID":102021,"O":"1","U":"\/index.php?page=iplclinics","N":"Mobile IPL Clinics","T":"_top","W":0} ,"a101013":{"P":440695,"ID":101013,"O":"11","U":"","N":"Latest News","T":"","W":0} ,"a102022":{"P":101013,"ID":102022,"O":"1","U":"\/index.php?page=media","N":"Media & Events","T":"_top","W":0} ,"a102023":{"P":101013,"ID":102023,"O":"2","U":"\/index.php?page=articles","N":"Articles","T":"_top","W":0} ,"a102024":{"P":101013,"ID":102024,"O":"3","U":"\/index.php?page=newsletter","N":"Newsletter Archive","T":"_top","W":0} },alignment:"Vertical",animate:0})});