/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */

/**
 * Create a cookie with the given name and value and other optional parameters.
 *
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Set the value of a cookie.
 * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
 * @desc Create a cookie with all available options.
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Create a session cookie.
 * @example $.cookie('the_cookie', null);
 * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
 *       used when the cookie was set.
 *
 * @param String name The name of the cookie.
 * @param String value The value of the cookie.
 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
 *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
 *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
 *                             when the the browser exits.
 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
 *                        require a secure protocol (like HTTPS).
 * @type undefined
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */

/**
 * Get the value of a cookie with the given name.
 *
 * @example $.cookie('the_cookie');
 * @desc Get the value of a cookie.
 *
 * @param String name The name of the cookie.
 * @return The value of the cookie.
 * @type String
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        // CAUTION: Needed to parenthesize options.path and options.domain
        // in the following expressions, otherwise they evaluate to undefined
        // in the packed version for some reason...
        var path = options.path ? '; path=' + (options.path) : '';
        var domain = options.domain ? '; domain=' + (options.domain) : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};
function pageload(hash) {
	// hash doesn't contain the first # character.
	//log ('pageload(' + hash +')' + document.location.hash );
	
	if (Explore.path == hash){
		Explore.showAd();
		return;
	}	
	
	if(hash && ('#' + hash) == document.location.hash) {
		// restore ajax loaded state
		doLocation(hash);
	} else {
		//log ('skipped');
	}
	return;
} 



// zac was here

function doLocation(loc){
	Explore.clearTimer();
  	
	log (loc + ' to ' + document.location.hash);
//	document.title='Explore '+loc;
	Explore.slideShowStop();
	if (loc.substr(0,1) != '/')	{
		loc='/'+loc;
	}	
//	var data="event=location&path="+escape(loc);		
//	var isSearch=loc.indexOf('/search');
	
	if (loc.indexOf("Publications") >0 
		|| loc.indexOf("Kids-") >0 
		|| loc.indexOf("Corporate") > 0){
		document.location.href=loc;
		return;
	}	   
	
	if ( document.location.search.length > 0
		|| document.location.pathname != "/"){
		//log("reset base url"  + document.location.search);
		document.location.href="/#"+loc;		
	} else {
		try {
			pageTracker._trackPageview(loc);
		} catch(err) {}
		
//		if( isSearch == 0)
			//$("#leftPanel").html('<br><br><em>&nbsp;&nbsp;searching...</em>');
//			else $("#leftPanel").html('<br><br><em>&nbsp;&nbsp;loading...</em>' + loc);
		$.ajax({
			url: loc,
			cache: false,
			error: function (request, textStatus, errorThrown) {
				var c=$("#contentWrapper");
				c.html(request.responseText);
				//alert("ajax load error: " + request.status + ' ' + textStatus + ' ' + errorThrown + '\n ' + loc);
			},

			success: function(html){
			 	//log("loaded: " + loc)
				Explore.path=loc;
				document.location.hash=loc;		
				var myExplore=$(html).filter("#myExploreState");
			 	var c=$("#contentWrapper");
			  	var html2=$(html).find("#contentWrapper");
			 	var lp=$(html2).find("#leftPanel");
				var rp=$(html2).find("#rightPanel");
				var hasMap=$(html2).find("#map");
				var isMap=$("#map");
				var c_lp,c_rp,c_map;
				var c_split=false;

				if ( rp && lp && hasMap ){
					c_lp=$("#leftPanel");
					c_rp=$("#rightPanel");
					c_map=$("#map");
					if ( c_lp.html() && c_rp.html() && c_map)
						c_split=true;
				}
				
				if (c_split){
					//log('ajax swap');
					c_lp.html(lp.html());
					c_rp.html(rp.html());
					c.show();
				} else {
					//log('reload all');
					c.html(html2.html());
					c.show();
				}
				//$('#fp_content').show();				
				
				//log("content swapped");
				
				
				var newTitle=$(html).filter("TITLE");
				if (newTitle.length){		
					document.title=newTitle.text();
				} else {	
					// ie fallback hack
					var start_title=html.indexOf("<title>");
					var end_title=html.indexOf("</title>");
					start_title=start_title+7;
					var newTitle=html.substr(start_title,end_title-start_title);
					if (start_title > 0 && end_title > 0 && start_title < end_title){
						document.title=newTitle;
					}	
				}

				var mapCoords=$(html2).find("#locationTitle");
				if (mapCoords.html()){
					if(mapCoords.attr('coords')){
						var coords=mapCoords.attr('coords').split(',');
						if (map && map.div.id != 'map'){
							clearMap();
							setMapLocation(coords,mapCoords.attr('poly'));
						} else {
							clearPoly();
							setMapLocation(coords,mapCoords.attr('poly'));
						}	
					} else {
						setMapLocation([],mapCoords.attr('poly'));
					}					
				}	else {
					log('no map');
				}
				Explore.setMyExploreState($(myExplore).attr("class"));
				Explore.initRollovers();
				if ($("#qaToolbar").length != 0){
					//$("#qaToolbar").load("/index.cfm?event=qa.toolbar&loc="+loc+ "&r=" + Math.random() + " #qaToolbar");
				}
				//log("swap done");
				html="";
				c="";
				Explore.QuickList('_int');
				Explore.searchDefaultText();
				Explore.searchSetup();
				Explore.showAd();

			 }
		});
		//$('html, body').animate({scrollTop:0}, 'slow'); 
		
	}
	return false;
}	
	
///function urlLoaded(response){alert(response);}
		
//$('body').css('cursor', 'default'); 


function doEvent(loc){
	var c=$("#contentWrapper");
	c.load(loc);
}

function log(mess){
	var myDate = new Date();
	if (window.console && window.console.info) 
		console.info(myDate.getSeconds() +':'+myDate.getMilliseconds() +' '+ mess );
}

var Explore={

	path : '',
	
	autoCompleteSubmit : function (){
		$(this).parent("FORM").submit();
	},

	
	searchSetup : function(){
		$("form.search").each(function(){
			$(this).submit( function () { 
				hideLargeMap();
				var q=$(this).find("input:first").val();
				$(this).find("input:first").val("");
				Explore.search(q);
				return false;
			});
		} );
		
	    $('.searchActionButton').live("click",function(ev) {
			var q=$(this).parent("FORM").find("input:first").val();
			if (q == "Search")
				q="";
			hideLargeMap();	
			$(this).parent("FORM").find("input:first").val("");
			Explore.search(q);
			return false;
		});

		$(":input[name='q']").each( function(){
			if ($(this).attr("id") == 'ff_search_results')
				return;
			$(this).autocomplete(
				Explore.quicklist.Q_ALL.DATA,{
					width: 220,
					max: 25,
					delay: 520,
					highlight: false,
					multiple: false,
					multipleSeparator: " ",
					scroll: true,
					scrollHeight: 400 }
			).result(Explore.autoCompleteSubmit); 
		});			
	},
		
	searchResults : function (){
		var search_str=$("#ff_search_results");
		var filter_str="";
		var sort_str="";
		$(":radio[name='sort']:checked").each( function(){
			sort_str=$(this).val();
		});
		delim="";
		$(":checkbox[name='filter']:checked").each( function(){
			filter_str = filter_str + delim + $(this).val();
			delim=",";
		});
		Explore.search(search_str.attr('value'), filter_str, sort_str);
		return false;
	},
	
	searchExplore : function (){
		var search_str=$("#ff_search_explore");
		var filter_str="";
		var sort_str="";
		Explore.search(search_str.attr('value'), filter_str, sort_str);
		return false;
	},
	
	historyInit : function (){
		$.historyInit(pageload);	
		// set onlick event for buttons
		$("a[rel='history']").click(function(){
			var hash = this.href;
			hash = hash.replace(/^.*#/, '');
			// moves to a new page. 
			// pageload is called at once. 
			//log ('historyload(' + hash +')' );
			$.historyLoad(hash);
			return false;
		});
		//log("history init");
	},
	
/*	filterSearchResults: function (){
		log("filtering");
		var filter_str="";
		$(":checkbox[name='filter']:checked").each( function(){
			filter_str = filter_str + this.value + ",";
		});
		
		if (filter_str.length == 0 ){		
			$('div[state]').show();		
		} else {
			$(":checkbox[name='filter']").each( function(){
				if (this.checked){
					$('div[state="'+this.value+'"]').show();		
				} else {
					$('div[state="'+this.value+'"]').hide();		
				}
			});
		}	
	}, */
	
	searchDefaultText: function (){	
		$("INPUT.searchbox").each( function(){
			if ( this.value == ""){
				$(this).addClass("searchHint");
				this.value="Search";
			}	
		});
	},
	
	
	
	search: function(search_str, filter_str, sort_str){
		var search_params= search_str;
		var filter_params="&";
		if (filter_str){
			filter_params='&filter='+filter_str+"&";
		}	
		if(sort_str){
			filter_params+= "sort="+sort_str +"&";
		}
		for ( var si=0; si < Explore.quicklist.Q_ALL.DATA.length; si++){
			if (Explore.quicklist.Q_ALL.DATA[si][0] == search_params){
				doLocation(Explore.quicklist.Q_ALL.DATA[si][1]);
				return false;
			}
		}
		doLocation('/search&q='+search_params + filter_params );
		return false;
	},
	
	
	shareBgi : function(){
		$("#at16p").bgiframe();
	},			
	
	hijax : function (){
	    $('a.location').live("click",function(ev) {
			if (ev.button == 2)	return; // allow right clicks
			Explore.quickListReset=true;
			doLocation(this.pathname);
			return false;
		});
		
	    $('a.crumbs').live("click",function(ev) {
			if (ev.button == 2)	return; // allow right clicks
			Explore.quickListReset=true;
			doLocation(this.pathname);
			return false;
		});
	
	    $('a.crumbs_main').live("click",function(ev) {
			if (ev.button == 2)	return; // allow right clicks
			Explore.quickListReset=true;
			doLocation(this.pathname);
			return false;
		});
	    $('div.homelinkRight').live("click",function(ev) {
			document.location='/';
			return false;
		});
		$('div.homelink').live("click",function(ev) {
			document.location='/';
			return false;
		});
		
		$('.searchbox').live("mouseover",function(){
			if ( this.value == "Search"){
				this.value="";
				$(this).removeClass("searchHint");
			}	
		});


		$('div.myExploreBut').live("click",function(ev) {
			if ($(ev.target).attr('src').length == 0)
				return;
			var currentStatus=$(ev.target).attr('src').indexOf("add");
			var addAction=true;
			log(currentStatus + ' ' + $(ev.target).attr('src'));
			if (currentStatus == -1)
				addAction=false;
			var location_id=$("#locationTitle").attr('loc_id');
		 	$.get("/index.cfm?event=location.add&location_id="+location_id+"&add="+addAction +"&r=" + Math.random(), 
				function(data){  		
					log('aa' + data + ' ' +addAction);
					Explore.setMyExploreState(addAction);
			});
			
			return false;
		});		
		
		$('#btnLegendShow').live("click",function(ev){
			if ($("#legendHolder").is(':visible')){
				$("#legendHolder").hide();
			} else {
				$("DIV.legendImageSmall IMG").attr("src","images/WEB-MAP-LEGEND.png");
				$("#legendHolder").show();
			}	
		});
		
		$('#btnLegendShowExpanded').live("click",function(ev){
			if ($("#legendHolderExpanded").is(':visible')){
				$("#legendHolderExpanded").hide();
			} else {	
				$("DIV.legendImage IMG").attr("src","images/WEB-MAP-LEGEND.png");
				$("#legendHolderExpanded").show();
			}	
		});
		
		
		$('#btnLegendClose').live("click",function(ev){
			$("#legendHolder").hide();
		});
		$('#btnLegendExpandedClose').live("click",function(ev){
			$("#legendHolderExpanded").hide();
		});

		$("#flyOutDrop").live("mouseover",function(ev){
			$("#menuDestination").attr('src',"images/destinations_current2.gif");
		});
		
		$("#flyOutDrop").live("mouseout",function(ev){
			$("#menuDestination").attr('src',"images/destinations_current.gif");
		});

		$('a.thickbox').live("click",function(ev){
			var t = this.title || this.name || null;
			var a = this.href || this.alt;
			var g = this.rel || false;
			tb_show(t,a,g);
			this.blur();
			return false;
		});

		$('img.roll').live("mouseover",function(){
			if(this.src.indexOf("2.gif") > 0)
				this.src = this.src.replace("2.gif",".gif");
			else
				this.src = this.src.replace(".gif","2.gif");
		});
		
		$('img.roll').live("mouseout",function(){
			if(this.src.indexOf("2.gif") > 0)
				this.src = this.src.replace("2.gif",".gif");
			else
				this.src = this.src.replace(".gif","2.gif");
		});
		

		

			
		$("*[coords]").live("mouseover",function(){
			Explore.mapShow($(this).attr('coords').split(','), this);
		});
		$("*[coords]").live("mouseout",function(){
			if (Explore.mapShowCoordsPrevious && Explore.mapShowCoordsPrevious.length ==2){
				//log("back to previous " + Explore.mapShowCoordsPrevious[0]);
				Explore.mapShow(Explore.mapShowCoordsPrevious[0], null);
			}else{	
				var mapCoords=$("#locationTitle");
				if(mapCoords.attr('coords')){
					//log("mouse out" + mapCoords.attr('coords').split(','));
					Explore.mapShow(mapCoords.attr('coords').split(','), mapCoords);
				}		
			}
		});

		var ql_event="change";

		if($.browser.msie){
			ql_event="click";
			
			if (parseInt( $.browser.version) ==6 ){
				$("#flyout").live("mouseover",function(){
					$(this).addClass("sfhover");
				});
			
					$("#flyout LI").live("mouseover",function(){
						$(this).addClass("sfhover");
					});
					
					$("#flyout LI").live("mouseout",function(){
						$(this).removeClass("sfhover");
					});
				
				$("#flyout").live("mouseout",function(){
					$(this).removeClass("sfhover");
				});
			} else {
				$("#nav LI").live("mouseover",function(){
					$(this).addClass("sfhover");
				});
				$("#nav LI").live("mouseout",function(){
					$(this).removeClass("sfhover");
				});
				$("#flyout LI UL LI").live("mouseout",function(){
					$(this).removeClass("sfhover");
				});
			}
			
			$("A#sharelink").live("click",function(){
				setTimeout('Explore.shareBgi()',100)	
			});
		}	
		/*
		if($.browser.msie){
			ql_event="click";
			$("#nav LI").live("mouseover",function(){
				$(this).addClass("sfhover");
			});
			$("#nav LI").live("mouseout",function(){
				$(this).removeClass("sfhover");
			});
			$("#nav LI LI").live("mouseout",function(){
				$(this).removeClass("sfhover");
			});

			$("A#sharelink").live("click",function(){
				setTimeout('Explore.shareBgi()',100)	
			});

		}	 */
		

		$('.quickList').live(ql_event,function () {
			Explore.QuickList("",this.id);
			return false;
		});	
		
		$('.quickListInt').live(ql_event,function () {
			Explore.QuickList("_int",this.id);
			return false;
		});

        $('#books_menu LI').mouseover(function() {
       		$('#books_menu ul').hide();
       		$(this).children('.sub_menu').show();
        });


		$('#quickListIntSubmit').live("click",function () {
			var dest="";
			$(this).parent("FORM").find("SELECT").each( function(){
				if ( this.value.length > dest.length)
					dest= this.value;
			});
			
			//log("ql int: " + dest);
			if (dest.length > 0){
				try {
					pageTracker._trackEvent('QuickList Internal', dest);	
				} catch(err) {}	
	
				doLocation(dest);
			}	
			return false;
		});
		$('#quickListSubmit').live("click",function () {
			var dest="";
			aa=$(this).parent("FORM").find("SELECT").each( function(){
				if ( this.value.length > dest.length)
					dest= this.value;
			});
			//log("ql: " + dest);
			if (dest.length > 0){
				try {
					pageTracker._trackEvent('QuickList Frontpage', dest);	
				} catch(err) {}	
				doLocation(dest);
			} else {
				alert("Please select a state/territory");	
			}	
				
			return false;
		});
		
		$('.searchFilter').live("click", function () {
			Explore.searchResults();
		});
	},	


	setMyExploreState : function(added){  		
		var btn=$("#addMyExplore");	
		if (typeof added == 'undefined'){
			$(btn).hide();
			return;
		}	
		added=added+'';
		//log("myexplore state: " + added);
		if (added == "true"){
			// added
			$(btn).removeClass("roll");
			$(btn).attr("src", "images/myexplore-remove.gif");
			$(btn).attr("alt", "REMOVE FROM MY EXPLORE");
		}else{
			//removed
			$(btn).addClass("roll");
			$(btn).attr("src", "images/myexplore-add.gif");
			$(btn).attr("alt", "ADD TO MY EXPLORE");
		}
		$(btn).show();
	},

	

	mapShowCoords : null,
	mapShowCoordsPrevious : null,
	mapShowCoordElm : null,
	mapShowTimer : null,
	
	clearTimer: function(elm){
		/*if(elm){
			$(elm).removeClass("coords_hover");
			$(elm).removeClass("coords_go");
		}	*/
		if (Explore.mapShowTimer)
			window.clearTimeout(Explore.mapShowTimer); // clear queued map preview
	},		
	
	mapShow : function (arr_loc,elm){
		//$(elm).addClass("coords_hover");
		Explore.clearTimer();
		Explore.slideShowStop();
		//log("mapShow()");
		if (!map)
			return;
		if (!elm){	
			//log("mapshow elm is " + typeof elm);
			Explore.mapShowCoords=null;
		} else {
			Explore.mapShowCoords = {arr_loc: arr_loc};
			Explore.mapShowCoordElm=elm;
			if (!Explore.mapShowCoordsPrevious)
				Explore.mapShowCoordsPrevious=[map.getCenter(),map.getZoom()];
			//log("previous set " + Explore.mapShowCoordsPrevious);
			Explore.clearTimer();
		}	
	
		if($(elm).hasClass("related")){
			Explore.mapShowTimer=setTimeout('Explore.mapShowRelated()',350);
		}	else {
			Explore.mapShowTimer=setTimeout('Explore.mapShowQueue()',350);
		}	
	},
	
	mapShowQueue : function (){
		if (!map_fully_loaded){ //map isn't loaded yet, sleep a bit
			Explore.mapShowTimer=setTimeout('Explore.mapShowQueue()',350);
			return;
		}	
	
		ttowns_page.setVisibility(true);		
		relation_layer.setVisibility(false);		
		ttowns_page.refresh();

		var coords=Explore.mapShowCoords;
		
		if (coords){
			log(coords.arr_loc);
			var arr_loc=coords.arr_loc;	
			if ( arr_loc.length == 2){ // lonlat
				map.setCenter(new OpenLayers.LonLat(arr_loc[0],arr_loc[1]),7);
				//log('hover coods' + map.getCenter());
			}else if (arr_loc.length == 4){ // extent
				var locationExtent = new OpenLayers.Bounds(arr_loc[0],arr_loc[1],arr_loc[2],arr_loc[3]);
				var zoomScale=map.getZoomForExtent(locationExtent);
				//if (zoomScale > 9)	zoomScale=8;
				map.setCenter(locationExtent.getCenterLonLat() ,zoomScale);
				//log('hover coods' + map.getCenter());
			}
			if(Explore.mapShowCoordElm){
				Explore.mapShowCoordElm=null;
			}	

			Explore.mapShowCoords=null;
		} else if (Explore.mapShowCoordsPrevious && Explore.mapShowCoordsPrevious.length == 2){
			//log("hover return previous state:" + Explore.mapShowCoordsPrevious);
			map.setCenter(Explore.mapShowCoordsPrevious[0], Explore.mapShowCoordsPrevious[1]);
		}
	},
	
	mapShowRelated : function (){
		if (!map_fully_loaded){ 
			return;
		}	

		var mapCoords=$("#locationTitle");
		if(mapCoords.attr('point')){
			var arr_features=[];
			arr_features.push(Explore.mapShowCoords.arr_loc);
			arr_features.push(mapCoords.attr('point').split(','));
			showRelateLayer(arr_features);
		}	
	},
		

	quickListUpdate : false,
	quickListReset : false,
	
	QuickList: function(ql_loc,id){
		if (Explore.quickListUpdate)
			return;
		Explore.quickListUpdate=true;

		if (!id)
			id="";
		
		//log('update QuickList: ' + ql_loc +" :" + id);
		var filter="";
		var location_selected="";
		
		var ff_s=document.getElementById("ff_select_state" + ql_loc);
		var ff_r=document.getElementById("ff_select_region" + ql_loc);
		var ff_t=document.getElementById("ff_select_town" + ql_loc);
		
		var location=[];
		
		if (ff_s && (ff_s.options.length == 1 || Explore.quickListReset) ){
			// fresh page load
			if (document.location.hash.length)
				location=document.location.hash;
			else
				location=document.location.pathname;	
			
			if(location.substr(0,1) == "#")
				location=location.substr(1,location.length);
			if(location.substr(location.length-1,1) == "/")
				location=location.substr(0,location.length-1);
			filter=location;		
			location=location.split("/");
			location=location.shift();
		} else {
			location="";
		}
		//log(filter);
		
		
		if (ff_s){
			if (ff_s.options.length < 2){
				var qry=Explore.quicklist.Q_STATE.DATA;
				for (var oo=0;oo < qry.length;oo++){
					ff_s.options[ff_s.options.length]=new Option(qry[oo][0],qry[oo][1]);
					if (filter.length){
						if (filter.indexOf(qry[oo][1]) == 0) {
							ff_s.selectedIndex=oo+1;
						}	
					}
				}	
			} else if (Explore.quickListReset){
				for (var oo=0;oo < ff_s.options.length;oo++){
					if (location.length && ff_s.options[oo].value.length ){
						if ( location.indexOf(ff_s.options[oo].value) == 0) 
							ff_s.selectedIndex=oo+1;
					}
				}	
			}	
			if( ff_s.selectedIndex == 0){
				$(ff_r).attr("disabled", true); 
				$(ff_t).attr("disabled", true); 
			}	
		}
/*		log("status");		
		log(location);
		log('filter:'+ filter);	
		log(location_selected);
*/
		
		if (id.indexOf("state") > 0){
			//log('reset state')
			ff_r.selectedIndex=0;
			filter=ff_s.options[ff_s.selectedIndex].value;
		}	
		
		//log("REGION " +filter + " " + id);
		if (ff_r && filter.length){

			if (id.indexOf("region") > 0 ){
				//log("region skip");
				if (ff_r.selectedIndex > 0){
					 if (id.indexOf("region") > 0)
						ff_t.selectedIndex=0;
					filter=ff_r.options[ff_r.selectedIndex].value;	
				}	else if (ff_r.selectedIndex == 0 )	{
					filter=ff_s.options[ff_s.selectedIndex].value;
				}	
			} else {

				
				if (ff_r.options.length == 1 || filter.length > 0){
					while (ff_r.hasChildNodes()) {
						ff_r.removeChild(ff_r.firstChild);
					}
					
					if (ql_loc == "_int")
						ff_r.options[ff_r.options.length]=new Option("Region","");
					else
						ff_r.options[ff_r.options.length]=new Option("Choose a region","");
					
					rFilter=ff_s.options[ff_s.selectedIndex].value;
					//log("REGION " +rFilter + " " + filter);
						
					var qry=Explore.quicklist.Q_REGION.DATA;
					for (var oo=0;oo < qry.length;oo++){
						//log(qry[oo][1].indexOf(rFilter) + " :: " + qry[oo][1] + " :: " +filter + " " + filter.indexOf(qry[oo][1]));
						if (qry[oo][1].indexOf(rFilter) == 0) {
							if (qry[oo][0].length == 0){
								opt=document.createElement('optgroup');
								opt.label=qry[oo][2];
							} else{		
								opt=new Option(qry[oo][0], qry[oo][1]);
								ff_r.options[ff_r.options.length]=opt;
								if (filter.indexOf(qry[oo][1]) == 0) {
									ff_r.selectedIndex=ff_r.options.length-1;
									//log(qry[oo][1] + ' :: ' + filter);
								}	
							}	
						}	
					}
					$(ff_r).removeAttr("disabled"); 
				} 
				/*if (ff_r.selectedIndex > 0){
					filter=ff_r.options[ff_r.selectedIndex].value;
				}*/
			}	
		}	
		if (id.indexOf("region") > 0){
			//log('reset ttown')
			ff_t.selectedIndex=0;
			filter=ff_r.options[ff_r.selectedIndex].value;
		}	
		
		
		if (ff_t){
			//log('TOWN' + filter);	

			if (id.indexOf("town") > 0 
				|| ff_s.selectedIndex == 0 	){
				//log("town skip");
			} else if ( filter.length > 0 || ff_t.options.length == 1){
				//log("t " + filter);
	
				while (ff_t.hasChildNodes()) {
					ff_t.removeChild(ff_t.firstChild);
				}
				if (ql_loc == "_int")
					ff_t.options[ff_t.options.length]=new Option("Town/capital city","");
				else
					ff_t.options[ff_t.options.length]=new Option("Choose a town/capital city","");
					
				var qry=Explore.quicklist.Q_ALL.DATA;
				var opt="";
				var has_data=false;
				
				if (ff_r.selectedIndex > 0)
					tFilter=ff_r.options[ff_r.selectedIndex].value;
				else
					tFilter=ff_s.options[ff_s.selectedIndex].value;	
				
				for (var oo=0;oo < qry.length;oo++){
					if ((qry[oo][4] == 12 || qry[oo][4] == 8)
						&& qry[oo][1].indexOf(tFilter) == 0){
						opt=new Option(qry[oo][3], qry[oo][1]);
						ff_t.options[ff_t.options.length]=opt;
						var has_data=true;
						if (filter.indexOf(qry[oo][1]) == 0) 
							ff_t.selectedIndex=ff_t.options.length-1;
					}	
				}
				if (!has_data){
					if (ql_loc == "_int")
						ff_t.options[0]=new Option("Town/capital city","");
					else
						ff_t.options[0]=new Option("Choose a Town/capital city","");
						
					 $(ff_t).attr("disabled", true); 
				} else {
					$(ff_t).removeAttr("disabled"); 
				}	
			}		
			
		}		
		Explore.quickListUpdate=false;
		Explore.quickListReset=false;
	},
		
	
	scroll : function(id){
		var targetOffset = $('#'+id).offset().top-$('#main').offset().top;
		//log(targetOffset);
		$('#main').animate(	{scrollTop:targetOffset}, 'fast');
	},

	
	showClimate : function(){
		$('#main').animate(	{scrollTop:$('#main')[0].scrollHeight}, 'fast');
	},
	
	slideshowData : [],
	slideshowCurrent : 0,
	slideshowInterval : 10000,
	slideshowTimer : null,
	slideshowActive : false,
	slideShowRotating : false,
	
	
	slideShow : function(slideShowData){
		log("ss init");
		var data=eval(slideShowData);
   	  	$.each(data.DATA,
			function(i,item){
				Explore.slideshowData[i] = new Object();
				Explore.slideshowData[i].attribution= item[2];
				Explore.slideshowData[i].attribution_url= item[1];
				Explore.slideshowData[i].title= item[3];
				Explore.slideshowData[i].location= item[5];
				Explore.slideshowData[i].url= item[6];				
  				Explore.slideshowData[i].coords= item[7];
				Explore.slideshowData[i].photographer= item[9];
				Explore.slideshowData[i].tip= 'Explore the ' + item[8];
   			} 
       	);
		Explore.slideshowActive = true;
//		$("#ss_control").attr('onclick','Explore.slideShowToggle()');
	//	$("#ss_control_prev").attr('onclick','Explore.slideShowRotate(-1)');
//		$("#ss_control_next").attr('onclick','Explore.slideShowRotate(1)');
		Explore.slideshowTimer=setTimeout('Explore.slideShowStart()',Explore.slideshowInterval);
	},
	
	slideShowCheck : function(){
		//log('ss check ' + Explore.slideshowActive);
		if (Explore.slideshowActive && !Explore.slideShowRotating){
			Explore.slideShowStop();	
		}			
	},
	
	slideShowToggle :  function (){
		//log('ss toogle ' + Explore.slideshowActive);
		if (Explore.slideshowActive)
			Explore.slideShowStop();
		else
			Explore.slideShowStart();
	},
	
	slideShowStart : function(){
		//log('ss start');
		$("#ss_control").attr('src',"images/slidestop.gif").attr('title','stop slideshow');	
		Explore.slideshowActive = true;
		Explore.slideShowRotate(0);
	},
	slideShowStop : function(){
		Explore.slideshowActive = false;
		if(Explore.slideshowTimer)
			window.clearTimeout(Explore.slideshowTimer);
		$("#ss_control").attr('src',"images/slideplay.gif").attr('title','start slideshow');		
	},
	
	
	slideShowRotate : function(direction){
		if (direction != 0){
			if(Explore.slideshowTimer)
				window.clearTimeout(Explore.slideshowTimer); //clear for manual advance
		} else {
			if (!Explore.slideshowActive)
				return;		
		}
//		log ('slideshow rotating ' + direction);
	//	log(Explore.slideshowCurrent);
		if (direction<0){
			if (Explore.slideshowCurrent < 1)
				Explore.slideshowCurrent=Explore.slideshowData.length-1;
			else
				Explore.slideshowCurrent--;
		} else {
			if (Explore.slideshowCurrent < (Explore.slideshowData.length-1))
				Explore.slideshowCurrent++;
			else
				Explore.slideshowCurrent = 0;
		}
		
		
				
		var i=	Explore.slideshowCurrent;
	//	log(i);
		Explore.slideShowRotating= true;
	//	Explore.mapShowCoords={arr_loc: Explore.slideshowData[i].coords.split(',')};
	//	Explore.mapShowQueue();
		Explore.slideShowRotating= false;
		
		
		
		$('#ss_image').attr('src',Explore.slideshowData[i].url);
		$('#ss_image').attr('title',Explore.slideshowData[i].tip);
		$('#ss_title').text(Explore.slideshowData[i].title);
		$('#ss_link').attr("href",Explore.slideshowData[i].location);
		if ( Explore.slideshowData[i].photographer.length )
			$('#ss_photographer').text(Explore.slideshowData[i].photographer + " / ");
		else
			$('#ss_photographer').text("");	
		$('#ss_attrib').attr('href', "http://" + Explore.slideshowData[i].attribution_url).text(Explore.slideshowData[i].attribution);
		if (direction === 0)
			Explore.slideshowTimer=setTimeout('Explore.slideShowRotate(0)',Explore.slideshowInterval);
	},
	
	

	
	showAd : function (){
		if ($('#c_img')){
			var cachebuster = Math.round(132284*Math.random());
			var zone=$('#c_img').attr('zone');
			var key=$('#c_img').attr('key');
			//$('#c_img').attr('src',"http://promos.hardiegrant.com.au/www/delivery/avw.php?zoneid="+zone+"&amp;n="+key+"&amp;cb="+ cachebuster);
			//$('#c_link').attr('href',"http://promos.hardiegrant.com.au/www/delivery/ck.php?n="+key+"&amp;cb="+ cachebuster);
			
//			$('#c_img').attr('src',"http://promos.hardiegrant.com.au/www/delivery/avw.php?zoneid="+zone+"&amp;n="+key+"&amp;cb="+ cachebuster);
			$('#c_img').attr('src',"http://promos.hardiegrant.com.au/www/delivery/afr.php?zoneid="+zone+"&amp;n="+key+"&amp;cb="+ cachebuster);
			
	//		http://promos.hardiegrant.com.au/www/delivery/afr.php?n=aea024c0&amp;zoneid=1&amp;cb=#ad_random_number#
		}
		if ($('#n_link')){
			var cachebuster = Math.round(7133238*Math.random());
			$('#n_img').attr('src',"http://promos.hardiegrant.com.au/www/delivery/avw.php?zoneid=5&amp;n=ae4afceb&amp;cb="+ cachebuster);
			$('#n_link').attr('href',"http://promos.hardiegrant.com.au/www/delivery/ck.php?n=ae4afceb&amp;cb="+ cachebuster);
		}	
		if ($('#m_img')){
			var zone=$('#m_img').attr('zone');
			var key=$('#m_img').attr('key');
			var cachebuster = Math.round(17323281*Math.random());
			$('#m_img').attr('src',"http://promos.hardiegrant.com.au/www/delivery/afr.php?zoneid="+zone+"&amp;n="+key+"&amp;cb="+ cachebuster);
		}	
		
		
	},
	
	showAdExpandedMap : function (){
		if ($('#ml_img')){
			var zone=$('#ml_img').attr('zone');
			var key=$('#ml_img').attr('key');
			var cachebuster = Math.round(17323281*Math.random());
			$('#ml_img').attr('src',"http://promos.hardiegrant.com.au/www/delivery/afr.php?zoneid="+zone+"&amp;n="+key+"&amp;cb="+ cachebuster);
		}	
	},	

	
	initRollovers : function(){
		$.preload( 'img.roll', {
		    find: '.gif',
		    replace: '2.gif'
		});

	},
	/*
	initRating : function(star_count){
		$('#rate').rating('/index.cfm?event=location.rate&location_id='
			+$("#locationTitle").attr('loc_id'), 
			{maxvalue:5, curvalue: star_count});

	}, */
	
	lightbox : function (content_id){
		tb_show('thick',"/index.cfm?event=photo.view&height=560&width=680&content_id="+content_id+"#TB_iframe");
		log($("#TB_window").height());
	},
	
	waitSizeLightbox : function (){
		$("#TB_iframeContent").contents().find('#tb_image').onImagesLoad({ 
           selectorCallback: Explore.sizeLightbox
        }); 
		log('wait size lightbox');
	},	

	sizeLightbox : function (i){	
		 var tb=$("#TB_iframeContent").contents().find('#tb_image');
		 //log('size lightbox' + tb.width() +  ' ' + tb.height());
		 $("#TB_window").width(tb.width()+30).height(tb.height()+65);
		 $("#TB_iframeContent").width(tb.width()+30).height(tb.height()+65);
		 TB_WIDTH=$("#TB_window").width();
		 TB_HEIGHT=$("#TB_window").height();
		 tb_position();
//		 var tb=$("#TB_iframeContent").contents().find('#lb').show();
		 
	}	
	
}


