  /*185f4540f15f7722b1da35c219499de5*/
  hs.graphicsDir = '/js/highslide/graphics/';
  hs.align = 'center';
  hs.transitions = ['expand', 'crossfade'];
  hs.fadeInOut = true;
  hs.outlineType = null;
  hs.dimmingOpacity = 0.75;
  if (hs.addSlideshow) hs.addSlideshow({
    interval: 5000,
    repeat: false,
    useControls: true,
    fixedControls: 'fit',
    overlayOptions: {
      opacity: .75,
      position: 'bottom center',
      hideOnMouseOut: true
    }
  });

  hs.showCredits = false;

if (GBrowserIsCompatible()) {
 if (document.getElementById('googleMap')) {
   var map = new GMap2(document.getElementById('googleMap'));
    var marker = new GMarker(new GLatLng(49.663085, 17.82854));
    map.setCenter(new GLatLng(49.663085, 17.82854),13);
    map.addOverlay(marker);
    var customUI = map.getDefaultUI();
    customUI.controls.scalecontrol = false;
    customUI.controls.largemapcontrol3d = false;
    customUI.controls.smallzoomcontrol3d = true;
    customUI.maptypes.physical = false;
    customUI.maptypes.normal = true;
    customUI.maptypes.hybrid = false;
    customUI.maptypes.satellite = true;
    map.setUI(customUI);
  }
}

jQuery.noConflict();

jQuery(document).ready(function($){
$('input,textarea').focus(function(){
 $(this).parent('li').addClass('focus');
})
$('input,textarea').blur(function(){
 $(this).parent('li').removeClass('focus');
})
/*---------------- OHEKOVÁNÍ BUTTONU EPUBLISHE * -------------*/
 var imagesUrl='/_common/epcommon_3_4/_gfx/';

 var editButtons=new Array(
  new Array('btnEditActive','page_white_edit.gif','page_edit.gif'),
  new Array('btnSortUpActive','arrow_up_green.gif','arrow_up_red.gif'),
  new Array('btnSortUpInactive','arrow_up_grey.gif','arrow_up_grey.gif'),
  new Array('btnSortDownActive','arrow_down_green.gif','arrow_down_red.gif'),
  new Array('btnSortDownInactive','arrow_down_grey.gif','arrow_down_grey.gif'),
  new Array('btnVisibleActive','eye_visible.gif','eye_invisible.gif'),
  new Array('btnDeleteActive','delete.gif','cross.gif'),
  new Array('btnAddActive','add.gif','add_blue.gif')
 );

 $('.btnIco').css({backgroundColor:'transparent',backgroundPosition:'center bottom',backgroundRepeat:'no-repeat',display:'block',height:'16px',textEecoration:'none',width:'20px',padding:'0px 0px',margin:'0px 0px',border:'none'});
 $('.ep_adminTools_button,.ep_adminTools_button_noActive').css({backgroundImage:'none',fontFamily:'"Verdana CE", Verdana, "Arial CE", Arial, "Lucida Grande CE", lucida, "Helvetica CE", sans-serif',padding:'0px 0px',margin:'0px 0px',fontSize:'11px',fontWeight:'normal',textTransform:'none',display:'inline',lineHeight:'1.4',float:'none',border:'none'});
 $('.ep_adminTools_button_noActive').css('background-color','#c58888');
 $('.dark_green').css('background-color','#00c500');


 $('.ep_adminTools_button').hover(
  function(){
   $(this).css('background-color','#f80');
  },
  function(){
   $(this).css('background-color','#c50000');
  }
 )

 $('#from + button').click(function(){
if ($('#from').val() != '') {
if (GBrowserIsCompatible()) {
 if (document.getElementById('googleMap')) {
   var map = new GMap2(document.getElementById('googleMap'));
    var marker = new GMarker(new GLatLng(49.663085, 17.82854));
    map.setCenter(new GLatLng(49.663085, 17.82854),13);
    map.addOverlay(marker);
    var customUI = map.getDefaultUI();
    customUI.controls.scalecontrol = false;
    customUI.controls.largemapcontrol3d = false;
    customUI.controls.smallzoomcontrol3d = true;
    customUI.maptypes.physical = false;
    customUI.maptypes.normal = true;
    customUI.maptypes.hybrid = false;
    customUI.maptypes.satellite = true;
    map.setUI(customUI);
    var directionsPanel;
    var directions = new GDirections(map, directionsPanel);
    directions.load("from: 49.663085, 17.82854 to: "+($('#from').val()));
  }
}

} else {
if (GBrowserIsCompatible()) {
 if (document.getElementById('googleMap')) {
   var map = new GMap2(document.getElementById('googleMap'));
    var marker = new GMarker(new GLatLng(49.663085, 17.82854));
    map.setCenter(new GLatLng(49.663085, 17.82854),13);
    map.addOverlay(marker);
    var customUI = map.getDefaultUI();
    customUI.controls.scalecontrol = false;
    customUI.controls.largemapcontrol3d = false;
    customUI.controls.smallzoomcontrol3d = true;
    customUI.maptypes.physical = false;
    customUI.maptypes.normal = true;
    customUI.maptypes.hybrid = false;
    customUI.maptypes.satellite = true;
    map.setUI(customUI);
  }
}
}

 });

 for(i=0;i<editButtons.length;i++){
  $('.'+editButtons[i][0]).css('background-image','url('+imagesUrl+editButtons[i][1]+')');
  $('.'+editButtons[i][0]).attr('rel',i);
  $('.'+editButtons[i][0]).hover(
   function(){
    $(this).css('background-image','url('+imagesUrl+editButtons[$(this).attr('rel')][2]+')');
   },
   function(){
    $(this).css('background-image','url('+imagesUrl+editButtons[$(this).attr('rel')][1]+')');
   }
  );
 }
});
