
(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'.',debug:false,disableHeaderLinks:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}
this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}
function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}
var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter);}else if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter);}
if(!p){p=detectParserForColumn(table,cells[i]);}
if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n";}
list.push(p);}}
if(table.config.debug){log(parsersDebug);}
return list;};function detectParserForColumn(table,node){var l=parsers.length;for(var i=1;i<l;i++){if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)){return parsers[i];}}
return parsers[0];}
function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i];}}
return false;}
function buildCache(table){if(table.config.debug){var cacheTime=new Date();}
var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]));}
cols.push(i);cache.normalized.push(cols);cols=null;};if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime);}
return cache;};function getElementText(config,node){if(!node)return"";var t="";if(config.textExtraction=="simple"){if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML;}else{t=node.innerHTML;}}else{if(typeof(config.textExtraction)=="function"){t=config.textExtraction(node);}else{t=$(node).text();}}
return t;}
function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}
var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j<l;j++){tableBody[0].appendChild(o[j]);}}}
if(table.config.appender){table.config.appender(table,rows);}
rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime);}
applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd");},0);};function buildHeaders(table){if(table.config.debug){var time=new Date();}
var meta=($.metadata)?true:false,tableHeadersRows=[];for(var i=0;i<table.tHead.rows.length;i++){tableHeadersRows[i]=0;};$tableHeaders=$("thead th",table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index))this.sortDisabled=true;if(!this.sortDisabled){$(this).addClass(table.config.cssHeader);}
table.config.headerList[index]=this;});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders);}
return $tableHeaders;};function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}
return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}
function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}
function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table);}}
function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i];}}};function formatSortingOrder(v){if(typeof(v)!="Number"){i=(v.toLowerCase()=="desc")?1:0;}else{i=(v==(0||1))?v:0;}
return i;}
function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true;}}
return false;}
function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this);}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]]);}}
function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$('<colgroup>');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('<col>').css('width',$(this).width()));});$(table).prepend(colgroup);};}
function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++;}}
function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date();}
var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var sortType=getCachedSortType(table.config.parsers,c);var s;if(sortType=='text'){s=(order==0)?"sortText":"sortTextDesc";}
else if(sortType=='numeric_hb'){s=(order==0)?"sortNumericHB":"sortNumericDesc";}
else{s=(order==0)?"sortNumeric":"sortNumericDesc";}
var e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { ";}
var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; ";}
dynamicExp+="return 0; ";dynamicExp+="}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime);}
return cache;};function sortText(a,b){return((a<b)?-1:((a>b)?1:0));};function sortTextDesc(a,b){return((b<a)?-1:((b>a)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function sortNumericHB(a,b){if(a==0&&b==0){return 0;}
else if(a==0){return 1;}
else if(b==0){return-1;}
else{return a-b;}};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);if(!this.config.disableHeaderLinks){$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j]);}}}
config.sortList.push([i,this.order]);}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2;}}}else{config.sortList.push([i,this.order]);}};setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache));},1);return false;}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false;}});}
$this.bind("update",function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache));}).bind("appendCache",function(){appendToTable(this,cache);}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this);}).bind("applyWidgets",function(){applyWidget(this);});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist;}
if(config.sortList.length>0){$this.trigger("sorton",[config.sortList]);}
applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false;}}
if(a){parsers.push(parser);};};this.addWidget=function(widget){widgets.push(widget);};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i;};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i;};this.cleanText=function(s){s=s.replace(/[àáâãäåæ]/gi,"a");s=s.replace(/[ç]/gi,"c");s=s.replace(/[èéêë]/gi,"e");s=s.replace(/[ìíîï]/gi,"i");s=s.replace(/[ñ]/gi,"n");s=s.replace(/[òóôõöø]/gi,"o");s=s.replace(/[ùúûü]/gi,"u");s=s.replace(/[ýÿ]/gi,"y");return s;}
this.extractAll=function(oNode){return oNode.innerHTML;}
this.isDigit=function(s,config){var DECIMAL='\\'+config.decimal;var exp='/(^[+]?0('+DECIMAL+'0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)'+DECIMAL+'(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*'+DECIMAL+'0+$)/';return RegExp(exp).test($.trim(s));};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild)this.removeChild(this.firstChild);}
empty.apply(table.tBodies[0]);}else{table.tBodies[0].innerHTML="";}};}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true;},format:function(s){return $.trim(s.toLowerCase());},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c);},format:function(s){return $.tablesorter.formatFloat(s);},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s);},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""));},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s);},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item;}else{r+=item;}}
return $.tablesorter.formatFloat(r);},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s);},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),''));},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s);},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0");},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s));},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""));},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/));},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime());},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s);
  },
  format: function(s,table) {
   var c = table.config;
   s = s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2");}else if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1");}else if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3");}
return $.tablesorter.formatFloat(new Date(s).getTime());},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s);},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime());},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false;},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?'sortValue':c.parserMetadataName;return $(cell).metadata()[p];},type:"numeric"});ts.addParser({id:"hbprice",is:function(s){return false;},format:function(s,table){var sStripped;s=$.trim(s);if(s=="&nbsp;"){sStripped="0";}else{var oTagStrippedRegex=new RegExp(/^[\w\W]*<span[^>]*?>(.*?)<\/span>[\w\W]*$/i);sStripped=s.replace(oTagStrippedRegex,"$1");var oPriceRegex=new RegExp("[^0-9"+table.config.decimal+"]","g");sStripped=(""+sStripped).replace(oPriceRegex,'');sStripped=sStripped.replace(table.config.decimal,'.');}
return sStripped;},type:"numeric_hb"});ts.addParser({id:"hbtitle",is:function(s){return false;},format:function(s){s=$.trim(s);var oTagStrippedRegex=new RegExp(/^[\w\W]*<a[^>]*?>(.*?)<\/a>[\w\W]*$/i);var sStripped=s.replace(oTagStrippedRegex,"$1").toLowerCase();sStripped=ts.cleanText(sStripped);return sStripped;},type:"text"});ts.addParser({id:"hbtitle_map",is:function(s){return false;},format:function(s){s=$.trim(s);var oTagStrippedRegex=new RegExp(/<[^>]+>/i);var sStripped=s.replace(oTagStrippedRegex,"").toLowerCase();sStripped=ts.cleanText(sStripped);return sStripped;},type:"text"});ts.addParser({id:"hbpercent",is:function(s){return/^<span>.*?<\/span>%.*$/.test($.trim(s));},format:function(s){s=$.trim(s);var oPercentRegex=new RegExp(/^<span>(.*?)<\/span>%.*$/i);var sNumOnly=s.replace(oPercentRegex,"$1");var fltPercent=$.tablesorter.formatFloat(sNumOnly);return fltPercent;},type:"numeric_hb"});ts.addParser({id:"hbproptype",is:function(s){return false;},format:function(s){s=$.trim(s);var oTagStrippedRegex=new RegExp(/^\s*([a-z]*)\s*(?:$|(?:<br\s*\/?>\s*<img(?:.|\r|\n)*?alt="([\d\.]+)(?:.|\r|\n)*))?$/i);var sStripped=s.replace(oTagStrippedRegex,"$1").toLowerCase();var strStars=s.replace(oTagStrippedRegex,"$2").toLowerCase();sStripped=sStripped+String(strStars);sStripped=ts.cleanText(sStripped);return sStripped;},type:"text"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date();}
$("tr:visible",table.tBodies[0]).filter(':even').removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(':odd').removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time);}}});})(jQuery);

function ajaxCFCPost(cfMethod,cfArg,jsObj)
{var JSON=$.toJSON(jsObj);var ajaxURL="/remotegateways/utilsremote.cfc";var postData="method="+cfMethod+"&"+cfArg+"="+JSON;$.ajax({type:"POST",url:ajaxURL,data:postData,success:function(msg){}});}