function setup(){
	//log('setup');
	//$(".Content").height($(window).height()-$(".LeftPanel550").offset().top-130);
	Explore.searchDefaultText();
	var mapCoords=$("#locationTitle");

	if (mapCoords.html()){
		//log('normal map');
		
		Explore.quickListReset=true;
		Explore.QuickList('_int');
		if(mapCoords.attr('coords')){
			if (mapCoords.attr('poly'))
				setMapLocation(mapCoords.attr('coords').split(','), mapCoords.attr('poly') );
			else	
				setMapLocation(mapCoords.attr('coords').split(',') );
		}			
		var myExplore=$("#myExploreState");
		Explore.setMyExploreState($(myExplore).attr("class"));
	} else if(document.location.hash.length==0
		&& ( document.location.pathname == "/" )
		|| (document.location.pathname.indexOf("/index.cfm") == 0 && document.location.search.length == 0)){
		//log ("map fp setup" + document.location.hash.length);
		Explore.QuickList('');
		Explore.slideShow(slideShowData);
		
		setTimeout('lazyloadOpenlayers()',2000);
		
	}
	
	
//	log('hijax');
	setTimeout('Explore.hijax()',15); // workaround for IE6 stack overflow at line 0
	setTimeout('Explore.searchSetup();',15); // workaround for IE6 stack overflow at line 0
	
//	log('setup roll');
	setTimeout('Explore.initRollovers()',15); // workaround for IE6 stack overflow at line 0
	

	if (document.location.search.indexOf("forum.") == -1){
		if($.browser.msie){
			//log("ie sleep");
			setTimeout('Explore.historyInit()',25); // workaround for IE6 line 5454545354343
		}else{
			Explore.historyInit();
		}	
	} 
	
	//log('INIT COMPLETE');
}	

var addthis_localize = {
    share_caption: "Share this with friends"
}; 


/*
 * Thickbox 3.1 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2007 cody lindley
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
		  
var tb_pathToImage = "images/loadingAnimation.gif";

/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/

//on page load call tb_init
$(document).ready(function(){   
//	tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
	imgLoader = new Image();// preload image
	imgLoader.src = tb_pathToImage;
});

//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
	$(domChunk).live("click",function(){
	log(11111111111);
	var t = this.title || this.name || null;
	var a = this.href || this.alt;
	var g = this.rel || false;
	tb_show(t,a,g);
	this.blur();
	return false;
	});
}

function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
	
	try {
		if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
			$("body","html").css({height: "100%", width: "100%"});
			$("html").css("overflow","hidden");
			if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
				$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
				$("#TB_overlay").click(tb_remove);
			}
		}else{//all others
			if(document.getElementById("TB_overlay") === null){
				$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
				$("#TB_overlay").click(tb_remove);
			}
		}
		
		if(tb_detectMacXFF()){
			$("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash
		}else{
			$("#TB_overlay").addClass("TB_overlayBG");//use background and opacity
		}
		
		if(caption===null){caption="";}
		$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
		$('#TB_load').show();//show loader
		
		var baseURL;
	   if(url.indexOf("?")!==-1){ //ff there is a query string involved
			baseURL = url.substr(0, url.indexOf("?"));
	   }else{ 
	   		baseURL = url;
	   }
	   
	   var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;
	   var urlType = baseURL.toLowerCase().match(urlString);

		if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
				
			TB_PrevCaption = "";
			TB_PrevURL = "";
			TB_PrevHTML = "";
			TB_NextCaption = "";
			TB_NextURL = "";
			TB_NextHTML = "";
			TB_imageCount = "";
			TB_FoundURL = false;
			if(imageGroup){
				TB_TempArray = $("a[@rel="+imageGroup+"]").get();
				for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) {
					var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
						if (!(TB_TempArray[TB_Counter].href == url)) {						
							if (TB_FoundURL) {
								TB_NextCaption = TB_TempArray[TB_Counter].title;
								TB_NextURL = TB_TempArray[TB_Counter].href;
								TB_NextHTML = "<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";
							} else {
								TB_PrevCaption = TB_TempArray[TB_Counter].title;
								TB_PrevURL = TB_TempArray[TB_Counter].href;
								TB_PrevHTML = "<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";
							}
						} else {
							TB_FoundURL = true;
							TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);											
						}
				}
			}

			imgPreloader = new Image();
			imgPreloader.onload = function(){		
			imgPreloader.onload = null;
				
			// Resizing large images - orginal by Christian Montoya edited by me.
			var pagesize = tb_getPageSize();
			var x = pagesize[0] - 150;
			var y = pagesize[1] - 150;
			var imageWidth = imgPreloader.width;
			var imageHeight = imgPreloader.height;
			if (imageWidth > x) {
				imageHeight = imageHeight * (x / imageWidth); 
				imageWidth = x; 
				if (imageHeight > y) { 
					imageWidth = imageWidth * (y / imageHeight); 
					imageHeight = y; 
				}
			} else if (imageHeight > y) { 
				imageWidth = imageWidth * (y / imageHeight); 
				imageHeight = y; 
				if (imageWidth > x) { 
					imageHeight = imageHeight * (x / imageWidth); 
					imageWidth = x;
				}
			}
			// End Resizing
			
			TB_WIDTH = imageWidth + 30;
			TB_HEIGHT = imageHeight + 60;
			$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>"); 		
			
			$("#TB_closeWindowButton").click(tb_remove);
			
			if (!(TB_PrevHTML === "")) {
				function goPrev(){
					if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
					$("#TB_window").remove();
					$("body").append("<div id='TB_window'></div>");
					tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
					return false;	
				}
				$("#TB_prev").click(goPrev);
			}
			
			if (!(TB_NextHTML === "")) {		
				function goNext(){
					$("#TB_window").remove();
					$("body").append("<div id='TB_window'></div>");
					tb_show(TB_NextCaption, TB_NextURL, imageGroup);				
					return false;	
				}
				$("#TB_next").click(goNext);
				
			}

				
			$(window).keydown(function(event){
				var keycode=event.keyCode;
				if(keycode == 27){ // close
					tb_remove();
				} else if(keycode == 190){ // display previous image
					if(!(TB_NextHTML == "")){
						document.onkeydown = "";
						goNext();
					}
				} else if(keycode == 188){ // display next image
					if(!(TB_PrevHTML == "")){
						document.onkeydown = "";
						goPrev();
					}
				}	
			});
			
			document.onkeydown = function(e){ 	
				if (e == null) { // ie
					keycode = event.keyCode;
				} else { // mozilla
					keycode = e.which;
				}
				if(keycode == 27){ // close
					tb_remove();
				} else if(keycode == 190){ // display previous image
					if(!(TB_NextHTML == "")){
						document.onkeydown = "";
						goNext();
					}
				} else if(keycode == 188){ // display next image
					if(!(TB_PrevHTML == "")){
						document.onkeydown = "";
						goPrev();
					}
				}	

	
			};
			
			tb_position();
			$("#TB_load").remove();
			$("#TB_ImageOff").click(tb_remove);
			$("#TB_window").css({display:"block"}); //for safari using css instead of show
			};
			
			imgPreloader.src = url;
		}else{//code to show html
			
			var queryString = url.replace(/^[^\?]+\??/,'');
			var params = tb_parseQuery( queryString );

			TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
			TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL
			ajaxContentW = TB_WIDTH - 30;
			ajaxContentH = TB_HEIGHT - 45;
			
			ajaxContentW = (params['width']*1);
			ajaxContentH = (params['height']*1);

		
			if(url.indexOf('TB_iframe') != -1){// either iframe or ajax window		
					urlNoQuery = url.split('TB_');
					$("#TB_iframeContent").remove();
					if(params['modal'] != "true"){//iframe no modal
						$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>");
					}else{//iframe modal
					$("#TB_overlay").unbind();
						$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'> </iframe>");
						
					}
			}else{// not an iframe, ajax
					if($("#TB_window").css("display") != "block"){
						if(params['modal'] != "true"){//ajax no modal
							$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
					}else{//ajax modal
						$("#TB_overlay").unbind();
						$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");	
						}
					}else{//this means the window is already up, we are just loading new content via ajax
						$("#TB_ajaxContent")[0].style.width = ajaxContentW +"px";
						$("#TB_ajaxContent")[0].style.height = ajaxContentH +"px";
						$("#TB_ajaxContent")[0].scrollTop = 0;
						$("#TB_ajaxWindowTitle").html(caption);
					}
			}
					
			$("#TB_closeWindowButton").click(tb_remove);
			
			if(url.indexOf('TB_inline') != -1){	
				$("#TB_ajaxContent").append($('#' + params['inlineId']).children());
				$("#TB_window").unload(function () {
					$('#' + params['inlineId']).append( $("#TB_ajaxContent").children() ); // move elements back when you're finished
				});
				tb_position();
				$("#TB_load").remove();
				$("#TB_window").css({display:"block"}); 
			}else if(url.indexOf('TB_iframe') != -1){
				tb_position();
				if($.browser.safari){//safari needs help because it will not fire iframe onload
					$("#TB_load").remove();
					$("#TB_window").css({display:"block"});
				}

			}else{
				$("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
					tb_position();
					$("#TB_load").remove();
					tb_init("#TB_ajaxContent a.thickbox");
					$("#TB_window").css({display:"block"});
				});
			}
			
		}
		
		$(window).keydown(function(event){
			var keycode=event.keyCode;
			if(keycode == 27){ // close
				tb_remove();
			} else if(keycode == 190){ // display previous image
				if(!(TB_NextHTML == "")){
					document.onkeydown = "";
					goNext();
				}
			} else if(keycode == 188){ // display next image
				if(!(TB_PrevHTML == "")){
					document.onkeydown = "";
					goPrev();
				}
			}	
		});
		
	} catch(e) {
		//nothing here
	}
}

//helper functions below
function tb_showIframe(){
	$("#TB_load").remove();
	$("#TB_window").css({display:"block"});
}

function tb_remove() {
 	$("#TB_imageOff").unbind("click");
	$("#TB_closeWindowButton").unbind("click");
	$("#TB_window").fadeOut(15,function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
	$("#TB_load").remove();
	if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
		$("body","html").css({height: "auto", width: "auto"});
		$("html").css("overflow","");
	}
	document.onkeydown = "";
	document.onkeyup = "";
	return false;
}

function tb_position() {
	$("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
	if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6
		$("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
	}
}

function tb_parseQuery ( query ) {
   var Params = {};
   if ( ! query ) {return Params;}// return empty object
   var Pairs = query.split(/[;&]/);
   for ( var i = 0; i < Pairs.length; i++ ) {
      var KeyVal = Pairs[i].split('=');
      if ( ! KeyVal || KeyVal.length != 2 ) {continue;}
      var key = unescape( KeyVal[0] );
      var val = unescape( KeyVal[1] );
      val = val.replace(/\+/g, ' ');
      Params[key] = val;
   }
   return Params;
}

function tb_getPageSize(){
	var de = document.documentElement;
	var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
	arrayPageSize = [w,h];
	return arrayPageSize;
}

function tb_detectMacXFF() {
  var userAgent = navigator.userAgent.toLowerCase();
  if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
    return true;
  }
}


var marker_layer="";
var map=false;
var full_map=null;
var ol_loading=false;	
var	extent = "";
var useHttpTile= true;
var explorerOverview="";
var ttowns_page="";
var relation_layer="";
var tmpLoc=[];
var tmpPoly=[];
var map_fully_loaded=false;

//tmp notes

if ( document.location.host.indexOf("ccla") == -1){
	var useHttpTile= true;
	var mapguide_url=["http://m1.exploreaustralia.net.au","http://m2.exploreaustralia.net.au",
		"http://m3.exploreaustralia.net.au","http://m4.exploreaustralia.net.au"];
	var useHttpTileInset=true;
	var map_scales = [2500, 4766.66548, 9088.4399, 17328.62108, 33039.89593, 62996.05249, 120112.4434, 229014.33483,
		436653.88926, 832553.2074, 1587401.05197, 3026643.91583, 5770799.62363, 11002988.53191, 20979026.22326, 40000000, 54000000];

	var mapguide_inset_url="http://m1.exploreaustralia.net.au/INSET";
	var mapguide_inset_url_large="http://m1.exploreaustralia.net.au/INSET-LARGE";
	
} else {	
	var useHttpTile= false;
	var mapguide_url="/eapMapguide/mapagent/mapagent.fcgi?USERNAME=Anonymous&PASSWORD=&";
	var map_scales = [2500, 4766.66548, 9088.43994, 17328.62118, 33039.89619, 62996.05311, 120112.44481, 229014.33798,
		436653.89612, 832553.22213, 1587401.08316, 3026643.98126, 5770799.75972, 11002988.81301, 20979026.80047, 40000001.17915, 76266650];

	var useHttpTileInset=false;
	var mapguide_inset_url=mapguide_url;
	var mapguide_inset_url_large=mapguide_url;
}	

var layer_params = {
	mapdefinition: 'Library://MAPS/MAP.MapDefinition',
    basemaplayergroupname: "BASE"
}

var layer_options = {
	singleTile: false,
	useHttpTile: useHttpTile,
	buffer: 0
}

function loadOpenlayers(arr_loc, poly){
	log("openlayers load check");
	if (ol_loading){
		log("ol already loading");
		return false;
	}	
	tmpLoc=arr_loc;
	tmpPoly=poly;

	if (typeof OpenLayers != "object"){
		log("delayLoading openlayers");
		ol_loading=true;	
		$.ajax({ type: "GET", 
			url: "res/mapguide-openlayers.js", 
			dataType: "script", 
			async: true,
			cache: true,
			success: postOpenLayersLoad()
		}); 
		return false;
	} else {
		postOpenLayersLoad();
	}
}	

function lazyloadOpenlayers(){
	$.ajax({ type: "GET", 
			url: "res/mapguide-openlayers.js", 
			dataType: "script", 
			async: true,
			cache: true
	}); 
}		

function postOpenLayersLoad(){
	//log("loaded openlayers " + typeof OpenLayers);
	if (typeof OpenLayers == 'undefined'){
		//log("ol wait");
		setTimeout('postOpenLayersLoad()',75);
	} else {
		ol_loading=false;	
		doMapInit('map', tmpLoc);
		tmpLoc=[];
	}	
	return false;
}
 
function doMapInit(mapName, arr_loc){
	log('mapInit ' +  map);
	if (map != false){
		log('double init');
		return;
	} 
	
	if ( document.location.host.indexOf("ccla") == -1)
		extent = new OpenLayers.Bounds(111.65827669839, -46.917561255445, 155.53859655198, -7.4818410186976);
	else		
		extent = new OpenLayers.Bounds(105.005600, -52.896300, 162.191200, -1.503000);

	
	if (!document.getElementById(mapName)){
		log('missed map :' + mapName);
		return;
	} 
	
//	log(map);
		
    var inPerUnit = OpenLayers.INCHES_PER_UNIT.m * 111319.4908; 
	OpenLayers.DOTS_PER_INCH = 96;
    OpenLayers.INCHES_PER_UNIT["dd"] = inPerUnit; 
  	OpenLayers.INCHES_PER_UNIT["degrees"] = inPerUnit;        
		
	var mapOptions = {
		maxExtent: extent, 
		scales: map_scales,					 
		projection : new OpenLayers.Projection("ESPG:4283"),
		units: 'dd',
		theme : "/theme/default/style.css"
	};
			
	var options = {
		buffer: 0,
		singleTile: false,
		useHttpTile: useHttpTile,
		transitionEffect: 'resize'
	}			
		
	map = new OpenLayers.Map( mapName , mapOptions);
	
	var layer_options = {
		singleTile: false,
		useHttpTile: useHttpTile,
		buffer: 0
	}
	
	var layer = new OpenLayers.Layer.MapGuide( "Base", mapguide_url, layer_params, layer_options );	
	map.addLayer(layer);	
	map.addControl(new OpenLayers.Control.Scale(OpenLayers.Util.getElement('pageMapScale'),{scaleLabel:false}) );
	map.addControl(new OpenLayers.Control.Navigation());
	//map.addControl(new OpenLayers.Control.LayerSwitcher());
	
		//log('post nav');
	/*
	if (OpenLayers.Util.getElement('pageMapPosition'))
		map.addControl(new OpenLayers.Control.MousePosition({'div':OpenLayers.Util.getElement('pageMapPosition')}));		
	*/	
	
	var scaleLineOptions = { //div: document.getElementById("pageMapScaleLine"),
		bottomOutUnits  :'',
		bottomInUnits : '',
		maxWidth: 150
   	}			
	//map.addControl(new OpenLayers.Control.ScaleLine(scaleLineOptions));
	//log('pre region');

	var regionOutlineStyle = new OpenLayers.Style({ 
		pointRadius: 55,
       	fillOpacity: 0.001,
        strokeColor: "#006BB0",
        strokeOpacity: 0.75,
   	    strokeLinecap: "round",
       	strokeWidth: 3.5
	});

	//log('m layer');
	marker_layer = new OpenLayers.Layer.Vector("ttowns",  {styleMap: new OpenLayers.StyleMap(regionOutlineStyle)} );
	map.addLayer(marker_layer);
	
		//log('rel layer');

	relation_layer = new OpenLayers.Layer.Vector("relation");
	map.addLayer(relation_layer);
		
	var insetParams = {
          mapdefinition: 'Library://MAPS/MAP-INSET.MapDefinition',
      		  basemaplayergroupname: "BASE"
	}

    var insetOptions = {
		maxExtent: new OpenLayers.Bounds (111.65827669839, -46.917561255445,155.53859655198, -7.4818410186976), 
		restrictedExtent: new OpenLayers.Bounds (112.371735, -41.363539, 154.716648, -12.433236), 			
        scales: [149000000],					 
		units: 'dd',
        buffer: 0,
		useHttpTile: useHttpTileInset,
        singleTile: false
	};
	//log('inset');
	var insetLayer = new OpenLayers.Layer.MapGuide( "Inset", 
			mapguide_inset_url,
			insetParams, 
			insetOptions );			
					
	explorerOverview=new OpenLayers.Control.OverviewMap({ 
		layers: [insetLayer],
		size: new OpenLayers.Size(120,100)
	 });
	
	map.addControl(explorerOverview);
	explorerOverview.maximizeControl(); 
	//log('map exp control');

	var exploreStyleMap = getExploreIconStyles(); 
	//log("mapInit set location");
	if (arr_loc){
		setMapLocation(arr_loc);
	}else{
		if (tmpLoc.length==2){
			log("tmpLoc");
			arr_loc=tmpLoc;
			tmpLoc=[];
			setMapLocation(arr_loc);	
		} else {
			setMapLocation(extent);	
		}
	}	
	if (tmpPoly.length){
		addPoly(tmpPoly);
		tmpPoly="";
	}	

	ttowns_page = new OpenLayers.Layer.Vector("poi", {
			strategies: [new OpenLayers.Strategy.Grid({
                            safe: false,
                            buffer: 0,
							serviceVersion : 'geom',
							layername : 'poi',
							type : 'js', 
							url : '/',
                            tileSize: new OpenLayers.Size(1000, 1000)
                        })	],
		protocol: new OpenLayers.Protocol.HTTP({
			url: "/index.cfm?event=WFS.getFeatures&",
			params: { },
			format: new OpenLayers.Format.GeoJSON()
		}),
		styleMap: exploreStyleMap
	});	
	
	
	
//	ttowns_page.events.on({"featureadded": filterTtownFeaturePage});
	map.addLayer(ttowns_page);

	map.events.register("zoomend", map, Explore.slideShowCheck);
	map.events.register("move", map, Explore.slideShowCheck);
	
	selectControlPage = new OpenLayers.Control.SelectFeature(ttowns_page,
		{onSelect: onFeatureSelectPage
		}); //, 	onUnselect: onFeatureUnselect
		
	map.addControl(selectControlPage);
	selectControlPage.activate();			
	
/*	$('.smallmapexpander').hover(function(){
		this.src = this.src.replace('.gif','2.gif');	
	},function(){
		this.src = this.src.replace('2','');
	}); */
	ttowns_page.refresh();
	log('map setup finished');
	map_fully_loaded=true;
	
}	


function getExploreIconStyles(){
	var exploreStyle = new OpenLayers.Style({
		externalGraphic: "images/openlayers/${ltype}.png",
		pointRadius: 9,
		title :"${name}",
		cursor:'pointer',
		graphicYOffset : -15
		//,	graphicXOffset : -20
	});
	
	var sizeLookup = {
	  "28": {pointRadius: 7},
	  "30": {pointRadius: 7},
	  "12": {pointRadius: 9},
	  "8": {pointRadius: 9}	  
	}
	var exploreStyleMap = new OpenLayers.StyleMap(exploreStyle);
	exploreStyleMap.addUniqueValueRules("default", "ltype", sizeLookup);
	return exploreStyleMap;
}	

function getInRegionIconStyles(){
	return {
		externalGraphic: "images/openlayers/12.png",
		pointRadius: 9,
		cursor:'pointer',
		graphicYOffset : -15
	};
}	

function showRelateLayer(arr_points){
	var pointList = [];
	var exploreStyle=getInRegionIconStyles();
	
	for ( pp in arr_points){
         var pointFeature = new OpenLayers.Feature.Vector(
		 	new OpenLayers.Geometry.Point(arr_points[pp][0], arr_points[pp][1]),
			null, exploreStyle	);
		pointList.push(pointFeature);	
	}
	relation_layer.setVisibility(false);
	relation_layer.destroyFeatures();
	relation_layer.addFeatures(pointList);
		
	ttowns_page.setVisibility(false);
	
	var relateBounds=relation_layer.getDataExtent();
	var relateZoom=map.getZoomForExtent(relateBounds);
	var relateBounds=relation_layer.getDataExtent();
	var relateMapBounds=map.calculateBounds(relateBounds.getCenterLonLat(), map.getResolutionForZoom(relateZoom));

	if (relateMapBounds.getWidth() *.95 > 	relateBounds.getWidth()
		|| relateMapBounds.getHeight() *.95 > 	relateBounds.getHeight()){
		relateZoom=relateZoom-1;	
	}
	
	map.setCenter(relateBounds.getCenterLonLat(), relateZoom);
	relation_layer.setVisibility(true);
	relation_layer.display(true);

}	

function setMapLocation(arr_loc, poly){
	
	if(typeof arr_loc == undefined)
		arr_loc=[];
	if(typeof poly == 'undefined')
		poly=[];
		
	Explore.mapShowCoordsPrevious=null;	
		
	log ("setmaploc " + map + ' ' + typeof OpenLayers);
	if (map == false){
		loadOpenlayers(arr_loc, poly);
	} else{	
		log(arr_loc);
		if ( arr_loc.length == 2){ // lonlat
			var ll=new OpenLayers.LonLat(arr_loc[0],arr_loc[1]);
			if (ll == map.getCenter())
				return; // no change 
			map.setCenter(ll,7);
		}else if (arr_loc.length == 4){ // extent
			var locationExtent = new OpenLayers.Bounds(arr_loc[0],arr_loc[1],arr_loc[2],arr_loc[3]);
			if (locationExtent == map.getExtent())
				return; // no change
			var zoomScale=map.getZoomForExtent(locationExtent);
			//if (zoomScale > 13) zoomScale=12;
			map.setCenter(locationExtent.getCenterLonLat() ,zoomScale);
		} else {
			map.setCenter(map.getCenter());    		
		}	
		if (poly.length)
			addPoly(poly);
	}	
}

function clearMap(){
	log("clear map " + map.div.id);
	if(map){
		map.destroy();
		map=null;
	}	
}


function clearPoly(){
//	log("clear poly");
	if(marker_layer)
		marker_layer.destroyFeatures();
}

