document.write("<" + "script type='text/javascript' src='/js/jquery.cookie.js'></" + "script>");
function photosize (size){
  $.cookie("photosize", size,{path: '/',expires:180});
  window.location.reload();
}
function pageSize (elt){
  $.cookie("page-size", elt.value,{path: '/',expires: 180});
  var url = window.location.href;
  window.location.href= url.replace(/page\/\d+\//,"");
//  window.location.reload();
}

function clientOrdering (what,order){
  $.cookie(what + "_ordering", order,{path: '/'});
  window.location.reload();
}

function show_comment(id){
  $('#comment_'+id).slideToggle('slow');
  $('#show_comment_'+id).toggle();
}
function addbookmark(url, tit)
{
  url = url || location.href;
  tit= tit || document.title;
  if (document.all && !window.opera)
  {
    window.external.AddFavorite(url, tit);
  } else {
  	alert("Пожалуйста, используйте сочетание клавиш Ctrl+D чтобы сделать закладку на наш сайт.");
  }
} 
function printVersion(a){
	var url = location.href.replace(/(print)\/[^\/]*$/,"") + "print/";
	var target = a.target;
	var win = window.open(url,target);
	if (win)
		win.focus();
}
