
Cufon.replace('h1, .merge, .slide-title, .topmenu, .topbox-title, .btn-video, .two-columns h3, .navigation h3, .btn-more, .footer h3, .btn-send input, .black-box-more a, .post-title h1, .post-title h2, .related-list h2, .comment-list h2, .comment-form h2 ', { fontFamily: 'Merge' });
Cufon.replace('.tabs-bottom ul li span', { fontFamily: 'Merge', fontSize : '20px' });
Cufon.replace('.tabs-bottom ul li span b', { fontFamily: 'Merge', fontSize : '20px', color : '#ffffff' });

Cufon.replace('h2', { fontFamily: 'Merge' });
Cufon.replace('h3', { fontFamily: 'Merge' });
Cufon.replace('h4', { fontFamily: 'Merge', fontSize : '14px' });

$(document).ready
( function()
  { 
    if( $('#topslider').size() > 0 )
    {
      $('#topslider').tabs({ fx: [{opacity:'toggle', duration:'fast'},{opacity:'toggle', duration:'fast'}] }).tabs('rotate', 4000);
    }
    
    /*
    
    if( ! ($.browser.msie && $.browser.version == '6.0') )
    { $('div.recent-posts').find('div.space').append('<div style="padding: 10px; text-align:center;" class="ajaxLoading"><img src="/images/ajax-loader.gif" border="0" /></div>');
      
      $.ajax
      ( { url:  '/http.request.php',
          type: 'POST',
          data: 'getTweets=1',
          cache: false,
          success: function(data) 
          { $('div.recent-posts').find('div.space').append(data);
            $('div.recent-posts').find('div.space').find('.ajaxLoading').remove();          
          } 
        }
      );
    }
    else
    { $('div.recent-posts').find('div.space').append('<div style="padding: 10px; text-align:center;" class="ajaxLoading"> IE 6.0 not supported! </div>');
    }
    
    */
    
    $.jcorners(".gallery2",{radius:10});
    $(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
    
    $('.icohover').click
    ( function()
      { $(this).parent().find('a').eq(0).trigger('click');
      }
    );
    
    $('a[href$="phtml"]').live
    (
      'click',
      
      function(e)
      {
        var hr = $(this).attr('href');
        $.get
        (
          hr, 
          function(data) 
          { 
            var c = $(data).find('div.text').html();
            
            $.fancybox('<div class="fancywrapper">'+c+'</span>');
            Cufon.refresh();
          } 
        );
        
        e.preventDefault();
        return false;
      }
    );
    
    /*
    $.marqueeTitle
    (
      {  
        dir: 'right',  
        speed: 250  
      }
    );
    */
    
  }
);
