/* @version $Id: v 0.1 09.07.2010 - 12:00:12 Exp $
 *
 * Project:     aquarium
 * File:        jslib.js *
 *
 * This library is commercial distributed software; you can't
 * redistribute it and/or modify it without owner (or author) approval.
 *
 * @link http://bestartdesign.com
 * @copyright (C) 2009
 *
 * @author Seyar Chapuh <seyarchapuh@gmail.com>, <sc@bestitsolutions.biz>
 */

function setContentHeight()
{
    $('.content').height( (parseInt($('.wrap').height()) - 300)+'px');
}

$(document).ready(function(){
  //setContentHeight();

  $('.topMenuLinks').hover(function(){
      $(this).next().show();
  },function(){
      $(this).next().hide();
  });

  $('.submenu').hover(function(){
      $(this).show();
      if( $(this).prev().hasClass('aqua_ru') || $(this).prev().hasClass('design_ru') || $(this).prev().hasClass('aqua_en') || $(this).prev().hasClass('design_en') )
            $(this).prev().addClass('hover');
      
  },function(){
      $(this).hide();      
      $(this).prev().removeClass('hover');
  });

  $('.photoItem').hover(function(){
      $(this).addClass('hover');      
  },function(){
      $(this).removeClass('hover');
  });


});
