Loading...

Home

Search

Product

' + type.uCaseFirst() + ''; }, set : function(type, id){ jpf.History.addPoint(type + "|" + (id || "")); var str = [this.add('home')]; if(type == "home"){ this.last = []; txtBreadcrumb.setValue(str.join(" > ")); return; } if(type != "search" && this.last.length) str.push(this.add(this.last[0], this.last[1])); str.push(this.add(type, id)); this.last = [type, id]; txtBreadcrumb.setValue(str.join(" > ")); } } function doSearch(id){ //handle searching here CrumbNav.set("search", id); stSearch.activate(); inKeyword.setValue(id); } self.doSearch = doSearch; jpf.History.onchange = function(page){ var data = page.split("\|"); CrumbNav.exec(data[0], data[1]); } var state = (location.href.match(/#(.*)$/) ? RegExp.$1 : "home") || "home"; jpf.History.init(state); ]]>