$(document).ready(function()
{

   /* $.fn.textWidth = function(){
      var html_org = $(this).html();
      var html_calc = '<span>' + html_org + '</span>'
      $(this).html(html_calc);
      var width = $(this).find('span:first').width();
      $(this).html(html_org);
      return width;
    };*/


		$("a[rel^='prettyPhoto']").prettyPhoto({
			theme: 'light_square',opacity: 0.9
    });
    
    $("ul.info-nav li").hover(
      function () {
       $.fx.off
       if($(this).find('div.dropdown'))
       { //
          var thisObject = $(this).find('div.dropdown');
          thisObject.stop(true, true, true).show("blind", null, 250);
          //thisObject.width( thisObject.width()-18);          
       }
      }, 
      function () {$.fx.off
        if($(this).find('div.dropdown'))
        {
          var thisObject = $(this).find('div.dropdown');
          thisObject.stop(true, true, true).stop(true, true, true).hide();
          //$(this).find('div.dropdown').stop(true, true, true).hide();
         // thisObject.width( thisObject.width()+18);
        }
      }
    );

});