function addPoly(ll) {
	var url='/geom/region/'+ll+'.txt';
	var drawPoly = function (response) {
		if (response.responseText.length > 0){
			var WKT= new OpenLayers.Format.WKT();
			var region=WKT.read(response.responseText);
			var features = [region];
			marker_layer.addFeatures(features);
		}
    };
	var onFailure=function (response) {
		log('poly error: ' + response.responseText);
	};
	OpenLayers.loadURL(url, '', this, drawPoly, onFailure);
}

var selectControlFull, selectedFeature, ttowns_full;
var selectControlPage, selectedFeaturePage, ttowns_page;

function onPopupCloseFull(evt) {
	selectControlFull.unselect(selectedFeatureFull);
}

function onPopupClosePage(evt) {
	selectControlPage.unselect(selectedFeaturePage);
}

function onFeatureSelectFull(feature) {
	go(feature.data.path);
}

function onFeatureSelectPage(feature) {
	go(feature.data.path);
}


function onFeatureUnselect(feature) {
	if (feature.popup){
       feature.layer.map.removePopup(feature.popup);
       feature.popup.destroy();
       feature.popup = null;
	} 
} 

function filterTtownFeatureFull(obj){
	filterTtownFeatureAll(obj, full_map.getZoom(),6 );
}	

function filterTtownFeaturePage(obj){
	filterTtownFeatureAll(obj, map.getZoom(),4);
}	

function filterTtownFeatureAll(obj,zoom, threshold){
	//console.info('filterTtownFeature');
	kk=obj;
	if ( zoom < threshold){
		if (obj.feature.data.location_type_id == 8){
			obj.feature.style="";
		}else	{
			obj.feature.style="display:none;";	
			obj.feature.layer.drawFeature(obj.feature);		
		}	
	}
	return obj;
	//console.info('filterTtownFeature done');
}

function filterTtownFull(){
	filterTtownAll(ttowns_full, 6);
}	

function filterTtownPage(){
	filterTtownAll(ttowns_page, 4);
}	


function filterTtownAll(filter_ttown_layer, threshold){
 	var ratio = filter_ttown_layer.map.getZoom()/4.0+0.75;
       if(ratio<1.4)
		ratio = 1.4;
	filter_ttown_layer.options.protocol.params.scale=filter_ttown_layer.map.getZoom();
	filter_ttown_layer.options.protocol.ratio=ratio;
	
	for (ff in filter_ttown_layer.features){
		var prev_style=filter_ttown_layer.features[ff].style;
		if ( filter_ttown_layer.map.getZoom() < threshold){
			if (filter_ttown_layer.features[ff].data.location_type_id == 8)
				filter_ttown_layer.features[ff].style="";
			else	
				filter_ttown_layer.features[ff].style="display:none;";	
		}else{
			filter_ttown_layer.features[ff].style="";	
		}	
		if ( filter_ttown_layer.features[ff].style != prev_style)
			filter_ttown_layer.drawFeature(filter_ttown_layer.features[ff]);		
	}	
}


function showExplorer(){
	if (!document.getElementById('explorerMap')){
		alert("id:explorerMap not found!");
		return;
	}	
	if (full_map)
		return;	
	
	//console.info('init full map');

   	OpenLayers.DOTS_PER_INCH = 96;
	var numberzoomlevels=map_scales.length;
		
	var mapOptions = {
		controls: [new OpenLayers.Control.PanZoomBar(),
			new OpenLayers.Control.Navigation()],
		maxExtent: extent, 
        scales: map_scales,					 
		projection : new OpenLayers.Projection("ESPG:4283"),
		units: 'dd',
		numZoomLevels : numberzoomlevels,
		theme : "/theme/default/style.css"	
	};
	
	full_map = new OpenLayers.Map( 'explorerMap' , mapOptions);

	layer = new OpenLayers.Layer.MapGuide( "Base", mapguide_url, layer_params, layer_options );	

	full_map.addLayer(layer);	


	full_map.addControl(new OpenLayers.Control.Scale(OpenLayers.Util.getElement('exploreMapScale')));
	full_map.addControl(new OpenLayers.Control.Attribution());
	if (OpenLayers.Util.getElement('exploreMapPosition'))
		full_map.addControl(new OpenLayers.Control.MousePosition({'div':OpenLayers.Util.getElement('exploreMapPosition')}));		

	var insetParams = {
          mapdefinition: 'Library://MAPS/MAP-INSET-LARGE.MapDefinition',
      		  basemaplayergroupname: "BASE"
	}
	
	var scaleLineOptions = {//		div: document.getElementById("exploreMapScaleLine"),
		bottomOutUnits  :'',
		bottomInUnits : '',
		maxWidth: 150
   	}			
	full_map.addControl(new OpenLayers.Control.ScaleLine(scaleLineOptions));

    var insetOptions = {
		maxExtent: new OpenLayers.Bounds (111.65827669839, -46.917561255445,155.53859655198, -7.4818410186976), 
           scales: [149000000],					 
		units: 'dd',
           buffer: 0,
		useHttpTile: useHttpTileInset,
           singleTile: false
	};
	
	var insetLayer = new OpenLayers.Layer.MapGuide( "Inset", 
			mapguide_inset_url_large,
			insetParams, 
			insetOptions );			
					
	var explorerOverview=new OpenLayers.Control.OverviewMap({ 
		layers: [insetLayer],
		size: new OpenLayers.Size(120,100)
	 });
	
	full_map.addControl(explorerOverview);
	explorerOverview.maximizeControl(); 
	
	var exploreStyleMap = getExploreIconStyles(); 
	
	full_map.setCenter(map.getCenter(),map.getZoom()-2);    		

	ttowns_full = new OpenLayers.Layer.Vector("poi", {
			strategies: [new OpenLayers.Strategy.Grid({
                            safe: false,
                            buffer: 0,
							serviceVersion : 'geom',
							layername : 'poi',
							type : 'js', 
							url : '/',
                            tileSize: new OpenLayers.Size(1000, 1000)
                        })	],
		protocol: new OpenLayers.Protocol.HTTP({
			url: "/index.cfm?event=WFS.getFeatures&",
			params: {	scale: full_map.getZoom() },
			format: new OpenLayers.Format.GeoJSON()
		}),
		styleMap: exploreStyleMap
	});
	
//	ttowns_full.events.on({"featureadded": filterTtownFeatureFull});
	full_map.addLayer(ttowns_full);
//	full_map.events.register("zoomend", full_map, filterTtownFull);
	
	selectControlFull = new OpenLayers.Control.SelectFeature(ttowns_full,
		{onSelect: onFeatureSelectFull, 
		onUnselect: onFeatureUnselect});
		
	full_map.addControl(selectControlFull);
	selectControlFull.activate();
	
	//full_map.addControl(new OpenLayers.Control.LayerSwitcher());
	
//			marker_layer = new OpenLayers.Layer.Markers( "Markers" );
//		full_map.addLayer(marker_layer);

	Explore.initRollovers();
/*
	$('.mapContractor').hover(
function(){
		this.src = this.src.replace('.gif','2.gif');	
	},function(){
		this.src = this.src.replace('2','');
	});  */

			
}
	
function addClickHandler(){	
	OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {                
		defaultHandlerOptions: {
		   'single': true,
		   'double': false,
		   'pixelTolerance': 0,
		   'stopSingle': false,
		   'stopDouble': false
		},
	
	initialize: function(options) {
	   this.handlerOptions = OpenLayers.Util.extend(
	       {}, this.defaultHandlerOptions
	   );
	   OpenLayers.Control.prototype.initialize.apply(
	       this, arguments
	   ); 
	   this.handler = new OpenLayers.Handler.Click(
	       this, {
	           'click': this.trigger
	       }, this.handlerOptions
	   );
	}, 
	
	trigger: function(e) {
		
	   var lonlat = full_map.getLonLatFromViewPortPx(e.xy);
	   var url='/index.cfm?event=WMS&lat='+lonlat.lat + '&lon=' + lonlat.lon + '&';
	   
	   	setHTML = function (response) {
			if (response.responseText.length > 0){
				doLocation(response.responseText);
				tb_remove();
			}
	        //OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText;
	    };
		
		onFailure=function (response) {};
		OpenLayers.loadURL(url, '', this, setHTML, onFailure);
		//OpenLayers.Event.stop(e);
	}

      }); 

	var click = new OpenLayers.Control.Click();
       full_map.addControl(click);
      	click.activate();
}	
	
/*		full_map.events.register('double', full_map, function (e) {
	    var lonlat = full_map.getLonLatFromViewPortPx(e.xy);
           var url =  'index.cfm?event=WMS&lat='+lonlat.lat + '&lon=' + lonlat.lon; 
           OpenLayers.loadURL(url, '', this, setHTML);
           OpenLayers.Event.stop(e); 
     });*/
	


function go(location){
	Explore.quickListReset=true;
	doLocation(location);
	tb_remove();
}

function showLargeMap(){
	$('body').css('cursor', 'wait'); 
	setTimeout('showLargeMapAction()',20);
}

function showLargeMapAction(){
	$('body').css('cursor', 'default'); 	
	var tbHeight=730;
	var tbWidth=1000;
	if ( $(window).height() < tbHeight){
		var newTbHeight=$(window).height();
		var newMapHeight=tbHeight-$("#explorerMap").height()-(tbHeight-newTbHeight)-170;
		$(".mapHolderLargeContent").height(newMapHeight);
		$("#explorerMap").height(newMapHeight);
		tbHeight=newTbHeight;		
	}
		/*	
	if ( $(window).width() < tbWidth){
		$(".mapHolderLarge").width($(window).width()-30);
		tbWidth=$(window).width()-20;
	}

	 */
	tb_show('Explore','##TB_inline?height='+tbHeight+'&width='+tbWidth+'&inlineId=explorerMapFrame&modal=false');
	
	try {
		pageTracker._trackEvent('Map', 'Show Large Map');	
	} catch(err) {}	
	
	Explore.showAdExpandedMap();

	
	showExplorer();
	if (full_map)
		full_map.setCenter(map.getCenter(),map.getZoom());    		
	
}

function clearFullMap(){
	if(full_map){
	//	log("clear map " + full_map.div.id);
		full_map.destroy();
		full_map=null;
	}	
}


function hideLargeMap(){
//	log('close big map');
	$("#mapContractor").attr("src","images/smallmapcontractor.gif");
	$("#legendHolder").hide();
	
	tb_remove();
	clearFullMap();
}



/*
 * jQuery history plugin
 *
 * Copyright (c) 2006 Taku Sano (Mikage Sawatari)
 * Licensed under the MIT License:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Modified by Lincoln Cooper to add Safari support and only call the callback once during initialization
 * for msie when no initial hash supplied.
 */