var ratingOrder;var sharedOrder=ratingOrder;var privateOrder=ratingOrder;var ratingOrderWeight=0;var ratingOrderOption=8;$(document).ready(function(){ratingOrder=parseInt($("input[name='intSortOrder']").val(),10);$("#currencyPicker").change(function(){var strSelecedCurrency=$("#currencyPicker").val();$("#strSelectedCurrencyCode").val(strSelecedCurrency);var strUrl=$(location).attr('href');strUrl=strUrl.replace(/\/price_min[^\/]*?\//i,"/");strUrl=strUrl.replace(/\/price_max[^\/]*?\//i,"/");$("#hiddenSortingForm").attr("action",strUrl);$("#hiddenSortingForm").submit();});$.tablesorter.addWidget({id:"repeatEmptyRows",format:function(table){SorterUtils.toggleSpacerRow(table.id);}});$("#listView").tablesorter({debug:false,headers:{7:{sorter:"hbpercent"},8:{sorter:"digit"},10:{sorter:"currency"},11:{sorter:"digit"},13:{sorter:"currency"},14:{sorter:"digit"}},widgets:['repeatEmptyRows'],disableHeaderLinks:true});Listing_sortDynamicSwitch("hb_sort_rating");$("#sortByPicker").val("hb_sort_rating");$("#sortByPicker").change(function(){Listing_sortDynamicSwitch($(this).val());return false;});if(parseInt($("input[name='isDynamic']").val(),10)==1){}else{$("#sortTitle").click(function(){if($('#strSortDir').val()=='desc')
$('#strSortDir').val('asc')
else
$('#strSortDir').val('desc')
$('#strSortBy').val('strAccommodationNameUpper');$('#hiddenSortingForm').submit();});$("#sortRating").click(function(){if($('#strSortDir').val()=='desc')
$('#strSortDir').val('asc')
else
$('#strSortDir').val('desc')
$('#strSortBy').val('numAccommodationRating');$('#hiddenSortingForm').submit();});$("#sortShared").click(function(){if($('#strSortDir').val()=='desc')
$('#strSortDir').val('asc')
else
$('#strSortDir').val('desc')
$('#strSortBy').val('numDormPrice');$('#hiddenSortingForm').submit();});$("#sortPrivate").click(function(){if($('#strSortDir').val()=='desc')
$('#strSortDir').val('asc')
else
$('#strSortDir').val('desc')
$('#strSortBy').val('numPrivatePrice');$('#hiddenSortingForm').submit();});}
$("table.listView th:not(#starRating)").css("cursor","pointer");$("tr.propertyRow").css('background','url('+strDomain+'/assets/common/images/backgrounds/bgstripes.gif) repeat scroll 100% 100%');$("tr.propertyRow").click(function(){window.location=$(this).find("a.propertyTitle").attr("href");return false;});$("tr.propertyRowPrem").click(function(){window.location=$(this).find("a.propertyTitle").attr("href");return false;});$("span.readmore").click(function(){var oParent=$(this).closest("p");var strHiddenContent=$(this).siblings("span.hide").html();$(this).siblings("span.ellipsis").remove();$(this).siblings("span.hide").remove();$(this).remove();oParent.closest("p").html(oParent.closest("p").html()+strHiddenContent);return false;});function Listing_sortDynamicSwitch(sortOrder)
{switch(sortOrder)
{case"hb_sort_sharedprice_asc":var intPrimarySortCol=14;var intPrimarySortDir=0;var intSecondarySortCol=13;var intSecondarySortDir=0;break;case"hb_sort_sharedprice_des":var intPrimarySortCol=14;var intPrimarySortDir=0;var intSecondarySortCol=13;var intSecondarySortDir=1;break;case"hb_sort_privateprice_asc":var intPrimarySortCol=11;var intPrimarySortDir=0;var intSecondarySortCol=10;var intSecondarySortDir=0;break;case"hb_sort_privateprice_des":var intPrimarySortCol=11;var intPrimarySortDir=0;var intSecondarySortCol=10;var intSecondarySortDir=1;break;case"hb_sort_rating":var intPrimarySortCol=8;var intPrimarySortDir=0;var intSecondarySortCol=7;var intSecondarySortDir=1;break;case"hb_sort_propertyname":var intPrimarySortCol=6;var intPrimarySortDir=0;var intSecondarySortCol=7;var intSecondarySortDir=0;break;}
var sorting=[[intPrimarySortCol,intPrimarySortDir],[intSecondarySortCol,intSecondarySortDir]];$("#listView").trigger("sorton",[sorting]);return false;}
function updatePrices()
{var currencyCode=$("#currencyPicker").val();var rows=$(".tableAccomm").find('tbody > tr');var strShared=currencyCode+'shared';var strPrivate=currencyCode+'private';rows.each(function(){$(this).find("td").eq(3).html($(this).find('td[@class=hiddenData '+strShared+']').html());$(this).find("td").eq(4).html($(this).find('td[@class=hiddenData '+strPrivate+']').html());})}});

$(document).ready(function(){var highlightPremRows=$("#premListing").find('.propertyRowPrem');highlightPremRows.hover(function(){$(this).children().css('background','none');$(this).css('background-color','#FFF7E8');$(this).children().css('background-color','#FFF7E8');},function(){$(this).css('background-color','white');$(this).children().css('background','#FFFFFF url('+strDomain+'/assets/common/images/backgrounds/featbg.jpg) repeat-x scroll 100% 100%');$(this).children().eq(1).css('background','#FFFFFF url('+strDomain+'/assets/common/images/backgrounds/featbg.jpg) repeat-x scroll 100% 100%');$(this).children().eq(3).css('background','#FFFFFF url('+strDomain+'/assets/common/images/backgrounds/featbg.jpg) repeat-x scroll 100% 100%');$(this).children().eq(4).css('background','#FFFFFF url('+strDomain+'/assets/common/images/backgrounds/featbgstripes.gif) repeat scroll');$(this).children().eq(5).css('background','#FFFFFF url('+strDomain+'/assets/common/images/backgrounds/featbgstripes.gif) repeat scroll');});var highlightRows=$("#listView").find('.propertyRow');highlightRows.hover(function(){$(this).children().css('background','none');$(this).css('background-color','#E6E6E6');$(this).children().css('background-color','#E6E6E6');},function(){$(this).css('background-color','white');$(this).children().css('background','url('+strDomain+'/assets/common/images/backgrounds/bgstripes.gif) repeat scroll 100% 100%');$(this).children().eq(0).css('background','#F9F9F9 url('+strDomain+'/assets/common/images/backgrounds/bgtdgrad.jpg) repeat-x scroll 100% 100%');$(this).children().eq(1).css('background','#F9F9F9 url('+strDomain+'/assets/common/images/backgrounds/bgtdgrad.jpg) repeat-x scroll 100% 100%');$(this).children().eq(2).css('background','#F9F9F9 url('+strDomain+'/assets/common/images/backgrounds/bgtdgrad.jpg) repeat-x scroll 100% 100%');$(this).children().eq(3).css('background','#F9F9F9 url('+strDomain+'/assets/common/images/backgrounds/bgtdgrad.jpg) repeat-x scroll 100% 100%');});});

$(document).ready(function(){$('#destinationsInParent .CollapsiblePanelContent').hide();$('#destinationsInParent .collapsible').click(function(){$('#destinationsInParent .CollapsiblePanelContent').slideToggle(600);})})

$(document).ready(function(){$('.CollapsiblePanelContent').hide();$('.ExpandByDefault').slideToggle(600);$('.collapsible').click(function(){$(this).parent().next().slideToggle(600);})})

$(document).ready(function(){var options={target:'#newsletterForm'};$('#frmNewsletterSignup').validate({rules:{email_field:{required:true,email:true}},invalidHandler:function(form,validator){$("#newsletterEmail").addClass('valBubbleRequired');$("#newsletterEmail").addClass('textfieldFocusState');return false;},submitHandler:function(){$('#frmNewsletterSignup').ajaxSubmit(options);},errorPlacement:function(error,element){}});$('#frmNewsletterSignup').submit(function()
{return false;});$('#newsletterEmailInput').blur(function()
{$("#newsletterEmail").removeClass('textfieldFocusState');});$("#signup").click(function(){$('#frmNewsletterSignup').submit();});});

