$(document).ready(function() {
    
  /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ==carousel */
    
  $('.abstractor .carousel').css('height', '65px').css('overflow-x', 'hidden');
  $('.abstractor .carousel ul').css('width', ($('.abstractor .carousel img').length * 68) +'px');
  $('.abstractor .carousel').scrollable({
    items: 'ul',
    size: 8
  });
  
  
  
  /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ==print */
  $('.form-registration .submit').click(function() {
    window.print();
    return false;
  });
    
    
    
  /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ==popup */
  $('a.internal-link-new-window').click(function() {
    window.open(this.href);
    return false;
  });
  
  $('a.external-link-new-window').click(function() {
    window.open(this.href);
    return false;
  });

   $('area[href^=http://]').click(function() {
    window.open(this.href);
    return false;
  });
  
  $('.download > a').click(function() {
    window.open(this.href);
    return false;
  });
   
  if(jQuery.browser.msie == true && jQuery.browser.version == '7.0') {  
    $('.gallery img').each(function() {
	    $(this).css('margin-top', (100 - $(this).height()) / 2);
    });
  }
}); 