1 var nacoma_base = _site_domain + '/' + _index_page + '/' + _current_uri;
2 var nacoma_install_location = '/monitor/op5/nacoma/';
4 // called by nacoma whenever a nacoma page is loaded
5 onnacomaload = function (nacomawin) {
6 if(!history.replaceState || "function" === history.replaceState) {
9 var nacomaurl = nacomawin.document.URL;
10 var interesting_url = nacomaurl.substr(nacomaurl.indexOf(nacoma_install_location) + nacoma_install_location.length).replace(/^\/+/, '');
11 history.replaceState(undefined, document.title, nacoma_base + '?page=' + encodeURIComponent(interesting_url));