
  $(document).ready(function()
  {
      
    if ($.browser.msie && $.browser.version.substr(0, 1) <= 7)
    {
        $( '#pageBodyWrapper_Content_Main hr' ).replaceWith('<div class="hr"></div>');
    }
    
    /* FancyBox */
    $( 'a[rel=galleryImagesGroup]' ).fancybox(
    {
      'transitionIn'		: 'none',
      'transitionOut'		: 'none',
      'titlePosition' 	: 'over',
      'titleFormat'		: function( title, currentArray, currentIndex, currentOpts)
      {
        return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
      }
    });
      
  	$( '.fancyboxPopOver' ).fancybox({
  		'titlePosition'		: 'inside',
  		'transitionIn'		: 'none',
  		'transitionOut'		: 'none'
  		
  	});
	
  	$( '.fancyboxPopOver_gMap' ).fancybox({
        'width' : '75%',
        'height' : '75%',
        'autoScale' : false,
        'transitionIn' : 'none',
        'transitionOut' : 'none',
        'type' : 'iframe'
  	});	
	
	   if( $( '#pageBodyWrapper_BannerArea_Banners .items div' ).length > 1 )
	   {
      /* Banners scroll */
      $( '#pageBodyWrapper_BannerArea_Banners' ).scrollable(
      {
        speed: 1000, 
        circular: true
      }).autoscroll({ interval : 3000 }).navigator( '#pageBodyWrapper_BannerArea_Navigation' );     
     }
     else
     {
        $( '#pageBodyWrapper_BannerArea_Navigation' ).hide();
     }
	

	
	
	  /*
      CUFON
    */
    
    Cufon.replace('.fontCenturyGothic', {} ); 
  /*  Cufon.replace('#pageBodyWrapper_Content_Main h3', {} ); 
    Cufon.replace('#pageBodyWrapper_Content_Main h4', {} ); */
  });



