

function setPrintCSS(isPrint){
  if(document.getElementsByTagName){
    x = document.getElementsByTagName('link');
  }else if(document.all){
    x = document.all.tags('link');
  }else{
    return;
  }
  for (var i=0;i<x.length;i++){
    if(x[i].title == 'printview') x[i].disabled = !isPrint;
    if(x[i].title == 'screenview') x[i].disabled = isPrint;
  }
}

if(document.location.hash=='#print'){
  setPrintCSS(true);
}


function showHideBlock(id){
  var elem = document.getElementById(id);
  if(elem.style.display!='none'){
    elem.style.display='block';
  }else{
    elem.style.display='none';
  }
}


if(typeof(JQuery)!='undefined'){

$(window).ready(function(){
  
  $("img.galleryimg").parent().colorbox({
    'opacity': 0.7,
    'initialWidth': 100,
    'initialHeight': 100,
    'current': '{current} РёР· {total}'
  });
  
});

}