jQuery.extend({
	historyCurrentHash: undefined,
	
	historyCallback: undefined,
	
	historyInit: function(callback){
		jQuery.historyCallback = callback;
		var current_hash = location.hash;
		
		jQuery.historyCurrentHash = current_hash;
		if(jQuery.browser.msie) {
			// To stop the callback firing twice during initilization if no hash present
			if (jQuery.historyCurrentHash == '') {
			jQuery.historyCurrentHash = '#';
		}
		
			// add hidden iframe for IE
			$("body").prepend('<iframe id="jQuery_history" style="display: none;"></iframe>');
			var ihistory = $("#jQuery_history")[0];
			var iframe = ihistory.contentWindow.document;
			iframe.open();
			iframe.close();
			iframe.location.hash = current_hash;
		}
		else if ($.browser.safari) {
			// etablish back/forward stacks
			jQuery.historyBackStack = [];
			jQuery.historyBackStack.length = history.length;
			jQuery.historyForwardStack = [];
			
			jQuery.isFirst = true;
		}
		jQuery.historyCallback(current_hash.replace(/^#/, ''));
		setInterval(jQuery.historyCheck, 100);
	},
	
	historyAddHistory: function(hash) {
		// This makes the looping function do something
		jQuery.historyBackStack.push(hash);
		
		jQuery.historyForwardStack.length = 0; // clear forwardStack (true click occured)
		this.isFirst = true;
	},
	
	historyCheck: function(){
		if(jQuery.browser.msie) {
			// On IE, check for location.hash of iframe
			var ihistory = $("#jQuery_history")[0];
			var iframe = ihistory.contentDocument || ihistory.contentWindow.document;
			var current_hash = iframe.location.hash;
			if(current_hash != jQuery.historyCurrentHash) {
			
				location.hash = current_hash;
				jQuery.historyCurrentHash = current_hash;
				jQuery.historyCallback(current_hash.replace(/^#/, ''));
				
			}
		} else if ($.browser.safari) {
			if (!jQuery.dontCheck) {
				var historyDelta = history.length - jQuery.historyBackStack.length;
				
				if (historyDelta) { // back or forward button has been pushed
					jQuery.isFirst = false;
					if (historyDelta < 0) { // back button has been pushed
						// move items to forward stack
						for (var i = 0; i < Math.abs(historyDelta); i++) jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop());
					} else { // forward button has been pushed
						// move items to back stack
						for (var i = 0; i < historyDelta; i++) jQuery.historyBackStack.push(jQuery.historyForwardStack.shift());
					}
					var cachedHash = jQuery.historyBackStack[jQuery.historyBackStack.length - 1];
					if (cachedHash != undefined) {
						jQuery.historyCurrentHash = location.hash;
						jQuery.historyCallback(cachedHash);
					}
				} else if (jQuery.historyBackStack[jQuery.historyBackStack.length - 1] == undefined && !jQuery.isFirst) {
					// back button has been pushed to beginning and URL already pointed to hash (e.g. a bookmark)
					// document.URL doesn't change in Safari
					if (document.URL.indexOf('#') >= 0) {
						jQuery.historyCallback(document.URL.split('#')[1]);
					} else {
						var current_hash = location.hash;
						jQuery.historyCallback('');
					}
					jQuery.isFirst = true;
				}
			}
		} else {
			// otherwise, check for location.hash
			var current_hash = location.hash;
			if(current_hash != jQuery.historyCurrentHash) {
				jQuery.historyCurrentHash = current_hash;
				jQuery.historyCallback(current_hash.replace(/^#/, ''));
			}
		}
	},
	historyLoad: function(hash){
		var newhash;
		
		if (jQuery.browser.safari) {
			newhash = hash;
		}
		else {
			newhash = '#' + hash;
			location.hash = newhash;
		}
		jQuery.historyCurrentHash = newhash;
		
		if(jQuery.browser.msie) {
			var ihistory = $("#jQuery_history")[0];
			var iframe = ihistory.contentWindow.document;
			iframe.open();
			iframe.close();
			iframe.location.hash = newhash;
			jQuery.historyCallback(hash);
		}
		else if (jQuery.browser.safari) {
			jQuery.dontCheck = true;
			// Manually keep track of the history values for Safari
			this.historyAddHistory(hash);
			
			// Wait a while before allowing checking so that Safari has time to update the "history" object
			// correctly (otherwise the check loop would detect a false change in hash).
			var fn = function() {jQuery.dontCheck = false;};
			window.setTimeout(fn, 200);
			jQuery.historyCallback(hash);
			// N.B. "location.hash=" must be the last line of code for Safari as execution stops afterwards.
			//      By explicitly using the "location.hash" command (instead of using a variable set to "location.hash") the
			//      URL in the browser and the "history" object are both updated correctly.
			location.hash = newhash;
		}
		else {
		  jQuery.historyCallback(hash);
		}
	}
});


/**
 * jQuery.Preload - Multifunctional preloader
 * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com
 * Dual licensed under MIT and GPL.
 * Date: 3/12/2008
 * @author Ariel Flesler
 * @version 1.0.7
 */
;(function($){var n=$.preload=function(c,d){if(c.split)c=$(c);d=$.extend({},n.defaults,d);var f=$.map(c,function(a){if(!a)return;if(a.split)return d.base+a+d.ext;var b=a.src||a.href;if(typeof d.placeholder=='string'&&a.src)a.src=d.placeholder;if(b&&d.find)b=b.replace(d.find,d.replace);return b||null}),g={loaded:0,failed:0,next:0,done:0,total:f.length};if(!g.total)return m();var h='<img/>',j=d.threshold;while(--j>0)h+='<img/>';h=$(h).load(k).error(k).bind('abort',k).each(l);function k(e){g.found=e.type=='load';g.image=this.src;var a=g.original=c[this.index];g[g.found?'loaded':'failed']++;g.done++;if(d.placeholder&&a.src)a.src=g.found?g.image:d.notFound||a.src;if(d.onComplete)d.onComplete(g);if(g.done<g.total)l(0,this);else{if(h.unbind)h.unbind('load').unbind('error').unbind('abort');h=null;m()}};function l(i,a,b){if($.browser.msie&&g.next&&g.next%n.gap==0&&!b){setTimeout(function(){l(i,a,1)},0);return!1}if(g.next==g.total)return!1;a.index=g.next;a.src=f[g.next++];if(d.onRequest){g.image=a.src;g.original=c[g.next-1];d.onRequest(g)}};function m(){if(d.onFinish)d.onFinish(g)}};n.gap=14;n.defaults={threshold:2,base:'',ext:'',replace:''};$.fn.preload=function(a){n(this,a);return this}})(jQuery);var phpAds_adSenseDeliveryDone;var phpAds_adSensePx;var phpAds_adSensePy;function phpAds_adSenseClick(_1,_2){var _3="__";var cb=new String(Math.random());cb=cb.substring(2,11);var i=new Image();i.src=_1+"/ck.php?"+_2+_3+"trackonly=1"+_3+"cb="+cb+_3+"oadest=";}function phpAds_adSenseLog(_6){var _7="__";var _8;if(_8=_6.src.match(/^(.*)\/afr\.php\?n=([a-z0-9]+)/i)){phpAds_adSenseClick(_8[1],"oaparams="+_7.length+_7+"n="+_8[2]);}else{if(typeof _6.parentNode!="undefined"){var t=_6.parentNode.innerHTML;if(_8=t.match(/\/\* openads=([^ ]*) bannerid=([^ ]*) zoneid=([^ ]*) source=([^ ]*) \*\//)){phpAds_adSenseClick(_8[1],"oaparams="+_7.length+_7+"bannerid="+_8[2]+_7+"zoneid="+_8[3]+_7+"source="+_8[4]);}}}}function phpAds_adSenseGetMouse(e){if(typeof e.pageX=="number"){phpAds_adSensePx=e.pageX;phpAds_adSensePy=e.pageY;}else{if(typeof e.clientX=="number"){phpAds_adSensePx=e.clientX;phpAds_adSensePy=e.clientY;if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){phpAds_adSensePx+=document.body.scrollLeft;phpAds_adSensePy+=document.body.scrollTop;}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){phpAds_adSensePx+=document.documentElement.scrollLeft;phpAds_adSensePy+=document.documentElement.scrollTop;}}}}}function phpAds_adSenseFindX(_b){var x=0;while(_b){x+=_b.offsetLeft;_b=_b.offsetParent;}return x;}function phpAds_adSenseFindY(_d){var y=0;while(_d){y+=_d.offsetTop;_d=_d.offsetParent;}return y;}function phpAds_adSensePageExit(e){var ad=document.getElementsByTagName("iframe");if(typeof phpAds_adSensePx=="undefined"){return;}for(var i=0;i<ad.length;i++){var _12=phpAds_adSenseFindX(ad[i]);var _13=phpAds_adSenseFindY(ad[i]);var _14=parseInt(_12)+parseInt(ad[i].width)+15;var _15=parseInt(_13)+parseInt(ad[i].height)+10;var _16=(phpAds_adSensePx>(_12-10)&&phpAds_adSensePx<_14);var _17=(phpAds_adSensePy>(_13-10)&&phpAds_adSensePy<_15);if(_17&&_16){if(ad[i].src.match(/googlesyndication\.com|ypn-js\.overture\.com/)||ad[i].src.indexOf("afr.php?")>-1){phpAds_adSenseLog(ad[i]);}}}}function phpAds_adSenseInit(){if(document.all&&typeof window.opera=="undefined"){var el=document.getElementsByTagName("iframe");for(var i=0;i<el.length;i++){if(el[i].src.match(/googlesyndication\.com|ypn-js\.overture\.com/)){el[i].onfocus=function(){phpAds_adSenseLog(this);};}}}else{if(typeof window.addEventListener!="undefined"){window.addEventListener("unload",phpAds_adSensePageExit,false);window.addEventListener("mousemove",phpAds_adSenseGetMouse,true);}}}function phpAds_adSenseDelivery(){if(typeof phpAds_adSenseDeliveryDone!="undefined"&&phpAds_adSenseDeliveryDone){return;}phpAds_adSenseDeliveryDone=true;if(typeof window.addEventListener!="undefined"){window.addEventListener("load",phpAds_adSenseInit,false);}else{if(typeof document.addEventListener!="undefined"){document.addEventListener("load",phpAds_adSenseInit,false);}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",phpAds_adSenseInit);}else{if(typeof window.onload=="function"){var _1a=onload;window.onload=function(){_1a();phpAds_adSenseInit();};}else{window.onload=phpAds_adSenseInit;}}}}}phpAds_adSenseDelivery();Explore.quicklist={"Q_CAPITAL":{"COLUMNS":["NAME","LOCATION","PARENT_LOCATION_ID"],"DATA":[["Adelaide","\/South-Australia\/Adelaide",""],["Adelaide","\/South-Australia\/Adelaide",""],["Brisbane","\/Queensland\/Brisbane",""],["Brisbane","\/Queensland\/Brisbane",""],["Canberra","\/Australian-Capital-Territory\/Canberra",""],["Canberra","\/Australian-Capital-Territory\/Canberra",""],["Darwin","\/Northern-Territory\/Darwin",""],["Darwin","\/Northern-Territory\/Darwin",""],["Hobart","\/Tasmania\/Hobart",""],["Hobart","\/Tasmania\/Hobart",""],["Melbourne","\/Victoria\/Melbourne",""],["Melbourne","\/Victoria\/Melbourne",""],["Perth","\/Western-Australia\/Perth",""],["Perth","\/Western-Australia\/Perth",""],["Sydney","\/New-South-Wales\/Sydney",""],["Sydney","\/New-South-Wales\/Sydney",""]]},"Q_STATE":{"COLUMNS":["NAME","LOCATION","PARENT_LOCATION_ID"],"DATA":[["Australian Capital Territory","\/Australian-Capital-Territory",""],["New South Wales","\/New-South-Wales",""],["Northern Territory","\/Northern-Territory",""],["Queensland","\/Queensland",""],["South Australia","\/South-Australia",""],["Tasmania","\/Tasmania",""],["Victoria","\/Victoria",""],["Western Australia","\/Western-Australia",""]]},"Q_REGION":{"COLUMNS":["NAME","LOCATION","STATE","PARENT_LOCATION_ID"],"DATA":[["","\/New-South-Wales\/Blue-Mountains"," New South Wales",""],["Blue Mountains","\/New-South-Wales\/Blue-Mountains"," New South Wales",""],["Capital Country","\/New-South-Wales\/Capital-Country"," New South Wales",""],["Central Coast & Hawkesbury","\/New-South-Wales\/Central-Coast-and-Hawkesbury"," New South Wales",""],["Central West","\/New-South-Wales\/Central-West"," New South Wales",""],["Holiday Coast","\/New-South-Wales\/Holiday-Coast"," New South Wales",""],["Hunter Valley & Coast","\/New-South-Wales\/Hunter-Valley-and-Coast"," New South Wales",""],["Lord Howe Island","\/New-South-Wales\/Lord-Howe-Island"," New South Wales",""],["New England","\/New-South-Wales\/New-England"," New South Wales",""],["Outback","\/New-South-Wales\/Outback"," New South Wales",""],["Riverina","\/New-South-Wales\/Riverina"," New South Wales",""],["Snowy Mountains","\/New-South-Wales\/Snowy-Mountains"," New South Wales",""],["South Coast","\/New-South-Wales\/South-Coast"," New South Wales",""],["Southern Highlands","\/New-South-Wales\/Southern-Highlands"," New South Wales",""],["The Murray","\/New-South-Wales\/The-Murray"," New South Wales",""],["Tropical North Coast","\/New-South-Wales\/Tropical-North-Coast"," New South Wales",""],["","\/Northern-Territory\/Around-Darwin"," Northern Territory",""],["Around Darwin","\/Northern-Territory\/Around-Darwin"," Northern Territory",""],["Gulf to Gulf","\/Northern-Territory\/Gulf-to-Gulf"," Northern Territory",""],["Kakadu & Arnhem Land","\/Northern-Territory\/Kakadu-and-Arnhem-Land"," Northern Territory",""],["Red Centre","\/Northern-Territory\/Red-Centre"," Northern Territory",""],["","\/Queensland\/Brisbane-Hinterland"," Queensland",""],["Brisbane Hinterland","\/Queensland\/Brisbane-Hinterland"," Queensland",""],["Brisbane Islands","\/Queensland\/Brisbane-Islands"," Queensland",""],["Cairns & The Tropics","\/Queensland\/Cairns-and-The-Tropics"," Queensland",""],["Cape York","\/Queensland\/Cape-York"," Queensland",""],["Capricorn","\/Queensland\/Capricorn"," Queensland",""],["Darling Downs","\/Queensland\/Darling-Downs"," Queensland",""],["Fraser Island & Coast","\/Queensland\/Fraser-Island-and-Coast"," Queensland",""],["Gold Coast & Hinterland","\/Queensland\/Gold-Coast-and-Hinterland"," Queensland",""],["Gulf Savannah","\/Queensland\/Gulf-Savannah"," Queensland",""],["Outback","\/Queensland\/Outback"," Queensland",""],["Southern Reef Islands","\/Queensland\/Southern-Reef-Islands"," Queensland",""],["Sunshine Coast","\/Queensland\/Sunshine-Coast"," Queensland",""],["The Mid-Tropics","\/Queensland\/The-Mid-Tropics"," Queensland",""],["Tropical North Islands","\/Queensland\/Tropical-North-Islands"," Queensland",""],["Whitsunday Islands","\/Queensland\/Whitsunday-Islands"," Queensland",""],["","\/South-Australia\/Adelaide-Hills"," South Australia",""],["Adelaide Hills","\/South-Australia\/Adelaide-Hills"," South Australia",""],["Barossa Valley","\/South-Australia\/Barossa-Valley"," South Australia",""],["Eyre Peninsula & Nullarbor","\/South-Australia\/Eyre-Peninsula-and-Nullarbor"," South Australia",""],["Fleurieu Peninsula","\/South-Australia\/Fleurieu-Peninsula"," South Australia",""],["Flinders Ranges and Outback","\/South-Australia\/Flinders-Ranges-and-Outback"," South Australia",""],["Kangaroo Island","\/South-Australia\/Kangaroo-Island"," South Australia",""],["Limestone Coast","\/South-Australia\/Limestone-Coast"," South Australia",""],["Mid-North","\/South-Australia\/Mid-North"," South Australia",""],["Murray","\/South-Australia\/Murray"," South Australia",""],["Yorke Peninsula","\/South-Australia\/Yorke-Peninsula"," South Australia",""],["","\/Tasmania\/Bass-Strait-Islands"," Tasmania",""],["Bass Strait Islands","\/Tasmania\/Bass-Strait-Islands"," Tasmania",""],["East Coast","\/Tasmania\/East-Coast"," Tasmania",""],["Midlands & The North","\/Tasmania\/Midlands-and-The-North"," Tasmania",""],["North-West","\/Tasmania\/North-West"," Tasmania",""],["South-East","\/Tasmania\/South-East"," Tasmania",""],["South-West Wilderness","\/Tasmania\/South-West-Wilderness"," Tasmania",""],["","\/Victoria\/East-Gippsland"," Victoria",""],["East Gippsland","\/Victoria\/East-Gippsland"," Victoria",""],["Goldfields","\/Victoria\/Goldfields"," Victoria",""],["Goulburn & Murray","\/Victoria\/Goulburn-and-Murray"," Victoria",""],["Grampians & Central West","\/Victoria\/Grampians-and-Central-West"," Victoria",""],["High Country","\/Victoria\/High-Country"," Victoria",""],["Mallee Country","\/Victoria\/Mallee-Country"," Victoria",""],["Mornington Peninsula","\/Victoria\/Mornington-Peninsula"," Victoria",""],["Phillip Island & Gippsland","\/Victoria\/Phillip-Island-and-Gippsland"," Victoria",""],["South-West Coast","\/Victoria\/South-West-Coast"," Victoria",""],["Spa & Garden Country","\/Victoria\/Spa-and-Garden-Country"," Victoria",""],["Werribee & Bellarine","\/Victoria\/Werribee-and-Bellarine"," Victoria",""],["Yarra & Dandenongs","\/Victoria\/Yarra-and-Dandenongs"," Victoria",""],["","\/Western-Australia\/Darling-and-Swan"," Western Australia",""],["Darling & Swan","\/Western-Australia\/Darling-and-Swan"," Western Australia",""],["Esperance & Nullarbor","\/Western-Australia\/Esperance-and-Nullarbor"," Western Australia",""],["Goldfields","\/Western-Australia\/Goldfields"," Western Australia",""],["Great Southern","\/Western-Australia\/Great-Southern"," Western Australia",""],["Heartlands","\/Western-Australia\/Heartlands"," Western Australia",""],["Kimberley","\/Western-Australia\/Kimberley"," Western Australia",""],["Outback Coast & Mid-West","\/Western-Australia\/Outback-Coast-and-Mid-West"," Western Australia",""],["Pilbara","\/Western-Australia\/Pilbara"," Western Australia",""],["Rottnest Island","\/Western-Australia\/Rottnest-Island"," Western Australia",""],["The South-West","\/Western-Australia\/The-South-West"," Western Australia",""]]},"Q_ALL":{"COLUMNS":["NAME","LOCATION","PARENT_LOCATION_ID","TITLE","LOCATION_TYPE"],"DATA":[["Adaminaby, New South Wales","\/New-South-Wales\/Snowy-Mountains\/Adaminaby",6.0,"Adaminaby",12.0],["Adelaide Hills, South Australia","\/South-Australia\/Adelaide-Hills",5.0,"Adelaide Hills",10.0],["Adelaide River, Northern Territory","\/Northern-Territory\/Around-Darwin\/Adelaide-River",5.0,"Adelaide River",12.0],["Adelaide, South Australia","\/South-Australia\/Adelaide",5.0,"Adelaide",8.0],["Adelong, New South Wales","\/New-South-Wales\/Riverina\/Adelong",5.0,"Adelong",12.0],["Adventure Bay, Tasmania","\/Tasmania\/South-East\/Adventure-Bay",5.0,"Adventure Bay",12.0],["Aileron, Northern Territory","\/Northern-Territory\/Red-Centre\/Aileron",5.0,"Aileron",12.0],["Airlie Beach, Queensland","\/Queensland\/The-Mid-Tropics\/Airlie-Beach",5.0,"Airlie Beach",12.0],["Albany, Western Australia","\/Western-Australia\/Great-Southern\/Albany",5.0,"Albany",12.0],["Albury, New South Wales","\/New-South-Wales\/The-Murray\/Albury",5.0,"Albury",12.0],["Aldinga Beach, South Australia","\/South-Australia\/Fleurieu-Peninsula\/Aldinga-Beach",5.0,"Aldinga Beach",12.0],["Alexandra, Victoria","\/Victoria\/High-Country\/Alexandra",5.0,"Alexandra",12.0],["Alice Springs, Northern Territory","\/Northern-Territory\/Red-Centre\/Alice-Springs",5.0,"Alice Springs",12.0],["Allora, Queensland","\/Queensland\/Darling-Downs\/Allora",5.0,"Allora",12.0],["Alstonville, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Alstonville",5.0,"Alstonville",12.0],["Andamooka, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Andamooka",5.0,"Andamooka",12.0],["Angaston, South Australia","\/South-Australia\/Barossa-Valley\/Angaston",11787.0,"Angaston",12.0],["Anglesea, Victoria","\/Victoria\/South-West-Coast\/Anglesea",5.0,"Anglesea",12.0],["Apollo Bay, Victoria","\/Victoria\/South-West-Coast\/Apollo-Bay",5.0,"Apollo Bay",12.0],["Aramac, Queensland","\/Queensland\/Outback\/Aramac",5.0,"Aramac",12.0],["Ararat, Victoria","\/Victoria\/Grampians-and-Central-West\/Ararat",5.0,"Ararat",12.0],["Ardrossan, South Australia","\/South-Australia\/Yorke-Peninsula\/Ardrossan",11789.0,"Ardrossan",12.0],["Arkaroola, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Arkaroola",5.0,"Arkaroola",12.0],["Arltunga Bush Hotel, Northern Territory","\/Northern-Territory\/Red-Centre\/Arltunga-Bush-Hotel",5.0,"Arltunga Bush Hotel",12.0],["Armidale, New South Wales","\/New-South-Wales\/New-England\/Armidale",5.0,"Armidale",12.0],["Around Circular Quay, Sydney, New South Wales","\/New-South-Wales\/Sydney\/Around-Circular-Quay",5.0,"Around Circular Quay",13.0],["Around Darwin, Northern Territory","\/Northern-Territory\/Around-Darwin",5.0,"Around Darwin",10.0],["Atherton, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Atherton",5.0,"Atherton",12.0],["Augusta, Western Australia","\/Western-Australia\/The-South-West\/Augusta",5.0,"Augusta",12.0],["Australian Capital Territory","\/Australian-Capital-Territory",5.0,"Australian Capital Territory",4.0],["Australind, Western Australia","\/Western-Australia\/The-South-West\/Australind",5.0,"Australind",12.0],["Avoca, Victoria","\/Victoria\/Goldfields\/Avoca",5.0,"Avoca",12.0],["Ayr, Queensland","\/Queensland\/The-Mid-Tropics\/Ayr",5.0,"Ayr",12.0],["Babinda, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Babinda",5.0,"Babinda",12.0],["Bacchus Marsh, Victoria","\/Victoria\/Spa-and-Garden-Country\/Bacchus-Marsh",5.0,"Bacchus Marsh",12.0],["Backpacking","\/Explore-website\/Publications\/Guides\/Backpacking",5.0,"Backpacking",27.0],["Bairnsdale, Victoria","\/Victoria\/East-Gippsland\/Bairnsdale",5.0,"Bairnsdale",12.0],["Balaklava, South Australia","\/South-Australia\/Mid-North\/Balaklava",11788.0,"Balaklava",12.0],["Balingup, Western Australia","\/Western-Australia\/The-South-West\/Balingup",5.0,"Balingup",12.0],["Balladonia, Western Australia","\/Western-Australia\/Esperance-and-Nullarbor\/Balladonia",5.0,"Balladonia",12.0],["Ballarat, Victoria","\/Victoria\/Goldfields\/Ballarat",5.0,"Ballarat",12.0],["Ballina, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Ballina",5.0,"Ballina",12.0],["Balranald, New South Wales","\/New-South-Wales\/Outback\/Balranald",5.0,"Balranald",12.0],["Barcaldine, Queensland","\/Queensland\/Outback\/Barcaldine",5.0,"Barcaldine",12.0],["Barham, New South Wales","\/New-South-Wales\/The-Murray\/Barham",5.0,"Barham",12.0],["Barmera, South Australia","\/South-Australia\/Murray\/Barmera",5.0,"Barmera",12.0],["Barossa Valley, South Australia","\/South-Australia\/Barossa-Valley",5.0,"Barossa Valley",10.0],["Barraba, New South Wales","\/New-South-Wales\/New-England\/Barraba",5.0,"Barraba",12.0],["Barrow Creek, Northern Territory","\/Northern-Territory\/Red-Centre\/Barrow-Creek",11807.0,"Barrow Creek",12.0],["Bass Strait Islands, Tasmania","\/Tasmania\/Bass-Strait-Islands",5.0,"Bass Strait Islands",10.0],["Batchelor, Northern Territory","\/Northern-Territory\/Around-Darwin\/Batchelor",5.0,"Batchelor",12.0],["Batemans Bay, New South Wales","\/New-South-Wales\/South-Coast\/Batemans-Bay",5.0,"Batemans Bay",12.0],["Bathurst, New South Wales","\/New-South-Wales\/Central-West\/Bathurst",5.0,"Bathurst",12.0],["Batlow, New South Wales","\/New-South-Wales\/Riverina\/Batlow",5.0,"Batlow",12.0],["Battery Point, Hobart, Tasmania","\/Tasmania\/Hobart\/Battery-Point",5.0,"Battery Point",13.0],["Bayside, Melbourne, Victoria","\/Victoria\/Melbourne\/Bayside",18.0,"Bayside",13.0],["Beachport, South Australia","\/South-Australia\/Limestone-Coast\/Beachport",5.0,"Beachport",12.0],["Beaconsfield, Tasmania","\/Tasmania\/Midlands-and-The-North\/Beaconsfield",5.0,"Beaconsfield",12.0],["Beaudesert, Queensland","\/Queensland\/Gold-Coast-and-Hinterland\/Beaudesert",5.0,"Beaudesert",12.0],["Beauty Point, Tasmania","\/Tasmania\/Midlands-and-The-North\/Beauty-Point",5.0,"Beauty Point",12.0],["Beechworth, Victoria","\/Victoria\/High-Country\/Beechworth",5.0,"Beechworth",12.0],["Bega, New South Wales","\/New-South-Wales\/South-Coast\/Bega",5.0,"Bega",12.0],["Bellingen, New South Wales","\/New-South-Wales\/Holiday-Coast\/Bellingen",5.0,"Bellingen",12.0],["Benalla, Victoria","\/Victoria\/High-Country\/Benalla",5.0,"Benalla",12.0],["Bendigo, Victoria","\/Victoria\/Goldfields\/Bendigo",5.0,"Bendigo",12.0],["Bermagui, New South Wales","\/New-South-Wales\/South-Coast\/Bermagui",5.0,"Bermagui",12.0],["Berri, South Australia","\/South-Australia\/Murray\/Berri",5.0,"Berri",12.0],["Berridale, New South Wales","\/New-South-Wales\/Snowy-Mountains\/Berridale",5.0,"Berridale",12.0],["Berrima, New South Wales","\/New-South-Wales\/Southern-Highlands\/Berrima",11570.0,"Berrima",12.0],["Berry, New South Wales","\/New-South-Wales\/South-Coast\/Berry",5.0,"Berry",12.0],["Beverley, Western Australia","\/Western-Australia\/Heartlands\/Beverley",5.0,"Beverley",12.0],["Bicheno, Tasmania","\/Tasmania\/East-Coast\/Bicheno",5.0,"Bicheno",12.0],["Biggenden, Queensland","\/Queensland\/Capricorn\/Biggenden",5.0,"Biggenden",12.0],["Bike Riding","\/Explore-website\/Publications\/Guides\/Bike-Riding",5.0,"Bike Riding",27.0],["Biloela, Queensland","\/Queensland\/Capricorn\/Biloela",5.0,"Biloela",12.0],["Bingara, New South Wales","\/New-South-Wales\/New-England\/Bingara",5.0,"Bingara",12.0],["Birdsville, Queensland","\/Queensland\/Outback\/Birdsville",5.0,"Birdsville",12.0],["Birdwood, South Australia","\/South-Australia\/Adelaide-Hills\/Birdwood",5.0,"Birdwood",12.0],["Blackall, Queensland","\/Queensland\/Outback\/Blackall",5.0,"Blackall",12.0],["Blackheath, New South Wales","\/New-South-Wales\/Blue-Mountains\/Blackheath",11752.0,"Blackheath",12.0],["Blackwater, Queensland","\/Queensland\/Capricorn\/Blackwater",11818.0,"Blackwater",12.0],["Blayney, New South Wales","\/New-South-Wales\/Central-West\/Blayney",11770.0,"Blayney",12.0],["Blinman, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Blinman",11792.0,"Blinman",12.0],["Blue Mountains, New South Wales","\/New-South-Wales\/Blue-Mountains",17.0,"Blue Mountains",10.0],["Bombala, New South Wales","\/New-South-Wales\/South-Coast\/Bombala",11754.0,"Bombala",12.0],["Boonah, Queensland","\/Queensland\/Gold-Coast-and-Hinterland\/Boonah",11810.0,"Boonah",12.0],["Bordertown, South Australia","\/South-Australia\/Murray\/Bordertown",11790.0,"Bordertown",12.0],["Borroloola, Northern Territory","\/Northern-Territory\/Gulf-to-Gulf\/Borroloola",11806.0,"Borroloola",12.0],["Bothwell, Tasmania","\/Tasmania\/Midlands-and-The-North\/Bothwell",11981.0,"Bothwell",12.0],["Boulia, Queensland","\/Queensland\/Outback\/Boulia",11823.0,"Boulia",12.0],["Bourke, New South Wales","\/New-South-Wales\/Outback\/Bourke",11759.0,"Bourke",12.0],["Bowen, Queensland","\/Queensland\/The-Mid-Tropics\/Bowen",11819.0,"Bowen",12.0],["Bowral, New South Wales","\/New-South-Wales\/Southern-Highlands\/Bowral",11570.0,"Bowral",12.0],["Boyup Brook, Western Australia","\/Western-Australia\/The-South-West\/Boyup-Brook",11795.0,"Boyup Brook",12.0],["Braidwood, New South Wales","\/New-South-Wales\/Capital-Country\/Braidwood",11757.0,"Braidwood",12.0],["Bremer Bay, Western Australia","\/Western-Australia\/Esperance-and-Nullarbor\/Bremer-Bay",11798.0,"Bremer Bay",12.0],["Brewarrina, New South Wales","\/New-South-Wales\/New-England\/Brewarrina",11755.0,"Brewarrina",12.0],["Bridgetown, Western Australia","\/Western-Australia\/The-South-West\/Bridgetown",11795.0,"Bridgetown",12.0],["Bridport, Tasmania","\/Tasmania\/Midlands-and-The-North\/Bridport",11981.0,"Bridport",12.0],["Bright, Victoria","\/Victoria\/High-Country\/Bright",11781.0,"Bright",12.0],["Brisbane Hinterland, Queensland","\/Queensland\/Brisbane-Hinterland",85.0,"Brisbane Hinterland",10.0],["Brisbane Islands, Queensland","\/Queensland\/Brisbane-Islands",85.0,"Brisbane Islands",10.0],["Brisbane, Queensland","\/Queensland\/Brisbane",85.0,"Brisbane",8.0],["Broken Hill, New South Wales","\/New-South-Wales\/Outback\/Broken-Hill",11759.0,"Broken Hill",12.0],["Broome, Western Australia","\/Western-Australia\/Kimberley\/Broome",11802.0,"Broome",12.0],["Buchan, Victoria","\/Victoria\/East-Gippsland\/Buchan",11782.0,"Buchan",12.0],["Buderim, Queensland","\/Queensland\/Sunshine-Coast\/Buderim",11812.0,"Buderim",12.0],["Bulahdelah, New South Wales","\/New-South-Wales\/Holiday-Coast\/Bulahdelah",11769.0,"Bulahdelah",12.0],["Bunbury, Western Australia","\/Western-Australia\/The-South-West\/Bunbury",11795.0,"Bunbury",12.0],["Bundaberg, Queensland","\/Queensland\/Capricorn\/Bundaberg",11818.0,"Bundaberg",12.0],["Bundanoon, New South Wales","\/New-South-Wales\/Capital-Country\/Bundanoon",11757.0,"Bundanoon",12.0],["Burketown, Queensland","\/Queensland\/Gulf-Savannah\/Burketown",11822.0,"Burketown",12.0],["Burleigh Heads, Queensland","\/Queensland\/Gold-Coast-and-Hinterland\/Burleigh-Heads",11810.0,"Burleigh Heads",12.0],["Burnie, Tasmania","\/Tasmania\/North-West\/Burnie",11980.0,"Burnie",12.0],["Burra, South Australia","\/South-Australia\/Mid-North\/Burra",11788.0,"Burra",12.0],["Bush Tucker","\/Explore-website\/Publications\/Guides\/Bush-Tucker",12400.0,"Bush Tucker",27.0],["Busselton, Western Australia","\/Western-Australia\/The-South-West\/Busselton",11795.0,"Busselton",12.0],["Byron Bay, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Byron-Bay",11748.0,"Byron Bay",12.0],["CBD Central, Melbourne, Victoria","\/Victoria\/Melbourne\/CBD-Central",18.0,"CBD Central",13.0],["CBD East, Melbourne, Victoria","\/Victoria\/Melbourne\/CBD-East",18.0,"CBD East",13.0],["CBD North, Adelaide, South Australia","\/South-Australia\/Adelaide\/CBD-North",2627.0,"CBD North",13.0],["CBD North, Melbourne, Victoria","\/Victoria\/Melbourne\/CBD-North",18.0,"CBD North",13.0],["CBD South, Adelaide, South Australia","\/South-Australia\/Adelaide\/CBD-South",2627.0,"CBD South",13.0],["CBD South-East, Melbourne, Victoria","\/Victoria\/Melbourne\/CBD-South-East",18.0,"CBD South-East",13.0],["CBD West, Melbourne, Victoria","\/Victoria\/Melbourne\/CBD-West",18.0,"CBD West",13.0],["Caboolture, Queensland","\/Queensland\/Brisbane-Hinterland\/Caboolture",11808.0,"Caboolture",12.0],["Caiguna, Western Australia","\/Western-Australia\/Esperance-and-Nullarbor\/Caiguna",11798.0,"Caiguna",12.0],["Cairns & The Tropics, Queensland","\/Queensland\/Cairns-and-The-Tropics",85.0,"Cairns & The Tropics",10.0],["Cairns, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Cairns",11820.0,"Cairns",12.0],["Caloundra, Queensland","\/Queensland\/Sunshine-Coast\/Caloundra",11812.0,"Caloundra",12.0],["Camden, New South Wales","\/New-South-Wales\/Southern-Highlands\/Camden",11570.0,"Camden",12.0],["Camooweal, Queensland","\/Queensland\/Gulf-Savannah\/Camooweal",11822.0,"Camooweal",12.0],["Campbell Town, Tasmania","\/Tasmania\/Midlands-and-The-North\/Campbell-Town",11981.0,"Campbell Town",12.0],["Campbelltown, New South Wales","\/New-South-Wales\/Southern-Highlands\/Campbelltown",11570.0,"Campbelltown",12.0],["Camperdown, Victoria","\/Victoria\/South-West-Coast\/Camperdown",11776.0,"Camperdown",12.0],["Camping","\/Explore-website\/Publications\/Guides\/Camping",12400.0,"Camping",27.0],["Canberra, Australian Capital Territory","\/Australian-Capital-Territory\/Canberra",90.0,"Canberra",8.0],["Cann River, Victoria","\/Victoria\/East-Gippsland\/Cann-River",11782.0,"Cann River",12.0],["Canowindra, New South Wales","\/New-South-Wales\/Central-West\/Canowindra",11770.0,"Canowindra",12.0],["Cape York, Queensland","\/Queensland\/Cape-York",85.0,"Cape York",10.0],["Capital Country, New South Wales","\/New-South-Wales\/Capital-Country",17.0,"Capital Country",10.0],["Capricorn, Queensland","\/Queensland\/Capricorn",85.0,"Capricorn",10.0],["Caravanning","\/Explore-website\/Publications\/Guides\/Caravanning",12400.0,"Caravanning",27.0],["Cardwell, Queensland","\/Queensland\/The-Mid-Tropics\/Cardwell",11819.0,"Cardwell",12.0],["Carnamah, Western Australia","\/Western-Australia\/Heartlands\/Carnamah",11796.0,"Carnamah",12.0],["Carnarvon, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Carnarvon",11800.0,"Carnarvon",12.0],["Casino, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Casino",11748.0,"Casino",12.0],["Casterton, Victoria","\/Victoria\/Grampians-and-Central-West\/Casterton",11778.0,"Casterton",12.0],["Castlemaine, Victoria","\/Victoria\/Goldfields\/Castlemaine",11777.0,"Castlemaine",12.0],["Ceduna, South Australia","\/South-Australia\/Eyre-Peninsula-and-Nullarbor\/Ceduna",11793.0,"Ceduna",12.0],["Central Coast & Hawkesbury, New South Wales","\/New-South-Wales\/Central-Coast-and-Hawkesbury",17.0,"Central Coast & Hawkesbury",10.0],["Central West, New South Wales","\/New-South-Wales\/Central-West",17.0,"Central West",10.0],["Cervantes, Western Australia","\/Western-Australia\/Heartlands\/Cervantes",11796.0,"Cervantes",12.0],["Cessnock, New South Wales","\/New-South-Wales\/Hunter-Valley-and-Coast\/Cessnock",11750.0,"Cessnock",12.0],["Charleville, Queensland","\/Queensland\/Outback\/Charleville",11823.0,"Charleville",12.0],["Charters Towers, Queensland","\/Queensland\/The-Mid-Tropics\/Charters-Towers",11819.0,"Charters Towers",12.0],["Childers, Queensland","\/Queensland\/Capricorn\/Childers",11818.0,"Childers",12.0],["Chillagoe, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Chillagoe",11820.0,"Chillagoe",12.0],["Chiltern, Victoria","\/Victoria\/High-Country\/Chiltern",11781.0,"Chiltern",12.0],["Chinchilla, Queensland","\/Queensland\/Darling-Downs\/Chinchilla",11811.0,"Chinchilla",12.0],["City Centre, Brisbane, Queensland","\/Queensland\/Brisbane\/City-Centre",8271.0,"City Centre",13.0],["City Centre, Canberra, Australian Capital Territory","\/Australian-Capital-Territory\/Canberra\/City-Centre",5806.0,"City Centre",13.0],["City Centre, Darwin, Northern Territory","\/Northern-Territory\/Darwin\/City-Centre",10440.0,"City Centre",13.0],["City Centre, Perth, Western Australia","\/Western-Australia\/Perth\/City-Centre",2626.0,"City Centre",13.0],["City Centre, Sydney, New South Wales","\/New-South-Wales\/Sydney\/City-Centre",19.0,"City Centre",13.0],["City Guides","\/Explore-website\/Publications\/Guides\/City-Guides",12400.0,"City Guides",27.0],["Clare, South Australia","\/South-Australia\/Mid-North\/Clare",11788.0,"Clare",12.0],["Clermont, Queensland","\/Queensland\/The-Mid-Tropics\/Clermont",11819.0,"Clermont",12.0],["Clifton, Queensland","\/Queensland\/Darling-Downs\/Clifton",11811.0,"Clifton",12.0],["Cloncurry, Queensland","\/Queensland\/Outback\/Cloncurry",11823.0,"Cloncurry",12.0],["Clunes, Victoria","\/Victoria\/Goldfields\/Clunes",11777.0,"Clunes",12.0],["Cobar, New South Wales","\/New-South-Wales\/Outback\/Cobar",11759.0,"Cobar",12.0],["Cobram, Victoria","\/Victoria\/Goulburn-and-Murray\/Cobram",11780.0,"Cobram",12.0],["Cocklebiddy, Western Australia","\/Western-Australia\/Esperance-and-Nullarbor\/Cocklebiddy",11798.0,"Cocklebiddy",12.0],["Coffin Bay, South Australia","\/South-Australia\/Eyre-Peninsula-and-Nullarbor\/Coffin-Bay",11793.0,"Coffin Bay",12.0],["Coffs Harbour, New South Wales","\/New-South-Wales\/Holiday-Coast\/Coffs-Harbour",11769.0,"Coffs Harbour",12.0],["Cohuna, Victoria","\/Victoria\/Goulburn-and-Murray\/Cohuna",11780.0,"Cohuna",12.0],["Colac, Victoria","\/Victoria\/South-West-Coast\/Colac",11776.0,"Colac",12.0],["Coleraine, Victoria","\/Victoria\/Grampians-and-Central-West\/Coleraine",11778.0,"Coleraine",12.0],["Coles Bay, Tasmania","\/Tasmania\/East-Coast\/Coles-Bay",11977.0,"Coles Bay",12.0],["Collie, Western Australia","\/Western-Australia\/The-South-West\/Collie",11795.0,"Collie",12.0],["Coober Pedy, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Coober-Pedy",11792.0,"Coober Pedy",12.0],["Cooktown, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Cooktown",11820.0,"Cooktown",12.0],["Coolgardie, Western Australia","\/Western-Australia\/Goldfields\/Coolgardie",11799.0,"Coolgardie",12.0],["Cooma, New South Wales","\/New-South-Wales\/Snowy-Mountains\/Cooma",11758.0,"Cooma",12.0],["Coonabarabran, New South Wales","\/New-South-Wales\/Central-West\/Coonabarabran",11770.0,"Coonabarabran",12.0],["Coonamble, New South Wales","\/New-South-Wales\/Central-West\/Coonamble",11770.0,"Coonamble",12.0],["Coonawarra, South Australia","\/South-Australia\/Limestone-Coast\/Coonawarra",11791.0,"Coonawarra",12.0],["Cootamundra, New South Wales","\/New-South-Wales\/Capital-Country\/Cootamundra",11757.0,"Cootamundra",12.0],["Coral Bay, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Coral-Bay",11800.0,"Coral Bay",12.0],["Corowa, New South Wales","\/New-South-Wales\/The-Murray\/Corowa",11761.0,"Corowa",12.0],["Corrigin, Western Australia","\/Western-Australia\/Heartlands\/Corrigin",11796.0,"Corrigin",12.0],["Corryong, Victoria","\/Victoria\/High-Country\/Corryong",11781.0,"Corryong",12.0],["Cowell, South Australia","\/South-Australia\/Eyre-Peninsula-and-Nullarbor\/Cowell",11793.0,"Cowell",12.0],["Cowes, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Cowes",11774.0,"Cowes",12.0],["Cowra, New South Wales","\/New-South-Wales\/Central-West\/Cowra",11770.0,"Cowra",12.0],["Cranbrook, Western Australia","\/Western-Australia\/Great-Southern\/Cranbrook",11797.0,"Cranbrook",12.0],["Creswick, Victoria","\/Victoria\/Goldfields\/Creswick",11777.0,"Creswick",12.0],["Crookwell, New South Wales","\/New-South-Wales\/Capital-Country\/Crookwell",11757.0,"Crookwell",12.0],["Crows Nest, Queensland","\/Queensland\/Darling-Downs\/Crows-Nest",11811.0,"Crows Nest",12.0],["Croydon, Queensland","\/Queensland\/Gulf-Savannah\/Croydon",11822.0,"Croydon",12.0],["Crystal Brook, South Australia","\/South-Australia\/Mid-North\/Crystal-Brook",11788.0,"Crystal Brook",12.0],["Cue, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Cue",11800.0,"Cue",12.0],["Culcairn, New South Wales","\/New-South-Wales\/The-Murray\/Culcairn",11761.0,"Culcairn",12.0],["Cunnamulla, Queensland","\/Queensland\/Outback\/Cunnamulla",11823.0,"Cunnamulla",12.0],["Currie, Tasmania","\/Tasmania\/Bass-Strait-Islands\/Currie",11982.0,"Currie",12.0],["Cygnet, Tasmania","\/Tasmania\/South-East\/Cygnet",11978.0,"Cygnet",12.0],["Daintree, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Daintree",11820.0,"Daintree",12.0],["Dalby, Queensland","\/Queensland\/Darling-Downs\/Dalby",11811.0,"Dalby",12.0],["Daly Waters, Northern Territory","\/Northern-Territory\/Gulf-to-Gulf\/Daly-Waters",11806.0,"Daly Waters",12.0],["Darling & Swan, Western Australia","\/Western-Australia\/Darling-and-Swan",87.0,"Darling & Swan",10.0],["Darling Downs, Queensland","\/Queensland\/Darling-Downs",85.0,"Darling Downs",10.0],["Darling Harbour, Sydney, New South Wales","\/New-South-Wales\/Sydney\/Darling-Harbour",19.0,"Darling Harbour",13.0],["Darwin, Northern Territory","\/Northern-Territory\/Darwin",89.0,"Darwin",8.0],["Daylesford, Victoria","\/Victoria\/Spa-and-Garden-Country\/Daylesford",11775.0,"Daylesford",12.0],["Deloraine, Tasmania","\/Tasmania\/Midlands-and-The-North\/Deloraine",11981.0,"Deloraine",12.0],["Denham, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Denham",11800.0,"Denham",12.0],["Deniliquin, New South Wales","\/New-South-Wales\/The-Murray\/Deniliquin",11761.0,"Deniliquin",12.0],["Denmark, Western Australia","\/Western-Australia\/Great-Southern\/Denmark",11797.0,"Denmark",12.0],["Derby, Tasmania","\/Tasmania\/Midlands-and-The-North\/Derby",11981.0,"Derby",12.0],["Derby, Western Australia","\/Western-Australia\/Kimberley\/Derby",11802.0,"Derby",12.0],["Devonport, Tasmania","\/Tasmania\/North-West\/Devonport",11980.0,"Devonport",12.0],["Dimboola, Victoria","\/Victoria\/Grampians-and-Central-West\/Dimboola",11778.0,"Dimboola",12.0],["Docklands, Melbourne, Victoria","\/Victoria\/Melbourne\/Docklands",18.0,"Docklands",13.0],["Donald, Victoria","\/Victoria\/Grampians-and-Central-West\/Donald",11778.0,"Donald",12.0],["Dongara-Denison, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Dongara-Denison",11800.0,"Dongara-Denison",12.0],["Donnybrook, Western Australia","\/Western-Australia\/The-South-West\/Donnybrook",11795.0,"Donnybrook",12.0],["Dorrigo, New South Wales","\/New-South-Wales\/Holiday-Coast\/Dorrigo",11769.0,"Dorrigo",12.0],["Dover, Tasmania","\/Tasmania\/South-East\/Dover",11978.0,"Dover",12.0],["Downtown, Hobart, Tasmania","\/Tasmania\/Hobart\/Downtown",10441.0,"Downtown",13.0],["Drysdale, Victoria","\/Victoria\/Werribee-and-Bellarine\/Drysdale",2652.0,"Drysdale",12.0],["Dubbo, New South Wales","\/New-South-Wales\/Central-West\/Dubbo",11770.0,"Dubbo",12.0],["Dunalley, Tasmania","\/Tasmania\/South-East\/Dunalley",11978.0,"Dunalley",12.0],["Dunkeld, Victoria","\/Victoria\/Grampians-and-Central-West\/Dunkeld",11778.0,"Dunkeld",12.0],["Dunolly, Victoria","\/Victoria\/Goldfields\/Dunolly",11777.0,"Dunolly",12.0],["Dunsborough, Western Australia","\/Western-Australia\/The-South-West\/Dunsborough",11795.0,"Dunsborough",12.0],["Dwellingup, Western Australia","\/Western-Australia\/The-South-West\/Dwellingup",11795.0,"Dwellingup",12.0],["Eaglehawk Neck, Tasmania","\/Tasmania\/South-East\/Eaglehawk-Neck",11978.0,"Eaglehawk Neck",12.0],["East Coast, Tasmania","\/Tasmania\/East-Coast",86.0,"East Coast",10.0],["East Gippsland, Victoria","\/Victoria\/East-Gippsland",16.0,"East Gippsland",10.0],["East Perth, Perth, Western Australia","\/Western-Australia\/Perth\/East-Perth",2626.0,"East Perth",13.0],["East, Adelaide, South Australia","\/South-Australia\/Adelaide\/East",2627.0,"East",13.0],["East, Darwin, Northern Territory","\/Northern-Territory\/Darwin\/East",10440.0,"East",13.0],["East, Hobart, Tasmania","\/Tasmania\/Hobart\/East",10441.0,"East",13.0],["East, Sydney, New South Wales","\/New-South-Wales\/Sydney\/East",19.0,"East",13.0],["Eastern Bayside, Brisbane, Queensland","\/Queensland\/Brisbane\/Eastern-Bayside",8271.0,"Eastern Bayside",13.0],["Eastern Beachside, Sydney, New South Wales","\/New-South-Wales\/Sydney\/Eastern-Beachside",19.0,"Eastern Beachside",13.0],["Echuca, Victoria","\/Victoria\/Goulburn-and-Murray\/Echuca",11780.0,"Echuca",12.0],["Economaps","\/Explore-website\/Publications\/Maps\/Economaps",12394.0,"Economaps",27.0],["Eden, New South Wales","\/New-South-Wales\/South-Coast\/Eden",11754.0,"Eden",12.0],["Edenhope, Victoria","\/Victoria\/Grampians-and-Central-West\/Edenhope",11778.0,"Edenhope",12.0],["Edithburgh, South Australia","\/South-Australia\/Yorke-Peninsula\/Edithburgh",11789.0,"Edithburgh",12.0],["Eildon, Victoria","\/Victoria\/High-Country\/Eildon",11781.0,"Eildon",12.0],["Elliott, Northern Territory","\/Northern-Territory\/Gulf-to-Gulf\/Elliott",11806.0,"Elliott",12.0],["Elliston, South Australia","\/South-Australia\/Eyre-Peninsula-and-Nullarbor\/Elliston",11793.0,"Elliston",12.0],["Emerald, Queensland","\/Queensland\/Capricorn\/Emerald",11818.0,"Emerald",12.0],["Emerald, Victoria","\/Victoria\/Yarra-and-Dandenongs\/Emerald",11772.0,"Emerald",12.0],["Esk, Queensland","\/Queensland\/Brisbane-Hinterland\/Esk",11808.0,"Esk",12.0],["Esperance & Nullarbor, Western Australia","\/Western-Australia\/Esperance-and-Nullarbor",87.0,"Esperance & Nullarbor",10.0],["Esperance, Western Australia","\/Western-Australia\/Esperance-and-Nullarbor\/Esperance",11798.0,"Esperance",12.0],["Eucla, Western Australia","\/Western-Australia\/Esperance-and-Nullarbor\/Eucla",11798.0,"Eucla",12.0],["Eugowra, New South Wales","\/New-South-Wales\/Central-West\/Eugowra",11770.0,"Eugowra",12.0],["Eulo, Queensland","\/Queensland\/Outback\/Eulo",11823.0,"Eulo",12.0],["Euroa, Victoria","\/Victoria\/Goulburn-and-Murray\/Euroa",11780.0,"Euroa",12.0],["Evandale, Tasmania","\/Tasmania\/Midlands-and-The-North\/Evandale",11981.0,"Evandale",12.0],["Evans Head, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Evans-Head",11748.0,"Evans Head",12.0],["Exeter, Tasmania","\/Tasmania\/Midlands-and-The-North\/Exeter",11981.0,"Exeter",12.0],["Exmouth, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Exmouth",11800.0,"Exmouth",12.0],["Eyre Peninsula & Nullarbor, South Australia","\/South-Australia\/Eyre-Peninsula-and-Nullarbor",88.0,"Eyre Peninsula & Nullarbor",10.0],["Far Outer West, Sydney, New South Wales","\/New-South-Wales\/Sydney\/Far-Outer-West",19.0,"Far Outer West",13.0],["Fingal, Tasmania","\/Tasmania\/East-Coast\/Fingal",11977.0,"Fingal",12.0],["Finley, New South Wales","\/New-South-Wales\/The-Murray\/Finley",11761.0,"Finley",12.0],["Fishing","\/Explore-website\/Publications\/Guides\/Fishing",12400.0,"Fishing",27.0],["Fitzroy Crossing, Western Australia","\/Western-Australia\/Kimberley\/Fitzroy-Crossing",11802.0,"Fitzroy Crossing",12.0],["Fleurieu Peninsula, South Australia","\/South-Australia\/Fleurieu-Peninsula",88.0,"Fleurieu Peninsula",10.0],["Flinders Ranges and Outback, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback",88.0,"Flinders Ranges and Outback",10.0],["Flinders, Victoria","\/Victoria\/Mornington-Peninsula\/Flinders",11773.0,"Flinders",12.0],["Forbes, New South Wales","\/New-South-Wales\/Central-West\/Forbes",11770.0,"Forbes",12.0],["Foreshore, Brisbane, Queensland","\/Queensland\/Brisbane\/Foreshore",8271.0,"Foreshore",13.0],["Forster-Tuncurry, New South Wales","\/New-South-Wales\/Holiday-Coast\/Forster-Tuncurry",11769.0,"Forster-Tuncurry",12.0],["Fortitude Valley, Brisbane, Queensland","\/Queensland\/Brisbane\/Fortitude-Valley",8271.0,"Fortitude Valley",13.0],["Foster, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Foster",11774.0,"Foster",12.0],["Four-wheel Driving","\/Explore-website\/Publications\/Guides\/Four-wheel-Driving",12400.0,"Four-wheel Driving",27.0],["Fraser Island & Coast, Queensland","\/Queensland\/Fraser-Island-and-Coast",85.0,"Fraser Island & Coast",10.0],["Fremantle, Perth, Western Australia","\/Western-Australia\/Perth\/Fremantle",2626.0,"Fremantle",13.0],["Gardens & Domain, Sydney, New South Wales","\/New-South-Wales\/Sydney\/Gardens-and-Domain",19.0,"Gardens & Domain",13.0],["Gascoyne Junction, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Gascoyne-Junction",11800.0,"Gascoyne Junction",12.0],["Gatton, Queensland","\/Queensland\/Brisbane-Hinterland\/Gatton",11808.0,"Gatton",12.0],["Gawler, South Australia","\/South-Australia\/Barossa-Valley\/Gawler",11787.0,"Gawler",12.0],["Gayndah, Queensland","\/Queensland\/Capricorn\/Gayndah",11818.0,"Gayndah",12.0],["Geelong, Victoria","\/Victoria\/Werribee-and-Bellarine\/Geelong",2652.0,"Geelong",12.0],["Geeveston, Tasmania","\/Tasmania\/South-East\/Geeveston",11978.0,"Geeveston",12.0],["General Travel","\/Explore-website\/Publications\/Guides\/General-Travel",12400.0,"General Travel",27.0],["George Town, Tasmania","\/Tasmania\/Midlands-and-The-North\/George-Town",11981.0,"George Town",12.0],["Geraldton, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Geraldton",11800.0,"Geraldton",12.0],["Gifts","\/Explore-website\/Publications\/Guides\/Gifts",12400.0,"Gifts",27.0],["Gilgandra, New South Wales","\/New-South-Wales\/Central-West\/Gilgandra",11770.0,"Gilgandra",12.0],["Gin Gin, Queensland","\/Queensland\/Capricorn\/Gin-Gin",11818.0,"Gin Gin",12.0],["Gingin, Western Australia","\/Western-Australia\/Heartlands\/Gingin",11796.0,"Gingin",12.0],["Gladstone, Queensland","\/Queensland\/Capricorn\/Gladstone",11818.0,"Gladstone",12.0],["Gladstone, Tasmania","\/Tasmania\/East-Coast\/Gladstone",11977.0,"Gladstone",12.0],["Glen Helen Resort, Northern Territory","\/Northern-Territory\/Red-Centre\/Glen-Helen-Resort",11807.0,"Glen Helen Resort",12.0],["Glen Innes, New South Wales","\/New-South-Wales\/New-England\/Glen-Innes",11755.0,"Glen Innes",12.0],["Glenbrook, New South Wales","\/New-South-Wales\/Blue-Mountains\/Glenbrook",11752.0,"Glenbrook",12.0],["Glenrowan, Victoria","\/Victoria\/High-Country\/Glenrowan",11781.0,"Glenrowan",12.0],["Gloucester, New South Wales","\/New-South-Wales\/Holiday-Coast\/Gloucester",11769.0,"Gloucester",12.0],["Gold Coast & Hinterland, Queensland","\/Queensland\/Gold-Coast-and-Hinterland",85.0,"Gold Coast & Hinterland",10.0],["Goldfields, Victoria","\/Victoria\/Goldfields",16.0,"Goldfields",10.0],["Goldfields, Western Australia","\/Western-Australia\/Goldfields",87.0,"Goldfields",10.0],["Goolwa, South Australia","\/South-Australia\/Fleurieu-Peninsula\/Goolwa",11784.0,"Goolwa",12.0],["Goondiwindi, Queensland","\/Queensland\/Darling-Downs\/Goondiwindi",11811.0,"Goondiwindi",12.0],["Gordonvale, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Gordonvale",11820.0,"Gordonvale",12.0],["Gosford, New South Wales","\/New-South-Wales\/Central-Coast-and-Hawkesbury\/Gosford",11751.0,"Gosford",12.0],["Goulburn & Murray, Victoria","\/Victoria\/Goulburn-and-Murray",16.0,"Goulburn & Murray",10.0],["Goulburn, New South Wales","\/New-South-Wales\/Capital-Country\/Goulburn",11757.0,"Goulburn",12.0],["Grafton, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Grafton",11748.0,"Grafton",12.0],["Grampians & Central West, Victoria","\/Victoria\/Grampians-and-Central-West",16.0,"Grampians & Central West",10.0],["Great Southern, Western Australia","\/Western-Australia\/Great-Southern",87.0,"Great Southern",10.0],["Greenough, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Greenough",11800.0,"Greenough",12.0],["Grenfell, New South Wales","\/New-South-Wales\/Central-West\/Grenfell",11770.0,"Grenfell",12.0],["Griffith, New South Wales","\/New-South-Wales\/Riverina\/Griffith",11760.0,"Griffith",12.0],["Gulf Savannah, Queensland","\/Queensland\/Gulf-Savannah",85.0,"Gulf Savannah",10.0],["Gulf to Gulf, Northern Territory","\/Northern-Territory\/Gulf-to-Gulf",89.0,"Gulf to Gulf",10.0],["Gulgong, New South Wales","\/New-South-Wales\/Central-West\/Gulgong",11770.0,"Gulgong",12.0],["Gundagai, New South Wales","\/New-South-Wales\/Riverina\/Gundagai",11760.0,"Gundagai",12.0],["Gunnedah, New South Wales","\/New-South-Wales\/New-England\/Gunnedah",11755.0,"Gunnedah",12.0],["Guyra, New South Wales","\/New-South-Wales\/New-England\/Guyra",11755.0,"Guyra",12.0],["Gympie, Queensland","\/Queensland\/Sunshine-Coast\/Gympie",11812.0,"Gympie",12.0],["Hadspen, Tasmania","\/Tasmania\/Midlands-and-The-North\/Hadspen",11981.0,"Hadspen",12.0],["Hahndorf, South Australia","\/South-Australia\/Adelaide-Hills\/Hahndorf",11786.0,"Hahndorf",12.0],["Halls Creek, Western Australia","\/Western-Australia\/Kimberley\/Halls-Creek",11802.0,"Halls Creek",12.0],["Halls Gap, Victoria","\/Victoria\/Grampians-and-Central-West\/Halls-Gap",11778.0,"Halls Gap",12.0],["Hamilton, Tasmania","\/Tasmania\/South-East\/Hamilton",11978.0,"Hamilton",12.0],["Hamilton, Victoria","\/Victoria\/Grampians-and-Central-West\/Hamilton",11778.0,"Hamilton",12.0],["Harvey, Western Australia","\/Western-Australia\/The-South-West\/Harvey",11795.0,"Harvey",12.0],["Hastings, Tasmania","\/Tasmania\/South-East\/Hastings",11978.0,"Hastings",12.0],["Hawker, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Hawker",11792.0,"Hawker",12.0],["Hay, New South Wales","\/New-South-Wales\/Riverina\/Hay",11760.0,"Hay",12.0],["Healesville, Victoria","\/Victoria\/Yarra-and-Dandenongs\/Healesville",11772.0,"Healesville",12.0],["Heartlands, Western Australia","\/Western-Australia\/Heartlands",87.0,"Heartlands",10.0],["Heathcote, Victoria","\/Victoria\/Goulburn-and-Murray\/Heathcote",11780.0,"Heathcote",12.0],["Herberton, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Herberton",11820.0,"Herberton",12.0],["Hermannsburg, Northern Territory","\/Northern-Territory\/Red-Centre\/Hermannsburg",11807.0,"Hermannsburg",12.0],["Hervey Bay, Queensland","\/Queensland\/Fraser-Island-and-Coast\/Hervey-Bay",11813.0,"Hervey Bay",12.0],["High Country, Victoria","\/Victoria\/High-Country",16.0,"High Country",10.0],["Hobart, Tasmania","\/Tasmania\/Hobart",86.0,"Hobart",8.0],["Holbrook, New South Wales","\/New-South-Wales\/Riverina\/Holbrook",11760.0,"Holbrook",12.0],["Holiday Coast, New South Wales","\/New-South-Wales\/Holiday-Coast",17.0,"Holiday Coast",10.0],["Holiday Maps","\/Explore-website\/Publications\/Maps\/Holiday-Maps",12394.0,"Holiday Maps",27.0],["Hopetoun, Victoria","\/Victoria\/Mallee-Country\/Hopetoun",11779.0,"Hopetoun",12.0],["Horsham, Victoria","\/Victoria\/Grampians-and-Central-West\/Horsham",11778.0,"Horsham",12.0],["Hughenden, Queensland","\/Queensland\/Outback\/Hughenden",11823.0,"Hughenden",12.0],["Hunter Valley & Coast, New South Wales","\/New-South-Wales\/Hunter-Valley-and-Coast",17.0,"Hunter Valley & Coast",10.0],["Huonville, Tasmania","\/Tasmania\/South-East\/Huonville",11978.0,"Huonville",12.0],["Huskisson, New South Wales","\/New-South-Wales\/South-Coast\/Huskisson",11754.0,"Huskisson",12.0],["Hyde Park & Macquarie Street, Sydney, New South Wales","\/New-South-Wales\/Sydney\/Hyde-Park-and-Macquarie-Street",19.0,"Hyde Park & Macquarie Street",13.0],["Hyden, Western Australia","\/Western-Australia\/Heartlands\/Hyden",11796.0,"Hyden",12.0],["Iluka, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Iluka",11748.0,"Iluka",12.0],["Ingham, Queensland","\/Queensland\/The-Mid-Tropics\/Ingham",11819.0,"Ingham",12.0],["Inglewood, Victoria","\/Victoria\/Goldfields\/Inglewood",11777.0,"Inglewood",12.0],["Innamincka, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Innamincka",11792.0,"Innamincka",12.0],["Inner East, Brisbane, Queensland","\/Queensland\/Brisbane\/Inner-East",8271.0,"Inner East",13.0],["Inner East, Hobart, Tasmania","\/Tasmania\/Hobart\/Inner-East",10441.0,"Inner East",13.0],["Inner East, Melbourne, Victoria","\/Victoria\/Melbourne\/Inner-East",18.0,"Inner East",13.0],["Inner East, Perth, Western Australia","\/Western-Australia\/Perth\/Inner-East",2626.0,"Inner East",13.0],["Inner East, Sydney, New South Wales","\/New-South-Wales\/Sydney\/Inner-East",19.0,"Inner East",13.0],["Inner North, Adelaide, South Australia","\/South-Australia\/Adelaide\/Inner-North",2627.0,"Inner North",13.0],["Inner North, Canberra, Australian Capital Territory","\/Australian-Capital-Territory\/Canberra\/Inner-North",5806.0,"Inner North",13.0],["Inner North, Darwin, Northern Territory","\/Northern-Territory\/Darwin\/Inner-North",10440.0,"Inner North",13.0],["Inner North, Hobart, Tasmania","\/Tasmania\/Hobart\/Inner-North",10441.0,"Inner North",13.0],["Inner North, Melbourne, Victoria","\/Victoria\/Melbourne\/Inner-North",18.0,"Inner North",13.0],["Inner North, Perth, Western Australia","\/Western-Australia\/Perth\/Inner-North",2626.0,"Inner North",13.0],["Inner North, Sydney, New South Wales","\/New-South-Wales\/Sydney\/Inner-North",19.0,"Inner North",13.0],["Inner North-East, Brisbane, Queensland","\/Queensland\/Brisbane\/Inner-North-East",8271.0,"Inner North-East",13.0],["Inner North-West, Perth, Western Australia","\/Western-Australia\/Perth\/Inner-North-West",2626.0,"Inner North-West",13.0],["Inner South, Adelaide, South Australia","\/South-Australia\/Adelaide\/Inner-South",2627.0,"Inner South",13.0],["Inner South, Brisbane, Queensland","\/Queensland\/Brisbane\/Inner-South",8271.0,"Inner South",13.0],["Inner South, Canberra, Australian Capital Territory","\/Australian-Capital-Territory\/Canberra\/Inner-South",5806.0,"Inner South",13.0],["Inner South, Hobart, Tasmania","\/Tasmania\/Hobart\/Inner-South",10441.0,"Inner South",13.0],["Inner South, Perth, Western Australia","\/Western-Australia\/Perth\/Inner-South",2626.0,"Inner South",13.0],["Inner South, Sydney, New South Wales","\/New-South-Wales\/Sydney\/Inner-South",19.0,"Inner South",13.0],["Inner South-East, Melbourne, Victoria","\/Victoria\/Melbourne\/Inner-South-East",18.0,"Inner South-East",13.0],["Inner West, Adelaide, South Australia","\/South-Australia\/Adelaide\/Inner-West",2627.0,"Inner West",13.0],["Inner West, Brisbane, Queensland","\/Queensland\/Brisbane\/Inner-West",8271.0,"Inner West",13.0],["Inner West, Perth, Western Australia","\/Western-Australia\/Perth\/Inner-West",2626.0,"Inner West",13.0],["Inner West, Sydney, New South Wales","\/New-South-Wales\/Sydney\/Inner-West",19.0,"Inner West",13.0],["Innisfail, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Innisfail",11820.0,"Innisfail",12.0],["Inverell, New South Wales","\/New-South-Wales\/New-England\/Inverell",11755.0,"Inverell",12.0],["Inverloch, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Inverloch",11774.0,"Inverloch",12.0],["Ipswich, Queensland","\/Queensland\/Brisbane-Hinterland\/Ipswich",11808.0,"Ipswich",12.0],["Isisford, Queensland","\/Queensland\/Outback\/Isisford",11823.0,"Isisford",12.0],["Jabiru, Northern Territory","\/Northern-Territory\/Kakadu-and-Arnhem-Land\/Jabiru",11804.0,"Jabiru",12.0],["Jamberoo, New South Wales","\/New-South-Wales\/Southern-Highlands\/Jamberoo",11570.0,"Jamberoo",12.0],["Jamestown, South Australia","\/South-Australia\/Mid-North\/Jamestown",11788.0,"Jamestown",12.0],["Jeparit, Victoria","\/Victoria\/Grampians-and-Central-West\/Jeparit",11778.0,"Jeparit",12.0],["Jerilderie, New South Wales","\/New-South-Wales\/Riverina\/Jerilderie",11760.0,"Jerilderie",12.0],["Jindabyne, New South Wales","\/New-South-Wales\/Snowy-Mountains\/Jindabyne",11758.0,"Jindabyne",12.0],["Julia Creek, Queensland","\/Queensland\/Outback\/Julia-Creek",11823.0,"Julia Creek",12.0],["Jundah, Queensland","\/Queensland\/Outback\/Jundah",11823.0,"Jundah",12.0],["Jurien Bay, Western Australia","\/Western-Australia\/Heartlands\/Jurien-Bay",11796.0,"Jurien Bay",12.0],["Kadina, South Australia","\/South-Australia\/Yorke-Peninsula\/Kadina",11789.0,"Kadina",12.0],["Kakadu & Arnhem Land, Northern Territory","\/Northern-Territory\/Kakadu-and-Arnhem-Land",89.0,"Kakadu & Arnhem Land",10.0],["Kalbarri, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Kalbarri",11800.0,"Kalbarri",12.0],["Kalgoorlie-Boulder, Western Australia","\/Western-Australia\/Goldfields\/Kalgoorlie-Boulder",11799.0,"Kalgoorlie-Boulder",12.0],["Kangaroo Island, South Australia","\/South-Australia\/Kangaroo-Island",88.0,"Kangaroo Island",10.0],["Kapunda, South Australia","\/South-Australia\/Mid-North\/Kapunda",11788.0,"Kapunda",12.0],["Karratha, Western Australia","\/Western-Australia\/Pilbara\/Karratha",11801.0,"Karratha",12.0],["Karumba, Queensland","\/Queensland\/Gulf-Savannah\/Karumba",11822.0,"Karumba",12.0],["Katanning, Western Australia","\/Western-Australia\/Great-Southern\/Katanning",11797.0,"Katanning",12.0],["Katherine, Northern Territory","\/Northern-Territory\/Gulf-to-Gulf\/Katherine",11806.0,"Katherine",12.0],["Katoomba, New South Wales","\/New-South-Wales\/Blue-Mountains\/Katoomba",11752.0,"Katoomba",12.0],["Keith, South Australia","\/South-Australia\/Murray\/Keith",11790.0,"Keith",12.0],["Kellerberrin, Western Australia","\/Western-Australia\/Heartlands\/Kellerberrin",11796.0,"Kellerberrin",12.0],["Kempsey, New South Wales","\/New-South-Wales\/Holiday-Coast\/Kempsey",11769.0,"Kempsey",12.0],["Kenilworth, Queensland","\/Queensland\/Sunshine-Coast\/Kenilworth",11812.0,"Kenilworth",12.0],["Kerang, Victoria","\/Victoria\/Goulburn-and-Murray\/Kerang",11780.0,"Kerang",12.0],["Kettering, Tasmania","\/Tasmania\/South-East\/Kettering",11978.0,"Kettering",12.0],["Kiama, New South Wales","\/New-South-Wales\/Southern-Highlands\/Kiama",11570.0,"Kiama",12.0],["Killarney, Queensland","\/Queensland\/Darling-Downs\/Killarney",11811.0,"Killarney",12.0],["Kilmore, Victoria","\/Victoria\/Goulburn-and-Murray\/Kilmore",11780.0,"Kilmore",12.0],["Kimba, South Australia","\/South-Australia\/Eyre-Peninsula-and-Nullarbor\/Kimba",11793.0,"Kimba",12.0],["Kimberley, Western Australia","\/Western-Australia\/Kimberley",87.0,"Kimberley",10.0],["Kingaroy, Queensland","\/Queensland\/Brisbane-Hinterland\/Kingaroy",11808.0,"Kingaroy",12.0],["Kings Canyon Resort, Northern Territory","\/Northern-Territory\/Red-Centre\/Kings-Canyon-Resort",11807.0,"Kings Canyon Resort",12.0],["Kingscote, South Australia","\/South-Australia\/Kangaroo-Island\/Kingscote",11785.0,"Kingscote",12.0],["Kingston S.E., South Australia","\/South-Australia\/Limestone-Coast\/Kingston-SE",11791.0,"Kingston S.E.",12.0],["Kingston, Tasmania","\/Tasmania\/South-East\/Kingston",11978.0,"Kingston",12.0],["Kojonup, Western Australia","\/Western-Australia\/Great-Southern\/Kojonup",11797.0,"Kojonup",12.0],["Koo-Wee-Rup, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Koo-Wee-Rup",11774.0,"Koo-Wee-Rup",12.0],["Korumburra, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Korumburra",11774.0,"Korumburra",12.0],["Kulin, Western Australia","\/Western-Australia\/Heartlands\/Kulin",11796.0,"Kulin",12.0],["Kununurra, Western Australia","\/Western-Australia\/Kimberley\/Kununurra",11802.0,"Kununurra",12.0],["Kuranda, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Kuranda",11820.0,"Kuranda",12.0],["Kyneton, Victoria","\/Victoria\/Spa-and-Garden-Country\/Kyneton",11775.0,"Kyneton",12.0],["Kynuna, Queensland","\/Queensland\/Outback\/Kynuna",11823.0,"Kynuna",12.0],["Kyogle, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Kyogle",11748.0,"Kyogle",12.0],["Laidley, Queensland","\/Queensland\/Brisbane-Hinterland\/Laidley",11808.0,"Laidley",12.0],["Lake Cargelligo, New South Wales","\/New-South-Wales\/Central-West\/Lake-Cargelligo",11770.0,"Lake Cargelligo",12.0],["Lake Grace, Western Australia","\/Western-Australia\/Heartlands\/Lake-Grace",11796.0,"Lake Grace",12.0],["Lake King, Western Australia","\/Western-Australia\/Goldfields\/Lake-King",11799.0,"Lake King",12.0],["Lakes Entrance, Victoria","\/Victoria\/East-Gippsland\/Lakes-Entrance",11782.0,"Lakes Entrance",12.0],["Landsborough, Queensland","\/Queensland\/Sunshine-Coast\/Landsborough",11812.0,"Landsborough",12.0],["Latrobe, Tasmania","\/Tasmania\/North-West\/Latrobe",11980.0,"Latrobe",12.0],["Launceston, Tasmania","\/Tasmania\/Midlands-and-The-North\/Launceston",11981.0,"Launceston",12.0],["Laura, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Laura",11820.0,"Laura",12.0],["Laurieton, New South Wales","\/New-South-Wales\/Holiday-Coast\/Laurieton",11769.0,"Laurieton",12.0],["Laverton, Western Australia","\/Western-Australia\/Goldfields\/Laverton",11799.0,"Laverton",12.0],["Leeton, New South Wales","\/New-South-Wales\/Riverina\/Leeton",11760.0,"Leeton",12.0],["Leigh Creek, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Leigh-Creek",11792.0,"Leigh Creek",12.0],["Leongatha, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Leongatha",11774.0,"Leongatha",12.0],["Leonora, Western Australia","\/Western-Australia\/Goldfields\/Leonora",11799.0,"Leonora",12.0],["Lightning Ridge, New South Wales","\/New-South-Wales\/New-England\/Lightning-Ridge",11755.0,"Lightning Ridge",12.0],["Lilydale, Tasmania","\/Tasmania\/Midlands-and-The-North\/Lilydale",11981.0,"Lilydale",12.0],["Limestone Coast, South Australia","\/South-Australia\/Limestone-Coast",88.0,"Limestone Coast",10.0],["Lismore, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Lismore",11748.0,"Lismore",12.0],["Lithgow, New South Wales","\/New-South-Wales\/Blue-Mountains\/Lithgow",11752.0,"Lithgow",12.0],["Longford, Tasmania","\/Tasmania\/Midlands-and-The-North\/Longford",11981.0,"Longford",12.0],["Longreach, Queensland","\/Queensland\/Outback\/Longreach",11823.0,"Longreach",12.0],["Lord Howe Island, New South Wales","\/New-South-Wales\/Lord-Howe-Island",17.0,"Lord Howe Island",10.0],["Lorne, Victoria","\/Victoria\/South-West-Coast\/Lorne",11776.0,"Lorne",12.0],["Loxton, South Australia","\/South-Australia\/Murray\/Loxton",11790.0,"Loxton",12.0],["Lyndoch, South Australia","\/South-Australia\/Barossa-Valley\/Lyndoch",11787.0,"Lyndoch",12.0],["Mackay, Queensland","\/Queensland\/The-Mid-Tropics\/Mackay",12302.0,"Mackay",12.0],["Macksville, New South Wales","\/New-South-Wales\/Holiday-Coast\/Macksville",11769.0,"Macksville",12.0],["Macquarie Street, Hobart, Tasmania","\/Tasmania\/Hobart\/Macquarie-Street",10441.0,"Macquarie Street",13.0],["Madura, Western Australia","\/Western-Australia\/Esperance-and-Nullarbor\/Madura",11798.0,"Madura",12.0],["Maffra, Victoria","\/Victoria\/East-Gippsland\/Maffra",11782.0,"Maffra",12.0],["Maitland, New South Wales","\/New-South-Wales\/Hunter-Valley-and-Coast\/Maitland",11750.0,"Maitland",12.0],["Maitland, South Australia","\/South-Australia\/Yorke-Peninsula\/Maitland",11789.0,"Maitland",12.0],["Maldon, Victoria","\/Victoria\/Goldfields\/Maldon",11777.0,"Maldon",12.0],["Maleny, Queensland","\/Queensland\/Sunshine-Coast\/Maleny",11812.0,"Maleny",12.0],["Mallacoota, Victoria","\/Victoria\/East-Gippsland\/Mallacoota",11782.0,"Mallacoota",12.0],["Mallee Country, Victoria","\/Victoria\/Mallee-Country",16.0,"Mallee Country",10.0],["Mandurah, Western Australia","\/Western-Australia\/The-South-West\/Mandurah",11795.0,"Mandurah",12.0],["Manilla, New South Wales","\/New-South-Wales\/New-England-and-the-North-west\/Manilla",15338.0,"Manilla",12.0],["Manjimup, Western Australia","\/Western-Australia\/The-South-West\/Manjimup",11795.0,"Manjimup",12.0],["Mannum, South Australia","\/South-Australia\/Murray\/Mannum",11790.0,"Mannum",12.0],["Mansfield, Victoria","\/Victoria\/High-Country\/Mansfield",11781.0,"Mansfield",12.0],["Marble Bar, Western Australia","\/Western-Australia\/Pilbara\/Marble-Bar",11801.0,"Marble Bar",12.0],["Mareeba, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Mareeba",11820.0,"Mareeba",12.0],["Margaret River, Western Australia","\/Western-Australia\/The-South-West\/Margaret-River",11795.0,"Margaret River",12.0],["Maroochydore, Queensland","\/Queensland\/Sunshine-Coast\/Maroochydore",11812.0,"Maroochydore",12.0],["Marree, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Marree",11792.0,"Marree",12.0],["Maryborough, Queensland","\/Queensland\/Fraser-Island-and-Coast\/Maryborough",11813.0,"Maryborough",12.0],["Maryborough, Victoria","\/Victoria\/Goldfields\/Maryborough",11777.0,"Maryborough",12.0],["Marysville, Victoria","\/Victoria\/Yarra-and-Dandenongs\/Marysville",11772.0,"Marysville",12.0],["Mataranka, Northern Territory","\/Northern-Territory\/Gulf-to-Gulf\/Mataranka",11806.0,"Mataranka",12.0],["Mclaren Vale, South Australia","\/South-Australia\/Fleurieu-Peninsula\/Mclaren-Vale",11784.0,"Mclaren Vale",12.0],["Meekatharra, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Meekatharra",11800.0,"Meekatharra",12.0],["Melbourne, Victoria","\/Victoria\/Melbourne",16.0,"Melbourne",8.0],["Melrose, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Melrose",11792.0,"Melrose",12.0],["Menindee, New South Wales","\/New-South-Wales\/Outback\/Menindee",11759.0,"Menindee",12.0],["Meningie, South Australia","\/South-Australia\/Murray\/Meningie",11790.0,"Meningie",12.0],["Merimbula, New South Wales","\/New-South-Wales\/South-Coast\/Merimbula",11754.0,"Merimbula",12.0],["Merredin, Western Australia","\/Western-Australia\/Heartlands\/Merredin",11796.0,"Merredin",12.0],["Merriwa, New South Wales","\/New-South-Wales\/Central-West\/Merriwa",11770.0,"Merriwa",12.0],["Mid-North, South Australia","\/South-Australia\/Mid-North",88.0,"Mid-North",10.0],["Midlands & The North, Tasmania","\/Tasmania\/Midlands-and-The-North",86.0,"Midlands & The North",10.0],["Miena, Tasmania","\/Tasmania\/Midlands-and-The-North\/Miena",11981.0,"Miena",12.0],["Milawa, Victoria","\/Victoria\/High-Country\/Milawa",11781.0,"Milawa",12.0],["Mildura, Victoria","\/Victoria\/Mallee-Country\/Mildura",11779.0,"Mildura",12.0],["Miles, Queensland","\/Queensland\/Darling-Downs\/Miles",11811.0,"Miles",12.0],["Millaa Millaa, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Millaa-Millaa",11820.0,"Millaa Millaa",12.0],["Millicent, South Australia","\/South-Australia\/Limestone-Coast\/Millicent",11791.0,"Millicent",12.0],["Minlaton, South Australia","\/South-Australia\/Yorke-Peninsula\/Minlaton",11789.0,"Minlaton",12.0],["Mintaro, South Australia","\/South-Australia\/Mid-North\/Mintaro",11788.0,"Mintaro",12.0],["Miriam Vale, Queensland","\/Queensland\/Capricorn\/Miriam-Vale",11818.0,"Miriam Vale",12.0],["Mission Beach, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Mission-Beach",11820.0,"Mission Beach",12.0],["Mitchell, Queensland","\/Queensland\/Outback\/Mitchell",11823.0,"Mitchell",12.0],["Moe, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Moe",11774.0,"Moe",12.0],["Mole Creek, Tasmania","\/Tasmania\/Midlands-and-The-North\/Mole-Creek",11981.0,"Mole Creek",12.0],["Monto, Queensland","\/Queensland\/Capricorn\/Monto",11818.0,"Monto",12.0],["Mooloolaba, Queensland","\/Queensland\/Sunshine-Coast\/Mooloolaba",11812.0,"Mooloolaba",12.0],["Moonta, South Australia","\/South-Australia\/Yorke-Peninsula\/Moonta",11789.0,"Moonta",12.0],["Moora, Western Australia","\/Western-Australia\/Heartlands\/Moora",11796.0,"Moora",12.0],["Moranbah, Queensland","\/Queensland\/The-Mid-Tropics\/Moranbah",11819.0,"Moranbah",12.0],["Morawa, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Morawa",11800.0,"Morawa",12.0],["Moree, New South Wales","\/New-South-Wales\/New-England\/Moree",11755.0,"Moree",12.0],["Morgan, South Australia","\/South-Australia\/Murray\/Morgan",11790.0,"Morgan",12.0],["Mornington Peninsula, Victoria","\/Victoria\/Mornington-Peninsula",16.0,"Mornington Peninsula",10.0],["Mornington, Victoria","\/Victoria\/Mornington-Peninsula\/Mornington",11773.0,"Mornington",12.0],["Moruya, New South Wales","\/New-South-Wales\/South-Coast\/Moruya",11754.0,"Moruya",12.0],["Morwell, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Morwell",11774.0,"Morwell",12.0],["Moss Vale, New South Wales","\/New-South-Wales\/Southern-Highlands\/Moss-Vale",11570.0,"Moss Vale",12.0],["Mossman, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Mossman",11820.0,"Mossman",12.0],["Mount Barker, Western Australia","\/Western-Australia\/Great-Southern\/Mount-Barker",11797.0,"Mount Barker",12.0],["Mount Beauty, Victoria","\/Victoria\/High-Country\/Mount-Beauty",11781.0,"Mount Beauty",12.0],["Mount Gambier, South Australia","\/South-Australia\/Limestone-Coast\/Mount-Gambier",11791.0,"Mount Gambier",12.0],["Mount Isa, Queensland","\/Queensland\/Outback\/Mount-Isa",11823.0,"Mount Isa",12.0],["Mount Magnet, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Mount-Magnet",11800.0,"Mount Magnet",12.0],["Mount Morgan, Queensland","\/Queensland\/Capricorn\/Mount-Morgan",11818.0,"Mount Morgan",12.0],["Mount Surprise, Queensland","\/Queensland\/Gulf-Savannah\/Mount-Surprise",11822.0,"Mount Surprise",12.0],["Mourilyan, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Mourilyan",11820.0,"Mourilyan",12.0],["Mudgee, New South Wales","\/New-South-Wales\/Central-West\/Mudgee",11770.0,"Mudgee",12.0],["Mullewa, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Mullewa",11800.0,"Mullewa",12.0],["Mullumbimby, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Mullumbimby",11748.0,"Mullumbimby",12.0],["Mulwala, New South Wales","\/New-South-Wales\/The-Murray\/Mulwala",11761.0,"Mulwala",12.0],["Mundaring, Western Australia","\/Western-Australia\/Darling-and-Swan\/Mundaring",11794.0,"Mundaring",12.0],["Mundubbera, Queensland","\/Queensland\/Capricorn\/Mundubbera",11818.0,"Mundubbera",12.0],["Murgon, Queensland","\/Queensland\/Brisbane-Hinterland\/Murgon",11808.0,"Murgon",12.0],["Murray Bridge, South Australia","\/South-Australia\/Murray\/Murray-Bridge",11790.0,"Murray Bridge",12.0],["Murray, South Australia","\/South-Australia\/Murray",88.0,"Murray",10.0],["Murrayville, Victoria","\/Victoria\/Mallee-Country\/Murrayville",11779.0,"Murrayville",12.0],["Murrurundi, New South Wales","\/New-South-Wales\/New-England\/Murrurundi",11755.0,"Murrurundi",12.0],["Murwillumbah, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Murwillumbah",11748.0,"Murwillumbah",12.0],["Muswellbrook, New South Wales","\/New-South-Wales\/Hunter-Valley-and-Coast\/Muswellbrook",11750.0,"Muswellbrook",12.0],["Muttaburra, Queensland","\/Queensland\/Outback\/Muttaburra",11823.0,"Muttaburra",12.0],["Myrtleford, Victoria","\/Victoria\/High-Country\/Myrtleford",11781.0,"Myrtleford",12.0],["Nagambie, Victoria","\/Victoria\/Goulburn-and-Murray\/Nagambie",11780.0,"Nagambie",12.0],["Nambour, Queensland","\/Queensland\/Sunshine-Coast\/Nambour",11812.0,"Nambour",12.0],["Nambucca Heads, New South Wales","\/New-South-Wales\/Holiday-Coast\/Nambucca-Heads",11769.0,"Nambucca Heads",12.0],["Nanango, Queensland","\/Queensland\/Brisbane-Hinterland\/Nanango",11808.0,"Nanango",12.0],["Nannup, Western Australia","\/Western-Australia\/The-South-West\/Nannup",11795.0,"Nannup",12.0],["Naracoorte, South Australia","\/South-Australia\/Limestone-Coast\/Naracoorte",11791.0,"Naracoorte",12.0],["Narooma, New South Wales","\/New-South-Wales\/South-Coast\/Narooma",11754.0,"Narooma",12.0],["Narrabri, New South Wales","\/New-South-Wales\/New-England\/Narrabri",11755.0,"Narrabri",12.0],["Narrandera, New South Wales","\/New-South-Wales\/Riverina\/Narrandera",11760.0,"Narrandera",12.0],["Narrogin, Western Australia","\/Western-Australia\/Heartlands\/Narrogin",11796.0,"Narrogin",12.0],["Natimuk, Victoria","\/Victoria\/Grampians-and-Central-West\/Natimuk",11778.0,"Natimuk",12.0],["National Parks","\/Explore-website\/Publications\/Guides\/National-Parks",12400.0,"National Parks",27.0],["Nelson Bay, New South Wales","\/New-South-Wales\/Hunter-Valley-and-Coast\/Nelson-Bay",11750.0,"Nelson Bay",12.0],["Nerang, Queensland","\/Queensland\/Gold-Coast-and-Hinterland\/Nerang",11810.0,"Nerang",12.0],["New England, New South Wales","\/New-South-Wales\/New-England",17.0,"New England",10.0],["New Farm & Newstead, Brisbane, Queensland","\/Queensland\/Brisbane\/New-Farm-and-Newstead",8271.0,"New Farm & Newstead",13.0],["New Norcia, Western Australia","\/Western-Australia\/Heartlands\/New-Norcia",11796.0,"New Norcia",12.0],["New Norfolk, Tasmania","\/Tasmania\/South-East\/New-Norfolk",11978.0,"New Norfolk",12.0],["New South Wales","\/New-South-Wales",6.0,"New South Wales",4.0],["Newcastle, New South Wales","\/New-South-Wales\/Hunter-Valley-and-Coast\/Newcastle",11750.0,"Newcastle",12.0],["Newman, Western Australia","\/Western-Australia\/Pilbara\/Newman",11801.0,"Newman",12.0],["Nhill, Victoria","\/Victoria\/Grampians-and-Central-West\/Nhill",11778.0,"Nhill",12.0],["Nhulunbuy, Northern Territory","\/Northern-Territory\/Kakadu-and-Arnhem-Land\/Nhulunbuy",11804.0,"Nhulunbuy",12.0],["Nimbin, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Nimbin",11748.0,"Nimbin",12.0],["Noonamah, Northern Territory","\/Northern-Territory\/Around-Darwin\/Noonamah",11805.0,"Noonamah",12.0],["Noosa Heads, Queensland","\/Queensland\/Sunshine-Coast\/Noosa-Heads",11812.0,"Noosa Heads",12.0],["Normanton, Queensland","\/Queensland\/Gulf-Savannah\/Normanton",11822.0,"Normanton",12.0],["Norseman, Western Australia","\/Western-Australia\/Goldfields\/Norseman",11799.0,"Norseman",12.0],["North Tamborine, Queensland","\/Queensland\/Gold-Coast-and-Hinterland\/North-Tamborine",11810.0,"North Tamborine",12.0],["North, Adelaide, South Australia","\/South-Australia\/Adelaide\/North",2627.0,"North",13.0],["North, Canberra, Australian Capital Territory","\/Australian-Capital-Territory\/Canberra\/North",5806.0,"North",13.0],["North, Darwin, Northern Territory","\/Northern-Territory\/Darwin\/North",10440.0,"North",13.0],["North, Hobart, Tasmania","\/Tasmania\/Hobart\/North",10441.0,"North",13.0],["North-East, Darwin, Northern Territory","\/Northern-Territory\/Darwin\/North-East",10440.0,"North-East",13.0],["North-East, Melbourne, Victoria","\/Victoria\/Melbourne\/North-East",18.0,"North-East",13.0],["North-East, Sydney, New South Wales","\/New-South-Wales\/Sydney\/North-East",19.0,"North-East",13.0],["North-West, Adelaide, South Australia","\/South-Australia\/Adelaide\/North-West",2627.0,"North-West",13.0],["North-West, Canberra, Australian Capital Territory","\/Australian-Capital-Territory\/Canberra\/North-West",5806.0,"North-West",13.0],["North-West, Tasmania","\/Tasmania\/North-West",86.0,"North-West",10.0],["North-Western Beachside, Perth, Western Australia","\/Western-Australia\/Perth\/North-Western-Beachside",2626.0,"North-Western Beachside",13.0],["Northam, Western Australia","\/Western-Australia\/Heartlands\/Northam",11796.0,"Northam",12.0],["Northampton, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Northampton",11800.0,"Northampton",12.0],["Northbridge, Perth, Western Australia","\/Western-Australia\/Perth\/Northbridge",2626.0,"Northbridge",13.0],["Northcliffe, Western Australia","\/Western-Australia\/The-South-West\/Northcliffe",11795.0,"Northcliffe",12.0],["Northern Territory","\/Northern-Territory",6.0,"Northern Territory",4.0],["Northern Waterfront, Hobart, Tasmania","\/Tasmania\/Hobart\/Northern-Waterfront",10441.0,"Northern Waterfront",13.0],["Nowra, New South Wales","\/New-South-Wales\/South-Coast\/Nowra",11754.0,"Nowra",12.0],["Nundle, New South Wales","\/New-South-Wales\/New-England\/Nundle",11755.0,"Nundle",12.0],["Nuriootpa, South Australia","\/South-Australia\/Barossa-Valley\/Nuriootpa",11787.0,"Nuriootpa",12.0],["Nyngan, New South Wales","\/New-South-Wales\/Central-West\/Nyngan",11770.0,"Nyngan",12.0],["Oakey, Queensland","\/Queensland\/Darling-Downs\/Oakey",11811.0,"Oakey",12.0],["Oatlands, Tasmania","\/Tasmania\/Midlands-and-The-North\/Oatlands",11981.0,"Oatlands",12.0],["Oberon, New South Wales","\/New-South-Wales\/Blue-Mountains\/Oberon",11752.0,"Oberon",12.0],["Ocean Grove, Victoria","\/Victoria\/Werribee-and-Bellarine\/Ocean-Grove",2652.0,"Ocean Grove",12.0],["Olinda, Victoria","\/Victoria\/Yarra-and-Dandenongs\/Olinda",11772.0,"Olinda",12.0],["Omeo, Victoria","\/Victoria\/East-Gippsland\/Omeo",11782.0,"Omeo",12.0],["Onslow, Western Australia","\/Western-Australia\/Pilbara\/Onslow",11801.0,"Onslow",12.0],["Oodnadatta, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Oodnadatta",11792.0,"Oodnadatta",12.0],["Orange, New South Wales","\/New-South-Wales\/Central-West\/Orange",11770.0,"Orange",12.0],["Orbost, Victoria","\/Victoria\/East-Gippsland\/Orbost",11782.0,"Orbost",12.0],["Outback Coast & Mid-West, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West",87.0,"Outback Coast & Mid-West",10.0],["Outback, New South Wales","\/New-South-Wales\/Outback",17.0,"Outback",10.0],["Outback, Queensland","\/Queensland\/Outback",85.0,"Outback",10.0],["Outer Eastern Bayside, Brisbane, Queensland","\/Queensland\/Brisbane\/Outer-Eastern-Bayside",8271.0,"Outer Eastern Bayside",13.0],["Outer North, Brisbane, Queensland","\/Queensland\/Brisbane\/Outer-North",8271.0,"Outer North",13.0],["Outer North-East, Darwin, Northern Territory","\/Northern-Territory\/Darwin\/Outer-North-East",10440.0,"Outer North-East",13.0],["Outer South, Perth, Western Australia","\/Western-Australia\/Perth\/Outer-South",2626.0,"Outer South",13.0],["Outer West, Sydney, New South Wales","\/New-South-Wales\/Sydney\/Outer-West",19.0,"Outer West",13.0],["Ouyen, Victoria","\/Victoria\/Mallee-Country\/Ouyen",11779.0,"Ouyen",12.0],["Palm Cove, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Palm-Cove",11820.0,"Palm Cove",12.0],["Parkes, New South Wales","\/New-South-Wales\/Central-West\/Parkes",11770.0,"Parkes",12.0],["Parliamentary Triangle & War Memorial, Canberra, Australian Capital Territory","\/Australian-Capital-Territory\/Canberra\/Parliamentary-Triangle-and-War-Memorial",5806.0,"Parliamentary Triangle & War Memorial",13.0],["Paynesville, Victoria","\/Victoria\/East-Gippsland\/Paynesville",11782.0,"Paynesville",12.0],["Pemberton, Western Australia","\/Western-Australia\/The-South-West\/Pemberton",11795.0,"Pemberton",12.0],["Penguin, Tasmania","\/Tasmania\/North-West\/Penguin",11980.0,"Penguin",12.0],["Penola, South Australia","\/South-Australia\/Limestone-Coast\/Penola",11791.0,"Penola",12.0],["Perth, Western Australia","\/Western-Australia\/Perth",87.0,"Perth",8.0],["Peterborough, South Australia","\/South-Australia\/Mid-North\/Peterborough",11788.0,"Peterborough",12.0],["Phillip Island & Gippsland, Victoria","\/Victoria\/Phillip-Island-and-Gippsland",16.0,"Phillip Island & Gippsland",10.0],["Picton, New South Wales","\/New-South-Wales\/Southern-Highlands\/Picton",11570.0,"Picton",12.0],["Pilbara, Western Australia","\/Western-Australia\/Pilbara",87.0,"Pilbara",10.0],["Pine Creek, Northern Territory","\/Northern-Territory\/Around-Darwin\/Pine-Creek",11805.0,"Pine Creek",12.0],["Pingelly, Western Australia","\/Western-Australia\/Heartlands\/Pingelly",11796.0,"Pingelly",12.0],["Pinjarra, Western Australia","\/Western-Australia\/The-South-West\/Pinjarra",11795.0,"Pinjarra",12.0],["Pinnaroo, South Australia","\/South-Australia\/Murray\/Pinnaroo",11790.0,"Pinnaroo",12.0],["Pocket Maps","\/Explore-website\/Publications\/Maps\/Pocket-Maps",12394.0,"Pocket Maps",27.0],["Polyart Maps","\/Explore-website\/Publications\/Maps\/Polyart-Maps",12394.0,"Polyart Maps",27.0],["Pomona, Queensland","\/Queensland\/Sunshine-Coast\/Pomona",11812.0,"Pomona",12.0],["Pontville, Tasmania","\/Tasmania\/South-East\/Pontville",11978.0,"Pontville",12.0],["Port Albert, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Port-Albert",11774.0,"Port Albert",12.0],["Port Arthur, Tasmania","\/Tasmania\/South-East\/Port-Arthur",11978.0,"Port Arthur",12.0],["Port Augusta, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Port-Augusta",11792.0,"Port Augusta",12.0],["Port Broughton, South Australia","\/South-Australia\/Yorke-Peninsula\/Port-Broughton",11789.0,"Port Broughton",12.0],["Port Campbell, Victoria","\/Victoria\/South-West-Coast\/Port-Campbell",11776.0,"Port Campbell",12.0],["Port Douglas, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Port-Douglas",11820.0,"Port Douglas",12.0],["Port Elliot, South Australia","\/South-Australia\/Fleurieu-Peninsula\/Port-Elliot",11784.0,"Port Elliot",12.0],["Port Fairy, Victoria","\/Victoria\/South-West-Coast\/Port-Fairy",11776.0,"Port Fairy",12.0],["Port Hedland, Western Australia","\/Western-Australia\/Pilbara\/Port-Hedland",11801.0,"Port Hedland",12.0],["Port Lincoln, South Australia","\/South-Australia\/Eyre-Peninsula-and-Nullarbor\/Port-Lincoln",11793.0,"Port Lincoln",12.0],["Port Macdonnell, South Australia","\/South-Australia\/Limestone-Coast\/Port-Macdonnell",11791.0,"Port Macdonnell",12.0],["Port Macquarie, New South Wales","\/New-South-Wales\/Holiday-Coast\/Port-Macquarie",11769.0,"Port Macquarie",12.0],["Port Pirie, South Australia","\/South-Australia\/Yorke-Peninsula\/Port-Pirie",11789.0,"Port Pirie",12.0],["Port Sorell, Tasmania","\/Tasmania\/North-West\/Port-Sorell",11980.0,"Port Sorell",12.0],["Port Victoria, South Australia","\/South-Australia\/Yorke-Peninsula\/Port-Victoria",11789.0,"Port Victoria",12.0],["Portland, Victoria","\/Victoria\/South-West-Coast\/Portland",11776.0,"Portland",12.0],["Proserpine, Queensland","\/Queensland\/The-Mid-Tropics\/Proserpine",11819.0,"Proserpine",12.0],["Pyramid Hill, Victoria","\/Victoria\/Goulburn-and-Murray\/Pyramid-Hill",11780.0,"Pyramid Hill",12.0],["Queanbeyan, New South Wales","\/New-South-Wales\/Capital-Country\/Queanbeyan",11757.0,"Queanbeyan",12.0],["Queens Domain, Hobart, Tasmania","\/Tasmania\/Hobart\/Queens-Domain",10441.0,"Queens Domain",13.0],["Queenscliff, Victoria","\/Victoria\/Werribee-and-Bellarine\/Queenscliff",2652.0,"Queenscliff",12.0],["Queensland","\/Queensland",6.0,"Queensland",4.0],["Queenstown, Tasmania","\/Tasmania\/North-West\/Queenstown",11980.0,"Queenstown",12.0],["Quilpie, Queensland","\/Queensland\/Outback\/Quilpie",11823.0,"Quilpie",12.0],["Quorn, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Quorn",11792.0,"Quorn",12.0],["Ravenshoe, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Ravenshoe",11820.0,"Ravenshoe",12.0],["Ravensthorpe, Western Australia","\/Western-Australia\/Esperance-and-Nullarbor\/Ravensthorpe",11798.0,"Ravensthorpe",12.0],["Raymond Terrace, New South Wales","\/New-South-Wales\/Hunter-Valley-and-Coast\/Raymond-Terrace",11750.0,"Raymond Terrace",12.0],["Red Centre, Northern Territory","\/Northern-Territory\/Red-Centre",89.0,"Red Centre",10.0],["Renmark, South Australia","\/South-Australia\/Murray\/Renmark",11790.0,"Renmark",12.0],["Richmond, New South Wales","\/New-South-Wales\/Central-Coast-and-Hawkesbury\/Richmond",11751.0,"Richmond",12.0],["Richmond, Queensland","\/Queensland\/Outback\/Richmond",11823.0,"Richmond",12.0],["Richmond, Tasmania","\/Tasmania\/South-East\/Richmond",11978.0,"Richmond",12.0],["Riverina, New South Wales","\/New-South-Wales\/Riverina",17.0,"Riverina",10.0],["Robe, South Australia","\/South-Australia\/Limestone-Coast\/Robe",11791.0,"Robe",12.0],["Robertson, New South Wales","\/New-South-Wales\/Southern-Highlands\/Robertson",11570.0,"Robertson",12.0],["Robinvale, Victoria","\/Victoria\/Mallee-Country\/Robinvale",11779.0,"Robinvale",12.0],["Rochester, Victoria","\/Victoria\/Goulburn-and-Murray\/Rochester",11780.0,"Rochester",12.0],["Rockhampton, Queensland","\/Queensland\/Capricorn\/Rockhampton",11818.0,"Rockhampton",12.0],["Rockingham, Western Australia","\/Western-Australia\/The-South-West\/Rockingham",11795.0,"Rockingham",12.0],["Roebourne, Western Australia","\/Western-Australia\/Pilbara\/Roebourne",11801.0,"Roebourne",12.0],["Roma Street Parkland, Brisbane, Queensland","\/Queensland\/Brisbane\/Roma-Street-Parkland",8271.0,"Roma Street Parkland",13.0],["Roma, Queensland","\/Queensland\/Darling-Downs\/Roma",11811.0,"Roma",12.0],["Rosebery, Tasmania","\/Tasmania\/North-West\/Rosebery",11980.0,"Rosebery",12.0],["Ross, Tasmania","\/Tasmania\/Midlands-and-The-North\/Ross",11981.0,"Ross",12.0],["Rottnest Island, Western Australia","\/Western-Australia\/Rottnest-Island",87.0,"Rottnest Island",10.0],["Roxby Downs, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Roxby-Downs",11792.0,"Roxby Downs",12.0],["Rushworth, Victoria","\/Victoria\/Goulburn-and-Murray\/Rushworth",11780.0,"Rushworth",12.0],["Rutherglen, Victoria","\/Victoria\/Goulburn-and-Murray\/Rutherglen",11780.0,"Rutherglen",12.0],["Rylstone, New South Wales","\/New-South-Wales\/Central-West\/Rylstone",11770.0,"Rylstone",12.0],["Sale, Victoria","\/Victoria\/East-Gippsland\/Sale",11782.0,"Sale",12.0],["Sarina, Queensland","\/Queensland\/The-Mid-Tropics\/Sarina",11819.0,"Sarina",12.0],["Scone, New South Wales","\/New-South-Wales\/Hunter-Valley-and-Coast\/Scone",11750.0,"Scone",12.0],["Scottsdale, Tasmania","\/Tasmania\/Midlands-and-The-North\/Scottsdale",11981.0,"Scottsdale",12.0],["Seymour, Victoria","\/Victoria\/Goulburn-and-Murray\/Seymour",11780.0,"Seymour",12.0],["Sheffield, Tasmania","\/Tasmania\/North-West\/Sheffield",11980.0,"Sheffield",12.0],["Shellharbour, New South Wales","\/New-South-Wales\/Southern-Highlands\/Shellharbour",11570.0,"Shellharbour",12.0],["Shepparton, Victoria","\/Victoria\/Goulburn-and-Murray\/Shepparton",11780.0,"Shepparton",12.0],["Singleton, New South Wales","\/New-South-Wales\/Hunter-Valley-and-Coast\/Singleton",11750.0,"Singleton",12.0],["Smithton, Tasmania","\/Tasmania\/North-West\/Smithton",11980.0,"Smithton",12.0],["Snowy Mountains, New South Wales","\/New-South-Wales\/Snowy-Mountains",17.0,"Snowy Mountains",10.0],["Sorell, Tasmania","\/Tasmania\/South-East\/Sorell",11978.0,"Sorell",12.0],["Sorrento, Victoria","\/Victoria\/Mornington-Peninsula\/Sorrento",11773.0,"Sorrento",12.0],["South Australia","\/South-Australia",6.0,"South Australia",4.0],["South Bank, Brisbane, Queensland","\/Queensland\/Brisbane\/South-Bank",8271.0,"South Bank",13.0],["South Coast, New South Wales","\/New-South-Wales\/South-Coast",17.0,"South Coast",10.0],["South, Adelaide, South Australia","\/South-Australia\/Adelaide\/South",2627.0,"South",13.0],["South, Canberra, Australian Capital Territory","\/Australian-Capital-Territory\/Canberra\/South",5806.0,"South",13.0],["South, Perth, Western Australia","\/Western-Australia\/Perth\/South",2626.0,"South",13.0],["South-East, Darwin, Northern Territory","\/Northern-Territory\/Darwin\/South-East",10440.0,"South-East",13.0],["South-East, Tasmania","\/Tasmania\/South-East",86.0,"South-East",10.0],["South-Eastern Beachside, Sydney, New South Wales","\/New-South-Wales\/Sydney\/South-Eastern-Beachside",19.0,"South-Eastern Beachside",13.0],["South-West Coast, Victoria","\/Victoria\/South-West-Coast",16.0,"South-West Coast",10.0],["South-West Wilderness, Tasmania","\/Tasmania\/South-West-Wilderness",86.0,"South-West Wilderness",10.0],["South-West, Canberra, Australian Capital Territory","\/Australian-Capital-Territory\/Canberra\/South-West",5806.0,"South-West",13.0],["South-Western Beachside, Perth, Western Australia","\/Western-Australia\/Perth\/South-Western-Beachside",2626.0,"South-Western Beachside",13.0],["Southbank, Melbourne, Victoria","\/Victoria\/Melbourne\/Southbank",18.0,"Southbank",13.0],["Southern Bayside, Adelaide, South Australia","\/South-Australia\/Adelaide\/Southern-Bayside",2627.0,"Southern Bayside",13.0],["Southern Cross, Western Australia","\/Western-Australia\/Heartlands\/Southern-Cross",11796.0,"Southern Cross",12.0],["Southern Highlands, New South Wales","\/New-South-Wales\/Southern-Highlands",17.0,"Southern Highlands",10.0],["Southern Reef Islands, Queensland","\/Queensland\/Southern-Reef-Islands",85.0,"Southern Reef Islands",10.0],["Southern Waterfront, Hobart, Tasmania","\/Tasmania\/Hobart\/Southern-Waterfront",10441.0,"Southern Waterfront",13.0],["Spa & Garden Country, Victoria","\/Victoria\/Spa-and-Garden-Country",16.0,"Spa & Garden Country",10.0],["Springsure, Queensland","\/Queensland\/Capricorn\/Springsure",11818.0,"Springsure",12.0],["St Arnaud, Victoria","\/Victoria\/Goldfields\/St-Arnaud",11777.0,"St Arnaud",12.0],["St George, Queensland","\/Queensland\/Darling-Downs\/St-George",11811.0,"St George",12.0],["St Helens, Tasmania","\/Tasmania\/East-Coast\/St-Helens",11977.0,"St Helens",12.0],["St Marys, Tasmania","\/Tasmania\/East-Coast\/St-Marys",11977.0,"St Marys",12.0],["Stanley, Tasmania","\/Tasmania\/North-West\/Stanley",11980.0,"Stanley",12.0],["Stansbury, South Australia","\/South-Australia\/Yorke-Peninsula\/Stansbury",11789.0,"Stansbury",12.0],["Stanthorpe, Queensland","\/Queensland\/Darling-Downs\/Stanthorpe",11811.0,"Stanthorpe",12.0],["State Guides","\/Explore-website\/Publications\/Guides\/State-Guides",12400.0,"State Guides",27.0],["State Square, Darwin, Northern Territory","\/Northern-Territory\/Darwin\/State-Square",10440.0,"State Square",13.0],["Stawell, Victoria","\/Victoria\/Grampians-and-Central-West\/Stawell",11778.0,"Stawell",12.0],["Strahan, Tasmania","\/Tasmania\/South-West-Wilderness\/Strahan",11979.0,"Strahan",12.0],["Strathalbyn, South Australia","\/South-Australia\/Fleurieu-Peninsula\/Strathalbyn",11784.0,"Strathalbyn",12.0],["Strathpine, Queensland","\/Queensland\/Brisbane-Hinterland\/Strathpine",11808.0,"Strathpine",12.0],["Streaky Bay, South Australia","\/South-Australia\/Eyre-Peninsula-and-Nullarbor\/Streaky-Bay",11793.0,"Streaky Bay",12.0],["Stroud, New South Wales","\/New-South-Wales\/Holiday-Coast\/Stroud",11769.0,"Stroud",12.0],["Sunshine Coast, Queensland","\/Queensland\/Sunshine-Coast",85.0,"Sunshine Coast",10.0],["Surfers Paradise, Queensland","\/Queensland\/Gold-Coast-and-Hinterland\/Surfers-Paradise",11810.0,"Surfers Paradise",12.0],["Swan Hill, Victoria","\/Victoria\/Mallee-Country\/Swan-Hill",11779.0,"Swan Hill",12.0],["Swan Reach, South Australia","\/South-Australia\/Murray\/Swan-Reach",11790.0,"Swan Reach",12.0],["Swansea, Tasmania","\/Tasmania\/East-Coast\/Swansea",11977.0,"Swansea",12.0],["Sydney, New South Wales","\/New-South-Wales\/Sydney",17.0,"Sydney",8.0],["Tallangatta, Victoria","\/Victoria\/High-Country\/Tallangatta",11781.0,"Tallangatta",12.0],["Tambo, Queensland","\/Queensland\/Outback\/Tambo",11823.0,"Tambo",12.0],["Tamworth, New South Wales","\/New-South-Wales\/New-England\/Tamworth",11755.0,"Tamworth",12.0],["Tanunda, South Australia","\/South-Australia\/Barossa-Valley\/Tanunda",11787.0,"Tanunda",12.0],["Taree, New South Wales","\/New-South-Wales\/Holiday-Coast\/Taree",11769.0,"Taree",12.0],["Taroom, Queensland","\/Queensland\/Capricorn\/Taroom",11818.0,"Taroom",12.0],["Tasmania","\/Tasmania",6.0,"Tasmania",4.0],["Tathra, New South Wales","\/New-South-Wales\/South-Coast\/Tathra",11754.0,"Tathra",12.0],["Temora, New South Wales","\/New-South-Wales\/Riverina\/Temora",11760.0,"Temora",12.0],["Tennant Creek, Northern Territory","\/Northern-Territory\/Red-Centre\/Tennant-Creek",11807.0,"Tennant Creek",12.0],["Tenterfield, New South Wales","\/New-South-Wales\/New-England\/Tenterfield",11755.0,"Tenterfield",12.0],["Terang, Victoria","\/Victoria\/South-West-Coast\/Terang",11776.0,"Terang",12.0],["Terrigal, New South Wales","\/New-South-Wales\/Central-Coast-and-Hawkesbury\/Terrigal",11751.0,"Terrigal",12.0],["Texas, Queensland","\/Queensland\/Darling-Downs\/Texas",11811.0,"Texas",12.0],["The Entrance, New South Wales","\/New-South-Wales\/Central-Coast-and-Hawkesbury\/The-Entrance",11751.0,"The Entrance",12.0],["The Mid-Tropics, Queensland","\/Queensland\/The-Mid-Tropics",85.0,"The Mid-Tropics",10.0],["The Murray, New South Wales","\/New-South-Wales\/The-Murray",17.0,"The Murray",10.0],["The Rocks, Sydney, New South Wales","\/New-South-Wales\/Sydney\/The-Rocks",19.0,"The Rocks",13.0],["The South-West, Western Australia","\/Western-Australia\/The-South-West",87.0,"The South-West",10.0],["The Wharf Precinct, Darwin, Northern Territory","\/Northern-Territory\/Darwin\/The-Wharf-Precinct",10440.0,"The Wharf Precinct",13.0],["Theodore, Queensland","\/Queensland\/Capricorn\/Theodore",11818.0,"Theodore",12.0],["Thredbo, New South Wales","\/New-South-Wales\/Snowy-Mountains\/Thredbo",11758.0,"Thredbo",12.0],["Ti Tree, Northern Territory","\/Northern-Territory\/Red-Centre\/Ti-Tree",11807.0,"Ti Tree",12.0],["Tibooburra, New South Wales","\/New-South-Wales\/Outback\/Tibooburra",11759.0,"Tibooburra",12.0],["Timber Creek, Northern Territory","\/Northern-Territory\/Gulf-to-Gulf\/Timber-Creek",11806.0,"Timber Creek",12.0],["Tin Can Bay, Queensland","\/Queensland\/Sunshine-Coast\/Tin-Can-Bay",11812.0,"Tin Can Bay",12.0],["Tocumwal, New South Wales","\/New-South-Wales\/The-Murray\/Tocumwal",11761.0,"Tocumwal",12.0],["Tom Price, Western Australia","\/Western-Australia\/Pilbara\/Tom-Price",11801.0,"Tom Price",12.0],["Toodyay, Western Australia","\/Western-Australia\/Heartlands\/Toodyay",11796.0,"Toodyay",12.0],["Toowoomba, Queensland","\/Queensland\/Darling-Downs\/Toowoomba",11811.0,"Toowoomba",12.0],["Torquay, Victoria","\/Victoria\/South-West-Coast\/Torquay",11776.0,"Torquay",12.0],["Townsville, Queensland","\/Queensland\/The-Mid-Tropics\/Townsville",11819.0,"Townsville",12.0],["Traralgon, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Traralgon",11774.0,"Traralgon",12.0],["Triabunna, Tasmania","\/Tasmania\/East-Coast\/Triabunna",11977.0,"Triabunna",12.0],["Tropical North Coast, New South Wales","\/New-South-Wales\/Tropical-North-Coast",17.0,"Tropical North Coast",10.0],["Tropical North Islands, Queensland","\/Queensland\/Tropical-North-Islands",85.0,"Tropical North Islands",10.0],["Tully, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Tully",11820.0,"Tully",12.0],["Tumbarumba, New South Wales","\/New-South-Wales\/Riverina\/Tumbarumba",11760.0,"Tumbarumba",12.0],["Tumby Bay, South Australia","\/South-Australia\/Eyre-Peninsula-and-Nullarbor\/Tumby-Bay",11793.0,"Tumby Bay",12.0],["Tumut, New South Wales","\/New-South-Wales\/Riverina\/Tumut",11760.0,"Tumut",12.0],["Tweed Heads, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Tweed-Heads",11748.0,"Tweed Heads",12.0],["Ulladulla, New South Wales","\/New-South-Wales\/South-Coast\/Ulladulla",11754.0,"Ulladulla",12.0],["Ulverstone, Tasmania","\/Tasmania\/North-West\/Ulverstone",11980.0,"Ulverstone",12.0],["Uralla, New South Wales","\/New-South-Wales\/New-England\/Uralla",11755.0,"Uralla",12.0],["Urunga, New South Wales","\/New-South-Wales\/Holiday-Coast\/Urunga",11769.0,"Urunga",12.0],["Victor Harbor, South Australia","\/South-Australia\/Fleurieu-Peninsula\/Victor-Harbor",11784.0,"Victor Harbor",12.0],["Victoria","\/Victoria",6.0,"Victoria",4.0],["Wagga Wagga, New South Wales","\/New-South-Wales\/Riverina\/Wagga-Wagga",11760.0,"Wagga Wagga",12.0],["Wagin, Western Australia","\/Western-Australia\/Heartlands\/Wagin",11796.0,"Wagin",12.0],["Waikerie, South Australia","\/South-Australia\/Murray\/Waikerie",11790.0,"Waikerie",12.0],["Walcha, New South Wales","\/New-South-Wales\/New-England\/Walcha",11755.0,"Walcha",12.0],["Walgett, New South Wales","\/New-South-Wales\/Central-West\/Walgett",11770.0,"Walgett",12.0],["Walhalla, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Walhalla",11774.0,"Walhalla",12.0],["Walking","\/Explore-website\/Publications\/Guides\/Walking",12400.0,"Walking",27.0],["Wallaroo, South Australia","\/South-Australia\/Yorke-Peninsula\/Wallaroo",11789.0,"Wallaroo",12.0],["Walpole, Western Australia","\/Western-Australia\/The-South-West\/Walpole",11795.0,"Walpole",12.0],["Wangaratta, Victoria","\/Victoria\/High-Country\/Wangaratta",11781.0,"Wangaratta",12.0],["Waratah, Tasmania","\/Tasmania\/North-West\/Waratah",11980.0,"Waratah",12.0],["Warburton, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Warburton",11774.0,"Warburton",12.0],["Warialda, New South Wales","\/New-South-Wales\/New-England\/Warialda",11755.0,"Warialda",12.0],["Warracknabeal, Victoria","\/Victoria\/Grampians-and-Central-West\/Warracknabeal",11778.0,"Warracknabeal",12.0],["Warragul, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Warragul",11774.0,"Warragul",12.0],["Warrnambool, Victoria","\/Victoria\/South-West-Coast\/Warrnambool",11776.0,"Warrnambool",12.0],["Warwick, Queensland","\/Queensland\/Darling-Downs\/Warwick",11811.0,"Warwick",12.0],["Wauchope, New South Wales","\/New-South-Wales\/Holiday-Coast\/Wauchope",11769.0,"Wauchope",12.0],["Wauchope, Northern Territory","\/Northern-Territory\/Red-Centre\/Wauchope",11807.0,"Wauchope",12.0],["Wedderburn, Victoria","\/Victoria\/Goldfields\/Wedderburn",11777.0,"Wedderburn",12.0],["Wee Waa, New South Wales","\/New-South-Wales\/New-England\/Wee-Waa",11755.0,"Wee Waa",12.0],["Weipa, Queensland","\/Queensland\/Cape-York\/Weipa",11821.0,"Weipa",12.0],["Wellington, New South Wales","\/New-South-Wales\/Central-West\/Wellington",11770.0,"Wellington",12.0],["Welshpool, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Welshpool",11774.0,"Welshpool",12.0],["Wentworth, New South Wales","\/New-South-Wales\/Outback\/Wentworth",11759.0,"Wentworth",12.0],["Werribee & Bellarine, Victoria","\/Victoria\/Werribee-and-Bellarine",16.0,"Werribee & Bellarine",10.0],["West Wyalong, New South Wales","\/New-South-Wales\/Central-West\/West-Wyalong",11770.0,"West Wyalong",12.0],["West, Brisbane, Queensland","\/Queensland\/Brisbane\/West",8271.0,"West",13.0],["West, Sydney, New South Wales","\/New-South-Wales\/Sydney\/West",19.0,"West",13.0],["Westbury, Tasmania","\/Tasmania\/Midlands-and-The-North\/Westbury",11981.0,"Westbury",12.0],["Western Australia","\/Western-Australia",6.0,"Western Australia",4.0],["Western Bayside, Adelaide, South Australia","\/South-Australia\/Adelaide\/Western-Bayside",2627.0,"Western Bayside",13.0],["Western Bayside, Melbourne, Victoria","\/Victoria\/Melbourne\/Western-Bayside",18.0,"Western Bayside",13.0],["White Cliffs, New South Wales","\/New-South-Wales\/Outback\/White-Cliffs",11759.0,"White Cliffs",12.0],["Whitemark, Tasmania","\/Tasmania\/Bass-Strait-Islands\/Whitemark",11982.0,"Whitemark",12.0],["Whitsunday Islands, Queensland","\/Queensland\/Whitsunday-Islands",85.0,"Whitsunday Islands",10.0],["Whyalla, South Australia","\/South-Australia\/Eyre-Peninsula-and-Nullarbor\/Whyalla",11793.0,"Whyalla",12.0],["Wickepin, Western Australia","\/Western-Australia\/Heartlands\/Wickepin",11796.0,"Wickepin",12.0],["Willunga, South Australia","\/South-Australia\/Fleurieu-Peninsula\/Willunga",11784.0,"Willunga",12.0],["Wilmington, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Wilmington",11792.0,"Wilmington",12.0],["Wilpena, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Wilpena",11792.0,"Wilpena",12.0],["Winchelsea, Victoria","\/Victoria\/South-West-Coast\/Winchelsea",11776.0,"Winchelsea",12.0],["Windsor, New South Wales","\/New-South-Wales\/Central-Coast-and-Hawkesbury\/Windsor",11751.0,"Windsor",12.0],["Wingham, New South Wales","\/New-South-Wales\/Holiday-Coast\/Wingham",11769.0,"Wingham",12.0],["Winton, Queensland","\/Queensland\/Outback\/Winton",11823.0,"Winton",12.0],["Wisemans Ferry, New South Wales","\/New-South-Wales\/Central-Coast-and-Hawkesbury\/Wisemans-Ferry",11751.0,"Wisemans Ferry",12.0],["Wodonga, Victoria","\/Victoria\/High-Country\/Wodonga",11781.0,"Wodonga",12.0],["Wollongong, New South Wales","\/New-South-Wales\/Southern-Highlands\/Wollongong",11570.0,"Wollongong",12.0],["Wonthaggi, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Wonthaggi",11774.0,"Wonthaggi",12.0],["Woodend, Victoria","\/Victoria\/Spa-and-Garden-Country\/Woodend",11775.0,"Woodend",12.0],["Woolgoolga, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Woolgoolga",11748.0,"Woolgoolga",12.0],["Woomera, South Australia","\/South-Australia\/Flinders-Ranges-and-Outback\/Woomera",11792.0,"Woomera",12.0],["Woy Woy, New South Wales","\/New-South-Wales\/Central-Coast-and-Hawkesbury\/Woy-Woy",11751.0,"Woy Woy",12.0],["Wudinna, South Australia","\/South-Australia\/Eyre-Peninsula-and-Nullarbor\/Wudinna",11793.0,"Wudinna",12.0],["Wycheproof, Victoria","\/Victoria\/Grampians-and-Central-West\/Wycheproof",11778.0,"Wycheproof",12.0],["Wyndham, Western Australia","\/Western-Australia\/Kimberley\/Wyndham",11802.0,"Wyndham",12.0],["Wynyard, Tasmania","\/Tasmania\/North-West\/Wynyard",11980.0,"Wynyard",12.0],["Wyong, New South Wales","\/New-South-Wales\/Central-Coast-and-Hawkesbury\/Wyong",11751.0,"Wyong",12.0],["Yackandandah, Victoria","\/Victoria\/High-Country\/Yackandandah",11781.0,"Yackandandah",12.0],["Yalgoo, Western Australia","\/Western-Australia\/Outback-Coast-and-Mid-West\/Yalgoo",11800.0,"Yalgoo",12.0],["Yallingup, Western Australia","\/Western-Australia\/The-South-West\/Yallingup",11795.0,"Yallingup",12.0],["Yamba, New South Wales","\/New-South-Wales\/Tropical-North-Coast\/Yamba",11748.0,"Yamba",12.0],["Yanchep, Western Australia","\/Western-Australia\/Heartlands\/Yanchep",11796.0,"Yanchep",12.0],["Yandina, Queensland","\/Queensland\/Sunshine-Coast\/Yandina",11812.0,"Yandina",12.0],["Yankalilla, South Australia","\/South-Australia\/Fleurieu-Peninsula\/Yankalilla",11784.0,"Yankalilla",12.0],["Yarra & Dandenongs, Victoria","\/Victoria\/Yarra-and-Dandenongs",16.0,"Yarra & Dandenongs",10.0],["Yarra Glen, Victoria","\/Victoria\/Yarra-and-Dandenongs\/Yarra-Glen",11772.0,"Yarra Glen",12.0],["Yarram, Victoria","\/Victoria\/Phillip-Island-and-Gippsland\/Yarram",11774.0,"Yarram",12.0],["Yarrawonga, Victoria","\/Victoria\/Goulburn-and-Murray\/Yarrawonga",11780.0,"Yarrawonga",12.0],["Yass, New South Wales","\/New-South-Wales\/Capital-Country\/Yass",11757.0,"Yass",12.0],["Yea, Victoria","\/Victoria\/Goulburn-and-Murray\/Yea",11780.0,"Yea",12.0],["Yeppoon, Queensland","\/Queensland\/Capricorn\/Yeppoon",11818.0,"Yeppoon",12.0],["York, Western Australia","\/Western-Australia\/Heartlands\/York",11796.0,"York",12.0],["Yorke Peninsula, South Australia","\/South-Australia\/Yorke-Peninsula",88.0,"Yorke Peninsula",10.0],["Yorketown, South Australia","\/South-Australia\/Yorke-Peninsula\/Yorketown",11789.0,"Yorketown",12.0],["Young, New South Wales","\/New-South-Wales\/Capital-Country\/Young",11757.0,"Young",12.0],["Yulara, Northern Territory","\/Northern-Territory\/Red-Centre\/Yulara",11807.0,"Yulara",12.0],["Yungaburra, Queensland","\/Queensland\/Cairns-and-The-Tropics\/Yungaburra",11820.0,"Yungaburra",12.0],["Zeehan, Tasmania","\/Tasmania\/North-West\/Zeehan",11980.0,"Zeehan",12.0]]}};// ----------------------------------------------------------------------------
// markItUp! Universal MarkUp Engine, JQuery plugin
// v 1.1.5
// Dual licensed under the MIT and GPL licenses.
// ----------------------------------------------------------------------------
// Copyright (C) 2007-2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// ----------------------------------------------------------------------------
(function($) {
	$.fn.markItUp = function(settings, extraSettings) {
		var options, ctrlKey, shiftKey, altKey;
		ctrlKey = shiftKey = altKey = false;

		options = {	id:						'',
					nameSpace:				'',
					root:					'',
					previewInWindow:		'', // 'width=800, height=600, resizable=yes, scrollbars=yes'
					previewAutoRefresh:		true,
					previewPosition:		'after',
					previewTemplatePath:	'~/templates/preview.html',
					previewParserPath:		'',
					previewParserVar:		'data',
					resizeHandle:			true,
					beforeInsert:			'',
					afterInsert:			'',
					onEnter:				{},
					onShiftEnter:			{},
					onCtrlEnter:			{},
					onTab:					{},
					markupSet:			[	{ /* set */ } ]
				};
		$.extend(options, settings, extraSettings);

		// compute markItUp! path
		if (!options.root) {
			$('script').each(function(a, tag) {
				miuScript = $(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);
				if (miuScript !== null) {
					options.root = miuScript[1];
				}
			});
		}

		return this.each(function() {
			var $$, textarea, levels, scrollPosition, caretPosition, caretOffset,
				clicked, hash, header, footer, previewWindow, template, iFrame, abort;
			$$ = $(this);
			textarea = this;
			levels = [];
			abort = false;
			scrollPosition = caretPosition = 0;
			caretOffset = -1;

			options.previewParserPath = localize(options.previewParserPath);
			options.previewTemplatePath = localize(options.previewTemplatePath);

			// apply the computed path to ~/
			function localize(data, inText) {
				if (inText) {
					return 	data.replace(/("|')~\//g, "$1"+options.root);
				}
				return 	data.replace(/^~\//, options.root);
			}

			// init and build editor
			function init() {
				id = ''; nameSpace = '';
				if (options.id) {
					id = 'id="'+options.id+'"';
				} else if ($$.attr("id")) {
					id = 'id="markItUp'+($$.attr("id").substr(0, 1).toUpperCase())+($$.attr("id").substr(1))+'"';

				}
				if (options.nameSpace) {
					nameSpace = 'class="'+options.nameSpace+'"';
				}
				$$.wrap('<div '+nameSpace+'></div>');
				$$.wrap('<div '+id+' class="markItUp"></div>');
				$$.wrap('<div class="markItUpContainer"></div>');
				$$.addClass("markItUpEditor");

				// add the header before the textarea
				header = $('<div class="markItUpHeader"></div>').insertBefore($$);
				$(dropMenus(options.markupSet)).appendTo(header);

				// add the footer after the textarea
				footer = $('<div class="markItUpFooter"></div>').insertAfter($$);

				// add the resize handle after textarea
				if (options.resizeHandle === true && $.browser.safari !== true) {
					resizeHandle = $('<div class="markItUpResizeHandle"></div>')
						.insertAfter($$)
						.bind("mousedown", function(e) {
							var h = $$.height(), y = e.clientY, mouseMove, mouseUp;
							mouseMove = function(e) {
								$$.css("height", Math.max(20, e.clientY+h-y)+"px");
								return false;
							};
							mouseUp = function(e) {
								$("html").unbind("mousemove", mouseMove).unbind("mouseup", mouseUp);
								return false;
							};
							$("html").bind("mousemove", mouseMove).bind("mouseup", mouseUp);
					});
					footer.append(resizeHandle);
				}

				// listen key events
				$$.keydown(keyPressed).keyup(keyPressed);
				
				// bind an event to catch external calls
				$$.bind("insertion", function(e, settings) {
					if (settings.target !== false) {
						get();
					}
					if (textarea === $.markItUp.focused) {
						markup(settings);
					}
				});

				// remember the last focus
				$$.focus(function() {
					$.markItUp.focused = this;
				});
			}

			// recursively build header with dropMenus from markupset
			function dropMenus(markupSet) {
				var ul = $('<ul></ul>'), i = 0;
				$('li:hover > ul', ul).css('display', 'block');
				$.each(markupSet, function() {
					var button = this, t = '', title, li, j;
					title = (button.key) ? (button.name||'')+' [Ctrl+'+button.key+']' : (button.name||'');
					key   = (button.key) ? 'accesskey="'+button.key+'"' : '';
					if (button.separator) {
						li = $('<li class="markItUpSeparator">'+(button.separator||'')+'</li>').appendTo(ul);
					} else {
						i++;
						for (j = levels.length -1; j >= 0; j--) {
							t += levels[j]+"-";
						}
						li = $('<li class="markItUpButton markItUpButton'+t+(i)+' '+(button.className||'')+'"><a href="" '+key+' title="'+title+'">'+(button.name||'')+'</a></li>')
						.bind("contextmenu", function() { // prevent contextmenu on mac and allow ctrl+click
							return false;
						}).click(function() {
							return false;
						}).mouseup(function() {
							if (button.call) {
								eval(button.call)();
							}
							markup(button);
							return false;
						}).hover(function() {
								$('> ul', this).show();
								$(document).one('click', function() { // close dropmenu if click outside
										$('ul ul', header).hide();
									}
								);
							}, function() {
								$('> ul', this).hide();
							}
						).appendTo(ul);
						if (button.dropMenu) {
							levels.push(i);
							$(li).addClass('markItUpDropMenu').append(dropMenus(button.dropMenu));
						}
					}
				}); 
				levels.pop();
				return ul;
			}

			// markItUp! markups
			function magicMarkups(string) {
				if (string) {
					string = string.toString();
					string = string.replace(/\(\!\(([\s\S]*?)\)\!\)/g,
						function(x, a) {
							var b = a.split('|!|');
							if (altKey === true) {
								return (b[1] !== undefined) ? b[1] : b[0];
							} else {
								return (b[1] === undefined) ? "" : b[0];
							}
						}
					);
					// [![prompt]!], [![prompt:!:value]!]
					string = string.replace(/\[\!\[([\s\S]*?)\]\!\]/g,
						function(x, a) {
							var b = a.split(':!:');
							if (abort === true) {
								return false;
							}
							value = prompt(b[0], (b[1]) ? b[1] : '');
							if (value === null) {
								abort = true;
							}
							return value;
						}
					);
					return string;
				}
				return "";
			}

			// prepare action
			function prepare(action) {
				if ($.isFunction(action)) {
					action = action(hash);
				}
				return magicMarkups(action);
			}

			// build block to insert
			function build(string) {
				openWith 	= prepare(clicked.openWith);
				placeHolder = prepare(clicked.placeHolder);
				replaceWith = prepare(clicked.replaceWith);
				closeWith 	= prepare(clicked.closeWith);
				if (replaceWith !== "") {
					block = openWith + replaceWith + closeWith;
				} else if (selection === '' && placeHolder !== '') {
					block = openWith + placeHolder + closeWith;
				} else {
					block = openWith + (string||selection) + closeWith;
				}
				return {	block:block, 
							openWith:openWith, 
							replaceWith:replaceWith, 
							placeHolder:placeHolder,
							closeWith:closeWith
					};
			}

			// define markup to insert
			function markup(button) {
				var len, j, n, i;
				hash = clicked = button;
				get();

				$.extend(hash, {	line:"", 
						 			root:options.root,
									textarea:textarea, 
									selection:(selection||''), 
									caretPosition:caretPosition,
									ctrlKey:ctrlKey, 
									shiftKey:shiftKey, 
									altKey:altKey
								}
							);
				// callbacks before insertion
				prepare(options.beforeInsert);
				prepare(clicked.beforeInsert);
				if (ctrlKey === true && shiftKey === true) {
					prepare(clicked.beforeMultiInsert);
				}			
				$.extend(hash, { line:1 });
				
				if (ctrlKey === true && shiftKey === true) {
					lines = selection.split(/\r?\n/);
					for (j = 0, n = lines.length, i = 0; i < n; i++) {
						if ($.trim(lines[i]) !== '') {
							$.extend(hash, { line:++j, selection:lines[i] } );
							lines[i] = build(lines[i]).block;
						} else {
							lines[i] = "";
						}
					}
					string = { block:lines.join('\n')};
					start = caretPosition;
					len = string.block.length + (($.browser.opera) ? n : 0);
				} else if (ctrlKey === true) {
					string = build(selection);
					start = caretPosition + string.openWith.length;
					len = string.block.length - string.openWith.length - string.closeWith.length;
					len -= fixIeBug(string.block);
				} else if (shiftKey === true) {
					string = build(selection);
					start = caretPosition;
					len = string.block.length;
					len -= fixIeBug(string.block);
				} else {
					string = build(selection);
					start = caretPosition + string.block.length ;
					len = 0;
					start -= fixIeBug(string.block);
				}
				if ((selection === '' && string.replaceWith === '')) {
					caretOffset += fixOperaBug(string.block);
					
					start = caretPosition + string.openWith.length;
					len = string.block.length - string.openWith.length - string.closeWith.length;

					caretOffset = $$.val().substring(caretPosition,  $$.val().length).length;
					caretOffset -= fixOperaBug($$.val().substring(0, caretPosition));
				}
				$.extend(hash, { caretPosition:caretPosition, scrollPosition:scrollPosition } );

				if (string.block !== selection && abort === false) {
					insert(string.block);
					set(start, len);
				} else {
					caretOffset = -1;
				}
				get();

				$.extend(hash, { line:'', selection:selection });

				// callbacks after insertion
				if (ctrlKey === true && shiftKey === true) {
					prepare(clicked.afterMultiInsert);
				}
				prepare(clicked.afterInsert);
				prepare(options.afterInsert);

				// refresh preview if opened
				if (previewWindow && options.previewAutoRefresh) {
					refreshPreview(); 
				}
																									
				// reinit keyevent
				shiftKey = altKey = ctrlKey = abort = false;
			}

			// Substract linefeed in Opera
			function fixOperaBug(string) {
				if ($.browser.opera) {
					return string.length - string.replace(/\n*/g, '').length;
				}
				return 0;
			}
			// Substract linefeed in IE
			function fixIeBug(string) {
				if ($.browser.msie) {
					return string.length - string.replace(/\r*/g, '').length;
				}
				return 0;
			}
				
			// add markup
			function insert(block) {	
				if (document.selection) {
					var newSelection = document.selection.createRange();
					newSelection.text = block;
				} else {
					$$.val($$.val().substring(0, caretPosition)	+ block + $$.val().substring(caretPosition + selection.length, $$.val().length));
				}
			}

			// set a selection
			function set(start, len) {
				if (textarea.createTextRange){
					// quick fix to make it work on Opera 9.5
					if ($.browser.opera && $.browser.version >= 9.5 && len == 0) {
						return false;
					}
					range = textarea.createTextRange();
					range.collapse(true);
					range.moveStart('character', start); 
					range.moveEnd('character', len); 
					range.select();
				} else if (textarea.setSelectionRange ){
					textarea.setSelectionRange(start, start + len);
				}
				textarea.scrollTop = scrollPosition;
				textarea.focus();
			}

			// get the selection
			function get() {
				textarea.focus();

				scrollPosition = textarea.scrollTop;
				if (document.selection) {
					selection = document.selection.createRange().text;
					if ($.browser.msie) { // ie
						var range = document.selection.createRange(), rangeCopy = range.duplicate();
						rangeCopy.moveToElementText(textarea);
						caretPosition = -1;
						while(rangeCopy.inRange(range)) { // fix most of the ie bugs with linefeeds...
							rangeCopy.moveStart('character');
							caretPosition ++;
						}
					} else { // opera
						caretPosition = textarea.selectionStart;
					}
				} else { // gecko
					caretPosition = textarea.selectionStart;
					selection = $$.val().substring(caretPosition, textarea.selectionEnd);
				} 
				return selection;
			}

			// open preview window
			function preview() {
				if (!previewWindow || previewWindow.closed) {
					if (options.previewInWindow) {
						previewWindow = window.open('', 'preview', options.previewInWindow);
					} else {
						iFrame = $('<iframe class="markItUpPreviewFrame"></iframe>');
						if (options.previewPosition == 'after') {
							iFrame.insertAfter(footer);
						} else {
							iFrame.insertBefore(header);
						}	
						previewWindow = iFrame[iFrame.length-1].contentWindow || frame[iFrame.length-1];
					}
				} else if (altKey === true) {
					if (iFrame) {
						iFrame.remove();
					}
					previewWindow.close();
					previewWindow = iFrame = false;
				}
				if (!options.previewAutoRefresh) {
					refreshPreview(); 
				}
			}

			// refresh Preview window
			function refreshPreview() {
				if (previewWindow.document) {			
					try {
						sp = previewWindow.document.documentElement.scrollTop
					} catch(e) {
						sp = 0;
					}					
					previewWindow.document.open();
					previewWindow.document.write(renderPreview());
					previewWindow.document.close();
					previewWindow.document.documentElement.scrollTop = sp;
				}
				if (options.previewInWindow) {
					previewWindow.focus();
				}
			}

			function renderPreview() {				
				if (options.previewParserPath !== '') {
					$.ajax( {
						type: 'POST',
						async: false,
						url: options.previewParserPath,
						data: options.previewParserVar+'='+encodeURIComponent($$.val()),
						success: function(data) {
							phtml = localize(data, 1); 
						}
					} );
				} else {
					if (!template) {
						$.ajax( {
							async: false,
							url: options.previewTemplatePath,
							success: function(data) {
								template = localize(data, 1); 
							}
						} );
					}
					phtml = template.replace(/<!-- content -->/g, $$.val());
				}
				return phtml;
			}
			
			// set keys pressed
			function keyPressed(e) { 
				shiftKey = e.shiftKey;
				altKey = e.altKey;
				ctrlKey = (!(e.altKey && e.ctrlKey)) ? e.ctrlKey : false;

				if (e.type === 'keydown') {
					if (ctrlKey === true) {
						li = $("a[accesskey="+String.fromCharCode(e.keyCode)+"]", header).parent('li');
						if (li.length !== 0) {
							ctrlKey = false;
							li.triggerHandler('mouseup');
							return false;
						}
					}
					if (e.keyCode === 13 || e.keyCode === 10) { // Enter key
						if (ctrlKey === true) {  // Enter + Ctrl
							ctrlKey = false;
							markup(options.onCtrlEnter);
							return options.onCtrlEnter.keepDefault;
						} else if (shiftKey === true) { // Enter + Shift
							shiftKey = false;
							markup(options.onShiftEnter);
							return options.onShiftEnter.keepDefault;
						} else { // only Enter
							markup(options.onEnter);
							return options.onEnter.keepDefault;
						}
					}
					if (e.keyCode === 9) { // Tab key
						if (shiftKey == true || ctrlKey == true || altKey == true) { // Thx Dr Floob.
							return false; 
						}
						if (caretOffset !== -1) {
							get();
							caretOffset = $$.val().length - caretOffset;
							set(caretOffset, 0);
							caretOffset = -1;
							return false;
						} else {
							markup(options.onTab);
							return options.onTab.keepDefault;
						}
					}
				}
			}

			init();
		});
	};

	$.fn.markItUpRemove = function() {
		return this.each(function() {
				$$ = $(this).unbind().removeClass('markItUpEditor');
				$$.parent('div').parent('div.markItUp').parent('div').replaceWith($$);
			}
		);
	};

	$.markItUp = function(settings) {
		var options = { target:false };
		$.extend(options, settings);
		if (options.target) {
			return $(options.target).each(function() {
				$(this).focus();
				$(this).trigger('insertion', [options]);
			});
		} else {
			$('textarea').trigger('insertion', [options]);
		}
	};
})(jQuery);
// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// BBCode tags example
// http://en.wikipedia.org/wiki/Bbcode
// ----------------------------------------------------------------------------
// Feel free to add more tags
// ----------------------------------------------------------------------------
markItUpSettings = {
	previewParserPath:	'/forum.cfm?event=forum.bbcode', // path to your BBCode parser
	markupSet: [
		{name:'Bold', key:'B', openWith:'[b]', closeWith:'[/b]'},
		{name:'Italic', key:'I', openWith:'[i]', closeWith:'[/i]'},
		{name:'Underline', key:'U', openWith:'[u]', closeWith:'[/u]'},
		{separator:'---------------' },
		{name:'Picture', key:'P', replaceWith:'[img][![Url]!][/img]'}, 
		{name:'Link', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Your text to link here...'},
		{separator:'---------------' },
		{name:'Size', key:'S', openWith:'[size=[![Text size]!]]', closeWith:'[/size]',
		dropMenu :[
			{name:'Big', openWith:'[size=200]', closeWith:'[/size]' },
			{name:'Normal', openWith:'[size=100]', closeWith:'[/size]' },
			{name:'Small', openWith:'[size=50]', closeWith:'[/size]' }
		]},
		{separator:'---------------' },
		{name:'Bulleted list', openWith:'[list]\n', closeWith:'\n[/list]'},
		{name:'Numeric list', openWith:'[list=[![Starting number]!]]\n', closeWith:'\n[/list]'}, 
		{name:'List item', openWith:'[*] '},
		{separator:'---------------' },
		{name:'Quotes', openWith:'[quote]', closeWith:'[/quote]'},
		{name:'Code', openWith:'[code]', closeWith:'[/code]'}, 
		{separator:'---------------' },
		{name:'Clean', className:"clean", replaceWith:function(markitup) { return markitup.selection.replace(/\[(.*?)\]/g, "") } },
		{name:'Preview', className:"preview", call:'preview' }
	]
}//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function ControlVersion()
{
	var version;
	var axo;
	var e;

	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry

	try {
		// version will be set for 7.X or greater players
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");
	} catch (e) {
	}

	if (!version)
	{
		try {
			// version will be set for 6.X players only
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
			
			// installed player is some revision of 6.0
			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
			// so we have to be careful. 
			
			// default to the first public version
			version = "WIN 6,0,21,0";

			// throws if AllowScripAccess does not exist (introduced in 6.0r47)		
			axo.AllowScriptAccess = "always";

			// safe to call for 6.0r47 or greater
			version = axo.GetVariable("$version");

		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 4.X or 5.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 3.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = "WIN 3,0,18,0";
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 2.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version = "WIN 2,0,0,11";
		} catch (e) {
			version = -1;
		}
	}
	
	return version;
}

// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	var flashVer = -1;
	
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");			
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			var versionRevision = descArray[3];
			if (versionRevision == "") {
				versionRevision = descArray[4];
			}
			if (versionRevision[0] == "d") {
				versionRevision = versionRevision.substring(1);
			} else if (versionRevision[0] == "r") {
				versionRevision = versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
				}
			}
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}	
	return flashVer;
}

// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr = GetSwfVer();
	if (versionStr == -1 ) {
		return false;
	} else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        = tempArray[1];			// "2,0,0,11"
			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      = versionStr.split(".");
		}
		var versionMajor      = versionArray[0];
		var versionMinor      = versionArray[1];
		var versionRevision   = versionArray[2];

        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '';
  if (isIE && isWin && !isOpera)
  {
    str += '<object ';
    for (var i in objAttrs)
    {
      str += i + '="' + objAttrs[i] + '" ';
    }
    str += '>';
    for (var i in params)
    {
      str += '<param name="' + i + '" value="' + params[i] + '" /> ';
    }
    str += '</object>';
  }
  else
  {
    str += '<embed ';
    for (var i in embedAttrs)
    {
      str += i + '="' + embedAttrs[i] + '" ';
    }
    str += '> </embed>';
  }

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblclick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}
/*
 * jQuery Autocomplete plugin 1.1
 *
 * Copyright (c) 2009 Jörn Zaefferer
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 * Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
 */;(function($){$.fn.extend({autocomplete:function(urlOrData,options){var isUrl=typeof urlOrData=="string";options=$.extend({},$.Autocompleter.defaults,{url:isUrl?urlOrData:null,data:isUrl?null:urlOrData,delay:isUrl?$.Autocompleter.defaults.delay:10,max:options&&!options.scroll?10:150},options);options.highlight=options.highlight||function(value){return value;};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options);});},result:function(handler){return this.bind("result",handler);},search:function(handler){return this.trigger("search",[handler]);},flushCache:function(){return this.trigger("flushCache");},setOptions:function(options){return this.trigger("setOptions",[options]);},unautocomplete:function(){return this.trigger("unautocomplete");}});$.Autocompleter=function(input,options){var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var $input=$(input).attr("autocomplete","off").addClass(options.inputClass);var timeout;var previousValue="";var cache=$.Autocompleter.Cache(options);var hasFocus=0;var lastKeyPressCode;var config={mouseDownOnSelect:false};var select=$.Autocompleter.Select(options,input,selectCurrent,config);var blockSubmit;$.browser.opera&&$(input.form).bind("submit.autocomplete",function(){if(blockSubmit){blockSubmit=false;return false;}});$input.bind(($.browser.opera?"keypress":"keydown")+".autocomplete",function(event){hasFocus=1;lastKeyPressCode=event.keyCode;switch(event.keyCode){case KEY.UP:event.preventDefault();if(select.visible()){select.prev();}else{onChange(0,true);}break;case KEY.DOWN:event.preventDefault();if(select.visible()){select.next();}else{onChange(0,true);}break;case KEY.PAGEUP:event.preventDefault();if(select.visible()){select.pageUp();}else{onChange(0,true);}break;case KEY.PAGEDOWN:event.preventDefault();if(select.visible()){select.pageDown();}else{onChange(0,true);}break;case options.multiple&&$.trim(options.multipleSeparator)==","&&KEY.COMMA:case KEY.TAB:case KEY.RETURN:if(selectCurrent()){event.preventDefault();blockSubmit=true;return false;}break;case KEY.ESC:select.hide();break;default:clearTimeout(timeout);timeout=setTimeout(onChange,options.delay);break;}}).focus(function(){hasFocus++;}).blur(function(){hasFocus=0;if(!config.mouseDownOnSelect){hideResults();}}).click(function(){if(hasFocus++>1&&!select.visible()){onChange(0,true);}}).bind("search",function(){var fn=(arguments.length>1)?arguments[1]:null;function findValueCallback(q,data){var result;if(data&&data.length){for(var i=0;i<data.length;i++){if(data[i].result.toLowerCase()==q.toLowerCase()){result=data[i];break;}}}if(typeof fn=="function")fn(result);else $input.trigger("result",result&&[result.data,result.value]);}$.each(trimWords($input.val()),function(i,value){request(value,findValueCallback,findValueCallback);});}).bind("flushCache",function(){cache.flush();}).bind("setOptions",function(){$.extend(options,arguments[1]);if("data"in arguments[1])cache.populate();}).bind("unautocomplete",function(){select.unbind();$input.unbind();$(input.form).unbind(".autocomplete");});function selectCurrent(){var selected=select.selected();if(!selected)return false;var v=selected.result;previousValue=v;if(options.multiple){var words=trimWords($input.val());if(words.length>1){var seperator=options.multipleSeparator.length;var cursorAt=$(input).selection().start;var wordAt,progress=0;$.each(words,function(i,word){progress+=word.length;if(cursorAt<=progress){wordAt=i;return false;}progress+=seperator;});words[wordAt]=v;v=words.join(options.multipleSeparator);}v+=options.multipleSeparator;}$input.val(v);hideResultsNow();$input.trigger("result",[selected.data,selected.value]);return true;}function onChange(crap,skipPrevCheck){if(lastKeyPressCode==KEY.DEL){select.hide();return;}var currentValue=$input.val();if(!skipPrevCheck&&currentValue==previousValue)return;previousValue=currentValue;currentValue=lastWord(currentValue);if(currentValue.length>=options.minChars){$input.addClass(options.loadingClass);if(!options.matchCase)currentValue=currentValue.toLowerCase();request(currentValue,receiveData,hideResultsNow);}else{stopLoading();select.hide();}};function trimWords(value){if(!value)return[""];if(!options.multiple)return[$.trim(value)];return $.map(value.split(options.multipleSeparator),function(word){return $.trim(value).length?$.trim(word):null;});}function lastWord(value){if(!options.multiple)return value;var words=trimWords(value);if(words.length==1)return words[0];var cursorAt=$(input).selection().start;if(cursorAt==value.length){words=trimWords(value)}else{words=trimWords(value.replace(value.substring(cursorAt),""));}return words[words.length-1];}function autoFill(q,sValue){if(options.autoFill&&(lastWord($input.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){$input.val($input.val()+sValue.substring(lastWord(previousValue).length));$(input).selection(previousValue.length,previousValue.length+sValue.length);}};function hideResults(){clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200);};function hideResultsNow(){var wasVisible=select.visible();select.hide();clearTimeout(timeout);stopLoading();if(options.mustMatch){$input.search(function(result){if(!result){if(options.multiple){var words=trimWords($input.val()).slice(0,-1);$input.val(words.join(options.multipleSeparator)+(words.length?options.multipleSeparator:""));}else{$input.val("");$input.trigger("result",null);}}});}};function receiveData(q,data){if(data&&data.length&&hasFocus){stopLoading();select.display(data,q);autoFill(q,data[0].value);select.show();}else{hideResultsNow();}};function request(term,success,failure){if(!options.matchCase)term=term.toLowerCase();var data=cache.load(term);if(data&&data.length){success(term,data);}else if((typeof options.url=="string")&&(options.url.length>0)){var extraParams={timestamp:+new Date()};$.each(options.extraParams,function(key,param){extraParams[key]=typeof param=="function"?param():param;});$.ajax({mode:"abort",port:"autocomplete"+input.name,dataType:options.dataType,url:options.url,data:$.extend({q:lastWord(term),limit:options.max},extraParams),success:function(data){var parsed=options.parse&&options.parse(data)||parse(data);cache.add(term,parsed);success(term,parsed);}});}else{select.emptyList();failure(term);}};function parse(data){var parsed=[];var rows=data.split("\n");for(var i=0;i<rows.length;i++){var row=$.trim(rows[i]);if(row){row=row.split("|");parsed[parsed.length]={data:row,value:row[0],result:options.formatResult&&options.formatResult(row,row[0])||row[0]};}}return parsed;};function stopLoading(){$input.removeClass(options.loadingClass);};};$.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(row){return row[0];},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(value,term){return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>");},scroll:true,scrollHeight:180};$.Autocompleter.Cache=function(options){var data={};var length=0;function matchSubset(s,sub){if(!options.matchCase)s=s.toLowerCase();var i=s.indexOf(sub);if(options.matchContains=="word"){i=s.toLowerCase().search("\\b"+sub.toLowerCase());}if(i==-1)return false;return i==0||options.matchContains;};function add(q,value){if(length>options.cacheLength){flush();}if(!data[q]){length++;}data[q]=value;}function populate(){if(!options.data)return false;var stMatchSets={},nullData=0;if(!options.url)options.cacheLength=1;stMatchSets[""]=[];for(var i=0,ol=options.data.length;i<ol;i++){var rawValue=options.data[i];rawValue=(typeof rawValue=="string")?[rawValue]:rawValue;var value=options.formatMatch(rawValue,i+1,options.data.length);if(value===false)continue;var firstChar=value.charAt(0).toLowerCase();if(!stMatchSets[firstChar])stMatchSets[firstChar]=[];var row={value:value,data:rawValue,result:options.formatResult&&options.formatResult(rawValue)||value};stMatchSets[firstChar].push(row);if(nullData++<options.max){stMatchSets[""].push(row);}};$.each(stMatchSets,function(i,value){options.cacheLength++;add(i,value);});}setTimeout(populate,25);function flush(){data={};length=0;}return{flush:flush,add:add,populate:populate,load:function(q){if(!options.cacheLength||!length)return null;if(!options.url&&options.matchContains){var csub=[];for(var k in data){if(k.length>0){var c=data[k];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub.push(x);}});}}return csub;}else
if(data[q]){return data[q];}else
if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data[q.substr(0,i)];if(c){var csub=[];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub[csub.length]=x;}});return csub;}}}return null;}};};$.Autocompleter.Select=function(options,input,select,config){var CLASSES={ACTIVE:"ac_over"};var listItems,active=-1,data,term="",needsInit=true,element,list;function init(){if(!needsInit)return;element=$("<div/>").hide().addClass(options.resultsClass).css("position","absolute").appendTo(document.body);list=$("<ul/>").appendTo(element).mouseover(function(event){if(target(event).nodeName&&target(event).nodeName.toUpperCase()=='LI'){active=$("li",list).removeClass(CLASSES.ACTIVE).index(target(event));$(target(event)).addClass(CLASSES.ACTIVE);}}).click(function(event){$(target(event)).addClass(CLASSES.ACTIVE);select();input.focus();return false;}).mousedown(function(){config.mouseDownOnSelect=true;}).mouseup(function(){config.mouseDownOnSelect=false;});if(options.width>0)element.css("width",options.width);needsInit=false;}function target(event){var element=event.target;while(element&&element.tagName!="LI")element=element.parentNode;if(!element)return[];return element;}function moveSelect(step){listItems.slice(active,active+1).removeClass(CLASSES.ACTIVE);movePosition(step);var activeItem=listItems.slice(active,active+1).addClass(CLASSES.ACTIVE);if(options.scroll){var offset=0;listItems.slice(0,active).each(function(){offset+=this.offsetHeight;});if((offset+activeItem[0].offsetHeight-list.scrollTop())>list[0].clientHeight){list.scrollTop(offset+activeItem[0].offsetHeight-list.innerHeight());}else if(offset<list.scrollTop()){list.scrollTop(offset);}}};function movePosition(step){active+=step;if(active<0){active=listItems.size()-1;}else if(active>=listItems.size()){active=0;}}function limitNumberOfItems(available){return options.max&&options.max<available?options.max:available;}function fillList(){list.empty();var max=limitNumberOfItems(data.length);for(var i=0;i<max;i++){if(!data[i])continue;var formatted=options.formatItem(data[i].data,i+1,max,data[i].value,term);if(formatted===false)continue;var li=$("<li/>").html(options.highlight(formatted,term)).addClass(i%2==0?"ac_even":"ac_odd").appendTo(list)[0];$.data(li,"ac_data",data[i]);}listItems=list.find("li");if(options.selectFirst){listItems.slice(0,1).addClass(CLASSES.ACTIVE);active=0;}if($.fn.bgiframe)list.bgiframe();}return{display:function(d,q){init();data=d;term=q;fillList();},next:function(){moveSelect(1);},prev:function(){moveSelect(-1);},pageUp:function(){if(active!=0&&active-8<0){moveSelect(-active);}else{moveSelect(-8);}},pageDown:function(){if(active!=listItems.size()-1&&active+8>listItems.size()){moveSelect(listItems.size()-1-active);}else{moveSelect(8);}},hide:function(){element&&element.hide();listItems&&listItems.removeClass(CLASSES.ACTIVE);active=-1;},visible:function(){return element&&element.is(":visible");},current:function(){return this.visible()&&(listItems.filter("."+CLASSES.ACTIVE)[0]||options.selectFirst&&listItems[0]);},show:function(){var offset=$(input).offset();element.css({width:typeof options.width=="string"||options.width>0?options.width:$(input).width(),top:offset.top+input.offsetHeight,left:offset.left}).show();if(options.scroll){list.scrollTop(0);list.css({maxHeight:options.scrollHeight,overflow:'auto'});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var listHeight=0;listItems.each(function(){listHeight+=this.offsetHeight;});var scrollbarsVisible=listHeight>options.scrollHeight;list.css('height',scrollbarsVisible?options.scrollHeight:listHeight);if(!scrollbarsVisible){listItems.width(list.width()-parseInt(listItems.css("padding-left"))-parseInt(listItems.css("padding-right")));}}}},selected:function(){var selected=listItems&&listItems.filter("."+CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);return selected&&selected.length&&$.data(selected[0],"ac_data");},emptyList:function(){list&&list.empty();},unbind:function(){element&&element.remove();}};};$.fn.selection=function(start,end){if(start!==undefined){return this.each(function(){if(this.createTextRange){var selRange=this.createTextRange();if(end===undefined||start==end){selRange.move("character",start);selRange.select();}else{selRange.collapse(true);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select();}}else if(this.setSelectionRange){this.setSelectionRange(start,end);}else if(this.selectionStart){this.selectionStart=start;this.selectionEnd=end;}});}var field=this[0];if(field.createTextRange){var range=document.selection.createRange(),orig=field.value,teststring="<->",textLength=range.text.length;range.text=teststring;var caretAt=field.value.indexOf(teststring);field.value=orig;this.selection(caretAt,caretAt+textLength);return{start:caretAt,end:caretAt+textLength}}else if(field.selectionStart!==undefined){return{start:field.selectionStart,end:field.selectionEnd}}};})(jQuery);/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-07-21 18:44:59 -0500 (Sat, 21 Jul 2007) $
 * $Rev: 2446 $
 *
 * Version 2.1.1
 */