(function($){$.address=(function(){var _trigger=function(name){$($.address).trigger($.extend($.Event(name),(function(){var parameters={},parameterNames=$.address.parameterNames();for(var i=0,l=parameterNames.length;i<l;i++){parameters[parameterNames[i]]=$.address.parameter(parameterNames[i]);}
return{value:$.address.value(),path:$.address.path(),pathNames:$.address.pathNames(),parameterNames:parameterNames,parameters:parameters,queryString:$.address.queryString()};}).call($.address)));},_bind=function(value,data,fn){$($.address).bind(value,data,fn);return $.address;},_supportsState=function(){return(_h.pushState&&typeof _opts.state!==UNDEFINED);},_hrefState=function(){return'/'+_l.pathname.replace(new RegExp(_opts.state),'')+
_l.search+(_hrefHash()?'#'+_hrefHash():'');},_hrefHash=function(){var index=_l.href.indexOf('#');return index!=-1?_crawl(_l.href.substr(index+1),FALSE):'';},_href=function(){return _supportsState()?_hrefState():_hrefHash();},_window=function(){try{return top.document!==undefined?top:window;}catch(e){return window;}},_js=function(){return'javascript';},_strict=function(value,force){if(_opts.strict){value=force?(value.substr(0,1)!='/'?'/'+value:value):(value==''?'/':value);}
return value;},_crawl=function(value,direction){if(_opts.crawlable&&direction){return(value!=''?'!':'')+value;}
return value.replace(/^\!/,'');},_cssint=function(el,value){return parseInt(el.css(value),10);},_search=function(el){var url,s;for(var i=0,l=el.childNodes.length;i<l;i++){if(el.childNodes[i].src){url=String(el.childNodes[i].src);}
s=_search(el.childNodes[i]);if(s){url=s;}}
return url;},_listen=function(){if(!_silent){var hash=_href(),diff=_value!=hash;if(_webkit&&_version<523){if(_length!=_h.length){_length=_h.length;if(typeof _stack[_length-1]!=UNDEFINED){_value=_stack[_length-1];}
_update(FALSE);}}else if(diff){if(_msie&&_version<7){_l.reload();}else{if(_msie&&_version<8&&_opts.history){_st(_html,50);}
_value=hash;_update(FALSE);}}}},_update=function(internal){_trigger(CHANGE);_trigger(internal?INTERNAL_CHANGE:EXTERNAL_CHANGE);_st(_track,10);},_track=function(){if(_opts.tracker!=='null'&&_opts.tracker!==null){var fn=$.isFunction(_opts.tracker)?_opts.tracker:_t[_opts.tracker],value=(_l.pathname+_l.search+
($.address&&!_supportsState()?$.address.value():'')).replace(/\/\//,'/').replace(/^\/$/,'');if($.isFunction(fn)){fn(value);}else if($.isFunction(_t.urchinTracker)){_t.urchinTracker(value);}else if(typeof _t.pageTracker!=UNDEFINED&&$.isFunction(_t.pageTracker._trackPageview)){_t.pageTracker._trackPageview(value);}else if(typeof _t._gaq!=UNDEFINED&&$.isFunction(_t._gaq.push)){_t._gaq.push(['_trackPageview',value]);}}},_html=function(){var src=_js()+':'+FALSE+';document.open();document.writeln(\'<html><head><title>'+
_d.title+'</title><script>var '+ID+' = "'+_href()+
(_d.domain!=_l.host?'";document.domain="'+_d.domain:'')+'";</'+'script></head></html>\');document.close();';if(_version<7){_frame.src=src;}else{_frame.contentWindow.location.replace(src);}},_options=function(){if(_url&&_qi!=-1){var param,params=_url.substr(_qi+1).split('&');for(i=0;i<params.length;i++){param=params[i].split('=');if(/^(autoUpdate|crawlable|history|strict|wrap)$/.test(param[0])){_opts[param[0]]=(isNaN(param[1])?/^(true|yes)$/i.test(param[1]):(parseInt(param[1],10)!==0));}
if(/^(state|tracker)$/.test(param[0])){_opts[param[0]]=param[1];}}
_url=null;}
_value=_href();},_load=function(){if(!_loaded){_loaded=TRUE;_options();var body=$('body').ajaxComplete(function(){_enable.call(this);_unescape.call(this);}).trigger('ajaxComplete');if(_opts.wrap){var wrap=$('body > *').wrapAll('<div style="padding:'+
(_cssint(body,'marginTop')+_cssint(body,'paddingTop'))+'px '+
(_cssint(body,'marginRight')+_cssint(body,'paddingRight'))+'px '+
(_cssint(body,'marginBottom')+_cssint(body,'paddingBottom'))+'px '+
(_cssint(body,'marginLeft')+_cssint(body,'paddingLeft'))+'px;" />').parent().wrap('<div id="'+ID+'" style="height:100%; overflow:auto;'+
(_webkit?(window.statusbar.visible&&!/chrome/i.test(_agent)?'':' resize:both;'):'')+'" />');$('html, body').css({height:'100%',margin:0,padding:0,overflow:'hidden'});if(_webkit){$('<style type="text/css" />').appendTo('head').text('#'+ID+'::-webkit-resizer { background-color: #fff; }');}}
if(_msie&&_version<8){var frameset=_d.getElementsByTagName('frameset')[0];_frame=_d.createElement((frameset?'':'i')+'frame');if(frameset){frameset.insertAdjacentElement('beforeEnd',_frame);frameset[frameset.cols?'cols':'rows']+=',0';_frame.noResize=TRUE;_frame.frameBorder=_frame.frameSpacing=0;}else{_frame.style.display='none';_frame.style.width=_frame.style.height=0;_frame.tabIndex=-1;_d.body.insertAdjacentElement('afterBegin',_frame);}
_st(function(){$(_frame).bind('load',function(){var win=_frame.contentWindow;var src=win.location.href;_value=(typeof win[ID]!=UNDEFINED?win[ID]:'');if(_value!=_href()){_update(FALSE);_l.hash=_crawl(_value,TRUE);}});if(typeof _frame.contentWindow[ID]==UNDEFINED){_html();}},50);}else if(_webkit){if(_version<418){$(_d.body).append('<form id="'+ID+'" style="position:absolute;top:-9999px;" method="get"></form>');_form=_d.getElementById(ID);}
if(typeof _l[ID]==UNDEFINED){_l[ID]={};}
if(typeof _l[ID][_l.pathname]!=UNDEFINED){_stack=_l[ID][_l.pathname].split(',');}}
_st(function(){_trigger('init');_update(FALSE);},1);if(!_supportsState()){if((_msie&&_version>7)||(!_msie&&('on'+HASH_CHANGE)in _t)){if(_t.addEventListener){_t.addEventListener(HASH_CHANGE,_listen,false);}else if(_t.attachEvent){_t.attachEvent('on'+HASH_CHANGE,_listen);}}else{_si(_listen,50);}}}},_enable=function(){var el,elements=$('a'),length=elements.size(),delay=1,index=-1;_st(function(){if(++index!=length){el=$(elements.get(index));if(el.is('[rel*=address:]')){el.address();}
_st(arguments.callee,delay);}},delay);},_popstate=function(){if(_value!=_href()){_value=_href();_update(FALSE);}},_unload=function(){if(_t.removeEventListener){_t.removeEventListener(HASH_CHANGE,_listen,false);}else if(_t.detachEvent){_t.detachEvent('on'+HASH_CHANGE,_listen);}},_unescape=function(){var base=_l.pathname.replace(/\/$/,''),fragment='_escaped_fragment_';if($('body').html().indexOf(fragment)!=-1){$('a[href]:not([href^=http]), , a[href*='+document.domain+']',this).each(function(){var href=$(this).attr('href').replace(/^http:/,'').replace(new RegExp(base+'/?$'),'');if(href==''||href.indexOf(fragment)!=-1){$(this).attr('href','#'+this.decode(href.replace(new RegExp('/(.*)\\?'+fragment+'=(.*)$'),'!$2')));}});}},_encode=function(value){return encodeURIComponent(value).replace(/%20/g,'+');},_path=function(value){return value.split('#')[0].split('?')[0];},_pathNames=function(value){var path=_path(value),names=path.replace(/\/{2,9}/g,'/').split('/');if(path.substr(0,1)=='/'||path.length===0){names.splice(0,1);}
if(path.substr(path.length-1,1)=='/'){names.splice(names.length-1,1);}
return names;},_queryString=function(value){var arr=value.split('?');return arr.slice(1,arr.length).join('?').split('#')[0];},_parameter=function(name,value){value=_queryString(value);if(value){params=value.split('&');var r=[];for(i=0;i<params.length;i++){var p=params[i].split('=');if(p[0]==name){r.push(p.slice(1).join('='));}}
if(r.length!==0){return r.length!=1?r:r[0];}}},_parameterNames=function(value){var qs=_queryString(value),names=[];if(qs&&qs.indexOf('=')!=-1){var params=qs.split('&');for(var i=0;i<params.length;i++){var name=params[i].split('=')[0];if($.inArray(name,names)==-1){names.push(name);}}}
return names;},_hash=function(value){var arr=value.split('#');return arr.slice(1,arr.length).join('#');},ID='jQueryAddress',UNDEFINED='undefined',HASH_CHANGE='hashchange',INIT='init',CHANGE='change',INTERNAL_CHANGE='internalChange',EXTERNAL_CHANGE='externalChange',TRUE=true,FALSE=false,_opts={autoUpdate:TRUE,crawlable:FALSE,history:TRUE,strict:TRUE,wrap:FALSE},_browser=$.browser,_version=parseFloat($.browser.version),_mozilla=_browser.mozilla,_msie=_browser.msie,_opera=_browser.opera,_webkit=_browser.webkit,_supported=FALSE,_t=_window(),_d=_t.document,_h=_t.history,_l=_t.location,_si=setInterval,_st=setTimeout,_agent=navigator.userAgent,_frame,_form,_url=_search(document),_qi=_url?_url.indexOf('?'):-1,_title=_d.title,_length=_h.length,_silent=FALSE,_loaded=FALSE,_justset=TRUE,_juststart=TRUE,_updating=FALSE,_stack=[],_listeners={},_value=_href();if(_msie){_version=parseFloat(_agent.substr(_agent.indexOf('MSIE')+4));if(_d.documentMode&&_d.documentMode!=_version){_version=_d.documentMode!=8?7:8;}
$(document).bind('propertychange',function(){if(_d.title!=_title&&_d.title.indexOf('#'+_href())!=-1){_d.title=_title;}});}
_supported=(_mozilla&&_version>=1)||(_msie&&_version>=6)||(_opera&&_version>=9.5)||(_webkit&&_version>=312);if(_supported){for(var i=1;i<_length;i++){_stack.push('');}
_stack.push(_value);if(_opera){history.navigationMode='compatible';}
if(document.readyState=='complete'){var interval=setInterval(function(){if($.address){_load();clearInterval(interval);}},50);}else{_options();$(_load);}
var hrefState=_hrefState();if(typeof _opts.state!==UNDEFINED){if(_h.pushState){if(hrefState.substr(0,3)=='/#/'){_l.replace(_opts.state.replace(/^\/$/,'')+hrefState.substr(2));}}else if(hrefState!='/'&&hrefState.replace(/^\/#/,'')!=_hrefHash()){_l.replace(_opts.state.replace(/^\/$/,'')+'/#'+hrefState);}}
$(window).bind('popstate',_popstate).bind('unload',_unload);}else if((!_supported&&_hrefHash()!='')||(_webkit&&_version<418&&_hrefHash()!=''&&_l.search!='')){_l.replace(_l.href.substr(0,_l.href.indexOf('#')));}else{_track();}
return{bind:function(type,data,fn){return _bind(type,data,fn);},init:function(fn){return _bind(INIT,fn);},change:function(fn){return _bind(CHANGE,fn);},internalChange:function(fn){return _bind(INTERNAL_CHANGE,fn);},externalChange:function(fn){return _bind(EXTERNAL_CHANGE,fn);},baseURL:function(){var url=_l.href;if(url.indexOf('#')!=-1){url=url.substr(0,url.indexOf('#'));}
if(/\/$/.test(url)){url=url.substr(0,url.length-1);}
return url;},autoUpdate:function(value){if(value!==undefined){_opts.autoUpdate=value;return this;}
return _opts.autoUpdate;},crawlable:function(value){if(value!==undefined){_opts.crawlable=value;return this;}
return _opts.crawlable;},history:function(value){if(value!==undefined){_opts.history=value;return this;}
return _opts.history;},state:function(value){if(value!==undefined){_opts.state=value;return this;}
return _opts.state;},strict:function(value){if(value!==undefined){_opts.strict=value;return this;}
return _opts.strict;},tracker:function(value){if(value!==undefined){_opts.tracker=value;return this;}
return _opts.tracker;},wrap:function(value){if(value!==undefined){_opts.wrap=value;return this;}
return _opts.wrap;},update:function(){_updating=TRUE;this.value(_value);_updating=FALSE;return this;},encode:function(value){var pathNames=_pathNames(value),parameterNames=_parameterNames(value),queryString=_queryString(value),hash=_hash(value),first=value.substr(0,1),last=value.substr(value.length-1),encoded='';$.each(pathNames,function(i,v){encoded+='/'+_encode(v);});if(queryString!==''){encoded+='?';if(parameterNames.length===0){encoded+=queryString;}else{$.each(parameterNames,function(i,v){var pv=_parameter(v,value);if(typeof pv!=='string'){$.each(pv,function(ni,nv){encoded+=_encode(v)+'='+_encode(nv)+'&';});}else{encoded+=_encode(v)+'='+_encode(pv)+'&';}});encoded=encoded.substr(0,encoded.length-1);}}
if(hash!==''){encoded+='#'+_encode(hash);}
if(first!='/'&&encoded.substr(0,1)=='/'){encoded=encoded.substr(1);}
if(/#|&|\?/.test(last)){encoded+=last;}
return encoded;},decode:function(value){return decodeURIComponent(value.replace(/\+/g,'%20'));},title:function(value){if(value!==undefined){_st(function(){_title=_d.title=value;if(_juststart&&_frame&&_frame.contentWindow&&_frame.contentWindow.document){_frame.contentWindow.document.title=value;_juststart=FALSE;}
if(!_justset&&_mozilla){_l.replace(_l.href.indexOf('#')!=-1?_l.href:_l.href+'#');}
_justset=FALSE;},50);return this;}
return _d.title;},value:function(value){if(value!==undefined){value=_strict(this.encode(value),TRUE);if(value=='/'){value='';}
if(_value==value&&!_updating){return;}
_justset=TRUE;_value=value;if(_opts.autoUpdate||_updating){_update(TRUE);if(_supportsState()){_h[_opts.history?'pushState':'replaceState']({},'',_opts.state.replace(/\/$/,'')+(_value==''?'/':_value));}else{_silent=TRUE;_stack[_h.length]=_value;if(_webkit){if(_opts.history){_l[ID][_l.pathname]=_stack.toString();_length=_h.length+1;if(_version<418){if(_l.search==''){_form.action='#'+_crawl(_value,TRUE);_form.submit();}}else if(_version<523||_value==''){var evt=_d.createEvent('MouseEvents');evt.initEvent('click',TRUE,TRUE);var anchor=_d.createElement('a');anchor.href='#'+_crawl(_value,TRUE);anchor.dispatchEvent(evt);}else{_l.hash='#'+_crawl(_value,TRUE);}}else{_l.replace('#'+_crawl(_value,TRUE));}}else if(_value!=_href()){if(_opts.history){_l.hash='#'+_crawl(_value,TRUE);}else{_l.replace('#'+_crawl(_value,TRUE));}}
if((_msie&&_version<8)&&_opts.history){_st(_html,50);}
if(_webkit){_st(function(){_silent=FALSE;},1);}else{_silent=FALSE;}}}
return this;}
if(!_supported){return null;}
return _strict(this.decode(_value),FALSE);},path:function(value){if(value!==undefined){var qs=this.queryString(),hash=this.hash();this.value(value+(qs?'?'+qs:'')+(hash?'#'+hash:''));return this;}
return _path(this.value());},pathNames:function(){return _pathNames(this.value());},queryString:function(value){if(value!==undefined){var hash=this.hash();this.value(this.path()+(value?'?'+value:'')+(hash?'#'+hash:''));return this;}
return _queryString(this.value());},parameter:function(name,value,append){var i,params;if(value!==undefined){var names=this.parameterNames();params=[];for(i=0;i<names.length;i++){var n=names[i],v=this.parameter(n);if(typeof v=='string'){v=[v];}
if(n==name){v=(value===null||value==='')?[]:(append?v.concat([value]):[value]);}
for(var j=0;j<v.length;j++){params.push(n+'='+v[j]);}}
if($.inArray(name,names)==-1&&value!==null&&value!==''){params.push(name+'='+value);}
this.queryString(params.join('&'));return this;}
return _parameter(name,this.value());},parameterNames:function(){return _parameterNames(this.value());},hash:function(value){if(value!==undefined){this.value(this.value().split('#')[0]+(value?'#'+value:''));return this;}
return _hash(this.value());}};})();$.fn.address=function(fn){if(!$(this).attr('address')){var f=function(e){if($(this).is('a')){var value=fn?fn.call(this):/address:/.test($(this).attr('rel'))?$(this).attr('rel').split('address:')[1].split(' ')[0]:typeof $.address.state()!=='undefined'&&$.address.state()!='/'?$(this).attr('href').replace(new RegExp('^(.*'+$.address.state()+'|\\.)'),''):$(this).attr('href').replace(/^(#\!?|\.)/,'');$.address.value(value);e.preventDefault();}};$(this).click(f).live('click',f).submit(function(e){if($(this).is('form')){var value=fn?fn.call(this):$(this).attr('action')+'?'+$.address.decode($(this).serialize());$.address.value(value);e.preventDefault();}}).attr('address',true);}
return this;};}(jQuery));

var SearchAnimation={init:function(){},searchStart:function(){$("#refineProgressIndicator").css('visibility','visible');},searchFinish:function(){$("#refineProgressIndicator").css('visibility','hidden');}}

var SearchFilter={strInitialHash:"",strTableID:"",strRoomTypeID:"",strSharedRoomID:"",strPrivateRoomID:"",strPropertyTypeID:"",arrRefineCountIDs:[],strSuburbPickerID:"",strDecimalSeparator:"",stSearchParams:{fltRatingMin:{val:0,strLabel:"rating_min"},fltRatingMax:{val:100,strLabel:"rating_max"},fltPriceMin:{val:0,strLabel:"price_min"},fltPriceMax:{val:0,strLabel:"price_max"},bSharedRoom:{val:true,strLabel:"shared"},bPrivateRoom:{val:true,strLabel:"private"},stPropertyTypes:{}},stFilterCounts:{stPropertyTypes:{},stRoomTypes:{}},stValidLabels:{},stValidPropertyTypes:{},strFilterHash:"",init:function(strTableID,params){SearchFilter.strTableID=strTableID;SearchFilter.strInitialHash=window.location.hash;SearchFilter.strInitialHash=SearchFilter.strInitialHash.replace(/^#/,"");if(typeof params!="undefined"){if("strRoomTypeID"in params){SearchFilter.strRoomTypeID=params.strRoomTypeID;if("strSharedRoomID"in params){SearchFilter.strSharedRoomID=params.strSharedRoomID;}
if("strPrivateRoomID"in params){SearchFilter.strPrivateRoomID=params.strPrivateRoomID;}}
if("strPropertyTypeHolderID"in params){SearchFilter.strPropertyTypeID=params.strPropertyTypeHolderID;}
if("arrRefineCountIDs"in params){SearchFilter.arrRefineCountIDs=params.arrRefineCountIDs;}
if("strCurrencyCode"in params){SearchFilter.strCurrencyCode=params.strCurrencyCode;}
if("strSuburbPickerID"in params){SearchFilter.strSuburbPickerID=params.strSuburbPickerID;SearchFilter.stSearchParams["strSuburb"]={val:"",strLabel:"suburb"};}
if("strDecimalSeparator"in params){SearchFilter.strDecimalSeparator=params.strDecimalSeparator;}}
SearchFilter.cacheValidLabels();SearchFilter.loadHistoryEvent();if(SearchFilter.strSharedRoomID!=''){SearchFilter.loadSharedRoomEvent(SearchFilter.strSharedRoomID,params.strRoomTypeID);}
if(SearchFilter.strPrivateRoomID!=''){SearchFilter.loadPrivateRoomEvent(SearchFilter.strPrivateRoomID,params.strRoomTypeID);}
if(SearchFilter.strPropertyTypeID!=''){SearchFilter.loadPropertyTypeEvent(SearchFilter.strPropertyTypeID);}
if(SearchFilter.strSuburbPickerID!=''){SearchFilter.loadSuburbPickerEvent(SearchFilter.strSuburbPickerID);}
SearchFilter.initialiseCounts();},setTrackingBaseURL:function(strTrackingBaseURL){SearchFilter.strTrackingBaseURL=strTrackingBaseURL;},cacheValidLabels:function(){var strLabel;var iParam;for(iParam in SearchFilter.stSearchParams){if(typeof SearchFilter.stSearchParams[iParam].strLabel!='undefined'){strLabel=SearchFilter.stSearchParams[iParam].strLabel;SearchFilter.stValidLabels[strLabel]=true;}}
$('#'+SearchFilter.strPropertyTypeID+' input:checkbox').each(function(){SearchFilter.stValidPropertyTypes[$(this).val()]=true;});},loadHistoryEvent:function(){$.address.externalChange(function(event){SearchFilter.externalPageload(event.value.replace(/^\//,''));});},externalPageload:function(hash){if(hash.length>0){var iNameValue,arrNameValue,strName,val;var arrHash=hash.split('/');var intHashLength=arrHash.length;var stParams={};for(iNameValue=0;iNameValue<intHashLength;iNameValue++){arrNameValue=arrHash[iNameValue].split('=');if(arrNameValue.length!=2)continue;strName=arrNameValue[0];val=arrNameValue[1];stParams[strName]=val;}
SearchFilter.updateSearchParameters(stParams);SearchFilter.updateSearchControls(stParams);SearchSlider.updateRatingStatus([SearchFilter.stSearchParams.fltRatingMin.val,SearchFilter.stSearchParams.fltRatingMax.val]);if(SearchSlider.bPrependCurrency==true){SearchSlider.updatePriceStatus([SearchSlider.strCurrencySymbol+' '+SearchFilter.stSearchParams.fltPriceMin.val,SearchSlider.strCurrencySymbol+' '+SearchFilter.stSearchParams.fltPriceMax.val]);}else{SearchSlider.updatePriceStatus([SearchFilter.stSearchParams.fltPriceMin.val+' '+SearchSlider.strCurrencySymbol,SearchFilter.stSearchParams.fltPriceMax.val+' '+SearchSlider.strCurrencySymbol]);}}
else{SearchFilter.resetControls();}
SearchFilter.filter(false);},updateSearchControls:function(stParams){if(stParams['price_min']&&typeof stParams['price_min']!='undefined'&&!isNaN(stParams['price_min'])){$("#"+SearchSlider.strPriceID).slider("values",0,stParams['price_min']);}
if(stParams['price_max']&&typeof stParams['price_max']!='undefined'&&!isNaN(stParams['price_max'])){$("#"+SearchSlider.strPriceID).slider("values",1,stParams['price_max']);}
if(stParams['rating_min']&&typeof stParams['rating_min']!='undefined'&&!isNaN(stParams['rating_min'])){$("#"+SearchSlider.strRatingID).slider("values",0,stParams['rating_min']);}
if(stParams['rating_max']&&typeof stParams['rating_max']!='undefined'&&!isNaN(stParams['rating_max'])){$("#"+SearchSlider.strRatingID).slider("values",1,stParams['rating_max']);}
if(stParams['shared']){if(stParams['shared']=='true'){$('#'+SearchFilter.strSharedRoomID).attr('checked','checked');}
else{$('#'+SearchFilter.strSharedRoomID).removeAttr('checked');}}
if(stParams['private']){if(stParams['private']=='true'){$('#'+SearchFilter.strPrivateRoomID).attr('checked','checked');}
else{$('#'+SearchFilter.strPrivateRoomID).removeAttr('checked');}}
if(stParams["suburb"]){$("#"+SearchFilter.strSuburbPickerID).val(stParams["suburb"]);}
if(SearchFilter.numberOfCheckBoxesChecked(SearchFilter.strRoomTypeID)!=0){SearchFilter.setRoomTypeValue({bShared:$('#'+SearchFilter.strSharedRoomID).is(":checked"),bPrivate:$('#'+SearchFilter.strPrivateRoomID).is(":checked")});}
else{$('#'+SearchFilter.strSharedRoomID).attr('checked','checked');}
$('#'+SearchFilter.strPropertyTypeID+' input:checkbox').each(function(){var strPropertyType=$(this).val().toLowerCase();if(stParams[strPropertyType]){if(stParams[strPropertyType]=='true'){$(this).attr('checked','checked');}
else{$(this).removeAttr('checked');}}
SearchFilter.setPropertyTypeValue($(this).val(),$(this).is(':checked'));});if(SearchFilter.numberOfCheckBoxesChecked(SearchFilter.strPropertyTypeID)==0){$('#hostel_property').attr('checked','checked');SearchFilter.setPropertyTypeValue($('#hostel_property').val(),$('#hostel_property').is(':checked'));}},updateSearchParameters:function(stParams){var iPropType,bShowPropertyType;if("price_min"in stParams&&"price_max"in stParams&&!isNaN(stParams["price_min"])&&!isNaN(stParams["price_max"])){SearchFilter.setPriceValue(stParams.price_min,stParams.price_max);}
if("rating_min"in stParams&&"rating_max"in stParams&&!isNaN(stParams["rating_min"])&&!isNaN(stParams["rating_max"])){SearchFilter.setRatingValue(stParams.rating_min,stParams.rating_max);}
if("shared"in stParams&&"private"in stParams&&!isNaN(stParams["shared"])&&!isNaN(stParams["private"])){SearchFilter.setRoomTypeValue({bShared:stParams["shared"],bPrivate:stParams["private"]});}
if("suburb"in stParams){SearchFilter.setSuburbValue(stParams["suburb"]);}
for(iPropType in SearchFilter.stValidPropertyTypes){if(iPropType.toLowerCase()in stParams){bShowPropertyType=SearchFilter.bool(stParams[iPropType.toLowerCase()]);SearchFilter.setPropertyTypeValue(iPropType.toLowerCase(),bShowPropertyType);}}},initialiseCounts:function(){SearchFilter.clearCounts();$('#'+SearchFilter.strTableID+' tr.propertyRow').each(function(index){SearchFilter.incrementPropertyTypeCount($('td.starRating',this).attr('class'));SearchFilter.incrementRoomTypeCount($('td.shared',this).html(),$('td.private',this).html());});SearchFilter.getCountFilteredResults();},clearCounts:function(){if(typeof SearchFilter.strPropertyTypeID!='undefined'){$('#'+SearchFilter.strPropertyTypeID+' input').each(function(index){SearchFilter.stFilterCounts.stPropertyTypes[$(this).val().toLowerCase()]=0;});}
SearchFilter.stFilterCounts.stRoomTypes['SHAR']=0;SearchFilter.stFilterCounts.stRoomTypes['PRIV']=0;},loadSharedRoomEvent:function(strSharedRoomID,strRoomTypeID){SearchFilter.setRoomTypeValue({bShared:$('#'+strSharedRoomID).is(":checked")});$('#'+strSharedRoomID).click(function(){SearchAnimation.searchStart();if(SearchFilter.numberOfCheckBoxesChecked(strRoomTypeID)!=0){SearchFilter.setRoomTypeValue({bShared:$(this).is(":checked")});}
else{$(this).attr('checked','checked');}
SearchFilter.filter();});},loadPrivateRoomEvent:function(strPrivateRoomID,strRoomTypeID){SearchFilter.setRoomTypeValue({bPrivate:$('#'+strPrivateRoomID).is(":checked")});$('#'+strPrivateRoomID).click(function(){SearchAnimation.searchStart();if(SearchFilter.numberOfCheckBoxesChecked(strRoomTypeID)!=0){SearchFilter.setRoomTypeValue({bPrivate:$(this).is(":checked")});}
else{$(this).attr('checked','checked');}
SearchFilter.filter();});},loadPropertyTypeEvent:function(strPropertyTypeHolderID){$('#'+strPropertyTypeHolderID+' input:checkbox').each(function(){SearchFilter.setPropertyTypeValue($(this).val(),$(this).is(':checked'));$(this).click(function(){SearchAnimation.searchStart();if(SearchFilter.numberOfCheckBoxesChecked(strPropertyTypeHolderID)!=0){SearchFilter.setPropertyTypeValue($(this).val(),$(this).is(':checked'));}
else{$(this).attr('checked','checked');}
SearchFilter.filter();});});},loadSuburbPickerEvent:function(strSuburbPickerID){var $heading=$("#mainHeading > h1 > span");var strDestination=$heading.text();$("#"+strSuburbPickerID).change(function(){SearchFilter.setSuburbValue($(this).val());SearchFilter.filter();if($(this).val()){$heading.text($('option:selected',this).text());}else{$heading.text(strDestination);}});},numberOfCheckBoxesChecked:function(strContainerID){return $('#'+strContainerID+' input:checkbox:checked').length;},doingRoomTypeSearch:function(){if(SearchFilter.strSharedRoomID==''||SearchFilter.strPrivateRoomID=='')return false;if($('#'+SearchFilter.strSharedRoomID).is(":checked")!=$('#'+SearchFilter.strPrivateRoomID).is(":checked"))return true;},incrementPropertyTypeCount:function(strPropertyTypeClass){var strPropType=SearchFilter.getPropertyTypeClass(strPropertyTypeClass);SearchFilter.stFilterCounts.stPropertyTypes[strPropType]+=1;},incrementRoomTypeCount:function(strShared,strPrivate){strShared=strShared.replace(new RegExp(/[^\d\.]/g),"");strPrivate=strPrivate.replace(new RegExp(/[^\d\.]/g),"");if($.trim(strShared).length){SearchFilter.stFilterCounts.stRoomTypes['SHAR']+=1;}
if($.trim(strPrivate).length){SearchFilter.stFilterCounts.stRoomTypes['PRIV']+=1;}},getPropertyTypeClass:function(strPropertyTypeClass){var strPropertyType='NOT_SET';var arrClasses=strPropertyTypeClass.split(/\s+/);var intClassLength=arrClasses.length;var i;for(i=0;i<intClassLength;i++){var arrPropTypeClassSections=arrClasses[i].split('_');if(arrPropTypeClassSections.length!=2)continue;if(arrPropTypeClassSections[0]=='pt'){strPropertyType=arrPropTypeClassSections[1];break;}}
return strPropertyType.toLowerCase();},filter:function(bDoUrl){var strSuburb,bCheckedRoomTypePrivate,bCheckedRoomTypeShared,bHideSharedPrice,bHidePrivatePrice;var bRoomTypeSearch=false;var bHandleSuburb=false;var intPropertyCount,oMarker;if(bDoUrl===undefined){bDoUrl=true;}
SearchFilter.clearCounts();$("#"+SearchFilter.strTableID+" tr.propertyRow, #premListing tr.propertyRowPrem").show();if(typeof stuAddedMarkers!='undefined'){for(oMarker in stuAddedMarkers){stuAddedMarkers[oMarker].setVisible(true);}}
if(SearchFilter.doingRoomTypeSearch()){bRoomTypeSearch=true;bCheckedRoomTypePrivate=$("#"+SearchFilter.strPrivateRoomID).is(":checked");bCheckedRoomTypeShared=$("#"+SearchFilter.strSharedRoomID).is(":checked");}
if("strSuburb"in SearchFilter.stSearchParams){strSuburb=SearchFilter.stSearchParams.strSuburb.val;if(strSuburb.length>0){bHandleSuburb=true;}}
$('#'+SearchFilter.strTableID+' tr.propertyRow').filter(function(index){if(SearchFilter.hideRating($('td.rating',this).html())){return true;}else if(SearchFilter.hidePropertyType($('td.starRating',this).attr('class'))){return true;}else{if(bRoomTypeSearch){if(bCheckedRoomTypeShared){if(SearchFilter.hidePrice($('td.shared span',this).html())){return true;}
if(SearchFilter.hideRoomType($('td.shared',this).html())){return true;}}
if(bCheckedRoomTypePrivate){if(SearchFilter.hidePrice($('td.private span',this).html())){return true;}
if(SearchFilter.hideRoomType($('td.private',this).html())){return true;}}}else{bHideSharedPrice=SearchFilter.hidePrice($('td.shared span',this).html());bHidePrivatePrice=SearchFilter.hidePrice($('td.private span',this).html());if(bHideSharedPrice&&bHidePrivatePrice){return true;}}}
if(bHandleSuburb&&strSuburb!=$("td.thumb",this).attr("rel")){return true;}
SearchFilter.incrementPropertyTypeCount($('td.starRating',this).attr('class'));SearchFilter.incrementRoomTypeCount($('td.shared',this).html(),$('td.private',this).html());return false;}).each(function(index){SearchFilter.hideProperty($(this));if(typeof stuAddedMarkers!='undefined'){var intPropID=$(this).attr('id').split('_')[1];if(intPropID in stuAddedMarkers){stuAddedMarkers[intPropID].setVisible(false);}}});SorterUtils.toggleSpacerRow(SearchFilter.strTableID);intPropertyCount=SearchFilter.getCountFilteredResults();SearchFilter.strFilterHash=SearchFilter.getFilterHash();if(bDoUrl==true){SearchFilter.updateURL();SearchFilter.fireTrackingCode(intPropertyCount);}
SearchFilter.writeRefineCookie();SearchFilter.updateLinkAnchors();Breadcrumbs.updateAnchors(SearchFilter.strFilterHash);SearchAnimation.searchFinish();},hideProperty:function(oPropertyRow){oPropertyRow.hide();},setRatingValue:function(fltMin,fltMax){SearchFilter.stSearchParams.fltRatingMin.val=parseFloat(fltMin);SearchFilter.stSearchParams.fltRatingMax.val=parseFloat(fltMax);},hideRating:function(strContent){strContent=$.trim(strContent);if(strContent==null)return false;var strRating=strContent.replace(new RegExp(/^.*?<span>(.*?)<\/span>.*?$/gi),"$1");var fltRating=parseFloat(strRating);if(isNaN(fltRating)){fltRating=0;}
return((fltRating>SearchFilter.stSearchParams.fltRatingMax.val)||(fltRating<SearchFilter.stSearchParams.fltRatingMin.val));},setPriceValue:function(fltMin,fltMax){SearchFilter.stSearchParams.fltPriceMin.val=parseFloat(fltMin);SearchFilter.stSearchParams.fltPriceMax.val=parseFloat(fltMax);},hidePrice:function(strContent){var fltPrice;strContent=$.trim(strContent);if(strContent==null){return false;}
fltPrice=SearchFilter.unformatNumber(strContent,SearchFilter.strDecimalSeparator);if(isNaN(fltPrice)){return true;}
return((fltPrice>SearchFilter.stSearchParams.fltPriceMax.val)||(fltPrice<SearchFilter.stSearchParams.fltPriceMin.val));},setRoomTypeValue:function(params){if(typeof params.bShared!='undefined'){SearchFilter.stSearchParams.bSharedRoom.val=params.bShared;}
if(typeof params.bPrivate!='undefined'){SearchFilter.stSearchParams.bPrivateRoom.val=params.bPrivate;}},hideRoomType:function(strContent){strContent=$.trim(strContent);var fltPrice=strContent.replace(new RegExp(/[^\d\.]/g),"");return fltPrice=='';},setPropertyTypeValue:function(strKey,strVal){SearchFilter.stSearchParams.stPropertyTypes[strKey.toLowerCase()]=strVal;},hidePropertyType:function(strPropertyTypeClass){var strPropertyType=SearchFilter.getPropertyTypeClass(strPropertyTypeClass);return!SearchFilter.stSearchParams.stPropertyTypes[strPropertyType.toLowerCase()];},setSuburbValue:function(strVal){SearchFilter.stSearchParams.strSuburb.val=strVal;},updateURL:function(){$.address.value(SearchFilter.strFilterHash);},writeRefineCookie:function(){CookieUtil.setCookie('HB_REFINERESULTS',SearchFilter.strFilterHash);},getFilterHash:function(){var strHash='';var eParam,strLabel,strValue,iParam,iPropType;for(iParam in SearchFilter.stSearchParams){eParam=SearchFilter.stSearchParams[iParam];if(typeof eParam.val!='undefined'){strValue=eParam.val;strLabel=eParam.strLabel;strHash+=strLabel+'='+strValue+'/';}
else{for(iPropType in eParam){strValue=eParam[iPropType];strLabel=iPropType;strHash+=strLabel+'='+strValue+'/';}}}
if(typeof SortHistory!='undefined')
{strHash+=SortHistory.strSortLabel+'='+SortHistory.stuSortOptions[SortHistory.strSortOption];}
return strHash.toLowerCase();},bool:function(str){return str===true||str==='true'||str==='1'?true:str===false||str==='false'||str==='0'?false:undefined;},fireTrackingCode:function(intPropertyCount){var strTrackingString=SearchFilter.strTrackingBaseURL+'&amp;hb_filter=1';var iParam,eParam;var intPropTypeCount=0;var strSelectedProperties='';strTrackingString=strTrackingString+'&amp;hb_filter_price_min='+Math.round(SearchFilter.stSearchParams.fltPriceMin.val);strTrackingString=strTrackingString+'&amp;hb_filter_price_max='+Math.round(SearchFilter.stSearchParams.fltPriceMax.val);strTrackingString=strTrackingString+'&amp;hb_filter_rating_min='+Math.round(SearchFilter.stSearchParams.fltRatingMin.val);strTrackingString=strTrackingString+'&amp;hb_filter_rating_max='+Math.round(SearchFilter.stSearchParams.fltRatingMax.val);if
(SearchFilter.stSearchParams.bSharedRoom.val==true&&SearchFilter.stSearchParams.bPrivateRoom.val==true)
{strTrackingString=strTrackingString+'&amp;hb_filter_roomtype=private|shared';}
else if
(SearchFilter.stSearchParams.bSharedRoom.val==true&&SearchFilter.stSearchParams.bPrivateRoom.val==false)
{strTrackingString=strTrackingString+'&amp;hb_filter_roomtype=shared';}
else if
(SearchFilter.stSearchParams.bSharedRoom.val==false&&SearchFilter.stSearchParams.bPrivateRoom.val==true)
{strTrackingString=strTrackingString+'&amp;hb_filter_roomtype=private';}
for(iParam in SearchFilter.stSearchParams.stPropertyTypes){eParam=SearchFilter.stSearchParams.stPropertyTypes[iParam];if(typeof eParam!='undefined'&&eParam!=false)
{intPropTypeCount++;if(intPropTypeCount>1)
{strSelectedProperties=strSelectedProperties+'|'+iParam;}
else
{strSelectedProperties=iParam;}}}
strTrackingString=strTrackingString+'&amp;hb_filter_propertytype='+strSelectedProperties;if("strSuburb"in SearchFilter.stSearchParams){if(SearchFilter.stSearchParams.strSuburb.val.length>0){strTrackingString+='&amp;hb_filter_district='+encodeURI(SearchFilter.stSearchParams.strSuburb.val);}}
strTrackingString=strTrackingString.replace(/hb_search_results=[0-9]+/,"hb_search_results="+intPropertyCount);sitestat(strTrackingString);},getCountFilteredResults:function(){var intTotalPremium;if(typeof SearchFilter.arrRefineCountIDs!='undefined'){var intPropertyCount=0;var iID;var iParam;for(iParam in SearchFilter.stFilterCounts.stPropertyTypes){intPropertyCount+=SearchFilter.stFilterCounts.stPropertyTypes[iParam];}
for(iID=0;iID<SearchFilter.arrRefineCountIDs.length;iID++){$('#'+SearchFilter.arrRefineCountIDs[iID]).html(intPropertyCount+' ');}
if(intPropertyCount==0){$('#listView').hide();$('.dListFooterText').hide();$('#noFilterResults').removeClass('hide');$('#noFilterResults').show();}
else{$('#listView').show();$('.dListFooterText').show();$('#noFilterResults').hide();}}
intTotalPremium=$("#premListing tr.propertyRowPrem:visible").length;if(intTotalPremium==0){$("#premListing").hide();}else{$("#premListing").show();}
return intPropertyCount;},resetAllRefineFilters:function(fltMinPrice,fltMaxPrice,strMinPrice,strMaxPrice,strCurrencyCode,bPrependCurrency){SearchAnimation.searchStart();SearchFilter.resetFilters();SearchSlider.initRatingSlider('rating_slider');SearchSlider.initPriceSlider('price_slider',fltMinPrice,fltMaxPrice,strMinPrice,strMaxPrice,strCurrencyCode,bPrependCurrency);SearchFilter.filter();},resetFilters:function(){SearchAnimation.searchStart();SearchFilter.resetControls();SearchFilter.filter();},resetControls:function(){$('#'+SearchFilter.strPropertyTypeID+' input:checkbox').each(function(){[$(this).attr('checked','checked')];SearchFilter.setPropertyTypeValue($(this).val(),$(this).is(':checked'));});$('#'+SearchFilter.strPrivateRoomID).attr('checked','checked');$('#'+SearchFilter.strSharedRoomID).attr('checked','checked');SearchFilter.setRoomTypeValue({bShared:true,bPrivate:true});SearchFilter.setRatingValue(SearchSlider.intMinInitialRating,SearchSlider.intMaxInitialRating);SearchSlider.updateRatingStatus([SearchSlider.intMinInitialRating,SearchSlider.intMaxInitialRating]);$('#'+SearchSlider.strRatingID).slider("values",0,SearchSlider.intMinInitialRating);$('#'+SearchSlider.strRatingID).slider("values",1,SearchSlider.intMaxInitialRating);SearchFilter.setPriceValue(SearchSlider.fltMinInitialPrice,SearchSlider.fltMaxInitialPrice);SearchSlider.updatePriceStatus([SearchSlider.strMinInitialPrice,SearchSlider.strMaxInitialPrice]);$('#'+SearchSlider.strPriceID).slider("values",0,SearchSlider.fltMinInitialPrice);$('#'+SearchSlider.strPriceID).slider("values",1,SearchSlider.fltMaxInitialPrice);if(SearchFilter.strSuburbPickerID!=""){$("#"+SearchFilter.strSuburbPickerID+" option:first").attr("selected","selected");SearchFilter.setSuburbValue("");}},updateLinkAnchors:function(){if($('#navList a').attr('href')!='undefined'&&$('#navMap a').attr('href')){var strListViewURL=$('#navList a').attr('href');var strMapViewURL=$('#navMap a').attr('href');var arrListURLParts=strListViewURL.split("#");var arrMapURLParts=strMapViewURL.split("#");$('#navList a').attr('href',arrListURLParts[0]+'#'+SearchFilter.strFilterHash);$('#navMap a').attr('href',arrMapURLParts[0]+'#'+SearchFilter.strFilterHash);}},unformatNumber:function(strPrice,strDecimal){var strPriceFormatRegex=new RegExp("[^0-9"+strDecimal+"]","g");strPrice=(""+strPrice).replace(strPriceFormatRegex,'');strPrice=strPrice.replace(strDecimal,'.');return parseFloat(strPrice);}};var SorterUtils={toggleSpacerRow:function(strTableID){$('#'+strTableID+' tr.listSpacer').remove();$('#'+strTableID+' tr.propertyRow:visible').after("<tr class=\"listSpacer\"><td colspan=\"19\"></td></tr>");}};

var SearchSlider={strRatingID:'',strPriceID:'',strCurrencySymbol:'',fltMinInitialPrice:0,fltMaxInitialPrice:0,strMinInitialPrice:"",strMaxInitialPrice:"",intMinInitialRating:0,intMaxInitialRating:0,bPrependCurrency:false,initRatingSlider:function(strSliderID){SearchSlider.strRatingID=strSliderID;SearchSlider.intMinInitialRating=0;SearchSlider.intMaxInitialRating=100;$(document).ready(function(){$("#"+SearchSlider.strRatingID).slider({values:[SearchSlider.intMinInitialRating,SearchSlider.intMaxInitialRating],range:true,slide:function(event,ui){SearchSlider.updateRatingStatus(ui.values);},stop:function(event,ui){SearchAnimation.searchStart();SearchSlider.updateRatingStatus(ui.values);SearchFilter.setRatingValue(ui.values[0],ui.values[1]);SearchFilter.filter();}});});},initPriceSlider:function(strSliderID,fltStart,fltEnd,strStart,strEnd,strCurrencySymbol,bPrependCurrency){SearchFilter.setPriceValue(fltStart,fltEnd);SearchSlider.strPriceID=strSliderID;SearchSlider.strCurrencySymbol=strCurrencySymbol;SearchSlider.fltMinInitialPrice=fltStart;SearchSlider.fltMaxInitialPrice=fltEnd;SearchSlider.strMinInitialPrice=strStart;SearchSlider.strMaxInitialPrice=strEnd;SearchSlider.bPrependCurrency=bPrependCurrency;$(document).ready(function(){$("#"+SearchSlider.strPriceID).slider({values:[fltStart,fltEnd],min:fltStart,max:fltEnd,range:true,slide:function(event,ui){if(SearchSlider.bPrependCurrency==true){SearchSlider.updatePriceStatus([SearchSlider.strCurrencySymbol+' '+ui.values[0],SearchSlider.strCurrencySymbol+' '+ui.values[1]]);}else{SearchSlider.updatePriceStatus([ui.values[0]+' '+SearchSlider.strCurrencySymbol,ui.values[1]+' '+SearchSlider.strCurrencySymbol]);}},stop:function(event,ui){SearchAnimation.searchStart();if(SearchSlider.bPrependCurrency==true){SearchSlider.updatePriceStatus([SearchSlider.strCurrencySymbol+' '+ui.values[0],SearchSlider.strCurrencySymbol+' '+ui.values[1]]);}else{SearchSlider.updatePriceStatus([ui.values[0]+' '+SearchSlider.strCurrencySymbol,ui.values[1]+' '+SearchSlider.strCurrencySymbol]);}
SearchFilter.setPriceValue(ui.values[0],ui.values[1]);SearchFilter.filter();}});});},updateRatingStatus:function(arrValues){SearchSlider.updateStatus(SearchSlider.strRatingID,'<span class="rangeLeft">'+arrValues[0]+'%</span><span class="rangeRight">'+arrValues[1]+'%</span>');},updatePriceStatus:function(arrValues){SearchSlider.updateStatus(SearchSlider.strPriceID,'<span class="rangeLeft">'+arrValues[0]+'</span><span class="rangeRight">'+arrValues[1]+'</span>');},updateStatus:function(strSliderID,strMessage){$("#"+strSliderID+"_status").html(strMessage);}};

var Breadcrumbs={strCookieValue:"HB_REFINERESULTS",updateAnchors:function(strHash){if(typeof strHash=="undefined"||strHash=="/table_sort=rating"||strHash.length==0){var strHash="";}
else{strHash="#"+strHash;}
$("#breadcrumbs li.filterlink a").each(function(){var strBreadcrumbURL=$(this).attr("href");var arrBreadcrumbURLParts=strBreadcrumbURL.split("#");$(this).attr("href",arrBreadcrumbURLParts[0]+strHash);});}};

var CookieUtil={getCookie:function(strCookieName){if(document.cookie.length>0){c_start=document.cookie.indexOf(strCookieName+"=");if(c_start!=-1){c_start=c_start+strCookieName.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";},setCookie:function(strCookieName,strCookieValue){document.cookie=strCookieName+"="+escape(strCookieValue)+"; path="+"/";}}