(function($){

/**
 * The bgiframe is chainable and applies the iframe hack to get 
 * around zIndex issues in IE6. It will only apply itself in IE6 
 * and adds a class to the iframe called 'bgiframe'. The iframe
 * is appeneded as the first child of the matched element(s) 
 * with a tabIndex and zIndex of -1.
 * 
 * By default the plugin will take borders, sized with pixel units,
 * into account. If a different unit is used for the border's width,
 * then you will need to use the top and left settings as explained below.
 *
 * NOTICE: This plugin has been reported to cause perfromance problems
 * when used on elements that change properties (like width, height and
 * opacity) a lot in IE6. Most of these problems have been caused by 
 * the expressions used to calculate the elements width, height and 
 * borders. Some have reported it is due to the opacity filter. All 
 * these settings can be changed if needed as explained below.
 *
 * @example $('div').bgiframe();
 * @before <div><p>Paragraph</p></div>
 * @result <div><iframe class="bgiframe".../><p>Paragraph</p></div>
 *
 * @param Map settings Optional settings to configure the iframe.
 * @option String|Number top The iframe must be offset to the top
 * 		by the width of the top border. This should be a negative 
 *      number representing the border-top-width. If a number is 
 * 		is used here, pixels will be assumed. Otherwise, be sure
 *		to specify a unit. An expression could also be used. 
 * 		By default the value is "auto" which will use an expression 
 * 		to get the border-top-width if it is in pixels.
 * @option String|Number left The iframe must be offset to the left
 * 		by the width of the left border. This should be a negative 
 *      number representing the border-left-width. If a number is 
 * 		is used here, pixels will be assumed. Otherwise, be sure
 *		to specify a unit. An expression could also be used. 
 * 		By default the value is "auto" which will use an expression 
 * 		to get the border-left-width if it is in pixels.
 * @option String|Number width This is the width of the iframe. If
 *		a number is used here, pixels will be assume. Otherwise, be sure
 * 		to specify a unit. An experssion could also be used.
 *		By default the value is "auto" which will use an experssion
 * 		to get the offsetWidth.
 * @option String|Number height This is the height of the iframe. If
 *		a number is used here, pixels will be assume. Otherwise, be sure
 * 		to specify a unit. An experssion could also be used.
 *		By default the value is "auto" which will use an experssion
 * 		to get the offsetHeight.
 * @option Boolean opacity This is a boolean representing whether or not
 * 		to use opacity. If set to true, the opacity of 0 is applied. If
 *		set to false, the opacity filter is not applied. Default: true.
 * @option String src This setting is provided so that one could change 
 *		the src of the iframe to whatever they need.
 *		Default: "javascript:false;"
 *
 * @name bgiframe
 * @type jQuery
 * @cat Plugins/bgiframe
 * @author Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 */
$.fn.bgIframe = $.fn.bgiframe = function(s) {
	// This is only for IE6
	if ( $.browser.msie && /6.0/.test(navigator.userAgent) ) {
		s = $.extend({
			top     : 'auto', // auto == .currentStyle.borderTopWidth
			left    : 'auto', // auto == .currentStyle.borderLeftWidth
			width   : 'auto', // auto == offsetWidth
			height  : 'auto', // auto == offsetHeight
			opacity : true,
			src     : 'javascript:false;'
		}, s || {});
		var prop = function(n){return n&&n.constructor==Number?n+'px':n;},
		    html = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+
		               'style="display:block;position:absolute;z-index:-1;'+
			               (s.opacity !== false?'filter:Alpha(Opacity=\'0\');':'')+
					       'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+
					       'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+
					       'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+
					       'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+
					'"/>';
		return this.each(function() {
			if ( $('> iframe.bgiframe', this).length == 0 )
				this.insertBefore( document.createElement(html), this.firstChild );
		});
	}
	return this;
};

})(jQuery);
